Submitted:
10 November 2026
Posted:
11 November 2026
You are already at the latest version
Abstract
Convolutional neural networks are now applied widely to intraoral photographs, and most reports summarise performance as a single accuracy figure. That convention conceals where a model actually fails. We trained an EfficientNet-B0 classifier on 12,320 intraoral photographs covering six conditions (calculus, caries, gingivitis, hypodontia, mouth ulcer, and tooth discoloration) drawn from a public dataset that had not been deduplicated, splitting the images 80/15/5 into training, validation, and test sets. On the 616-image test set the model reached 92.37% accuracy (569/616) with a macro-F1 score of 0.910. Per-class precision, however, ranged from 0.631 for calculus to 1.000 for mouth ulcer and caries, and 40 of the 47 errors (85.1%) were mutual confusions between calculus and gingivitis. These are the two conditions that clinicians separate by probing the gingival margin rather than by inspection, and the model, which saw only photographs, reproduced that same difficulty. For dental artificial intelligence this matters practically: a model that scores above 92% overall may still be unreliable on the class a screening programme most needs to catch. We argue that per-class precision, recall, F1-scores, and confusion matrices belong in the main results of every dental AI paper, not in supplementary material.

Keywords:
artificial intelligence
; dental caries
; EfficientNet
; gingivitis
; image classification
; periodontal diseases
Highlights
- EfficientNet-B0 reached 92.37% test accuracy and a macro-F1 of 0.910 across six intraoral conditions.
- Precision varied nearly fourfold across classes, from 0.631 for calculus to 1.000 for mouth ulcer and caries.
- Just 47 images were misclassified, and 40 of them (85.1%) were calculus–gingivitis confusions — the pair clinicians separate with a periodontal probe.
- Single-number reporting lets a model look safe while failing on the class that matters most.
1. Introduction
Oral diseases affect an estimated 3.5 billion people, and three-quarters of those affected live in low- and middle-income countries [1]. Periodontal disease accounts for roughly one billion of these cases [1]. Gingivitis deserves particular attention because it is reversible with early care but can progress to periodontitis if it is left alone [1,2]. The economic case for catching it early is strong: modelling for six European economies put the ten-year cost of managing gingivitis in the Netherlands at €10.9 billion, against €18.7 billion under business as usual [3]. The diagnostic case is equally clear, since the condition is treatable long before attachment loss begins [2]. Access, however, remains the binding constraint. India has a national dentist-to-population ratio of about 1:10,271, and provision is heavily concentrated in cities, leaving rural districts with far fewer practitioners per head [4,5].
Image-based screening is an obvious candidate for narrowing that gap, and convolutional neural networks (CNNs) have been applied to caries detection on radiographs [7,8], to segmentation of calculus, caries, and gingivitis in intraoral photographs [9], and to six-condition classification of the kind we attempt here [10]. EfficientNet, which scales depth, width, and resolution together, has become a standard backbone for this work because it returns competitive accuracy at modest computational cost [6]. Reviews of the field are nonetheless consistent on two points: replicability is uneven, and external validation is rare [14]. Reporting practice contributes to both problems, because studies frequently present a single aggregate accuracy without showing how performance is distributed across the conditions being classified [15].
That omission is not cosmetic. Several oral conditions look alike in a photograph. Calculus is a mineralised biofilm deposited on the tooth surface; gingivitis is inflammation of the soft tissue margin [2]. Both involve the gingival margin, both may show yellowish deposits, redness, and loss of normal tissue contour, and in routine practice they are separated only by probing for bleeding and pocket depth and by feeling for subgingival deposits with a curette [2]. A model that receives a two-dimensional photograph has no access to any of this. If such a model performs poorly, the failure is likely to be concentrated precisely where the clinical distinction depends on information the photograph does not contain.
We therefore set out not to maximise the headline score but to examine what sits underneath it. We trained EfficientNet-B0 on 12,320 intraoral photographs spanning six conditions and evaluated it once on a held-out test set of 616 images. We predicted that precision would be high for visually distinctive conditions, such as mouth ulcer and caries, and low for the overlapping pair, calculus and gingivitis. We report overall and per-class performance, and we treat the class-level errors as the substantive result rather than as a footnote. The study is a secondary analysis of public data and is not offered as evidence of clinical readiness.
2. Materials and Methods
2.1. Data Source and Study Design
This is a retrospective secondary analysis of a public image collection. No patients were recruited and no images were captured for this work. The images come from the Kaggle “Oral Diseases Dataset” (miraosama/oral-diseases-dataset) [11], which labels intraoral photographs into six classes: calculus, caries, gingivitis, hypodontia, mouth ulcer, and tooth discoloration. Files that were corrupted or could not be opened with Pillow were discarded, leaving 12,320 images (Table 2). The dataset carries no clinical metadata — no probing depths, no radiographs, no patient history — and we did not commission an independent clinical re-labelling. Both constraints are revisited in Section 5, because they bound what the results can mean.
2.2. Splitting
The 12,320 images were divided into training, validation, and test partitions by stratified sampling, so that class proportions were preserved in each, with the random seed fixed at 42. Splitting used scikit-learn [20] in two stages: 80% was assigned to training and 20% held aside, and the held-aside portion was then split 75/25 into validation (15% of the total) and test (5%). The result was 9,856 training, 1,848 validation, and 616 test images. The test partition was untouched during model selection and evaluation used the best validation checkpoint, so the reported figures are single-shot rather than the best of several passes. Class distributions appear in Table 2.
Two properties of this split deserve to be stated plainly. First, splitting operated on individual image files, and no duplicate detection of any kind was applied, because the dataset provides no patient identifiers with which to group images. Second, near-duplication is known to be a problem with this collection: a 2026 study that applied MD5 duplicate removal followed by perceptual-hash grouping to the same dataset was left with 3,507 unique images [10]. Photographs that are near-identical may therefore sit on both sides of our partition boundary. We did not discover this until after training, we have not corrected for it, and in our view the accuracy we report should be read as an upper bound obtained under that condition. Section 4 sets our result beside that study's, and Section 5 treats the point as a limitation in its own right.
2.3. Pre-Processing and Augmentation
Images were read as RGB. During training they were resized to 256 × 256 pixels, randomly resized-cropped to 224 × 224 with a scale range of 0.8–1.0, horizontally flipped, rotated within ±15°, and colour-jittered in brightness, contrast, and saturation by 0.2 [18]. Validation and test images were resized to 224 × 224 without augmentation. All images were normalised using the ImageNet statistics (mean 0.485, 0.456, 0.406; standard deviation 0.229, 0.224, 0.225). DataLoaders used a batch size of 32 and two workers, with shuffling enabled for training only.
2.4. Model and Training
We used EfficientNet-B0 [6] with ImageNet-pretrained weights (IMAGENET1K_V1) from torchvision, implemented in PyTorch [12]. The classifier head was replaced with a linear layer mapping the 1,280-dimensional feature vector to six outputs, and every layer was fine-tuned. Training ran on a Google Colab instance with an NVIDIA T4 GPU and took 21.1 minutes.
Optimisation used AdamW [13] with a learning rate of 1 × 10−3 and weight decay of 1 × 10−4, and the loss was class-weighted cross-entropy, chosen because the classes are unevenly represented. Weights computed from the training labels were 1.584 for calculus, 0.789 for caries, 0.874 for gingivitis, 1.641 for hypodontia, 0.732 for mouth ulcer, and 1.018 for tooth discoloration. A cosine-annealing scheduler ran with Tmax = 15. Training was capped at 15 epochs with early stopping at patience 4, judged on validation accuracy. Validation accuracy peaked at 93.56% at epoch 13 and drifted down to 93.45% and 93.24% at epochs 14 and 15, so the epoch-13 weights were retained and used for every test evaluation reported below.
2.5. Evaluation
Predictions were assigned by argmax over the six logits. On the 616-image test set we computed accuracy, per-class precision, recall, and F1-score, together with macro averages (each class weighted equally) and weighted averages (each class weighted by support). Precision is TP/(TP+FP), recall is TP/(TP+FN), and F1 is their harmonic mean. We also produced raw-count and row-normalised confusion matrices (Figure 1 and Figure 2) and recorded loss and accuracy per epoch during training (Figure 3). Reporting follows the TRIPOD+AI statement [15], and Section 5 identifies the items we were unable to satisfy.
2.6. Ethics
The study analyses only de-identified images from a public dataset [11] that was assembled and released by its originating source under its own ethical approvals and data-use terms. No participants were recruited, no identifiable information was accessed, and no patient contact occurred. Consistent with the Declaration of Helsinki and with international practice for research on published de-identified secondary data, this analysis required no separate ethics committee approval and no additional informed consent, and none was sought; the author is an independent researcher without an institutional review board to which such an application could be made. No potentially identifying image is reproduced in this preprint: the figures show aggregated counts only, and no photograph from the collection appears anywhere in the manuscript. Attribution for the dataset is given in the Data Availability statement.
2.7. Use of Artificial Intelligence Tools
In line with the Committee on Publication Ethics (COPE) position on AI tools, we disclose that DeepSeek (DeepSeek AI) was used during manuscript preparation for editorial purposes only: grammar and sentence-level suggestions, and structural comment on drafts. It was not used to design the study, collect or curate data, write code, train the model, analyse results, or interpret findings, and it is not an author. Every suggestion was reviewed and either accepted, modified, or rejected by the author, who takes full responsibility for the content of this preprint, including any error that AI-assisted editing may have introduced.
3. Results
3.1. Training Behaviour
Training ran the full 15 epochs. Validation accuracy reached 93.56% at epoch 13 and then declined slightly, to 93.45% and 93.24% at epochs 14 and 15, while training accuracy continued to climb towards 95% (Figure 3). The gap that opens after epoch 13 is the familiar signature of mild overfitting, and it is the reason the earlier checkpoint was kept. Every test figure below comes from those epoch-13 weights.
3.2. Overall Test Performance
Of 616 test images, 569 were classified correctly, giving an accuracy of 92.37%. Macro precision was 0.910, macro recall 0.916, and macro F1 0.910. Weighted precision was 0.931, weighted recall 0.924, and weighted F1 0.925 (Table 1). Forty-seven images were misclassified.
3.3. Per-Class Performance
Table 1 shows how unevenly those 47 errors were distributed. Mouth ulcer was classified perfectly, with precision, recall, and F1 all at 1.000 across 140 images, and caries came close, with precision of 1.000, recall of 0.985, and an F1 of 0.992 across 130 images. Tooth discoloration (0.990/1.000/0.995, n = 101) and hypodontia (0.967/0.952/0.959, n = 62) were also strong. The two weakest classes were calculus, with precision of 0.631, recall of 0.815, and an F1 of 0.711 on 65 images, and gingivitis, with precision of 0.871 but recall of only 0.746 on 118 images. Gingivitis therefore had the lowest recall of any class: roughly one true case in four went unrecognised.
3.4. Where the Errors Came from
The confusion matrices make the pattern unmistakable (Figure 1 and Figure 2). Errors were concentrated, not diffuse. Mouth ulcer produced no error of either kind. Caries produced two false negatives and no false positives, one predicted as gingivitis and one as tooth discoloration. Hypodontia produced three false negatives, all predicted as calculus, and two false positives, both true gingivitis images. Tooth discoloration produced no false negatives and a single false positive, which was a true caries image. Set against these, calculus produced 12 false negatives and 31 false positives, and gingivitis produced 30 false negatives and 13 false positives.
Almost all of that activity sits in one cell pair. Twelve true calculus images were predicted as gingivitis and 28 true gingivitis images were predicted as calculus, which together account for 40 of the 47 errors, or 85.1%. No calculus image was predicted as anything other than calculus or gingivitis, and no gingivitis image was predicted as caries, mouth ulcer, or tooth discoloration. Restated in clinical terms: the model was reliable on four of the six conditions and, when it went wrong on the remaining two, it almost always went wrong by trading one for the other.
4. Discussion
The results support the hypothesis we set out with. The two classes whose appearance is most distinctive, mouth ulcer and caries, were classified almost without error, while the two that share the gingival margin were not. Part of this is straightforward: an ulcer presents as a focal lesion with a fibrinous centre and an erythematous halo on movable mucosa, and nothing else in this six-class scheme looks like it, which is presumably why it generated no errors at all. Caries has its own signatures in enamel breakdown, colour change, and surface texture. Calculus and gingivitis have none of that separation. They occupy the same anatomical region, they can both appear as yellowish or discoloured deposits with red, swollen margins, and the features that distinguish them are not reliably visible in a photograph [2].
The more interesting observation is that the model's failures line up with a real clinical difficulty rather than a defect of training. A dentist looking only at a photograph would hesitate over the same cases. What resolves them is the periodontal probe: bleeding on probing, pocket depth, clinical attachment loss, and tactile detection of subgingival calculus [2]. Those measurements are precisely what an image-only classifier cannot obtain. We are therefore cautious about reading the 40 cross-class errors as mere model error. They mark the boundary of what photographic input can support, and any system that proposes to screen for gingivitis from images alone will meet the same boundary unless it is paired with clinical measurement.
The closest comparison in the literature is dos Santos et al., who worked from the same six-class dataset but curated it far more strictly, applying MD5 duplicate removal and perceptual-hash grouping before a 70/15/15 split, which left 3,507 unique images [10]. Their ResNet-50 reached 96.18% accuracy and a macro F1 of 90.78%, with caries recall of 64.29%. Our macro F1 of 0.910 is close to theirs, but the two figures do not rest on comparable ground: our image set is roughly 3.5 times larger and was not deduplicated. The comparison is informative in both directions. It shows that perceptual-hash curation strips a very large amount of near-duplicate material out of this dataset, which is a useful methodological finding for anyone who plans to use it. It also implies that some part of our accuracy may come from near-duplicates shared across partition boundaries rather than from generalisable recognition. We would rather state that than let the two numbers be read as agreement.
Placed against caries work more generally, our accuracy sits inside the range Prados-Privado et al. reported for neural-network caries diagnosis, where ICDAS-based studies reached 80.0–88.9%, and within the 82.0–89.0% diagnostic accuracy reported by Lee et al. for early caries detection on bitewing radiographs [7,8]. Direct comparison remains awkward, since those models performed binary detection on radiographs while ours performs six-way classification on photographs, but the overlap is reassuring as a sanity check rather than as validation.
What we would emphasise is the reporting consequence. A reader told only that a model is 92.37% accurate would reasonably assume it is broadly reliable. In fact it made 84 calculus predictions of which 31 were wrong, and it missed roughly a quarter of true gingivitis cases. Neither fact is visible in the summary figure, and both are decisive for any screening use. This is the gap that TRIPOD+AI and similar guidance aim to close [15], and it recurs across medical imaging, where aggregate performance has repeatedly proved compatible with uneven performance on clinically important subgroups [16,17]. For dental AI in low-resource settings, where screening is the likeliest application [4,5,15], the risk is concrete: a tool that systematically confuses gingivitis with calculus will either over-refer healthy patients or miss reversible disease. We would make per-class precision, recall, F1, and confusion matrices a condition of publication for this kind of work, not an optional appendix.
5. Limitations
The limitations here are substantial, and several of them bound the conclusions more tightly than the accuracy figure suggests.
- Probable near-duplicate leakage. No hash-based or perceptual deduplication preceded splitting, and deduplicating this same collection reduced it to 3,507 unique images in another study [10]. Near-identical photographs may therefore appear in both training and test partitions. This is the most serious limitation in the paper and the first thing we would correct in a revision.
- Single public dataset, labels not re-verified. All images came from one Kaggle collection [11], and no clinician independently re-labelled them for this study. Some labels are likely to be wrong, and label noise would inflate apparent confusion between visually similar classes in particular.
- No external validation. Test images share a source with training images. Nothing here establishes behaviour on images from another clinic, camera, or population.
- Image-level rather than patient-level split. Grouping by patient was impossible without identifiers. Where multiple images of one lesion appear in different partitions, performance will be optimistic.
- Representation and acquisition bias. The collection may under-represent darker gingival phenotypes, older patients, and the lighting and camera variation of real clinical settings. Without metadata we could not carry out subgroup analysis.
- Threshold and decision rule. We used argmax across six classes under a single threshold-free rule. Calibration, per-class threshold tuning, and uncertainty-based referral to a human reviewer were not evaluated.
- No explainability or calibration analysis. We did not examine which regions drove predictions, nor whether predicted probabilities were well calibrated. Both are prerequisites for any clinical consideration.
Taken together, these mean the model is not clinically usable and we do not present it as such. The contribution of the paper is the class-level picture and the reporting argument that follows from it, not a claim of diagnostic accuracy.
6. Future Work
Four steps would materially strengthen this work, and we have completed none of them. Deduplication comes first: perceptual hashing before splitting, with the deduplicated subset size reported alongside the original [10]. External validation comes second, on images from different clinics and cameras, with patient-level grouping and a pre-registered evaluation protocol [15]. Independent labelling by periodontists and general dentists comes third, with inter-rater agreement reported so that model error can be separated from label disagreement. Fourth, richer inputs deserve explicit ablation rather than assumption; adding radiographs, probing depths, and history may help, but we have not tested it and would not predict the direction of the effect. Beyond these, Grad-CAM [19] could establish whether attention falls on the gingival margin or on irrelevant image features, and calibration analysis would show whether uncertain predictions can be routed to human review. Class-specific thresholds and cost-sensitive evaluation, weighting a missed gingivitis more heavily than a false alarm, follow naturally once calibration is understood.
7. Conclusions
EfficientNet-B0 classified six intraoral conditions with 92.37% accuracy, but precision ranged from 0.631 to 1.000 across classes. Forty of the 47 errors, 85.1%, were confusions between calculus and gingivitis, which are the two conditions clinicians separate by probing rather than by looking. Aggregate accuracy concealed all of this. We take the practical lesson to be a reporting one: dental AI studies should present per-class precision, recall, F1-scores, and confusion matrices as primary results, so that a reader can see not only how often a model is right but where it is wrong, and whether those failures correspond to limits of the imaging modality itself.
Code Availability
Training and evaluation code is available at https://github.com/Kyoto0-0/dental-image-classifier [21]. It includes train.py, the class labels (classes.json), the evaluation metrics (metrics.json), and the confusion matrices and training curves reproduced as Figure 1, Figure 2 and Figure 3 here. The repository additionally provides a script that recomputes the confusion matrices from the reported counts and asserts that the resulting trace and row sums match the published metrics, so that the arithmetic in Table 1 can be checked independently.
Author Contributions
A.B.S. is the sole author and carried out all work: conceptualisation, data curation, formal analysis, investigation, methodology, software, validation, visualisation, and writing of the original draft and subsequent revisions, following the CRediT taxonomy.
Funding
This research received no external funding.
Data Availability Statement
The source images are public and obtainable from https://www.kaggle.com/datasets/miraosama/oral-diseases-dataset [11]; they are not redistributed here. After removal of corrupted files, 12,320 images remained across the six classes, with counts and test-set support given in Table 2 and the stratified split (seed 42) reproducible from the accompanying code [21]. No patient-level data were collected for this study and no image from the collection is reproduced in the manuscript.
| Class | Cleaned dataset (n) | Test set (n) | Test (%) |
|---|---|---|---|
| Calculus | 1,296 | 65 | 10.6 |
| Caries | 2,601 | 130 | 21.1 |
| Gingivitis | 2,349 | 118 | 19.2 |
| Hypodontia | 1,251 | 62 | 10.1 |
| Mouth ulcer | 2,806 | 140 | 22.7 |
| Tooth discoloration | 2,017 | 101 | 16.4 |
| Total | 12,320 | 616 | 100.0 |
Table 2. Class distribution of the cleaned dataset (12,320 images) and the corresponding test-set support (616 images). Partitions were stratified 80/15/5 into 9,856 training, 1,848 validation, and 616 test images with seed 42; per-class training and validation counts follow the same proportions and are reproducible from the accompanying code [21]. These counts describe the dataset as distributed, before any duplicate removal.
Acknowledgments
The author thanks the maintainers of the public dataset for making the images available, and acknowledges the use of DeepSeek (DeepSeek AI) for editorial assistance during preparation of this manuscript, as described in Section 2.7.
Conflicts of Interest
The author declares no conflicts of interest. The author is an independent researcher with no employment, consultancy, stock ownership, honoraria, grant funding, patent, or personal or professional relationship that could reasonably be seen to influence the conduct or reporting of this work.
References
- World Health Organization. Global oral health status report: towards the achievement of oral health and well-being for all [Internet]; WHO: Geneva, 2022; Available from: https://www.who.int/team/noncommunicable-diseases/global-status-report-on-oral-health-2022.
- Heitz-Mayfield, L.J.A. Conventional diagnostic criteria for periodontal diseases (plaque-induced gingivitis and periodontitis). Periodontol. 2000 2024, 95(1), 10–19. [Google Scholar] [CrossRef]
- Economist Intelligence Unit. Time to take gum disease seriously: the societal and economic impact of periodontitis [Internet]; EIU, commissioned by the European Federation of Periodontology: London, 2021; Available from: https://www.efp.org/fileadmin/uploads/efp/Documents/Other_publications/FINAL_article_EIU178_-_Gum_Disease_-_DV5.pdf.
- Vundavalli, S. Dental manpower planning in India: current scenario and future projections for the year 2020. Int. Dent. J. 2014, 64(2), 62–67. [Google Scholar] [CrossRef]
- Jaiswal, A.K.; Srinivas, P.; Suresh, S. Dental manpower in India: changing trends since 1920. Int. Dent. J. 2014, 64(4), 213–218. [Google Scholar] [CrossRef]
- Tan, M.; Le, Q. EfficientNet: rethinking model scaling for convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, 2019 Jun 9–15; PMLR 97, pp. 6105–6114. [Google Scholar]
- Lee, S.; Oh, S.I.; Jo, J.; Kang, S.; Shin, Y.; Park, J.W. Deep learning for early dental caries detection in bitewing radiographs. Sci. Rep. 2021, 11(1), 16807. [Google Scholar] [CrossRef]
- Prados-Privado, M.; García Villalón, J.; Martínez-Martínez, C.H.; Ivorra, C.; Prados-Frutos, J.C. Dental caries diagnosis and detection using neural networks: a systematic review. J. Clin. Med. 2020, 9(11), 3579. [Google Scholar] [CrossRef]
- Liu, Y.; Cheng, Y.; Song, Y.; Cai, D.; Zhang, N. Oral screening of dental calculus, gingivitis and dental caries through segmentation on intraoral photographic images using deep learning. BMC Oral Health 2024, 24(1), 1287. [Google Scholar] [CrossRef]
- dos Santos, R.M.; Gameiro, K.F.; Ferreira, V.M.S.; Brum, S.C.; Carlos, A.S.; Moreno, A.M.; de Mello, S.T.A. Development and evaluation of a deep learning model for dental image classification. Res. Soc. Dev. 2026, 15(7), e6615751427. [Google Scholar] [CrossRef]
- miraosama. Oral diseases dataset [dataset]. Kaggle. 2023. Available from: https://www.kaggle.com/datasets/miraosama/oral-diseases-dataset.
- Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; et al. PyTorch: an imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32 (NeurIPS 2019); 2019; pp. 8024–8035. [Google Scholar]
- Loshchilov, I.; Hutter, F. Decoupled weight decay regularization. International Conference on Learning Representations (ICLR), 2019. [Google Scholar]
- Schwendicke, F.; Samek, W.; Krois, J. Artificial intelligence in dentistry: chances and challenges. J. Dent. Res. 2020, 99(7), 769–774. [Google Scholar] [CrossRef]
- Collins, G.S.; Moons, K.G.M.; Dhiman, P.; Riley, R.D.; Beam, A.L.; Van Calster, B.; et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ 2024, 385, e078378. [Google Scholar] [CrossRef]
- Esteva, A.; Kuprel, B.; Novoa, R.A.; Ko, J.; Swetter, S.M.; Blau, H.; et al. Dermatologist-level classification of skin cancer with deep neural networks. Nature 2017, 542(7639), 115–118. [Google Scholar] [CrossRef]
- Gulshan, V.; Peng, Y.; Corcoran, K.; et al. Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs. JAMA 2016, 316(22), 2402–2410. [Google Scholar] [CrossRef]
- Shorten, C.; Khoshgoftaar, T.M. A survey on image data augmentation for deep learning. J. Big Data 2019, 6, 60. [Google Scholar] [CrossRef]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017; pp. 618–626. [Google Scholar] [CrossRef]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; et al. Scikit-learn: machine learning in Python. J. Mach. Learn Res. 2011, 12, 2825–2830. [Google Scholar]
- Kyoto0-0. Dental image classifier [software]. GitHub. 2026. Available from: https://github.com/Kyoto0-0/dental-image-classifier.
Figure 1.
Raw-count confusion matrix for the 616-image test set. Rows are true classes and columns are predicted classes. The model classified 569 images correctly (92.37%). Off-diagonal counts are concentrated in the calculus and gingivitis rows and columns (12 and 28).
Figure 1.
Raw-count confusion matrix for the 616-image test set. Rows are true classes and columns are predicted classes. The model classified 569 images correctly (92.37%). Off-diagonal counts are concentrated in the calculus and gingivitis rows and columns (12 and 28).

