Submitted:
15 November 2024
Posted:
19 November 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction

2. Methods
2.1. Neural Network Architecture
2.2. Dataset
2.3. Neural Network Input Data
2.4. Neural Network Output Data
2.4.1. Labelling Tools
2.4.1.1. Pleural Line Labelling
2.4.1.2. A-Line Labelling
2.4.1.3. B-Lines Labelling
2.4.1.4. Consolidation Labelling
2.4.2. CNN Output
2.5. Training
2.6. Validation
2.7. Implementation of the Solution
2.8. Main Process
2.9. Real-Time Computing Process
2.9.1. Pre-Processing Block
2.9.2. Model Prediction
2.9.3. Post-Processing Block
2.10. Communication Between Processes
2.11. Visualization
3. Results
3.1. Model Results

3.2. Real-Time Implementation Results
4. Discussion
5. Conclusions
Acknowledgments
References
- Ferreiro Gómez M, Dominguez Pazos SJ. The Role of Lung Ultrasound in the Management of Respiratory Emergencies. Open Respir Arch. 2022 Sep 13;4(4):100206. [CrossRef] [PubMed] [PubMed Central]
- Hansell L, Milross M, Delaney A, Tian DH, Rajamani A, Ntoumenopoulos G. Barriers and facilitators to achieving competence in lung ultrasound: A survey of physiotherapists following a lung ultrasound training course. Aust Crit Care. 2023 Jul;36(4):573-578. Epub 2022 Jun 7. [CrossRef] [PubMed]
- G. Soldati, A. Smargiassi, L. Demi, and R. Inchingolo, “Artifactual lung ultrasonography: It is a matter of traps, order, and disorder,” Applied Sciences, vol. 10, no. 5, p. 1570, Feb 2020. [CrossRef]
- Bhoil R, Ahluwalia A, Chopra R, Surya M, Bhoil S. Signs and lines in lung ultrasound. J Ultrason. 2021 Aug 16;21(86):e225-e233. Epub 2021 Sep 9. [CrossRef] [PubMed] [PubMed Central]
- Tung-Chen, Y.; Martí de Gracia, M.; Díez-Tascón, A.; Alonso-González, R.; Agudo-Fernández, S.; Parra-Gordo, M.L.; Ossaba-Vélez, S.; Rodríguez-Fuertes, P.; Llamas-Fuentes, R. Correlation between chest computed tomography and lung ultrasonography in patients with coronavirus disease 2019 (COVID-19). Ultrasound. Med. Biol. 2020, 46, 2918–2926. [CrossRef]
- Vieillard-Baron A, Goffi A, Mayo P. Lung ultrasonography as an alternative to chest computed tomography in COVID-19 pneumonia? Intensive Care Med. 2020 Oct;46(10):1908-1910. Epub 2020 Aug 25. [CrossRef] [PubMed] [PubMed Central]
- Demi, L., Wolfram, F., Klersy, C., De Silvestri, A., Ferretti, V.V., Muller, M., Miller, D., Feletti, F., Wełnicki, M., Buda, N., Skoczylas, A., Pomiecko, A., Damjanovic, D., Olszewski, R., Kirkpatrick, A.W., Breitkreutz, R., Mathis, G., Soldati, G., Smargiassi, A., Inchingolo, R. and Perrone, T. (2023), New International Guidelines and Consensus on the Use of Lung Ultrasound. J Ultrasound Med, 42: 309-344. [CrossRef]
- Gil-Rodríguez J, Pérez de Rojas J, Aranda-Laserna P, Benavente-Fernández A, Martos-Ruiz M, Peregrina-Rivas JA, Guirao-Arrabal E. Ultrasound findings of lung ultrasonography in COVID-19: A systematic review. Eur J Radiol. 2022 Mar;148:110156. Epub 2022 Jan 20. [CrossRef] [PubMed] [PubMed Central]
- Amisha, Malik P, Pathania M, Rathaur VK. Overview of artificial intelligence in medicine. J Family Med Prim Care. 2019 Jul;8(7):2328-2331. [CrossRef] [PubMed] [PubMed Central]
- Mento, F.; Perrone, T.; Fiengo, A.; Smargiassi, A.; Inchingolo, R.; Soldati, G.; Demi, L. Deep learning applied to lung ultrasoundvideos for scoring COVID-19 patients: A multicenter study. J. Acoust. Soc. Am. 2021, 149, 3626–3634. [CrossRef]
- Khan, U.; Afrakhteh, S.; Mento, F.; Mert, G.; Smargiassi, A.; Inchingolo, R.; Tursi, F.; Macioce, V.; Perrone, T.; Iacca, G.; Demi, L. (2023). Low-complexity lung ultrasound video scoring by means of intensity projection-based video compression. Computers in Biology and Medicine. 169. 107885. [CrossRef]
- Barros B, Lacerda P, Albuquerque C, Conci A. Pulmonary COVID-19: Learning Spatiotemporal Features Combining CNN and LSTM Networks for Lung Ultrasound Video Classification. Sensors. 2021; 21(16):5486. [CrossRef]
- Kerdegari, H.; Phung, N.T.H.; McBride, A.; Pisani, L.; Nguyen, H.V.; Duong, T.B.; Razavi, R.; Thwaites, L.; Yacoub, S.; Gomez, A.; et al. B-Line Detection and Localization in Lung Ultrasound Videos Using Spatiotemporal Attention. Appl. Sci. 2021, 11, 11697. [CrossRef]
- Lucassen, R. T., Jafari, M. H., Duggan, N. M., Jowkar, N., Mehrtash, A., Fischetti, C., Bernier, D., Prentice, K., Duhaime, E. P., Jin, M., Abolmaesumi, P., Heslinga, F. G., Veta, M., Duran-Mendicuti, M. A., Frisken, S., Shyn, P. B., Golby, A. J., Boyer, E., Wells, W. M., … Kapur, T. (2023). Deep Learning for Detection and Localization of B-Lines in Lung Ultrasound. IEEE Journal of Biomedical and Health Informatics, 27(9), 4352–4361. [CrossRef]
- R. J. G. van Sloun and L. Demi, "Localizing B-Lines in Lung Ultrasonography by Weakly Supervised Deep Learning, In-Vivo Results," in IEEE Journal of Biomedical and Health Informatics, vol. 24, no. 4, pp. 957-964, April 2020. [CrossRef]
- Howell, L., Ingram, N., Lapham, R., Morrell, A., & McLaughlan, J. R. (2024). Deep learning for real-time multi-class segmentation of artefacts in lung ultrasound. Ultrasonics, 107251. [CrossRef]
- Ronneberger, O., Fischer, P. and Brox, T., 2015. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18 (pp. 234-241). Springer International Publishing. [CrossRef]
- https://github.com/karolzak/keras-unet/tree/master.
- Oktay, O., Schlemper, J., Folgoc, L.L., Lee, M., Heinrich, M., Misawa, K., Mori, K., McDonagh, S., Hammerla, N.Y., Kainz, B. and Glocker, B., 2018. Attention u-net: Learning where to look for the pancreas. arXiv preprint arXiv:1804.03999.
- Camacho, J.; Muñoz, M.; Genovés, V.; Herraiz, J.L.; Ortega, I.; Belarra, A.; González, R.; Sánchez, D.; Giacchetta, R.C.; Trueba- Vicente, Á.; Tung-Chen, Y. Artificial Intelligence and Democratization of the Use of Lung Ultrasound in COVID-19: On the Feasibility of Automatic Calculation of Lung Ultrasound Score. Int. J. Transl. Med. 2022, 2, 17-25. [CrossRef]
- Tung-Chen Y, Ossaba-Vélez S, Acosta Velásquez KS, Parra-Gordo ML, Díez-Tascón A, Villén-Villegas T, Montero-Hernández E, Gutiérrez-Villanueva A, Trueba-Vicente Á, Arenas-Berenguer I, Martí de Gracia M. The Impact of Different Lung Ultrasound Protocols in the Assessment of Lung Lesions in COVID-19 Patients: Is There an Ideal Lung Ultrasound Protocol? J Ultrasound. 2022 Sep;25(3):483-491. Epub 2021 Dec 2. [CrossRef] [PubMed] [PubMed Central]
- C. Fritsch, J. Camacho, A. Ibañez, J. Brizuela, R. Giacchetta, R. González, A Full Featured Ultrasound NDE System in a Standard FPGA, European Congress on Non-Destructive Testing (ECNDT), 2006, ISBN 3-931381-86-2.
- B.D. Lucas, T. Kanade,” An Image Registration Technique with an Application to Stereo Vision”, in Proceedings of Image Understanding Workshop, 1981, pp. 121-130.
- Optical flow measurement using Lucas-Kanade method, Dhara Patel, Saurabh Upadhyay, International Journal of Computer Applications (0975-887), vol. 61, January 2013.
- F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and É. Duchesnay. 2011. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 12, null (2/1/2011), 2825–2830.
- Abiodun M. Ikotun, Absalom E. Ezugwu, Laith Abualigah, Belal Abuhaija, Jia Heming, K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data, Information Sciences, Volume 622, 2023, Pages 178-210, ISSN 0020-0255. [CrossRef]
- https://pyqtgraph.readthedocs.io/en/latest/getting_started/introduction.html.
- https://docs.python.org/3/library/multiprocessing.html.
- G.A. Gordon, S. Canumalla, B.R. Tittmann, Ultrasonic C-scan imaging for material characterization, Ultrasonics, Volume 31, Issue 5, 1993, Pages 373-380, ISSN 0041-624X. [CrossRef]
- Herraiz JL, Freijo C, Camacho J, Muñoz M, González R, Alonso-Roca R, Álvarez-Troncoso J, Beltrán-Romero LM, Bernabeu-Wittel M, Blancas R, et al. Inter-Rater Variability in the Evaluation of Lung Ultrasound in Videos Acquired from COVID-19 Patients. Applied Sciences. 2023; 13(3):1321. [CrossRef]












