Skip to main content

COVID-19 Lung Image Classification Based on Logistic Regression and Support Vector Machine

  • Conference paper
  • First Online:
Artificial Intelligence Systems and the Internet of Things in the Digital Era (EAMMIS 2021)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 239))

Abstract

COVID-19 is an infectious disease caused by SARS-Cov2 that has spread rapidly worldwide. According to the World Health Organization (WHO), the total cases of 4374783839 are reported from different countries. In this consequence, it is necessary to diagnose automatically COVID-19, which helps in prevention during spreading among people. In this study, we have used machine learning techniques to diagnose and classify the COVID-19 and normal patients from chest X-ray images using a machine learning technique. The proposed system involves pre-processing, feature extraction, and classification. In the pre-processing, the image is to enhance and improve the contrast. In the feature extraction, the Histogram of Oriented Gradients has been applied to extract the image's feature. Finally, in classification two different machine learning techniques (Support Vector Machine and Logistic Regression) have been used to classify COVID-19 and normal patients. The result analysis shows that the SVM achieved the highest accuracy of 96% and provide a better result than logistic regression (92% accuracy).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Yan, L., Zhang, H.T., Xiao, Y., Wang, M., Guo, Y., Sun, C., Tang, X., Jing, L., Li, S., Zhang, M., Xiao, Y., Cao, H., Chen, Y., Ren, T., Jin, J., Wang, F., Xiao, Y., Huang, S., Tan, X., Huang, N., Jiao, B., Zhang, Y., Luo, A., Cao, Z., Xu, H. Yuan, Y.: Prediction of criticality in patients with severe Covid-19 infection using three clinical features: a machine learning-based prognostic model with clinical data in Wuhan. MedRxiv (2020)

    Google Scholar 

  2. Lupia, T., Scabini, S., Pinna, S.M., Di Perri, G., De Rosa, F.G., Corcione, S.: 2019-novel coronavirus outbreak: a new challenge. J. Global Antimicrob. Resist. 21, 22–27 (2020)

    Article  Google Scholar 

  3. Here’s what coronavirus does to the body. https://www.nationalgeographic.com/science/2020/02/here-is-what-coronavirus-does-to-the-body/ (2021). Retrieved 19 Jan 2021

  4. Coronavirus. https://www.who.int/health-topics/coronavirus/coronavirus (2021). Retrieved 19 Jan 2021

  5. Huang, C., Wang, Y., Li, X., Ren, L., Zhao, J., Hu, Y., Zhang, J., Hu, J., Zhang, L., Fan, G., Xu, J., Gu, X., Cheng, Z., Yu, T., Cao, B.: Clinical features of patients infected with 2019 novel coronavirus in Wuhan. China. The Lancet 395(10223), 497–506 (2020)

    Article  Google Scholar 

  6. Coronavirus Disease 2019 (COVID-19). https://www.cdc.gov/coronavirus/2019-ncov/cdcresponse/about-COVID-19.html (2021). Retrieved 19 Jan 2021

  7. Q&A: How is COVID-19 transmitted? https://www.who.int/vietnam/news/detail/14-07-2020-q-a-how-is-covid-19-transmitted (2021). Retrieved 19 Jan 2021

  8. https://www.who.int/docs/default-source/coronaviruse/situation-reports/20200311-sitrep-51-covid-19.pdf?sfvrsn=1ba62e57_10 (2021). Retrieved 19 Jan 2021

  9. WHO Coronavirus Disease (COVID-19) Dashboard data explorer. https://covid19.who.int/explorer/ (2021). Retrieved 19 Jan 2021

  10. Punn, N.S., Sonbhadra, S.K., Agarwal, S.: COVID-19 epidemic analysis using machine learning and deep learning algorithms. medRxiv (2020)

    Google Scholar 

  11. Khanday, A.M.U.D., Rabani, S.T., Khan, Q.R., Rouf, N., Din, M.M.U.: Machine learning based approaches for detecting COVID-19 using clinical text data. Int. J. Inf. Technol. 12(3), 731–739 (2020)

    Google Scholar 

  12. Yadav, M., Perumal, M., Srinivas, M.: Analysis on novel coronavirus (COVID-19) using machine learning methods. Chaos, Solitons Fractals 139, 110050 (2020)

    Article  MathSciNet  Google Scholar 

  13. Sethy, P.K., Behera, S.K.: Detection of coronavirus disease (covid-19) based on deep features. Preprints, 2020030300, 2020 (2020)

    Google Scholar 

  14. Barstugan, M., Ozkaya, U., Ozturk, S. Coronavirus (covid-19) classification using ct images by machine learning methods. arXiv preprint arXiv:2003.09424 (2020)

  15. Zheng, C., Deng, X., Fu, Q., Zhou, Q., Feng, J., Ma, H., Wang, X.: Deep learning-based detection for COVID-19 from chest CT using weak label. medRxiv (2020)

    Google Scholar 

  16. Ferrari, D., Milic, J., Tonelli, R., Ghinelli, F., Meschiari, M., Volpi, S., Guaraldi, G.: Machine learning in predicting respiratory failure in patients with COVID-19 pneumonia-challenges, strengths, and opportunities in a global health emergency. medRxiv (2020)

    Google Scholar 

  17. Afshar, P., Heidarian, S., Naderkhani, F., Oikonomou, A., Plataniotis, K.N., Mohammadi, A.: Covid-caps: a capsule network-based framework for identification of covid-19 cases from x-ray images. arXiv preprint arXiv:2004.02696 (2020)

  18. Li, W.T., Ma, J., Shende, N., Castaneda, G., Chakladar, J., Tsai, J.C., Ongkeko, W.M.: Using machine learning of clinical data to diagnose COVID-19: a systematic review and meta-analysis. BMC Med. Inform. Decision Mak. 20(1), 1–13 (2020)

    Article  Google Scholar 

  19. Razzak, I., Naz, S., Rehman, A., Khan, A., Zaib, A.: Improving Coronavirus (COVID-19) diagnosis using deep transfer learning. medRxiv (2020)

    Google Scholar 

  20. Ahamad, M.M., Aktar, S., Rashed-Al-Mahfuz, M., Uddin, S., Liò, P., Xu, H., Moni, M.A.: A machine learning model to identify early-stage symptoms of SARS-Cov-2 infected patients. Expert Syst. Appl. 160, 113661 (2020)

    Article  Google Scholar 

  21. Pinter, G., Felde, I., Mosavi, A., Ghamisi, P., Gloaguen, R.: COVID-19 pandemic prediction for hungary; a hybrid machine learning approach. Mathematics 8(6), 890 (2020)

    Article  Google Scholar 

  22. Sujath, R., Chatterjee, J.M., Hassanien, A.E.: A machine learning forecasting model for COVID-19 pandemic in India. Stoch. Env. Res. Risk Assess. 34, 959–972 (2020)

    Article  Google Scholar 

  23. Ahmad, A., Garhwal, S., Ray, S.K., Kumar, G., Malebary, S.J., Barukab, O.M.: The number of confirmed cases of covid-19 by using machine learning: methods and challenges. Arch. Comput. Methods Eng., 1–9 (2020)

    Google Scholar 

  24. Khan, N., Ullah, F., Hassan, M.A., Hussain, A.: COVID-19 classification based on Chest X-Ray images using machine learning techniques. J. Comput. Sci. Technol. Stud. 01–11 (2020)

    Google Scholar 

  25. Search | Kaggle. https://www.kaggle.com/search?q=covid+19+dataset+datasetFilTypes%3Apng+datasetFileTypes%3Ajpg+datasetFileTypes%3Ajpeg (2021). Retrieved 19 Jan 2021

  26. Chettri, S., Debnath, D., Devi, P.: Leveraging digital tools and technologies to alleviate COVID-19 pandemic. SSRN Electron. J. (2020). https://doi.org/10.2139/ssrn.3626092

    Article  Google Scholar 

  27. Abbas, A., Abdelsamea, M., Gaber, M.: Classification of COVID-19 in chest X-ray images using DeTraC deep convolutional neural network. Appl. Intell. 51(2), 854–864 (2020). https://doi.org/10.1007/s10489-020-01829-7

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Nazish, Ullah, S.I., Salam, A., Ullah, W., Imad, M. (2021). COVID-19 Lung Image Classification Based on Logistic Regression and Support Vector Machine. In: Musleh Al-Sartawi, A.M., Razzaque, A., Kamal, M.M. (eds) Artificial Intelligence Systems and the Internet of Things in the Digital Era. EAMMIS 2021. Lecture Notes in Networks and Systems, vol 239. Springer, Cham. https://doi.org/10.1007/978-3-030-77246-8_2

Download citation

Publish with us

Policies and ethics