Figure 2.
Row-normalised confusion matrix, showing recall per class as a percentage of each true class. Most errors are calculus predicted as gingivitis (18.5%) and gingivitis predicted as calculus (23.7%).
Figure 2.
Row-normalised confusion matrix, showing recall per class as a percentage of each true class. Most errors are calculus predicted as gingivitis (18.5%) and gingivitis predicted as calculus (23.7%).

Figure 3.
Training and validation loss (left) and accuracy (right) over 15 epochs, indexed 0–14 on the x-axis, so that epoch 13 in the text corresponds to index 12. Validation accuracy peaked at 93.56% and then declined slightly. Epoch-13 weights were used for all test evaluations. Total training time was 21.1 minutes on an NVIDIA T4 GPU.
Figure 3.
Training and validation loss (left) and accuracy (right) over 15 epochs, indexed 0–14 on the x-axis, so that epoch 13 in the text corresponds to index 12. Validation accuracy peaked at 93.56% and then declined slightly. Epoch-13 weights were used for all test evaluations. Total training time was 21.1 minutes on an NVIDIA T4 GPU.

Table 1.
Test-set classification report for EfficientNet-B0 (n = 616). Precision = TP/(TP+FP); recall = TP/(TP+FN); F1-score = harmonic mean of the two. Support is the number of true images in each class. TP, FP, and FN are derived from the confusion matrices in Figure 1 and Figure 2. Macro averages weight each class equally; weighted averages weight each class by support.
Table 1.
Test-set classification report for EfficientNet-B0 (n = 616). Precision = TP/(TP+FP); recall = TP/(TP+FN); F1-score = harmonic mean of the two. Support is the number of true images in each class. TP, FP, and FN are derived from the confusion matrices in Figure 1 and Figure 2. Macro averages weight each class equally; weighted averages weight each class by support.
| Class | Precision | Recall | F1-score | Support | TP | FP | FN |
|---|---|---|---|---|---|---|---|
| Calculus | 0.631 | 0.815 | 0.711 | 65 | 53 | 31 | 12 |
| Caries | 1.000 | 0.985 | 0.992 | 130 | 128 | 0 | 2 |
| Gingivitis | 0.871 | 0.746 | 0.804 | 118 | 88 | 13 | 30 |
| Hypodontia | 0.967 | 0.952 | 0.959 | 62 | 59 | 2 | 3 |
| Mouth ulcer | 1.000 | 1.000 | 1.000 | 140 | 140 | 0 | 0 |
| Tooth discoloration | 0.990 | 1.000 | 0.995 | 101 | 101 | 1 | 0 |
| Macro average | 0.910 | 0.916 | 0.910 | 616 | — | — | — |
| Weighted average | 0.931 | 0.924 | 0.925 | 616 | — | — | — |
| Accuracy | — | — | 0.924 | 616 | 569 correct | — | 47 errors |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.