| Metric | Artifact | |||||||
|---|---|---|---|---|---|---|---|---|
| Pleura | Consolidation | B-line | A-line | |||||
| Mean | Std | Mean | Std | Mean | Std | Mean | Std | |
| Dice coefficient | 0.83 | 0.08 | 0.96 | 0.17 | 0.87 | 0.30 | 0.62 | 0.40 |
| IoU | 0.72 | 0.11 | 0.95 | 0.18 | 0.84 | 0.30 | 0.56 | 0.40 |
| Recall | 0.86 | 0.10 | 0.97 | 0.12 | 0.94 | 0.17 | 0.78 | 0.33 |
| Precision | 0.81 | 0.11 | 0.97 | 0.14 | 0.88 | 0.28 | 0.69 | 0.39 |
| Artifact | Pleura | Consolidation | B-line | A-line |
|---|---|---|---|---|
| F1-score | 0.83 | 0.97 | 0.91 | 0.73 |
| Metric | Artifact | |||||||
|---|---|---|---|---|---|---|---|---|
| Pleura | Consolidation | B-line | A-line | |||||
| Mean | Std | Mean | Std | Mean | Std | Mean | Std | |
| Dice coefficient | 0.77 | 0.13 | 0.85 | 0.34 | 0.62 | 0.41 | 0.48 | 0.41 |
| IoU | 0.64 | 0.15 | 0.84 | 0.35 | 0.58 | 0.42 | 0.42 | 0.40 |
| Recall | 0.78 | 0.17 | 0.88 | 0.31 | 0.81 | 0.31 | 0.59 | 0.41 |
| Precision | 0.79 | 0.15 | 0.95 | 0.20 | 0.70 | 0.40 | 0.64 | 0.40 |
| Artifact | Pleura | Consolidation | B-line | A-line |
|---|---|---|---|---|
| F1-score | 0.78 | 0.91 | 0.75 | 0.61 |
| Consolidations | B-lines | A-lines | |
|---|---|---|---|
| Accuracy (%) | 97.81 | 88.74 | 65.79 |
| False positives (%) | 0.44 | 4.09 | 23.54 |
| False negatives (%) | 1.75 | 7.16 | 10.67 |
| Consolidations | B-lines | A-lines | |
|---|---|---|---|
| Accuracy (%) | 89.29 | 92.86 | 66.07 |
| False positives (%) | 3.57 | 1.79 | 26.79 |
| False negatives (%) | 7.14 | 5.36 | 7.14 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).