BRAINS: a deep learning framework for Braille recognition and audio conversion using YOLOv8 and triplet loss optimized CNNs

Wait 5 sec.

IntroductionBraille is a critical modality for literacy through tactile perception, which millions of people with visual impairments around the world rely on. Braille supports basic reading and writing, education, and everyday self-support. These days, with the proliferation of digital formats for textual material, systems that can translate physical Braille pages into plain text are in even greater demand. Conventional Braille recognition approaches are usually based on specialized scanners or fixed, rule-based image-processing pipelines. Generally, such systems report only good results under ideal conditions whereby pages are clean, flat, and under controlled illumination. Minor perturbations such as shading, skewed pages, different embossing, or varying dot spacing, typically lead to considerable errors. Many of the handcrafted features or simple threshold methods used before also struggle when the page quality changes or when the Braille style varies.With recent progress in computer vision, especially deep learning, there are better chances to build stronger Braille recognition systems. CNN-based models can learn useful patterns directly from images without depending too much on manual feature design. Still, getting high accuracy remains difficult when the lighting is natural, the paper texture is uneven, or some Braille cells are distorted or incomplete. To handle these problems, the present work introduces a more modern pipeline that uses object detection to separate each Braille cell and then applies deep learning to classify the characters. The aim is to build a system that performs more reliably under real conditions and supports easier access to written information for people with vision loss.Related worksTo access the written information independently for the visually impaired individuals, the braille character recognition system plays a crucial role. Existing tools and methods will require human intervention and efforts for the visually impaired individuals to access the written information. It also requires individuals to spend more time learning every braille character with the help of an instructor. The recent advancement in AI opened the possibilities for fully automating this process. This research work focuses on developing a deep learning-based braille character recognition system that can take images as input and provide spoken audio as output. Shokat et al.1 proposed a deep learning scheme using touch screen-based Braille input. It uses CNN for feature extraction sequential learning for character prediction accuracy. Tiendee et al.2 developed image processing algorithms for segmenting Braille dots from noisy document images which is helpful for reliable optical Braille recognition. Shokat et al.3 developed automated tools using deep learning classifiers for Braille cell recognition. They used Independent Component Analysis for feature extraction. The extracted features are invariant to noise and writing styles.Chellaswamy et al.4 developed Braille recognition system for visually and hearing-impaired people using deep learning technique. The proposed method integrates CNN-based character recognition with speech synthesis which translates Braille input into audible speech and text forms. The proposed multimodal method using AI is helpful for inclusive education. Latif et al.5 developed bilingual Arabic-English Braille recognition system using deep learning framework. They used wearable device on a finger to capture the Braille image in real time and the recognised output is represented both in text and audio form. Liu et al.6 presented a novel self-powered tactile sensor-based Braille typing glove that enables individuals who are blind or non-verbal to input Braille characters into electronic devices without an external power source, leveraging triboelectric nanogenerator (TENG) technology for energy harvesting and signal generation. The system integrates six high-sensitivity tactile sensors corresponding to the dots of the Braille code, with microcontroller processing and Bluetooth connectivity to transmit typed characters to mobile devices.Gollagi et al.7 developed an innovative smart glass for blind individuals that uses AI-based optical character recognition (OCR) with the EAST detector to convert text images into spoken audio, enhancing access to written content. The system also integrates ultrasonic and motion sensors to support image capture and basic environmental awareness for users. Al-Salman et al.8 proposed the Fly-LeNet deep learning framework for Braille image-to-multilingual text conversion using CNN. The proposed model achieved the recognition accuracy of 99% by using layered feature extraction together with dropping out to prevent overfitting. Moustafa et al.9 presented a Braille translator mobile application designed to convert text to Braille and vice versa with a focus on accessibility and ease of use. The system integrates machine learning technologies to improve translation accuracy The study emphasizes an improved user experience for visually impaired users and discusses the potential of intelligent mobile tools in facilitating inclusive communication and literacy. Elaraby et al.10 proposed a novel ensemble learning method that combines multiple transfer learning models to improve automated Braille character recognition (BCR) across English and Arabic Braille datasets. It evaluates 17 pretrained CNN models and constructs ensemble classifiers using majority voting, with the best ensemble (DarkNet-53, GoogleNet, SqueezeNet, DenseNet-201) achieving significantly higher F1-scores and lower generalization errors than individual models. Teshome et al.11 have proposed deep learning model using convolutional and recurrent neural networks for recognizing Amharic Braille line-level Braille images. They extracted both spatial and sequential features. Their model achieved an F1-score of 0.94 on Amharic Braille dataset.Sayeedi et al.12 proposed BrailleSense, a deep learning-based system that applies convolutional neural networks (CNNs) to classify Braille characters from tactile or image input as a step toward assistive communication technologies for the visually impaired. Al-Salman and AlSalman13 introduced Fly-LeNet, a deep learning-based framework that converts multilingual Braille images into natural language text using image segmentation and a LeNet-5 convolutional neural network. Their approach preprocesses, segments, and classifies Braille cells before mapping them to multilingual characters, achieving very high classification accuracy on two Braille image datasets. Badawi et al.14 proposed a smart bionic vision assistive system that integrates artificial intelligence with wearable technology to support visually impaired individuals in daily activities. The device employs computer vision techniques to perform tasks such as obstacle detection, text reading, currency identification, color recognition, and facial recognition, thereby enhancing user safety and independence. Vishwakarma, Singh, and Jaiswal15 proposed an AI-powered offline Braille learning system that integrates speech interfaces with servo-based haptic feedback. Their method provides customized learning for visually impaired users by implementing intelligent voice guidance and actuating dynamic Braille cells.Ahmed et al.16 examined the role of artificial intelligence in advancing personalized and inclusive education for students with disabilities. The study highlights how AI-driven adaptive learning systems can tailor content based on learners’ abilities, preferences, and progress, thereby improving accessibility and engagement. Noor et al.17 provided a comprehensive review of how Artificial Intelligence (AI) and the Internet of Things (IoT) can support people with various disabilities, highlighting applications such as monitoring, analysis, and assistive systems designed to improve autonomy, communication, and quality of life. The authors propose a three-layer analytical framework for evaluating AI–IoT disability support prototypes. Bijoy et al.18 developed a deep neural network-based system for converting Bangla Braille into spoken voice, enabling visually impaired users to access Braille content audibly. Their approach leverages multimodal feature extraction and classification to achieve high accuracy in recognizing and translating Braille patterns. The study highlights the potential of combining deep learning with assistive technologies to improve literacy and communication for Bangla-speaking visually impaired individuals. Azhaguraja et al.19 presented a review of modern assistive technologies designed for blind and visually impaired individuals, covering tools for navigation, communication, education, and daily living. It highlights recent advances such as smart canes, wearable sensors, mobile applications, and AI-based vision systems that enhance independence and safety.To clearly distinguish the proposed framework from existing Braille recognition approaches, a comparative analysis of representative state-of-the-art methods is presented in Table 1. The comparison summarizes the detection and classification techniques, dataset characteristics, reported performance, and the primary contribution of each method. This comparison highlights the distinctive integration of YOLOv8-Nano, HybridVGG16 with Triplet Loss, and a balanced real-synthetic dataset adopted in the proposed BRAINS framework.Table 1 Comparative analysis of existing braille methods and the proposed method.Full size tableIn addition to the qualitative comparison presented earlier, a quantitative comparison with recent state-of-the-art Braille recognition methods is provided in Table 2. The comparison includes reported performance metrics, dataset sizes, and implementation complexity to facilitate a comprehensive evaluation of the proposed framework. Although direct numerical comparison is influenced by differences in datasets and evaluation protocols, the proposed BRAINS framework demonstrates competitive recognition performance while maintaining computational efficiency and strong cross-domain generalization.Table 2 Quantitative performance comparison with state-of-the-art methods.Full size tableKey contributionsFully automated Braille character recognition pipeline using deep learning framework.Application of YOLOv8 for robust Braille cell detection in complex and noisy images.Implementation of triplet loss to improve classification accuracy, especially for visually similar characters.Integration of text-to-speech for auditory feedback, enhancing accessibility for visually impaired users.Systematic comparison of multiple image classification models (VGG16, LeNet, ResNet50, EfficientNet-B0) for Braille character identification.Proposed methodologyTo enable robust Braille character recognition from real-world images, the proposed system shown in Fig. 1 follows a four-phase deep learning-based pipeline. This pipeline handles dataset generation, object spotting, character classification and text to speech conversion for assistive audio at the end. Each phase of the pipeline works as a standalone system and yet it all builds into one solid system. This system takes raw images of Braille as input and converts them into readable and spoken words.The four key phases of the pipeline are:Phase 1: Dataset Generation and Manual Labelling.Phase 2: Braille Cell Detection using YOLOv8.Phase 3: Braille Character Classification using Deep CNNs with Triplet Learning.Phase 4: Text-to-Audio Conversion for Assistive Output.Fig. 1Full size imageBraille character recognition system.Dataset generation and manual labellingFor this work, we ended up using two different datasets because the tasks in the Braille pipeline are not the same. One dataset focuses on detecting the Braille cells themselves, while the other is meant for identifying the actual characters. A dataset was constructed using both real world images and synthetically generated samples for each category. This strategy aimed to expose the model to a broad range of variations, including differences in illumination, embossing characteristics, and subtle visual artifacts, thereby improving its ability to generalize across diverse stylistic and environmental conditions.To provide a clearer understanding of the datasets used in this study, the characteristics of both the Braille detection and classification datasets are summarized. Table 3 presents the annotation tools and format used, validation strategies and other parameters for both detection and classification. Table 4 mentions the dataset partitioning strategy for both detection and classification.Table 3 Dataset description table.Full size tableTable 4 Dataset composition table.Full size tableBraille cell detection datasetThe dataset of Braille cell detection contained 460 images for training the YOLOv8 model. 230 images were acquired by curating the Natural Scene Braille Character Recognition Dataset [https://doi.org/10.57760/sciencedb.j00188.00007]20, which is a set of real Braille documents scanned with changing illumination conditions, shadow variations, and page layouts. These were manually labeled on Roboflow by individually drawing bounding boxes around each Braille cell. The remaining 230 images were created synthetically using a Python script. The script tried to emulate how real Braille samples look by positioning Braille cells on random backgrounds while generating the bounding boxes for them. Several visual properties were varied in generation: dot color variations, background colour chosen for good contrast, variation in radius and size of dots, distance between cells, alignment, and even contrast or shadow patterns. One point to note is that the synthetic portion of the dataset helped in reducing class imbalance and increasing model stability, especially when real images were plagued by a lack of uniform lighting or clean backgrounds. All images, real and synthetic, were exported in YOLOv8 format-a text file per image that includes class label and normalized bounding box coordinates. Combining these two sources, this dataset allowed YOLOv8 to detect Braille cells with much greater consistency across styles of image, from natural photography all the way through to fully generated samples.Braille character classification datasetFor the character-classification stage, the dataset consisted of a total of 6,240 images, with approximately 240 samples of each of the 26 English alphabet letters from A to Z. Originally, the dataset was created only with synthetic samples. However, models trained on such a set tended to overfit heavily and did not generalize well, mainly because the synthetic images do not represent the natural variations present in real Braille documents. In order to solve this, a hybrid dataset was produced, by combining three sources: first, manually cropped Braille cells extracted from realistic images, from curating the Natural Scene Braille Character Recognition Dataset and second, synthetic samples generated for every letter. Thirdly, synthetic samples from a Kaggle database where the samples had a good number of variations. This combination achieved both the natural distortions of real documents and controlled variations that only a synthetic generation can provide. Before training, a few basic pre-processing and augmentation steps were done, namely resizing everything at 224 × 224 pixels to fit the CNN input size, applying Gaussian blur, and rotating the images by up to ± 10 degrees. This combined dataset was then used for all later classification experiments. The classification dataset consists of approximately 240 images per character, resulting in a total of 6,240 images for training and validation across 26 Braille characters. The data were partitioned using an 80:20 split, yielding 4,992 images for training and 1,248 images for validation.To evaluate the generalization capability of the proposed model, an unseen test set comprising both real-world and synthetic Braille images was employed. The test set was entirely independent of the training and validation datasets, ensuring no overlap in samples, acquisition conditions, or augmented instances. A total of 728 unseen images were used for evaluation, including 364 real-world and 364 synthetic samples, with two samples per Braille character for each testing condition.The evaluation was conducted across multiple image variations to simulate practical acquisition scenarios, including original, rotated, blurred, noisy, color-varied, distorted, and darkened images. This testing strategy enabled the assessment of model robustness under diverse real-world conditions and image degradations. Consistent performance across both real-world and synthetic samples, as well as across various perturbations, demonstrates the strong generalization ability and robustness of the proposed approach beyond controlled data distributions. Data partitioning was performed prior to model training to maintain strict separation between training, validation, and testing phases.The dataset was constructed using a combination of real-world Braille images and synthetically generated samples in balanced ratio (240 per character), ensuring strong real-world relevance while maintaining controlled variability. Real-world images naturally contained variations such as embossment reflections, uneven illumination, surface texture noise, and background inconsistencies, and were further augmented using blurring, rotation, scaling, and background color transformations. Synthetic samples were generated to mimic real acquisition conditions through controlled shadow and lighting variations, Gaussian noise injection, visibility reduction (darkening), rotation, and blur. This hybrid data construction strategy ensures realistic variability while preserving strong real-world representation and generalization capability. The mentioned augmentations are displayed as samples in the Fig. 2a and b.Fig. 2Full size image(a) Real time Braille image variations. (b) Synthetic Braille image variations.Braille cell detection using YOLOv8To detect individual Braille cells from images, the YOLOv8-Nano (YOLOv8n) model, the smallest and fastest variant in the YOLOv8 family, released by Ultralytics was used. This model architecture is custom-designed by Ultralytics, without reliance on CSPDarknet or PANet used in previous YOLO versions. YOLOv8 introduces a fully convolutional, decoupled-head architecture optimized for speed and precision on small object detection tasks such as Braille cells.The model was initialized using pretrained weights, (which had been pre-trained by default on the COCO dataset) and fine-tuned on the combined dataset of 460 annotated images (230 real + 230 synthetic). The YOLOv8 model generates bounding boxes for each detected Braille cell, defined by its top-left and bottom-right coordinates, from which the center (cx, cy) is computed. To preserve the Braille natural reading sequence, a post-processing algorithm is used to arrange the detected cells line-wise, considering vertical proximity within a threshold of 50 pixels. Each line is first ordered from left to right by comparing the x-coordinate of the center of its bounding boxes. This line-grouping step preserves the natural spatial order of the content, which in turn supports coherent character-level translation in later stages. Subsequently, all detected Braille cells, following this line order, are cropped, resized to \(\:224\times\:224\)pixels, and normalized using standard ImageNet preprocessing procedures. These processed images are then passed in sequence to the classification model.Braille character classification using deep CNNs with triplet learningCNN architectures usedTo classify the 26 alphabetic characters, seven convolutional neural network (CNN) models were evaluated:VGG16ResNet50LeNetAlexNetVGG19DenseNet121GoogleNetEach model was trained using transfer learning, with ImageNet-pretrained weights. The final classifier layers were reinitialized and fine-tuned for the Braille task. Among these, VGG16 achieved the most consistent accuracy (~ 96%), making it the base model for the hybrid architecture.HybridVGG16 architecture detailsHybridVGG16 consists of 13 convolutional layers and 3 fully connected layers, structured as follows:Input: (3, 224, 224)Conv3-64 → Conv3-64 → MaxPool (Output: 64 × 112 × 112).Conv3-128 → Conv3-128 → MaxPool (Output: 128 × 56 × 56).Conv3-256 × 3 → MaxPool (Output: 256 × 28 × 28).Conv3-512 × 3 → MaxPool (Output: 512 × 14 × 14).Conv3-512 × 3 → MaxPool (Output: 512 × 7 × 7).Flatten → FC-4096 → FC-4096 → FC-1000 (original ImageNet head).In the proposed implementation:Triplet learning methodologyTo improve character-level separability and mitigate misclassification among visually similar Braille letters, Triplet Loss, a form of contrastive learning, was incorporated. This method aims to learn an embedding space where instances of the same class are drawn closer together, and those of different classes are pushed apart by a predefined margin.Each triplet sample (A, P, N) is composed of:Anchor (A): A reference image from a particular class.Positive (P): Another image from the same class as the anchor.Negative (N): An image from a different class.The Triplet Loss function is defined as:$$\:{L}_{triplet}=max\left({\Vert\:f\left(A\right)-f\left(P\right)\Vert\:}^{2}-{\Vert\:f\left(A\right)-f\left(N\right)\Vert\:}^{2}+\alpha\:,0\right)$$(1)where.\(\:f\left(x\right)\)is the embedding function that maps input image \(\:x\) to a fixed-dimensional feature vector.||.||2 denotes the Euclidean (L2) norm.α is a margin constant (set to α = 0.2) that ensures sufficient separation between classes.This formulation encourages the model to:Implementation strategyThe HybridVGG16 architecture was modified to support embedding learning. The output of the final flatten layer (of dimension 25088, obtained from the 512 feature maps of size 7 × 7) is passed through the following structure:A dense (fully connected) embedding head:$${\text{FC(25088)}} \to {\text{ReLU}} \to {\text{FC(512)}}$$Followed by L2 normalization (optional, depending on training stability).These 512-dimensional embeddings are used to compute the triplet loss.Simultaneously, the same embeddings are forwarded to a classifier head:$${\text{FC(512)}} \to {\text{ReLU}} \to {\text{Dropout}} \to {\text{FC(26)}} \to {\text{Softmax}}$$This design allows the network to learn both discriminative embeddings and make direct class predictions.Combined loss trainingTo jointly optimize classification accuracy and embedding quality, a dual-loss strategy was used, combining:Triplet Loss (\(\:Ltriplet\)) – for shaping the embedding space.Cross-Entropy Loss (\(\:{L}_{CE}\)) – for accurate class label prediction.The total loss function is expressed as:$$\:{L}_{total}={\lambda\:}_{1}\cdot\:{L}_{texttriplet}+{\lambda\:}_{2}\cdot\:{L}_{CE}$$(2)where.λ1 = 1.0, λ2 = 1.0 (equal weighting of both objectives).To improve experimental reproducibility, the complete implementation details of the proposed framework are presented in Table 5. The table specifies the optimization settings, training hyperparameters, computational environment, and hardware specifications used throughout the experiments.The feature space (composite loss function) will not only represent and allow for the capture of meaningful structural relationships but also will enhance overall classification performance through its training. The success of this training method is illustrated by t-SNE visualizations that reveal that feature clustering becomes increasingly apparent and simpler to distinguish after training has been completed than was the case prior to training, thereby producing feature clusters which exhibit better defined boundaries. For example, the Braille representation of T has become increasingly detached from other characters, as seen in Braille clusters after the completion of the hybridVGG16-based networks classification of cropped Braille cells. To facilitate the identification of the detected characters, a label-mapping system has been established which establishes a mapping from the predicted class index of each Braille cell to the letter it represents in the English alphabet (see Sect. 3.4), thereby allowing for the detection of any detected character to be preserved in the same horizontal order as was established during the detection stage. To enhance text coherence, the spacing between adjacent Braille cells will be analyzed in order to identify where there are gaps between words. This is achieved by calculating the average width of Braille cells within the same line of text and adding a space whenever the amount of horizontal gap between adjacent Braille cells exceeds a predetermined threshold. By doing so, the present heuristic effectively reconstructs both the sequence of characters and the separation of words in space and, therefore, provides an accurate and readable text output. Finally, all such processed lines are concatenated in order to produce the complete transcription of the Braille content. The resulting text is the final readable output and can be further used in downstream applications like text-to-speech conversion, further extending the system’s usefulness as a comprehensive assistive technology for the visually impaired user.Table 5 Experimental configuration and hyperparameter settings.Full size tableText-to-audio conversion for assistive outputAfter the final sequence of predicted Braille characters has been generated, it is routed to a text-to-speech engine so that users who are visually impaired can listen to the text as well as see it. The text-to-speech engine can read aloud the text that has been identified and has the ability to change several fundamental factors related to the quality of the output, such as speed and volume. Once the classifier has completed the process of generating the output text, the text is sent directly to the text-to-speech engine with no delay. The resulting audio output is then played back over the speaker system, so the entire process occurs in real time. By providing users with both written text and spoken audio output, this step makes the entire algorithm function not only as a recognition system but also as an aid for users of the Braille language.Experimental resultsBraille cell detection with YOLOv8Classical approaches to Braille cell detection in computer vision utilize grayscale thresholding, blob detection, and morphological operations. However, these methods worked only in ideal, controlled illumination conditions and failed to generalize in real-world conditions featuring document curvature, uneven embossing, pronounced shadows, and background textures. As such, practical deployments led to missed detections, merged cells, or an increase in false positives. The limitations outlined above were overcome by training the YOLOv8-Nano model on a balanced dataset of 230 genuine Braille images curated from the Natural Scene Braille Character Recognition Dataset and 230 synthetically generated images. In order to increase its robustness to varying situations, Data Augmentation was used, varying dot color, background, size, spacing, and shadow effects. Indeed, this augmented dataset has allowed YOLOv8 to effectively generalize on various inputs and exclusively detect cells. Lastly, in order to maintain the natural sequencing within Braille text for the purposes of accurate reconstruction, post-processing steps were necessary to organize detected cells in reading order. More specifically, the detected cells were, first of all, clustered in rows on the basis of their vertical proximity and then sorted row-wise from left to right in accordance with their x-coordinate. Figure 3 shows the cell detection by the YOLO-v8 model.Fig. 3Full size imageCell Detection by the YOLO-v8 model.Braille character classification: experiments & challengesFor the classification process, the detected Braille cells were cropped and resized to 224 × 224 pixels before being input into the CNN classifiers. Initially, the training phase utilized only synthetic images characterized by ideal dot shapes, uniform spacing, and clean backgrounds. Although this approach achieved high validation accuracy, performance declined markedly on real Braille images, indicating overfitting to the synthetic dataset. To address this issue, a refined dataset was created by integrating synthetic images with manually cropped and labelled real Braille cell images. This hybrid dataset more faithfully captured real-world imperfections, including embossing wear, dot distortion, and lighting variations. Training on the enriched dataset resulted in substantial gains in both generalization and test accuracy. Seven CNN architectures namely VGG16, VGG19, AlexNet, LeNet, ResNet50, DenseNet121, and GoogleNet are used for testing and the accuracy obtained are listed in Table 6. Simpler, earlier architectures like VGG16 and AlexNet demonstrated superior performance, achieving approximately 96% and 92% accuracy, respectively. Conversely, deeper models such as ResNet50, and GoogleNet performed notably worse, often achieving accuracies below 50%. This underperformance can be attributed to their design, which is optimized for recognizing complex textures and object boundaries in natural images, rather than the sparse and low-texture patterns characteristic of Braille.Table 6 Accuracy of different models.Full size tableFeature fusion & overfitting challengeTo improve Braille character recognition, a feature-level stacking approach was initially investigated based on the hypothesis that different convolutional neural network (CNN) architectures capture complementary visual characteristics of Braille patterns. As illustrated in Fig. 4, multiple pretrained CNN models, including VGG16, AlexNet, GoogleNet, and LeNet, were employed as parallel feature extractors. The feature embeddings generated by each network were concatenated to form a unified representation, which was subsequently used to train a Logistic Regression meta-classifier.The underlying motivation of this approach was that combining diverse feature representations could produce a richer and more discriminative feature space than that obtained from any individual model. During validation, the feature fusion framework achieved promising classification performance, reporting accuracy values exceeding 95%. These initial results suggested that the stacked feature representation was capable of learning meaningful characteristics of Braille characters.However, further evaluation on completely unseen real-world Braille samples revealed limitations in the generalization capability of the model. Although the overall accuracy remained high on validation data, inconsistent predictions were observed when classifying visually similar Braille characters. In several cases, characters with closely related dot configurations were confused, indicating that the learned feature space lacked sufficient discriminative structure. Examples included misclassification between characters such as ‘T’ and ‘F’, as well as confusion among other Braille symbols exhibiting subtle positional differences.To investigate this behavior, the learned feature representations were analyzed using t-SNE visualization. As shown in Fig. 5, significant overlap was observed among multiple character clusters, indicating inadequate separation between certain classes in the embedding space. These findings suggest that simply increasing the number of extracted features through feature fusion does not necessarily improve class discrimination. Instead, the primary challenge lies in learning a feature space that explicitly promotes intra-class compactness and inter-class separability. This observation motivated the adoption of Triplet Loss–based metric learning, which directly optimizes the embedding space to produce more structured and discriminative representations for Braille character recognition.Fig. 4Full size imageArchitecture of feature fusion.Fig. 5Full size imaget-SNE plot before triplet loss.The confusion matrix in Fig. 6 further validated the previous discussion regarding recurring errors by providing graphical information regarding the classification errors occurring between specific letter pairs that would repeatedly confuse the algorithm.Fig. 6Full size imageVGG16 confusion matrix.Hybrid VGG16 with triplet lossTo meet this challenge, an innovative architecture was proposed, Hybrid VGG16. The architecture as shown in Fig. 7 is a VGG style convolutional neural network (CNN) with the insertion of a Triplet Loss Layer alongside the traditional Cross-Entropy Layer. This hybrid approach changed the way classification is conducted and enabled the development of a discriminative embedding space for images, grouping similar class labels close together and separating them by a defined distance/threshold distance of α (0.2), resulting in better identification of subtle variations among visually similar Braille letters.Although the proposed system leverages established components such as YOLO-based detection and pretrained CNN backbones, the novelty lies in the integration of Triplet Loss–based embedding learning within the Braille recognition pipeline, enabling the model to learn highly discriminative feature representations characterized by strong inter-class separability and intra-class compactness. Unlike conventional classification approaches that rely solely on softmax-based supervision, the proposed method explicitly optimizes the embedding space, resulting in improved discrimination among visually similar Braille characters. The effectiveness of the learned embeddings is further validated through t-SNE visualization, where distinct and well-separated character clusters are observed, demonstrating meaningful feature learning and robust class discrimination. In addition, the framework is designed using pretrained architectures and a lightweight classification pipeline, reducing training complexity while maintaining strong recognition performance. The resulting system provides an efficient and practical solution for assistive Braille recognition applications, supporting accurate character interpretation under variations in illumination, embossment quality, surface reflections, and image acquisition conditions. Figure 7t-SNE visualization of Triplet Loss embeddings demonstrating clear inter-class separation and intra-class compactness among Braille character classes.Fig. 7Full size imaget-SNE plot after triplet loss.The triplet selection strategy has now been explicitly clarified in the manuscript. Semi-hard triplet mining was adopted during training, where negative samples were selected such that they were closer to the anchor than the defined margin constraint but still farther than the corresponding positive samples. This strategy was chosen to avoid trivial (easy) triplets that provide limited learning signals, prevent unstable convergence associated with hard triplet mining, and reduce the risk of embedding collapse. It also ensures smooth optimization behavior, stable training dynamics, and effective discriminative feature learning. Furthermore, semi-hard mining is well-suited for pretrained backbone architectures and limited dataset settings, enabling the formation of a well-structured and separable embedding space while maintaining generalization capability (Fig. 8).Fig. 8Full size imageHybrid VGG16 with triplet loss.The proposed Hybrid VGG16–Triplet Loss framework was trained and tested using a dataset consisting of 6,240 Braille character images, which were partitioned into training and testing sets using an 80:20 ratio. The extracted embeddings generated by the Triplet Loss network were classified using a Logistic Regression classifier. Experimental results demonstrated an overall classification accuracy of 96.16%, indicating the effectiveness of the learned feature representations. The obtained precision, recall, and F1-score values as shown in Table 7 were consistently high across most Braille character classes, reflecting strong discriminative capability and balanced classification performance. In addition to the overall accuracy, a detailed class-wise classification report was generated for all 26 Braille characters, presenting precision, recall, F1-score, and support values for each class individually. The corresponding macro-average and weighted-average metrics further confirmed that the model maintained consistent performance across the complete character set without significant class-specific bias. Furthermore, the computed 95% confidence interval confirmed the statistical reliability of the reported results. The class-wise classification report showed that the majority of Braille characters achieved precision, recall, and F1-score values close to unity, demonstrating the ability of the proposed framework to accurately distinguish visually similar Braille patterns. These results indicate that the Triplet Loss learning strategy successfully improved feature separability by minimizing intra-class variations while maximizing inter-class discrimination, thereby enabling robust character recognition performance (Figs. 9, 10, 11).Table 7 Per class metrics.Full size tableFig. 9Full size imageConfusion matrix.Fig. 10Full size imageLoss curve.Fig. 11Full size imageROC AUC curve.Table 8 AUC scores character-wise.Full size tableTo assess the statistical reliability of the proposed classifier, 95% confidence intervals were computed for each Braille character class. The mentioned intervals in Tables 8, 9; Fig. 12 demonstrate consistent classification performance across most character classes while identifying those with comparatively higher prediction uncertainty.Table 9 Class-wise confidence interval.Full size tableFig. 12Full size imageClass-wise confidence interval plot.Statistical significance analysisTo further validate the effectiveness of the proposed framework beyond conventional performance metrics, statistical significance analysis was conducted using the paired t-test and McNemar test. The statistical comparison was performed between a baseline VGG16 classifier trained using the conventional Cross-Entropy Loss and the proposed HybridVGG16 framework incorporating Triplet Loss-based embedding learning. The paired t-test was employed to determine whether the improvement in classification accuracy achieved by the proposed model over the baseline model was statistically significant, while the McNemar test was used to compare the prediction outcomes of the two models by analyzing their classification disagreements on the same test samples. The corresponding statistical results are presented in Tables 10 and 11.Table 10 Paired t-test.Full size tableTable 11 McNemar test.Full size tableThe statistical validation demonstrates that the proposed HybridVGG16 framework significantly outperforms the baseline VGG16 classifier. The paired t-test confirms that the observed improvement in classification accuracy is statistically significant (p