Abstract
COVID-19 has been a devastating pandemic, causing serious and sometimes irreparable damages to body organs. The sooner the existence of this virus in the body is recognized, the more effective the treatments are. This early detection can break the transmission chain faster, reducing the burden of this disease on the society. Since there exist issues regarding the reliability of RT-PCR tests to diagnose COVID-19, examining chest radiographs, especially chest X-ray images, are recommended as well. In this paper, we propose a machine learning algorithm to automatically classify patients in the target groups of COVID-19, pneumonia, and normal, based on chest X-ray images. Our algorithm generates two complementary images from each raw image in the dataset, and only works on a 4-feature vector extracted from the gray level co-occurrence matrix of each image for the classification, based on the k-nearest neighbors algorithm. It can work robustly in the presence of limited data. The speed, simplicity, and the independence from large computational resources are of other advantages of the proposed algorithm. Despite the simplicity and speed, as the results show, the algorithm can compete tightly with the state-of-the-art algorithms.
Similar content being viewed by others
Data availability
Datasets used in this study are fully available in [18] and [34]. The source code implemented by the authors is available at Source files. Source files.
References
https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia
https://www.worldometers.info/coronavirus/, 2022. [Online; accessed 30-November-2022]
https://www.who.int/activities/tracking-SARS-CoV-2-variants, 2022. [Online; accessed 30-November-2022]
Abbas A, Abdelsamea MM, Medhat Gaber M (2021) Classification of COVID-19 in chest X-ray images using DeTraC deep convolutional neural network. Appl Intell 51:854–864
Altan A, Karasu S (2020) Recognition of COVID-19 disease from X-ray images by hybrid model consisting of 2D curvelet transform, chaotic salp swarm algorithm and deep learning technique. Chaos Solitons Fractals 140:110071
Apostolopoulos ID, Mpesiana TA (2020) Covid-19: automatic detection from X-ray images utilizing transfer learning with convolutional neural networks. Phys Eng Sci Med 43:635–640
ArunKumar K, Kalaga DV, Kumar CMS, Kawaji M, Brenza TM (2021) Forecasting of COVID-19 using deep layer recurrent neural networks (RNNs) with gated recurrent units (GRUs) and long short-term memory (LSTM) cells. Chaos Solitons Fractals 146:110861
Barua PD, Gowdh NFM, Rahmat K, Ramli N, Ng WL, Chan WY, Kuluozturk M, Dogan S, Baygin M, Yaman O, Tuncer T, Wen T, Cheong KH, Acharya UR (2021) Automatic COVID-19 detection using exemplar hybrid deep features with X-ray images. Int J Environ Res Public Health 18:8052
Chakraborty M, Dhavale SV, Ingole J (2021) Corona-Nidaan: lightweight deep convolutional neural network for chest X-ray based COVID-19 infection detection. Appl Intell 51(5):3026–3043
Chimmula VKR, Zhang L (2020) Time series forecasting of COVID-19 transmission in Canada using LSTM networks. Chaos Solitons Fractals 135:109864
Chola C, Benifa JVB, Guru DS, Muaad AY, Hanumanthappa J, Al-antari MA, AlSalman H, Gumaei AH (2022) Gender identification and classification of Drosophila melanogaster flies using machine learning techniques. Comput Math Methods Med. https://doi.org/10.1155/2022/4593330
Chola C, Mallikarjuna P, Muaad AY, Bibal Benifa JV, Hanumanthappa J, Al-antari MA (2022) A hybrid deep learning approach for COVID-19 diagnosis via CT and X-ray medical images. In: Computer Sciences and Mathematics Forum, vol 2, No 1
Cohen JP, Morrison P, Dao L, Roth K, Duong TQ, Ghassemi M (2020) COVID-19 image data collection: Prospective predictions are the future. arXiv 2006.11988
Constantinou M, Exarchos T, Vrahatis AG, Vlamos P (2023) COVID-19 classification on chest X-ray images using deep learning methods. Int J Environ Res Public Health 20(3):2035
Davies N, Abbott S, Barnard R, Jarvis C, Kucharski A, Munday J, Pearson C et al (2021) Estimated transmissibility and impact of SARS-CoV-2 lineage B.1.1.7 in England. Science 327(6538):eabg3055
Dosovitskiy A, Beyer L, Kolesnikov A, Weissenborn D, Zhai X, Unterthiner T, Dehghani M, Minderer M, Heigold G, Gelly S, Uszkoreit J, Houlsby N (2021) An image is worth 16x16 words: transformers for image recognition at scale. arXiv:2010.11929v2
Duong LT, Le NH, Tran TB, Ngo VM, Nguyen PT (2021) Detection of tuberculosis from chest X-ray images: boosting the performance with vision transformer and transfer learning. Expert Syst Appl 184:115519
Duong LT, Nguyen PT, Iovino L, Flammini M (2020) Deep learning for automated recognition of Covid-19 from chest X-ray images. medRxiv
Duong LT, Nguyen PT, Iovino L, Flammini M (2023) Automatic detection of Covid-19 from chest X-ray and lung computed tomography images using deep neural networks and transfer learning. Appl Soft Comp 132:109851
Giri B, Pandey S, Shrestha R, Pokharel K, Ligler FS, Neupane BB (2021) Review of analytical performance of COVID-19 detection methods. Anal Bioanal Chem 413:35–48
Han K, Xiao A, Wu E, Guo J, Xu C, Wang Y (2021) Transformer in transformer. arXiv:2103.00112v3
Haralick R (1979) Statistical and structural approaches to texture. Proc IEEE 67(5):786–804
Haralick RM, Shanmugam K, Dinstein IH (1973) Textural features for image classification. IEEE Trans Syst Man Cybern 6:610–621
Hasoon JN, Fadel AH, Hameed RS, Mostafa SA, Khalaf BA, Mohammed MA, Nedoma J (2021) COVID-19 anomaly detection and classification method based on supervised machine learning of chest X-ray images. Results Phys 31:105045
Hemdan EE-D, Shouman MA, Karar ME (2020) COVIDX-Net: a framework of deep learning classifiers to diagnose COVID-19 in X-ray images. arXiv:2003.11055
Jiang J, Lin S (2022) COVID-19 detection in chest X-ray images using swin-transformer and transformer in transformer. ArXiv:2110.08427v2
Jie Guan W, Chang Chen R, Shan Zhong N (2020) Strategies for the prevention and management of coronavirus disease. Eur Respir J 55(4):2000597
Jin W, Dong S, Dong C, Ye X (2021) A hybrid ensemble model for differential diagnosis between COVID-19 and common viral pneumonia by chest X-ray radiograph. Comput Biol Med 131:104252
Kermany DS, Goldbaum M, Cai W, Valentim CC, Liang H, Baxter SL, McKeown A, Yang G, Wu X, Yan F, Dong J, Prasadha MK, Pei J, Ting MY, Zhu J, Li C, Hewett S, Dong J, Ziyar I, Shi A, Zhang R, Zheng L, Hou R, Shi W, Fu X, Duan Y, Huu VA, Wen C, Zhang ED, Zhang CL, Li O, Wang X, Singer MA, Sun X, Xu J, Tafreshi A, Lewis MA, Xia H, Zhang K (2018) Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell 172(5):1122-1131.e9
Khan A, Khan SH, Saif M, Batool A, Sohail A, Khan MW (2022) A survey of deep learning techniques for the analysis of COVID-19 and their usability for detecting Omicron. arXiv:2202.06372
Khuzani AZ, Heidari M, Shariati SA (2021) COVID-classifier: an automated machine learning model to assist in the diagnosis of COVID-19 infection in chest X-ray images. Sci Rep 11:9887
Laddha S, Mnasri S, Alghamdi M, Kumar V, Kaur M, Alrashidi M, Almuhaimeed A, Alshehri A, Alrowaily MA, Alkhazi I (2022) COVID-19 diagnosis and classification using radiological imaging and deep learning techniques: a comparative study. Diagnostics 12(8):1880
Liu Y, Gayle AA, Wilder-Smith A, Rocklöv J (2020) The reproductive number of COVID-19 is higher compared to SARS coronavirus. J Travel Med 27(2):taaa021
Liu Z, Lin Y, Cao Y, Hu H, Wei Y, Zhang Z, Lin S, Guo B (2021) Swin transformer: hierarchical vision transformer using shifted windows. arXiv:2103.14030v2
Loey M, Smarandache F, Khalifa NEM (2020) Within the lack of chest COVID-19 X-ray dataset: a novel detection model based on GAN and deep transfer learning. Symmetry 12(4):651
Meraihi Y, Gabis AB, Mirjalili S, Ramdane-Cherif A, Alsaadi FE (2022) Machine learning-based research for COVID-19 detection, diagnosis, and prediction: a survey. SN Comput Sci 3(4):286
Mujahid M, Rustam F, Álvarez R, Luis Vidal Mazón J, Díez IDLT, I. Ashraf, (2022) Pneumonia classification from X-ray images with Inception-v3 and convolutional neural network. Diagnostics 12(5):1280
Oh Y, Park S, Ye JC (2020) Deep learning COVID-19 features on CXR using limited training data sets. IEEE Trans Med Imag 39(8):2688–2700
Ojala T, Pietikainen M, Harwood D (1994) Performance evaluation of texture measures with classification based on Kullback discrimination of distributions. In Proceedings of 12th International Conference on Pattern Recognition, vol 1, pp 582–585
Ozturk T, Talo M, Yildirim EA, Baloglu UB, Yildirim O, Rajendra Acharya U (2020) Automated detection of COVID-19 cases using deep neural networks with X-ray images. Comput Biol Med 121:103792
Park S, Kim G, Oh Y, Seo JB, Lee SM, Kim JH, Moon S, Lim J-K, Ye JC (2022) Multi-task vision transformer using low-level chest X-ray feature corpus for COVID-19 diagnosis and severity quantification. Med Image Anals 75:102299
Pecoraro V, Negro A, Pirotti T, Trenti T (2022) Estimate false-negative RT-PCR rates for SARS-CoV-2. a systematic review and meta-analysis. Eur J Clin Investig 52(2):e13706
Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, Blondel M, Prettenhofer P, Weiss R, Dubourg V, Vanderplas J, Passos A, Cournapeau D, Brucher M, Perrot M, Duchesnay E (2011) Scikit-learn: machine learning in python. J Mach Learn Res 12:2825–2830
Pereira RM, Bertolini D, Teixeira LO, Silla CN, Costa YM (2020) COVID-19 identification in chest X-ray images on flat and hierarchical classification scenarios. Comput Methods Progr Biomed 194:105532
Rahimzadeh M, Attar A (2020) A modified deep convolutional neural network for detecting COVID-19 and pneumonia from chest X-ray images based on the concatenation of Xception and ResNet50v2. Inf Med Unlocked 19:100360
Rasheed J, Hameed AA, Djeddi C, Jamil A, Al-Turjman F (2021) A machine learning-based framework for diagnosis of COVID-19 from chest X-ray images. Interdiscip Sci Comput Life Sci 13:103–117
Roberts M, Driggs D, Thorpe M, Gilbey J, Yeung M, Ursprung S, Aviles-Rivero AI, Etmann C, McCague C, Beer L, Weir-McCall JR, Teng Z, Gkrania-Klotsas E, Rudd JHF, Sala E, Schönlieb C-B (2021) Common pitfalls and recommendations for using machine learning to detect and prognosticate for COVID-19 using chest radiographs and CT scans. Nat Mach Intell 3:199–217
Schiaffino S, Tritella S, Cozzi A, Carriero S, Blandi L, Ferraris L, Sardanelli F (2020) Diagnostic performance of chest X-ray for COVID-19 pneumonia during the SARS-CoV-2 pandemic in Lombardy, Italy. J Thorac Imag 35:W105–W106
Sheikhi F, Alipour S (2021) A geometric algorithm for fault-tolerant classification of COVID-19 infected people. In 2021 26th International Computer Conference, Computer Society of Iran (CSICC), pp 1–5
Sheikhi F, Kowsari Z (2023) Time series forecasting of COVID-19 infections and deaths in alpha and delta variants using LSTM networks. To appear in PLOS ONE
Sheikhi F, Yousefian N, Tehranipoor P, Kowsari Z (2022) Estimation of the basic reproduction number of alpha and delta variants of COVID-19 pandemic in Iran. PLOS ONE 17(5):e0265489
Stevens BJ (2021) Reporting radiographers’ interpretation and use of the British society of thoracic imaging’s coding system when reporting COVID-19 chest x-rays. Radiography 27:90–94
Suresh A, Shunmuganathan KL (2013) Feature fusion technique for colour texture classification system based on gray level co-occurrence matrix. J Comput Sci 8(12):2106–2111
Thompson NC, Greenewald KH, Lee K, Manso GF (2020) The computational limits of deep learning. CoRR, abs/2007.05558
Touvron H, Cord M, Douze M, Massa F, Sablayrolles A, Jégou H (2021) Training data-efficient image transformers & distillation through attention. arXiv:2012.12877v2
Ukwuoma CC,Qin Z, Belal Bin Heyat M, Akhtar F, Bamisile O, Muaad AY, Addo D, Al-antari MA (2022) A hybrid explainable ensemble transformer encoder for pneumonia identification from chest X-ray images. J Adv Res 48:191–211
Ukwuoma CC, Qin Z, Heyat MBB, Akhtar F, Smahi A, Jackson JK, Furqan Qadri S, Muaad AY, Monday HN, Nneji GU (2022) Automated lung-related pneumonia and COVID-19 detection based on novel feature extraction framework and vision transformer approaches using chest X-ray images. Bioengineering, 9(11)709
van der Walt S, Schönberger JL, Nunez-Iglesias J, Boulogne F, Warner JD, Yager N, Gouillart E, Scikit-image TYu (2014) Image processing in python. PeerJ 2:e453
Varela-Santos S, Melin P (2021) A new approach for classifying coronavirus COVID-19 based on its manifestation on chest X-rays using texture features and neural networks. Inf Sci 545:403–414
Verna R, Alallon W, Murakami M, Hayward CPM, Harrath AH, Alwasel SH, Sumita NM, Alatas O, Fedeli V, Sharma P, Fuso A, Capuano DM, Capalbo M, Angeloni A, Bizzarri M (2021) Analytical performance of COVID-19 detection methods (RT-PCR): scientific and societal concerns. Life 11(7):660
Wang L, Lin ZQ, Wong A (2020) COVID-Net: a tailored deep convolutional neural network design for detection of COVID-19 cases from chest X-ray images. Sci Rep 10(19549):1–2
Yang D, Martinez C, Visuña L, Khandhar H, Bhatt C, Carretero J (2021) Detection and analysis of COVID-19 in medical images using deep learning techniques. Sci Rep Nat 11(1):19638
Acknowledgements
The authors would like to express their gratitude to the anonymous reviewers for the valuable comments.
Funding
No funding was received for conducting this study.
Author information
Authors and Affiliations
Contributions
Conceptualization, supervision, methodology, formal analysis, writing-original draft, writing-review & editing: FS; Writing-original draft, writing-review & editing, software, formal analysis, and investigation: AT; Software, formal analysis, investigation, and writing the first draft: DM; Software, formal analysis, investigation, writing the first draft, and reviewing-original draft: HR; Formal analysis, investigation, and writing the first draft: HD; Formal analysis, investigation, and writing the first draft: MG. All authors have read and agreed to this version of the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors have no competing interests to declare that are relevant to the content of this article.
Ethical approval
Not applicable.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Sheikhi, F., Taghdiri, A., Moradisabzevar, D. et al. Automatic detection of COVID-19 and pneumonia from chest X-ray images using texture features. J Supercomput 79, 21449–21473 (2023). https://doi.org/10.1007/s11227-023-05452-4
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11227-023-05452-4