Figures
Abstract
Objectives
The aim of this study is to apply Machine learning (ML), a key subset of Artificial Intelligence (AI) in predicting second mesiobuccal (MB2) canals in both maxillary first molars (MFMs) and maxillary second molars (MSMs) using the cone-beam computed tomography (CBCT) imaging in an Iraqi sub-population.
Methods
In this retrospective study, 144 CBCT scans from 63 female and 81 male patients were retrieved from the archives of a radiology department at B&R Dental Center. The presence and absence of MB2 canal in both MFMs and MSMs in relation to age, sex, and side, area of triangle (A) between MB, DB and P canals, semiperimeter (SP), and the distances between the orifices of mesio-buccal (MB), disto-buccal (DB), and palatal (P) canals in both MFMs and MSMs in the axial plane were measured on CBCT scans. Descriptive and inferential statistics were employed for data analysis. The receiver operating characteristic (ROC) curve analysis was employed to assess the diagnostic accuracy of all data in predicting the existence of an MB2 canal in both molars. The optimal cut-off point was established based on sensitivity and specificity. The models’ classification measures, including area under the curve (AUC), accuracy, F1-score, and precision, were evaluated.
Results
Overall, the prevalence of the MB2 canal was 65.24% in maxillary first molars (MFMs) and 36.89% in maxillary second molars (MSMs). A significantly higher prevalence of the MB2 canal among females was observed only in MSMs (p < 0.001), whereas no significant sex difference was found in MFMs (p = 0.915). Logistic regression (LR) demonstrated the best performance among all machine learning (ML) models, achieving an AUC of 0.88 for MFMs and 0.90 for MSMs. Feature importance analysis using Random Forest (RF) and Decision Tree (DT) models identified the mesiobuccal-to-palatal (MB–P) distance as the most influential predictor of MB2 canal presence.
Conclusions
The present study showed promising results in the ML based predicting of MB2 canal in both MFMs and MSMs using axial CBCT slices based on MB-P distance parameter as the most influential predictor for the presence of the MB2 canal in both MFMs and MSMs using all ML models. These findings might allow clinicians to identify MB2 canals in maxillary molars for effective endodontic treatment.
Citation: Talabani RM (2026) Application of machine learning in predicting of MB2 canal in permanent maxillary first and second molars: A CBCT study. PLoS One 21(9): e0357808. https://doi.org/10.1371/journal.pone.0357808
Editor: Miriam Fatima Zaccaro Scelza, Universidade Federal Fluminense, BRAZIL
Received: July 8, 2026; Accepted: August 23, 2026; Published: September 9, 2026
Copyright: © 2026 Ranjdar Mahmood Talabani. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The data used to support the findings of this study are available within the manuscript itself.
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Abbreviations: 3D, Three-dimensional; A, Area; AI, Artificial Intelligence; AUC, Area under the curve; CBCT, Cone-beam computed tomography; cm, Centimetre; CT, Computed tomography; DB, Disto-buccal; DT, Decision tree; ECE, Expected calibration error; GDPR, General Data Protection Regulation; GNB, Gaussian Naive Bayes; IODs, Interorifice distances; KNN, K-Nearest Neighbors; LR, Logistic regression; MB, Mesio-buccal; MB-P, Mesiobuccal to palatal; MB2, Second mesiobuccal; MCE, Maximum calibration error; MFMs, Permanent maxillary first molars; MSMs, Permanent maxillary second molars; ML, Machine learning; mm, Millimetre; mm2, Millimetre square; P, Palatal; RF, Random forest; ROC, Receiver operating characteristic; SMOTE, Synthetic Minority Over-sampling Technique; SP, Semiperimeter; SVC, Support Vector Classifier; μm, Micrometre
1. Introduction
The primary goal of endodontic treatment is thorough cleaning of the entire root canal system both mechanically and chemically, followed by obturation with an inert filling material [1]. One potential source of persistent endodontic infection, particularly in maxillary first and second molars, is the failure to locate and treat the entire root canal system during the initial root canal procedure [2]. Second mesiobuccal (MB2) canals can be missed, and this is frequently seen in the mesiobuccal (MB) root of maxillary molars [3–5]
One of the main causes of endodontic retreatment is missed canals, with 93% occurring in maxillary first molars and 44% in maxillary second molars [4,6]. The presence of a second mesiobuccal canal (MB2) is a common anatomical variation, with reported incidence rates ranging from 33% to 96% according to various studies in maxillary first molars, whereas maxillary second molars range from 8.5 to 82.6% [7–13]. Various approaches have been employed to identify MB2 canals in maxillary molars in both in vitro and clinical studies. Micro-computed tomography (micro-CT) is considered the gold standard for evaluating root canal anatomy due to its extremely high spatial resolution and ability to provide detailed three-dimensional visualization of internal structures. However, its use is limited to in vitro settings because of high radiation doses, cost, limited field of view, and the need for extracted teeth [14]. In contrast, cone beam computed tomography (CBCT) has been widely used in clinical research and practice since the 1990s for the evaluation of root canal anatomy. CBCT offers several advantages, including a lower effective radiation dose, shorter exposure time, reduced cost compared to conventional CT, adequate spatial resolution for clinical applications, minimal distortion, and nondestructive three-dimensional visualization. Therefore, CBCT was selected in the present study as it provides a practical and reliable method for in vivo assessment of MB2 canals while maintaining clinical applicability [15–17].
Numerous studies have demonstrated the effectiveness of CBCT in detecting a MB2 canal in maxillary first molars (MFMs) and maxillary second molars (MSMs), with detection rates ranging from 69.2% to 96.6% [18,19].
Artificial Intelligence (AI) in endodontics has the potential to improve the diagnosis, treatment, and prevention of pulpal and periapical disease. Advancements in endodontic AI research for clinical applications include the detection and diagnosis of periapical lesions, fractures, resorptions, or root canal anatomy and clinical treatment outcome predictions [20–23].
Machine learning (ML), a key subset of AI, is increasingly being investigated as an adjunctive tool in maxillofacial and dental imaging. In particular, supervised ML approaches were employed, as the outcome of interest was predefined and labeled, which are designed to learn patterns from labeled datasets and generate predictions for new, unseen data, thereby supporting clinical decision-making. Their application has been increasingly reported in endodontics, where they have demonstrated the ability to enhance diagnostic accuracy and consistency compared with conventional assessment methods [24,25]. To ensure robustness and minimize the risk of overfitting, a nested cross-validation strategy was implemented, allowing for optimal model tuning and unbiased performance estimation. This approach strengthens the reliability and generalizability of the predictive models developed in the present study.
CBCT interpretation by clinicians is limited by low inter- and intra-observer agreement, as well as reduced sensitivity and specificity. As a result, AI-based CBCT applications have become increasingly important in minimizing observer bias [26].
This study aimed to determine the incidence of MB2 canals on MFMs and MSMs and to predict its occurrence based on various factors in the Iraqi subpopulation, utilizing CBCTs and a Supervised ML Subset.
2. Methods
2.1. Study design
The CBCT images utilized in this study were sourced from the archives of the B&R Dental Center in Sulaimani City in the Kurdistan Region of Iraq. The study was approved by the Ethical Committee at the College of Dentistry, University of Sulaimani (D-KA2207). As this was a retrospective study, the requirement for informed consent was waived by the committee. The research adhered to the principles of the Declaration of Helsinki. CBCT images were obtained from 1/7/2025–31/12/2025 for various purposes unrelated to this investigation, and all radiographs were anonymized prior to image analysis, and the data of the study were encrypted to ensure confidentiality and data security.
2.2. Sample size calculation
A priori power analysis was performed with G*Power (version 3.1.9.4) to ascertain the minimum necessary sample size. A medium effect size (Cohen’s *d* = 0.5) was presumed, with a significance threshold of α = 0.05 and a statistical power of 95%. The investigation, utilizing a two-tailed independent t-test, revealed that 210 teeth (105 per group) are necessary to identify a statistically significant difference between the two groups.
The study comprised 416 teeth (210 MFMs and 206 MSMs), surpassing the determined sample size criterion. The enlarged sample provided sufficient statistical power for subgroup analysis and enhanced the reliability of the findings.
2.3. Study sample
A total of 144 CBCT scans from 63 female and 81 male participants were examined. The participants’ ages varied from 18 to 79 years, with a mean age of 41.75 ± 15.13 years.
In total, 210 MFMs (91 from female subjects and 119 from male subjects) and 206 MSMs (110 from male subjects and 96 from female subjects) were evaluated. All samples met the following inclusion criteria: individuals were required to be above 18 years of age and had at least one completely erupted permanent maxillary first and second molar with a fully developed apex. This allowing for consistent and reliable assessment. Root development in younger patients may be incomplete, which can affect the accuracy of canal visualization. The exclusion criteria encompassed: teeth with fillings or prior root canal treatments, posts, or fixed prosthetic restorations; unclear or incomplete images resulting from scattering or beam-hardening artifacts; and pathological lesions, calcifications, or noticeable root resorption associated with the analyzed tooth.
2.4. Image acquisition
All CBCT images were obtained utilizing the Carestream 9600 system (Carestream Dental, Marne-la-Vallée, France). Imaging was acquired with a 10 × 5 cm field of view (FOV) and an isotropic voxel size of 75 µm (75 × 75 × 75 µm). The radiographic parameters were a tube voltage of 120 kV, a current of 8 mA, and an exposure duration of 20 seconds.
Image analysis was performed using CS Imaging 8 software (version 8.0.32; Carestream Dental), which has a reported measurement error margin of approximately 0.14 mm. Images were evaluated in the axial plane using the software’s built-in tools, with contrast and brightness adjusted as needed to optimize visualization.
2.5. Morphological analysis and geometric measurement
All eligible images were adjusted to ensure bilateral symmetry of the maxilla, with the occlusal plane, in both frontal and sagittal views, remaining parallel to the ground. The long axis of the examined molar was oriented perpendicular to the ground floor (Fig 1A). The long axis of the analyzed molar was positioned perpendicular to the ground plane. Two horizontal reference lines were then established: Line A, parallel to the inferior margin of the cementoenamel junction, and Line B, aligned with the level of the pulp chamber floor (Fig 1B). The inferior border of the pulpal floor was utilized as the sagittal reference to make the appropriate axial measurement in which all main canal orifices (mesiobuccal (MB), distobuccal (DB), and palatal (P) canals) were simultaneously visible, corresponding to the anatomical pulpal floor. The horizontal distance between the centers of detected orifices was measured at the orifice level [27].
The horizontal line represents the occlusal reference plane, while the vertical lines correspond to the mid-sagittal and sectional reference planes used for orientation during measurements. The bounding box indicates the defined field of view (region of interest). (B) illustrates the anatomical reference lines used for vertical standardization of measurements on the CBCT image. Line A (blue) represents a horizontal reference line drawn parallel to the cemento-enamel junction (CEJ), serving as the coronal anatomical baseline. Line B (red) is positioned apically, parallel to Line A, at the level corresponding to the pulpal floor region. It also demonstrates the reference points, pulpal floor (green arrow) that were used for analysis in this study.
For the interorifice distances (IODs), straight green lines were projected in both MFMs and MSMs in the presence and absence of MB2 canal, joining different points: mesiobuccal to distobuccal (MB-DB) canal, mesiobuccal to palatal (MB-P) canal, and distobuccal to palatal (DB-P) canal (Fig 2 and 3, B and D). The area of the triangle (Area) in millimeter square (mm2) of the surface bounded by the central points of each orifice of (MB, DB, and palatal) canals was calculated using Heron’s formula. SP is the semiperimeter of the triangle defined as half the sum of the distances between the MB, DB, and palatal canals, and explain its relevance as a geometric parameter used in triangle-based spatial analysis (e.g., Heron’s formula).
Note: green points indicate the center of each canal orifice, and the connecting lines represent the linear distances (in millimeters) between canals.
Note: green points indicate the center of each canal orifice, and the connecting lines represent the linear distances (in millimeters) between canals.
where a (distance from MB-DB canals), b (distance from MB-P canals), and c (distance from DB-P canals) are the lengths of the three sides of the triangle; and SP is the semiperimeter (SP) in millimeter (mm) of the triangle defined as SP= (a + b + c)/2).
2.6. Reliability test
To assess reliability, an endodontist, highly experienced, evaluated all measurements twice by the same examiner with a four-week interval between sessions, and the mean of the two readings was used for subsequent analysis. Intra-examiner reliability was evaluated using the intraclass correlation coefficient, where values <0.5 indicate poor reliability, 0.5–0.75 indicate moderate reliability, 0.75–0.9 indicate good reliability, and >0.9 indicate excellent reliability [28].
2.7. Statistical analysis
All statistical analyses were conducted utilizing the Statistical Package for the Social Sciences Version 25 (IBM Corp., Armonk, NY, USA). Descriptive statistics were computed, encompassing frequency, percentage, mean, standard deviation, median, and interquartile range. The Shapiro–Wilk test was utilized to evaluate the normality of the data. An Independent t-test was employed for parametric data, whilst the Mann–Whitney U test was utilized for non-parametric data.
The receiver operating characteristic (ROC) analysis was performed to ascertain sensitivity, specificity, and cutoff values for evaluating the discriminative efficacy of each parameter in predicting the MB2 canal.
2.8. Machine learning models
All ML analyses were implemented in Python (version 3.10; Python Software Foundation, Wilmington, DE, USA) and executed on an MSI GF65 laptop equipped with a 9th-generation Intel® Core™ i7 processor. Six supervised classification algorithms were evaluated: Gaussian Naive Bayes (GNB), Logistic Regression (LR), Decision Tree (DT), Random Forest (RF), Support Vector Classifier (SVC), and K-Nearest Neighbors (KNN).
The dataset split into 80% training data and 20% independent test data using stratified sampling to preserve class distribution. To address class imbalance, the Synthetic Minority Over-sampling Technique (SMOTE) was applied exclusively to the training set, ensuring that the test set remained completely unseen. The nested cross-validation framework was applied on the balanced training subset for training the models and hyperparameter tuning. The outer loop consisted of five stratified folds, in which each fold served once as a validation set while the remaining folds were used for training of the ML models. Performance metrics were averaged across all outer folds.
Following nested cross-validation, each model was retrained on the full balanced training set and evaluated on the held-out 20% test set to provide a final, unbiased assessment of predictive performance. For each classifier, the following evaluation metrics were computed: accuracy, precision, recall, F1-score, and specificity. In addition, confusion matrices, ROC curves were generated, and area under the curve (AUC) values were calculated. Model probability calibration was further assessed using Brier score, log loss, expected calibration error (ECE), maximum calibration error (MCE), and sharpness, with calibration curves plotted for each algorithm.
Finally, feature importance analysis was conducted for the RF and DT models, and the most influential features were visualized to enhance model interpretability.
The ML pipeline, including data splitting, SMOTE oversampling, nested cross-validation, and final model evaluation on an unseen test set, is illustrated in Fig 4.
3. Results
In this retrospective study, 144 radiographs from 63 female and 81 male subjects were analyzed. The participants’ ages ranged from 18 to 79 years, with a mean age of 41.75 ± 15.13 years. A total of 210 MFMs were assessed, comprising 91 teeth from female subjects and 119 from male subjects. Additionally, 206 MSMs were examined, including 110 teeth from male subjects and 96 from female subjects.
The reliability analysis indicated excellent intra-examiner consistency, with intraclass correlation coefficient (ICC) values for all evaluated variables ranging from 0.891 to 0.993.
The overall prevalence of the MB2 canal in the MFMs was 65.24%. The highest prevalence was observed in individuals younger than 30 years (73.1%), while the lowest was found in those aged 60 years and older (43.3%); however, this difference was not statistically significant (p = 0.07). No significant associations were found between MB2 prevalence and sex (p = 0.915) or tooth side (p = 0.645) in the MFMs.
Conversely, the prevalence of MB2 in the MSMs was significantly higher among females (51%) than males (24.5%), with a p-value < 0.001. No significant difference was found between the right and left sides in the second molars (p = 0.337). Table 1 summarizes the prevalence of MB2 in both MFMs and MSMs according to age groups, sex, and tooth side.
Based on the Shapiro–Wilk test, the variables MB-DB, MB-P, DB-P, and SP of the MFMs, as well as MB-DB, MB-P, and DB-P of the MSMs, followed a normal distribution. In contrast, Area of the MFMs, along with Area, and SP of the MSMs, demonstrated non-parametric distributions.
The independent t-test results for all parametric variables and the Mann–Whitney U test results for all non-parametric variables showed no statistically significant differences in the linear measurements of the MFMs and MSMs between the two sexes. Similarly, no significant differences were observed between the left and right sides for all variables, with the exception of MB-P in the MSMs. A comprehensive summary of the results for all studied variables with respect to sex and side, along with the corresponding statistical tests, is provided in Table 2.
All morphometric parameters exhibited statistically significant differences between the MFMs and MSMs with an MB2 canal and those without, except for the Area and DB-P in both molars, which did not show statistically significant differences. Table 3 presents all linear measurements of both molars, comparing teeth with and without an MB2 canal, along with the results of the independent t-test and Mann–Whitney U test.
The results of the ROC analysis demonstrated that the SP parameter exhibited the highest discriminative ability for detecting the presence or absence of the MB2 canal in MFMs with AUC of 0.665, while MB-P distance exhibit the highest discriminative ability with AUC values of 0.723 for MSMs. In contrast, the DB-P distance parameter showed the lowest discriminative power among all measured variables, with AUC values of 0.572 for the MFMs and 0.565 for the MSMs.
Table 4 summarizes the AUC values, optimal cut-off points, sensitivity, and specificity for all assessed parameters in both molars. The ROC curves for these parameters are illustrated in Fig 5.
For MFMs, after splitting the data the training subset consisted of 58 cases without MB2 canal and 110 cases with MB2 canal. After applying SMOTE, the dataset was balanced, resulting in 110 cases for both with and without MB2 canal. For MSMs, the training subset included 103 cases with an MB2 canal and 61 cases without. Following SMOTE, the sample was balanced to 103 cases for both groups.
The performance of the trained with nested cross-validation ML models evaluated on the testing subset of MFMs for the prediction of MB2 revealed that the LR model outperformed all other models with an accuracy of 0.762, precision of 0.785, recall of 0.762, F1-score of 0.766, and specificity of 0.8. In contrast, the GNB model demonstrated the poorest performance in predicting MB2, yielding an accuracy of 0.667, precision of 0.667, recall of 0.667, an F1-score of 0.667, and specificity of 0.533.
On the other hand, analysis of the testing subset using ML models trained with nested cross-validation on the morphometric parameters of MSMs demonstrated substantially higher predictive performance for MB2. Among these models, LR achieved the best results, with an accuracy of 0.833, precision of 0.837, recall of 0.833, F1-score of 0.834, and specificity of 0.852. The detailed performance metrics, including accuracy, precision, recall, F1-score, and specificity for all evaluated ML models, are presented in Table 5.
The AUC values of the ML models ranged from 0.66 to 0.88, with LR achieving the highest AUC for the prediction of MFMs. Similarly, LR demonstrated the best performance among all ML classifiers for MSMs parameters, yielding an AUC of 0.90. Analysis of the confusion matrix for the LR model revealed 3 false positives and 7 false negatives for MFMs, and 4 false positives and 3 false negatives for MSMs. As shown in Fig 6, the ROC curves and corresponding AUC values of all ML models are presented for both molar types, while Fig 7 illustrates the confusion matrices of all evaluated ML models.
In predicting MB2 in the MFMs, the LR model achieved the best overall probabilistic performance, with the lowest Brier score and log loss. The SVC and RF models showed moderate calibration and acceptable sharpness. In contrast, decision tree and GNB models demonstrated higher calibration errors and uncertainty, indicating inferior reliability.
Similarly, in predicting MB2 in the MSMs, the LR model demonstrated superior probabilistic performance, achieving the lowest Brier score, log loss, and calibration errors, reflecting highly reliable risk estimation. The SVC model also showed acceptable calibration and low sharpness. Conversely, DT and KNN exhibited substantial miscalibration and high uncertainty, limiting their clinical applicability. All results of calibration analysis are presented in Table 6, while Fig 8 shows the feature importance of DT and RF regarding prediction of MB2 canal in both MFMs and MSMs.
4. Discussion
The aim of the present study was to investigate the application of ML in predicting MB2 canals in both MFMs and MSMs using the CBCT.
Previous studies have reported that maxillary molars exhibit the highest incidence of missed canals during endodontic treatment, with a prevalence of approximately 55%. Additionally, in cases of endodontically treated teeth with untreated canals, apical periodontitis has been observed in up to 96.55% of cases [5,29].
CBCT imaging was used in this study to calculate the morphometric measurement of MB, DB, and P canals in the absence and presence of MB canals in both MFMs and MSMs. CBCT is a non-invasive, precision three-dimensional technique that increases the percentage of therapeutic success and showed superiority over conventional X-rays in detecting the presence of accessory channels [30]. It is as a more reliable method for the detection of the MB2 canal compared to the gold standard of physically sectioning the specimen [31].
A systematic review and meta-analysis by Sadr et al. analyzing pooled data from 12 studies reported sensitivity values for radiographic periapical lesion detection ranging from 0.65 to 0.96—comparable to the diagnostic accuracy of human clinicians using CBCT [32].
The MB2 canals in maxillary molars are often not visible on conventional radiographs, making them susceptible to being missed or improperly managed by clinicians. In such cases, CBCT can provide a more accurate diagnosis when an MB2 canal is suspected. The location and negotiation of the MB2 canal can be significantly aided by CBCT, offering detailed information regarding the direction and position of the root canal [33]. The incidence of MB2 canals in MFMs and MSMs varies from 8.0% to 96.1% [34–36]. In this study, the prevalence of MB2 was 65.24% in MFMs and 36.89% in MSMs, which is similar to findings from other studies [9,37,38].
It was found that presence of MB2 canals in both MFMs and MSMs is not significant in relation to age, sex and sides except in MSMs, where they are significantly present in females compared to males in the current study. Other studies have also found no differences between genders in the presence of MB2 canal [17,39,40].
These variations may be attributed to differences in sample size, methodology, and ethnic background. Additionally, discrepancies in results obtained from CBCT imaging could be due to variations in CBCT parameter settings and software used for analysis [34]. Detecting MB2 canals can be particularly challenging, as the orifice is often covered by a dentin cap [41]. Furthermore, some MB2 canals exhibit curvatures, with their coronal portions containing one or more abrupt bends. These anatomical complexities likely contribute to the higher detection rates of MB2 canals in in vitro studies compared to in vivo studies [42].
In the present study, it was found that with age progression, the prevalence of MB2 decreased. The incidence of MB2 in both MFMs and MSMs was more prevalent in individuals under 30 years old and the lowest percentage was found in those aged 60 years and older, which is consistent with the results of Magat & Hakbilen [43], Betancourt et al. [37] and Zheng et al. [44] and this may be related to an increase in the canal calcification, tertiary dentin formation and porosity of the cortical bone [45–47].
This study focuses on the occurrence and precise position of MB2 canals; the MB2 orifice consistently presents in a mesial and palatal direction relative to the MB1 orifice in both MFMs and MSMs.
We observed that in the MFMs, the distance of MB-DB, MB-P, DB-P canals in the absence of MB2 canal was (3.763 ± 0.972, 6.948 ± 1.314, and 5.877 ± 1.495) and (4.277 ± 0.832, 8.023 ± 1.154, and 6.173 ± 1.166) in the presence of MB2 canal. While in MSMs, the distance was (3.259 ± 0.806, 6.385 ± 1.22, and 5.562 ± 1.202) of MB-DB, MB-P, and DB-P canals in the absence of MB2 canal and (3.818 ± 0.77, 7.372 ± 1.188, 5.829 ± 1.187) in the presence of MB2 canal. The finding of this study is consistent with other studies [19,27,37].
In the present study, Angular parameters (MB angle, DB angle, Palatal angle) are not measured as it is highly influenced by CBCT slice orientation, crown rotation, individual anatomical variation, angles vary widely even among teeth with confirmed MB2 and generally not significant predictors in multivariate regression analyses [48,49].
AI refers to the simulation of human intelligence processes by computer systems, enabling machines to perform tasks that typically require human cognition, such as learning, reasoning, and decision-making [50]. A wide array of areas has been explored regarding possible application of AI in endodontics, which include tooth segmentation, detection of caries, periapical pathologies, obturation, and C-shaped canals [51,52].
Recently, various machine learning algorithms have been employed to identify and categorize dental morphological abnormalities, as well as to discover and localize MB2 canals in maxillary molars [52–54].
A crucial factor affecting the efficacy of a deep learning model is the sample size. Fang et al. [54] evaluated the optimal sample size required to train a deep learning algorithm for segmenting multiple regions of interest in the head and neck, such as the optic nerves and the lens of the eye, and found that 200 samples were needed to achieve 95% effectiveness. Given the complexity of the segmentation task and the relatively small region of interest, in the present study, to predict the presence of the MB2 canal, we used sample sizes of 210 MFMs and 206 MSMs.
In the present study, we measured distances between (MB-DB, MB-P and DB-P) canals, semiperimeter, and area of triangle between (MB, DB and P) canal in the presence and absence of MB2 canal in both MFMs and MSMs on CBCT images, and then we used 6 different ML algorithms to predict MB2 canals in MFMs and MSMs.
Based on available information, this is the first study to apply ML to predict the MB2 canal in both MFMs and MSMs using CBCT images. This work employed various ML techniques to address the constraints of discriminant function analysis from CBCT in identifying the MB2 canal in both MFMs and MSMs. The sample was divided, allocating 80% for training and 20% for testing the models.
LR achieved the highest AUC (0.88) for predicting MFMs among all ML models. Similarly, LR demonstrated the best performance for MSMs, with an AUC of 0.90. Comparable accuracy was reported for ML-based detection of MB2 canals in maxillary molars using axial CBCT slices [55]. The findings of the present study are consistent with those of Shetty et al. [55], who reported that ML algorithms showed strong performance in detecting MB2 canals using axial CBCT images, as demonstrated by their AUC, precision, and recall values.
Another study, by Karataş et al. [56], reported that in the binary classification task, the system correctly identified 502 out of 526 root canal orifices in MFMs and MSMs, yielding an accuracy of 91%. The YOLO-based CNN demonstrated high accuracy and sensitivity in detecting root canal orifices and classifying orifices into categories such as MB1, MB2, DB, and P from dental operating microscope images.
In all models from ML, feature importance derived from RF and DT models for predicting the presence of the MB2 canal in both molars demonstrated superior probabilistic performance in predicting MB2 canal in both MFMs and MSMs based on distance from MB-P canal.
In this study, linear inter-orifice MB-P distance in both MFMs and MSMs was higher in presence of MB2 canal (8.023 ± 1.154) in MFMs and (7.372 ± 1.188) in MSMs while in the absence of MB2 canal was (6.948 ± 1.314) in MFMs and (6.385 ± 1.22) in MSMs revealed that MB-P distance had accepted diagnostic accuracy for predicating MB presence. This finding agrees with other results [11,49,57].
Application of ML models in this study for predicting MB2 canals in MFMs and MSMs can provide objective, consistent, and reliable predictions, reducing inter-rater variability and enhancing diagnostic accuracy, especially in challenging cases where MB2 canals may be missed. Additionally, ML can serve as a decision support tool, streamlining the diagnostic process and reducing clinician workload by prioritizing cases that require closer attention. Furthermore, ML models could be integrated into clinical settings where CBCT images are not available or in cases of limited access to specialists, providing predictive capabilities using alternative imaging modalities. Ultimately, the application of ML in this context has the potential to improve diagnostic efficiency, reduce human error and support clinicians in making more informed decisions [55,58,59].
This research possesses multiple limitations. First, limited sample size for ML modeling. A future studies with larger, more diverse datasets would help to validate and enhance the robustness of the current finding. Second, all sample teeth were obtained from an Iraqi subpopulation; hence, caution is advised when generalizing the findings to other ethnic or geographical cohorts. Additional research including many demographics is required to substantiate these findings. Third, all CBCT measurements were performed by a single operator, which may introduce operator-dependent variability and potential subjectivity, despite high intra-observer reliability confirmed by ICC analysis. Lastly, while all data were de-identified and handled in accordance with institutional protocols, we recognize the inherent need to maintain strict compliance with data protection regulations, including General Data Protection Regulation (GDPR), to safeguard patient confidentiality. These limitations should be considered when interpreting the results and planning future studies with larger, multi-center cohorts and multiple operators to enhance reproducibility and generalizability.
From a clinical perspective, the findings of the present study demonstrate that the integration of ML following CBCT interpretation enables accurate prediction of MB2 canal occurrence based on the linear measurement of the MB-P distance in both MFMs and MSMs. This predictive approach offers significant clinical value by minimizing the risk of undetected canal anatomy and thereby reducing the potential for endodontic treatment failure.
5. Conclusion
The present study can provide a base model for applying ML models that can predict presence of MB2 canals in CBCT radiographs of both MFMs and MSMs. MB-P distance parameter is considered the best indicator to predict the presence of the MB2 canal in both PMFMs and PMSMs.
The identification of the MB-P distance as the most influential predictor provides a tangible, quantifiable parameter that can be incorporated into educational training, assisting dental students and clinicians in understanding key anatomical relationships and improving their diagnostic skills. Overall, the study highlights both a clinical decision-support tool and an educational resource for enhancing endodontic practice.
References
- 1. Vertucci FJ. Root canal anatomy of the human permanent teeth. Oral Surg Oral Med Oral Pathol. 1984;58(5):589–99. pmid:6595621
- 2. Tabassum S, Khan FR. Failure of endodontic treatment: The usual suspects. Eur J Dent. 2016;10(1):144–7. pmid:27011754
- 3. Costa FFNP, Pacheco-Yanes J, Siqueira JF Jr, Oliveira ACS, Gazzaneo I, Amorim CA, et al. Association between missed canals and apical periodontitis. Int Endod J. 2019;52(4):400–6. pmid:30284719
- 4. do Carmo WD, Verner FS, Aguiar LM, Visconti MA, Ferreira MD, Lacerda MFLS, et al. Missed canals in endodontically treated maxillary molars of a Brazilian subpopulation: prevalence and association with periapical lesion using cone-beam computed tomography. Clin Oral Investig. 2021;25(4):2317–23. pmid:32875385
- 5. Baruwa AO, Martins JNR, Meirinhos J, Pereira B, Gouveia J, Quaresma SA, et al. The Influence of Missed Canals on the Prevalence of Periapical Lesions in Endodontically Treated Teeth: A Cross-sectional Study. J Endod. 2020;46(1):34–39.e1. pmid:31733814
- 6. Wolcott J, Ishley D, Kennedy W, Johnson S, Minnich S, Meyers J. A 5 yr clinical investigation of second mesiobuccal canals in endodontically treated and retreated maxillary molars. J Endod. 2005;31(4):262–4. pmid:15793380
- 7. Su C-C, Huang R-Y, Wu Y-C, Cheng W-C, Chiang H-S, Chung M-P, et al. Detection and location of second mesiobuccal canal in permanent maxillary teeth: A cone-beam computed tomography analysis in a Taiwanese population. Arch Oral Biol. 2019;98:108–14. pmid:30471531
- 8. Shetty H, Sontakke S, Karjodkar F, Gupta P, Mandwe A, Banga KS. A Cone Beam Computed Tomography (CBCT) evaluation of MB2 canals in endodontically treated permanent maxillary molars. A retrospective study in Indian population. J Clin Exp Dent. 2017;9(1):e51–5. pmid:28149463
- 9. Ratanajirasut R, Panichuttra A, Panmekiate S. A Cone-beam Computed Tomographic Study of Root and Canal Morphology of Maxillary First and Second Permanent Molars in a Thai Population. J Endod. 2018;44(1):56–61. pmid:29061352
- 10. Shen Y, Gu Y. Assessment of the presence of a second mesiobuccal canal in maxillary first molars according to the location of the main mesiobuccal canal-a micro-computed tomographic study. Clin Oral Investig. 2021;25(6):3937–44. pmid:33404762
- 11. Alnowailaty Y, Alghamdi F. The Prevalence and Location of the Second Mesiobuccal Canals in Maxillary First and Second Molars Assessed by Cone-Beam Computed Tomography. Cureus. 2022;14(5):e24900. pmid:35698689
- 12. Weine FS, Healey HJ, Gerstein H, Evanson L. Canal configuration in the mesiobuccal root of the maxillary first molar and its endodontic significance. 1969. J Endod. 2012;38(10):1305–8. pmid:22980167
- 13. Pattanshetti N, Gaidhane M, Al Kandari AM. Root and canal morphology of the mesiobuccal and distal roots of permanent first molars in a Kuwait population - A clinical study. Int Endod J. 2008;41:755–62.
- 14. Ordinola-Zapata R, Martins JNR, Plascencia H, Versiani MA, Bramante CM. The MB3 canal in maxillary molars: a micro-CT study. Clin Oral Investig. 2020;24(11):4109–21. pmid:32382930
- 15. Mahmood Talabani R. Assessment of root canal morphology of mandibular permanent anterior teeth in an Iraqi subpopulation by cone-beam computed tomography. J Dent Sci. 2021;16(4):1182–90. pmid:34484586
- 16. Talabani RM, Abdalrahman KO, Abdul RJ, Babarasul DO, Hilmi Kazzaz S. Evaluation of Radix Entomolaris and Middle Mesial Canal in Mandibular Permanent First Molars in an Iraqi Subpopulation Using Cone-Beam Computed Tomography. Biomed Res Int. 2022;2022:7825948. pmid:35860794
- 17. Guo J, Vahidnia A, Sedghizadeh P, Enciso R. Evaluation of root and canal morphology of maxillary permanent first molars in a North American population by cone-beam computed tomography. J Endod. 2014;40(5):635–9. pmid:24767556
- 18. Aung NM, Myint KK. Diagnostic Accuracy of CBCT for Detection of Second Canal of Permanent Teeth: A Systematic Review and Meta-Analysis. Int J Dent. 2021;2021:1107471. pmid:34335767
- 19. Betancourt P, Navarro P, Muñoz G, Fuentes R. Prevalence and location of the secondary mesiobuccal canal in 1,100 maxillary molars using cone beam computed tomography. BMC Med Imaging. 2016;16(1):66. pmid:27908285
- 20. Duman ŞB, Çelik Özen D, Bayrakdar IŞ, Baydar O, Alhaija ESA, Helvacioğlu Yiğit D, et al. Second mesiobuccal canal segmentation with YOLOv5 architecture using cone beam computed tomography images. Odontology. 2024;112(2):552–61. pmid:37907818
- 21. Hiraiwa T, Ariji Y, Fukuda M, Kise Y, Nakata K, Katsumata A, et al. A deep-learning artificial intelligence system for assessment of root morphology of the mandibular first molar on panoramic radiography. Dentomaxillofac Radiol. 2019;48(3):20180218. pmid:30379570
- 22. Yuce F, Öziç MÜ, Tassoker M. Detection of pulpal calcifications on bite-wing radiographs using deep learning. Clin Oral Investig. 2023;27(6):2679–89. pmid:36564651
- 23. Choi RY, Coyner AS, Kalpathy-Cramer J, Chiang MF, Campbell JP. Introduction to Machine Learning, Neural Networks, and Deep Learning. Transl Vis Sci Technol. 2020;9(2):14. pmid:32704420
- 24. Aminoshariae A, Kulild J, Nagendrababu V. Artificial Intelligence in Endodontics: Current Applications and Future Directions. J Endod. 2021;47:1352–7.
- 25. Umer F, Habib S. Critical Analysis of Artificial Intelligence in Endodontics: A Scoping Review. J Endod. 2022;48:152–60.
- 26. Ahmed ZH, Almuharib AM, Abdulkarim AA, Alhassoon AH, Alanazi AF, Alhaqbani MA, et al. Artificial Intelligence and Its Application in Endodontics: A Review. J Contemp Dent Pract. 2023;24(11):912–7. pmid:38238281
- 27. Su C-C, Wu Y-C, Chung M-P, Huang R-Y, Cheng W-C, Cathy Tsai Y-W, et al. Geometric features of second mesiobuccal canal in permanent maxillary first molars: a cone-beam computed tomography study. J Dent Sci. 2017;12(3):241–8. pmid:30895057
- 28. Koo TK, Li MY. A Guideline of Selecting and Reporting Intraclass Correlation Coefficients for Reliability Research. J Chiropr Med. 2016;15(2):155–63. pmid:27330520
- 29. Blanco Fuentes BY, Moreno Monsalve JO, Mesa Herrera U, Amoroso-Silva PA, Rodrigues Ferreira Alves F, Marceliano-Alves MF. Apical periodontitis in endodontically-treated teeth: association between missed canals and quality of endodontic treatment in a Colombian sub-population. A cross-sectional study. Acta Odontol Latinoam. 2024;37(1):59–67. pmid:38920127
- 30. Matherne RP, Angelopoulos C, Kulild JC, Tira D. Use of cone-beam computed tomography to identify root canal systems in vitro. J Endod. 2008;34(1):87–9. pmid:18155501
- 31. Blattner TC, George N, Lee CC, Kumar V, Yelton CDJ. Efficacy of cone-beam computed tomography as a modality to accurately identify the presence of second mesiobuccal canals in maxillary first and second molars: a pilot study. J Endod. 2010;36(5):867–70. pmid:20416435
- 32. Sadr S, Mohammad-Rahimi H, Motamedian SR, Zahedrozegar S, Motie P, Vinayahalingam S, et al. Deep Learning for Detection of Periapical Radiolucent Lesions: A Systematic Review and Meta-analysis of Diagnostic Test Accuracy. J Endod. 2023;49(3):248–261.e3. pmid:36563779
- 33. Domark JD, Hatton JF, Benison RP, Hildebolt CF. An ex vivo comparison of digital radiography and cone-beam and micro computed tomography in the detection of the number of canals in the mesiobuccal roots of maxillary molars. J Endod. 2013;39(7):901–5. pmid:23791260
- 34. Fernandes NA, Herbst D, Postma TC, Bunn BK. The prevalence of second canals in the mesiobuccal root of maxillary molars: A cone beam computed tomography study. Aust Endod J. 2019;45(1):46–50. pmid:29573065
- 35. Studebaker B, Hollender L, Mancl L, Johnson JD, Paranjpe A. The Incidence of Second Mesiobuccal Canals Located in Maxillary Molars with the Aid of Cone-beam Computed Tomography. J Endod. 2018;44(4):565–70. pmid:29153734
- 36. Zhang Y, Xu H, Wang D, Gu Y, Wang J, Tu S, et al. Assessment of the Second Mesiobuccal Root Canal in Maxillary First Molars: A Cone-beam Computed Tomographic Study. J Endod. 2017;43(12):1990–6. pmid:29032819
- 37. Betancourt P, Navarro P, Cantín M, Fuentes R. Cone-beam computed tomography study of prevalence and location of MB2 canal in the mesiobuccal root of the maxillary second molar. Int J Clin Exp Med. 2015;8(6):9128–34. pmid:26309568
- 38. Parker J, Mol A, Rivera EM, Tawil P. CBCT uses in clinical endodontics: the effect of CBCT on the ability to locate MB2 canals in maxillary molars. Int Endod J. 2017;50(12):1109–15. pmid:27977863
- 39. Reis AG de AR, Grazziotin-Soares R, Barletta FB, Fontanella VRC, Mahl CRW. Second canal in mesiobuccal root of maxillary molars is correlated with root third and patient age: a cone-beam computed tomographic study. J Endod. 2013;39(5):588–92. pmid:23611373
- 40. Blank-Gonçalves LM, Silva EJNL da, Nascimento M do CC, Limoeiro AG, Manhães-Jr LRC. Anatomical Configuration of the MB2 Canal Using High-Resolution Cone-Beam Computed Tomography. J Endod. 2025;51(5):609–15. pmid:39827961
- 41. Ghobashy AM, Nagy MM, Bayoumi AA. Evaluation of Root and Canal Morphology of Maxillary Permanent Molars in an Egyptian Population by Cone-beam Computed Tomography. J Endod. 2017;43(7):1089–92. pmid:28476465
- 42. Alaçam T, Tinaz AC, Genç O, Kayaoglu G. Second mesiobuccal canal detection in maxillary first molars using microscopy and ultrasonics. Aust Endod J. 2008;34(3):106–9. pmid:19032644
- 43. Magat G, Hakbilen S. Prevalence of second canal in the mesiobuccal root of permanent maxillary molars from a Turkish subpopulation: a cone-beam computed tomography study. Folia Morphol (Warsz). 2019;78(2):351–8. pmid:30299533
- 44. Zheng Q, Wang Y, Zhou X, Wang Q, Zheng G, Huang D. A cone-beam computed tomography study of maxillary first permanent molar root and canal morphology in a Chinese population. J Endod. 2010;36(9):1480–4. pmid:20728713
- 45. Hildebolt CF. Osteoporosis and oral bone loss. Dentomaxillofac Radiol. 1997;26(1):3–15. pmid:9446984
- 46. Al-Zahawi AR, Ibrahim RO, Talabani RM, Dawood SN, Garib DSH, Abdalla AO. Age and sex related change in tooth enamel thickness of maxillary incisors measured by cone beam computed tomography. BMC Oral Health. 2023;23(1):971. pmid:38057794
- 47. Talabani RM, Baban MT, Mahmood MA. Age estimation using lower permanent first molars on a panoramic radiograph: A digital image analysis. J Forensic Dent Sci. 2015;7(2):158–62. pmid:26005307
- 48. Lee SJ, Lee EH, Park SH, Cho KM, Kim JW. A cone-beam computed tomography study of the prevalence and location of the second mesiobuccal root canal in maxillary molars. Restor Dent Endod. 2020;45.
- 49. Keskin C, Keleş A, Versiani MA. Mesiobuccal and Palatal Interorifice Distance May Predict the Presence of the Second Mesiobuccal Canal in Maxillary Second Molars with Fused Roots. J Endod. 2021;47(4):585–91. pmid:33497731
- 50.
Rusell S, Norvig P. Artificial intelligence: A modern approach. 2010;1:2–16.
- 51. Ourang SA, Sohrabniya F, Mohammad-Rahimi H, Dianat O, Aminoshariae A, Nagendrababu V, et al. Artificial intelligence in endodontics: Fundamental principles, workflow, and tasks. Int Endod J. 2024;57(11):1546–65. pmid:39056554
- 52. Asgary S. Artificial Intelligence in Endodontics: A Scoping Review. Iran Endod J. 2024;19(2):85–98. pmid:38577001
- 53. Lin H, Chen J, Hu Y, Li W. Embracing technological revolution: A panorama of machine learning in dentistry. Med Oral Patol Oral Cir Bucal. 2024;29(6):e742–9. pmid:39418127
- 54. Albitar L, Zhao T, Huang C, Mahdian M. Artificial Intelligence (AI) for Detection and Localization of Unobturated Second Mesial Buccal (MB2) Canals in Cone-Beam Computed Tomography (CBCT). Diagnostics (Basel). 2022;12(12):3214. pmid:36553221
- 55. Shetty S, Yuvali M, Ozsahin I, Al-Bayatti S, Narasimhan S, Alsaegh M, et al. Machine Learning Models in the Detection of MB2 Canal Orifice in CBCT Images. Int Dent J. 2025;75(3):1640–8. pmid:40138998
- 56. Karataş E, Ünal O, Çelik, Bayrakdar. Artificial intelligence for root canal orifice identification using dental operating microscope images: A preliminary evaluation. Aust Endod J. 2025;51:407–14.
- 57. Sakthivel M, Das U, Murmu LB, Saha KK. The prevalence, configuration, and prediction of second mesiobuccal canals in maxillary second molars in West Bengal population - A cone-beam computed tomography study. J Conserv Dent Endod. 2024;27(10):999–1003. pmid:39583276
- 58. Dashti M, Khosraviani F, Ghadimi N, Baghaei K, Esmaeili S, Entezar-E-Ghaem M, et al. Use of artificial intelligence for detection of MB2 canals in maxillary first molars on CBCT: a systematic review and meta-analysis. BMC Oral Health. 2025;25(1):1860. pmid:41327142
- 59. Mansour S, Anter E, Mohamed AK, Dahaba MM, Mousa A. Two step approach for detecting and segmenting the second mesiobuccal canal of maxillary first molars on cone beam computed tomography (CBCT) images via artificial intelligence. BMC Oral Health. 2025;25(1):1404. pmid:40926256