dos Santos Silva, Bruno RiccelliBruno Riccellidos Santos SilvaCesar Cortez, PauloPauloCesar CortezGomes Aguiar, RafaelRafaelGomes AguiarRodrigues Ribeiro, TulioTulioRodrigues RibeiroPereira Teixeira, AlexandreAlexandrePereira TeixeiraBernardo Gois, Francisco NauberFrancisco NauberBernardo GoisLobo Marques, Joao AlexandreJoao AlexandreLobo Marques2024-04-022024-04-022023978-3-031-30788-1https://dspace.usj.edu.mo/handle/123456789/5672The gold standard to detect SARS-CoV-2 infection consider testing methods based on Polymerase Chain Reaction (PCR). Still, the time necessary to confirm patient infection can be lengthy, and the process is expensive. On the other hand, X-Ray and CT scans play a vital role in the auxiliary diagnosis process. Hence, a trusted automated technique for identifying and quantifying the infected lung regions would be advantageous. Chest X-rays are two-dimensional images of the patient’s chest and provide lung morphological information and other characteristics, like ground-glass opacities (GGO), horizontal linear opacities, or consolidations, which are characteristics of pneumonia caused by COVID-19. But before the computerized diagnostic support system can classify a medical image, a segmentation task should usually be performed to identify relevant areas to be analyzed and reduce the risk of noise and misinterpretation caused by other structures eventually present in the images. This chapter presents an AI-based system for lung segmentation in X-ray images using a U-net CNN model. The system’s performance was evaluated using metrics such as cross-entropy, dice coefficient, and Mean IoU on unseen data. Our study divided the data into training and evaluation sets using an 80/20 train-test split method. The training set was used to train the model, and the evaluation test set was used to evaluate the performance of the trained model. The results of the evaluation showed that the model achieved a Dice Similarity Coefficient (DSC) of 95%, Cross entropy of 97%, and Mean IoU of 86%.enLung Segmentation of Chest X-Rays Using Unet Convolutional NetworksBook Section