Related Experiment Video
Updated: Feb 3, 2026

Constructing and Visualizing Models using Mime-based Machine-learning Framework
Published on: July 22, 2025
Machine Learning Model for Predicting Postoperative Pain in Cases of Irreversible Pulpitis
Pedro Felipe de Jesus Freitas1, Ingrid Luiza Mendonça Cunha2, Thalita de Paris Matos1
1School of Dentistry, Tuiuti University of Paraná, Curitiba, Brazil.
Aim:
Postoperative pain is a frequent clinical concern following endodontic treatment. This study aimed to develop and validate supervised machine learning models to predict the occurrence of postoperative pain in cases of irreversible pulpitis.
Methodology:
A prospective sample of 354 patients aged 18 to 60 years undergoing standardised endodontic treatment was analysed. In the original randomised clinical trials from which the data were derived, each patient had only one eligible tooth included. Clinical variables included postoperative pain at 24 and 72 h, treated tooth group, occlusal reduction, photobiomodulation therapy, use of non-steroidal anti-inflammatory drugs (NSAIDs), sex and age. Eight supervised machine learning algorithms were trained to predict pain occurrence, including Logistic Regression, Support Vector Machine, Gradient Boosting, Random Forest, Decision Tree, K-Nearest Neighbours, AdaBoost and Multilayer Perceptron. The dataset was divided into training (70%) and testing (30%) sets using stratified sampling. Class imbalance in the training set, characterised by a lower proportion of cases with moderate or severe pain, was addressed using the Synthetic Minority Oversampling Technique. Hyperparameters were optimised through grid search combined with stratified five-fold cross validation. Model performance was evaluated using the area under the curve (AUC), accuracy, precision, recall and F1-score, with 95% confidence intervals estimated by bootstrapping.
Results:
The predictive models achieved good discrimination of pain outcomes. Logistic Regression showed the best test performance at 24 h (AUC 0.74 [95% CI: 0.61 to 0.85], precision 0.81 [95% CI: 0.73 to 0.88]). At 72 h, the Support Vector Machine achieved the highest performance (AUC 0.81 [95% CI: 0.69 to 0.92], precision 0.88 [95% CI: 0.79 to 0.94]). Age and sex emerged as the most influential predictors across models.
Conclusions:
Supervised machine learning models demonstrated promising performance for predicting postoperative pain following endodontic treatment. Logistic Regression and Support Vector Machine algorithms presented the most consistent results, supporting their potential clinical application for personalised pain management.
More Related Videos
04:09Predicting Treatment Response to Image-Guided Therapies Using Machine Learning: An Example for Trans-Arterial Treatment of Hepatocellular Carcinoma
Published on: October 10, 2018
07:13Comparison of Predictive Performance of Three Lymph Node Staging Systems in Colorectal Signet Ring Cell Carcinoma Based on Machine Learning Model
Published on: April 18, 2025
Related Concept Videos
Reversible and Irreversible Processes
Simplified Synchronous Machine Model
In this model, each generator is connected to a...
Wind Turbine Machine Models
Induction machines interact through the rotating magnetic field generated by the stator and the rotor. The key parameter is slip, which is the difference between synchronous speed and rotor speed relative to synchronous speed. Slip is...
Machines
A free-body diagram of the...
Predicting Molecular Geometry
Pain