Osteoporosis Detection Using a Combination of Recursive Feature Elimination and Naive Bayes Classifier with Rule-Based Chatbot Testing
Abstract
Osteoporosis is a condition characterized by reduced bone mass and density, increasing the risk of fractures. Early detection relies on patient awareness and proactive health management. Despite advances in technology, patient independence and awareness remain critical for early diagnosis. A rule-based chatbot tool can assist by helping patients screen their bone health. The chatbot provides automated recommendations, offering an alternative to traditional hospital visits. This study presents a rule-based chatbot designed to detect osteoporosis, using Recursive Feature Elimination (RFE) combined with the Naïve Bayes Classifier (NBC). Machine learning is integrated to enhance the chatbot's ability to identify early signs of osteoporosis. The model’s performance is compared to other feature selection methods, such as Principal Component Analysis (PCA), and machine learning algorithms like Deep Learning, Support Vector Machine (SVM), and Logistic Regression. The dataset used includes public data sets for training and validation, as well as data from the Yogyakarta Health Office for predictions. Research phases include normalization, data encoding, feature selection, training, validation, and prediction. The chatbot implements text preprocessing techniques, such as tokenization, stop word removal, and feature extraction, alongside normalization and encoding of numeric data. The prediction stage determines if the patient has a positive or negative osteoporosis status. Validation results show the RFE-NBC model is particularly effective for osteoporosis detection, offering a balanced performance in identifying both positive and negative cases. Additionally, this model served as the foundation for creating a rule-based chatbot designed to detect osteoporosis. Based on the set of testing metrics using chatbot, the model demonstrates strong overall performance, with a good balance between identifying positive and negative instances.
Keywords
Full Text:
PDFReferences
E. I. Sela and R. Pulungan, “Osteoporosis identification based on the validated trabecular area on digital dental radiographic images,” in Procedia Computer Science, 2019. doi: 10.1016/j.procs.2019.08.168.
R. Widyaningrum, E. I. Sela, R. Pulungan, and A. Septiarini, “Automatic Segmentation of Periapical Radiograph Using Color Histogram and Machine Learning for Osteoporosis Detection,” Int. J. Dent., vol. 2023, 2023, doi: 10.1155/2023/6662911.
R. Widyaningrum, S. Lestari, and F. Jie, “Image analysis of periapical radiograph for bone mineral density prediction,” Int. J. Electr. Comput. Eng., vol. 8, no. 4, pp. 2083–2090, 2018, doi: 10.11591/ijece.v8i4.pp2083-2090.
E. . Sela and Sutarman, “Extracting the potential features of digital panoramic radiograph images by combining radio morphometry index, texture analysis, and morphological features,” J. Comput. Sci., vol. 14, no. 2, pp. 144–152, 2017, doi: 10.3844/jcssp.2018.144.152.
N. Yamamoto et al., “Deep learning for osteoporosis classification using hip radiographs and patient clinical covariates,” Biomolecules, vol. 10, no. 11, pp. 1–13, 2020, doi: 10.3390/biom10111534.
A. Aibar-Almazán, A. Voltes-Martínez, Y. Castellote-Caballero, D. F. Afanador-Restrepo, M. del C. Carcelén-Fraile, and E. López-Ruiz, “Current Status of the Diagnosis and Management of Osteoporosis,” Int. J. Mol. Sci., vol. 23, no. 16, pp. 1–27, 2022, doi: 10.3390/ijms23169465.
C. McPhee, I. O. Aninye, and L. Horan, “Recommendations for Improving Women’s Bone Health Throughout the Lifespan,” J. Women’s Heal., vol. 31, no. 12, pp. 1671–1676, 2022, doi: 10.1089/jwh.2022.0361.
A. J. Singer, A. Sharma, C. Deignan, and L. Borgermans, “Closing the gap in osteoporosis management: the critical role of primary care in bone health,” Curr. Med. Res. Opin., vol. 39, no. 3, pp. 387–398, 2023, doi: 10.1080/03007995.2022.2141483.
S. Laumer, C. Maier, and G. Fabian, “Chatbot acceptance in healthcare: Explaining user adoption of conversational agents for disease diagnosis,” 27th Eur. Conf. Inf. Syst. - Inf. Syst. a Shar. Soc. ECIS 2019, pp. 0–18, 2020.
et al., “Adaptive Machine Learning Chatbot for Code-Mix Language (English and Hindi),” Int. J. Recent Technol. Eng., vol. 8, no. 5, pp. 3566–3572, 2020, doi: 10.35940/ijrte.e6489.018520.
J. Singh, M. H. Joesph, and K. B. A. Jabbar, “Rule-based chabot for student enquiries,” J. Phys. Conf. Ser., vol. 1228, no. 1, 2019, doi: 10.1088/1742-6596/1228/1/012060.
Rianto, A. B. Mutiara, E. P. Wibowo, and P. I. Santosa, “Improving the accuracy of text classification using stemming method, a case of non-formal Indonesian conversation,” J. Big Data, vol. 8, no. 1, pp. 1–16, 2021, doi: 10.1186/s40537-021-00413-1.
D.-H. Kim, H.-S. Im, J.-H. Hyeon, and J.-W. Jwa, “Development of the Rule-based Smart Tourism Chatbot using Neo4J graph database,” Int. J. Internet, Broadcast. Commun., vol. 13, no. 2, pp. 179–186, 2021, [Online]. Available: http://dx.doi.org/10.7236/IJIBC.2021.13.2.179
S. A. Thorat and V. Jadhav, “A Review on Implementation Issues of Rule-based Chatbot Systems,” SSRN Electron. J., no. Icicc, pp. 1–6, 2020, doi: 10.2139/ssrn.3567047.
R. Franciotti et al., “Use of fractal analysis in dental images for
osteoporosis detection: a systematic review and meta-analysis,” Osteoporos. Int., vol. 32, no. 6, pp. 1041–1052, 2021, doi: 10.1007/s00198-021-05852-3.
J. Wang et al., “The prevalence of osteoporosis in China, a community based cohort study of osteoporosis,” Front. Public Heal., vol. 11, 2023, doi: 10.3389/fpubh.2023.1084005.
R. Jang, J. H. Choi, N. Kim, J. S. Chang, P. W. Yoon, and C. H. Kim, “Prediction of osteoporosis from simple hip radiography using deep learning algorithm,” Sci. Rep., vol. 11, no. 1, pp. 1–9, 2021, doi: 10.1038/s41598-021-99549-6.
N. Hong et al., “Deep-Learning-Based Detection of Vertebral Fracture and Osteoporosis Using Lateral Spine X-Ray Radiography,” J. Bone Miner. Res., vol. 38, no. 6, pp. 887–895, 2023, doi: 10.1002/jbmr.4814.
Y. W. Jiang, X. J. Xu, R. Wang, and C. M. Chen, “Radiomics analysis based on lumbar spine CT to detect osteoporosis,” Eur. Radiol., vol. 32, no. 11, pp. 8019–8026, 2022, doi: 10.1007/s00330-022-08805-4.
D. Qiao et al., “Gender-specific prevalence and influencing factors of osteopenia and osteoporosis in Chinese rural population: The Henan Rural Cohort Study,” BMJ Open, vol. 10, no. 1, pp. 1–10, 2020, doi: 10.1136/bmjopen-2018-028593.
I. Wickramasinghe and H. Kalutarage, “Naive Bayes: applications, variations and vulnerabilities: a review of literature with code snippets for implementation,” Soft Comput., vol. 25, no. 3, pp. 2277–2293, 2021, doi: 10.1007/s00500-020-05297-6.
I. H. Sarker, “Deep Learning: A Comprehensive Overview on Techniques, Taxonomy, Applications and Research Directions,” SN Comput. Sci., vol. 2, no. 6, pp. 1–20, 2021, doi: 10.1007/s42979-021-00815-1.
B. Gaye, D. Zhang, and A. Wulamu, “Improvement of Support Vector Machine Algorithm in Big Data Background,” Math. Probl. Eng., vol. 2021, 2021, doi: 10.1155/2021/5594899.
J. J. Levy, J. J. Levy, J. J. Levy, A. J. O’Malley, and A. J. O’Malley, “Don’t dismiss logistic regression: The case for sensible extraction of interactions in the era of machine learning,” BMC Med. Res. Methodol., vol. 20, no. 1, pp. 1–15, 2020, doi: 10.1186/s12874-020-01046-3.
W. Lian, G. Nie, B. Jia, D. Shi, Q. Fan, and Y. Liang, “An intrusion detection method based on decision tree-recursive feature elimination in ensemble learning,” Math. Probl. Eng., vol. 2020, 2020, doi: 10.1155/2020/2835023.
E. Senan et al., “Diagnosis of Chronic Kidney Disease Using Effective Classification Algorithms and Recursive Feature Elimination Techniques,” J. Healthc. Eng., vol. 2021, no. 1004767, 2021.
G. Cuaya-Simbro, A. I. Perez-Sanpablo, E. F. Morales, I. Quiñones Uriostegui, and L. Nuñez-Carrera, “Comparing Machine Learning Methods to Improve Fall Risk Detection in Elderly with Osteoporosis from Balance Data,” J. Healthc. Eng., vol. 2021, no. 697805, 2021, doi: 10.1155/2021/8697805.
H. M. Bui et al., “Predicting the risk of osteoporosis in older Vietnamese women using machine learning approaches,” Sci. Rep., vol. 12, no. 1, pp. 1–17, 2022, doi: 10.1038/s41598-022-24181-x.
J. D. Wang, “Naïve Bayes Is an Interpretable Machine Learning Algorithm for Predicting Osteoporotic Hip Fracture in‐Hospital Mortality Compared To Other Machine Learning Algorithms,” Intern. Med. J., vol. 54, no. S1, pp. 17–17, 2024, doi: 10.1111/imj.34_16398.
S. Deshpande and J. Warren, “Self-harm detection for mental health chatbots,” Public Heal. Informatics Proc. MIE 2021, pp. 48–52, 2021, doi: 10.3233/SHTI210118.
S. R. Mainer, “Development and evaluation of a microservice-based virtual assistant for chronic patients support,” University of Zaragoza, 2023.
S. Chakraborty et al., “An AI-Based Medical Chatbot Model for Infectious Disease Prediction,” IEEE Access, vol. 10, pp. 128469–128483, 2022, doi: 10.1109/ACCESS.2022.3227208.
W. Y. O. Yang, C. C. Lai, M. T. Tsou, and L. C. Hwang, “Development of machine learning models for prediction of osteoporosis from clinical health examination data,” Int. J. Environ. Res. Public Health, vol. 18, no. 14, 2021, doi: 10.3390/ijerph18147635.
DOI: https://doi.org/10.47738/jads.v5i4.409
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)