The Development of Predictive Models for Pneumonia in Chest X-ray Images Using Statistical Analysis
Main Article Content
Abstract
This experimental research aimed to develop predictive models for pneumonia in chest X-ray images using statistical analysis. A total of 640 images were retrospective collected from October 1, 2021 - September 30, 2022 and were divided into 320 pneumonia images and 320 normal chest images. Subsequently, 192 images were randomly selected for training data and 128 images for testing data. A region of interest (ROI) of 20 x 20 pixels was drawn on the training data images, and statistical data were measured using ImageJ. The statistical analysis 9 values which included mean gray value, standard deviation, modal gray value, minimum gray level, maximum gray level, integrated density, median, skewness, and kurtosis. We compared the difference between pneumonia and normal chest images using Independent Sample t-test or Mann-Whitney U-test. We found that 8 statistical average values of pneumonia chest images were significantly higher than normal chest images (p < 0.001) except skewness. Predictive performances of 8 statistical values showed sensitivity, specificity, and accuracy of 64.06 - 94.53, 71.09 - 96.09, and 67.58 - 95.31, respectively and the total integrated density was the highest predictive performances. The 8 statistical values can predict pneumonia chest x-ray images. However, all chest x-ray images should be approved by radiologists.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
References
National Vaccine Institute. Join forces to prepare Thailand to prevent 'pneumonia' after covid-19. [Internet]. 2022 [cited 2023 Jun 11]. Available from: http://nvi.go.th/2022/11/11/prnews-2565-pneu-1/. (in Thai).
Vibhavadi. "Pneumonia" causes, symptoms and health risks you should know. [Internet]. [cited 2023 Jun 11]. Available from: https://www.vibhavadi.com/Health-expert/detail/615. (in Thai).
Bureewong W. Chest radiology: selection of examinations and interpretation of chest x-ray. [Internet]. 2014 [cited 2023 Jun 20]. Available from: http://www.med.swu.ac.th/radiology/images/stories/Education/chest%20%20cvs%202014.pdf. (in Thai).
Bangkok Hospital. AI smart medical assistant. [Internet]. [cited 2023 Jun 23]. Available from: https://www.bangkokhospital.com/healthcare-intelligence/artificial-intelligence-innovation. (in Thai).
Tonpho T, Leelasantitham A, Kiattisin S. Investigation of chest x-ray images based on medical knowledge and balanced histograms. In: ISPACS 2010 - 2010 International Symposium on Intelligent Signal Processing and Communication Systems, Proceeding; 2010. doi; 10.1109/ISPACS.2010.5704636
Tuankhunthod N, Hadsai R, Plemjai S, Kaewlek T. Prediction of liver cancer using statistical analysis. Journal of Radiologic Technology 2020;45(1):22-7. (in Thai).
Chouhan V, Singh SK, Khamparia A, Gupta D, Tiwari P, Moreira C, et al. A novel transfer learning based approach for pneumonia detection in chest x-ray images. Appl Sci 2020;10(2):1-17.
Mahasririyapong P. Evaluation of the accuracy of an artificial intelligence (AI) automated chest X-ray reader in interpreting pulmonary tuberculosis from chest x-rays in outpatients with suspected pulmonary tuberculosis Mae Ramat district, Tak Province. Journal of Primary Care and Family Medicine 2021;4(3):35-45. (in Thai).
Yamane T. Statistics: an introductory analysis. 2nd ed. New York: Harper and Row; 1967.
Emara HM, Shoaib MR, Elwekeil M, El-Shafai W, Taha TE, El-Fishawy AS, et al. Deep convolutional neural networks for COVID-19 automatic diagnosis. Microsc Res Tech 2021;84(11):2504-16.
Guo X, Lu X, Zhang B, Hu X, Che S. Automatic detection and grading of diabetic macular edema based on a deep neural network. Retina 2022;42(6);1095-1102.
Garcia GGP, Yang J, Lavieri MS, McAllister TW, McCrea MA, Broglio SP. Optimizing components of the sport concussion assessment tool for acute concussion assessment. Neurosurgery 2020,87(5):971-81.
Sandford DM, Kirtley OJ, Lafit G, Thwaites R, O'Connor RC. An investigation into the factor structure of the attitudes to suicide prevention scale. Crisis 2020;41(2):97-104.
Piyawat J. What are skewness and kurtosis, and what can they indicate. [Internet]. [cited 2023 Jun 20]. Available from: https://www.gotoknow.org/posts/712806. (in thai).