Journal of Applied Engineering and Technological Science Vol 6. 2025: 1197-1214 Determination Of Covid-19 Pulmonary Infection Rate From X-Ray Images Using U-Net Model Mohammed S. Al-Tamimi1*. Hadeel Jabar2. Husam Ali Abdulmohsin3. Farah khiled AL-Jibory4 Computer Science Department. College of Science. University of Baghdad. Baghdad. Iraq 123 Ministry of Education. Karkh First Directorate of Education. Baghdad. Iraq 4 s@sc. iq1, hadeel. jriash@sc. Husam. a@sc. iq3, csd1b0037@gmail. Received: 04 December 2024. Revised: 02 April 2025. Accepted: 13 April 2025 *Corresponding Author ABSTRACT Global health has suffered by millions of COVID-19 infections and fatalities. Pneumonia and ARDS are major consequences of this viral infection. Patient treatment and resource allocation depend on accurate lung infection rates. Reverse transcription polymerase chain reaction (RT-PCR) is highly specific but lacks sensitivity, especially in early infection. Thus, imaging, particularly chest X-rays, is crucial for detecting and monitoring COVID-19-related pulmonary problems. Among various image processing techniques, deep learning methods, especially U-net models, have shown promising results in segmenting and analyzing X-ray images to determine the extent of lung infection. This article explores the importance of imaging techniques in diagnosing COVID-19 lung infection, provides an overview of the U-Net model in medical imaging, and describes in detail the method of using this complex model to determine infection rates from radiographs. This study discusses the diagnosis of coronavirus infection, i. whether a person is infected or not, and determines the infection rate . that mean the percentage of virus in the lungs was calculated based on a global radiograph (X-ra. dataset to study the infection, infection rate, and diagnosis by specialists using a pre-trained model (U-Net mode. The results obtained were 97% accurate in diagnosing whether a patient was infected with the virus or not. Keywords: COVID-19. Diagnosis. Severity. Data. Squeeze Net Model. Introduction In 2019, a pneumonia outbreak occurred. Epidemiological studies have shown an association between the Huanan Seafood Wholesale Market and an epidemic of pneumonia A new respiratory virus was discovered by inhalation of material from human lung cell lines, particularly the Verda Reno cell lines (Vero E6 and Huh. (X. Jiang et al. , 2. Analysis of the viral genome showed that it was a newly discovered coronavirus, closely related to SARS-CoV(Kovycs et al. , 2. As a result of subsequent discoveries, the virus was named severe acute respiratory syndrome coronavirus. Due to the large number of deaths caused by Covid-19 and the widespread spread of the virus, it has become a high risk. On March 12, 2020, the World Health Organization officially declared a global pandemic (Xu et al. , 2. The outbreak has had a serious impact on the world, especially the loss of life, economic impact, and high poverty rates. Pneumonia is the main clinical manifestsation of COVID-19, which is associated with SARS-CoV-2 and helps in case detection (Mehraeen et al. , 2. Recently, there has been an increase in gastrointestinal symptoms and asymptomatic infections, especially in young children. The average incubation period appears to be 5 to 7 days, while the median incubation period is 3 days . ange 0 to 24 days (Al Jibory et al. , 2. This information is based on observations to date. It is not yet clear what percentage of people infected with Covid-19 will remain asymptomatic throughout their illness(Mehboob et al. , 2. Clinical manifestations of the disease include upper respiratory tract infection symptoms such as fever, cough, nasal congestion, and fatigue, which usually occur within a week of the patient's first symptoms of the disease(Sufian et al. , 2. Severe illness may present with difficulty breathing and severe chest symptoms . uggesting pneumoni. The second or third week after infection is usually when pneumonia symptoms become severe and severe. hiled AL-Jibory et al. , 2. Early symptoms of viral pneumonia include decreased oxygen saturation, changes in blood gas levels, and changes on chest X-rays and other imaging tests. Changes include changes in ground-glass Al-Tamimi et al A Vol 6. 2025: 1197-1214 opacity, scattered consolidation, fluid accumulation within the alveoli, and demarcation of the interlobular spaces(Al Jibory et al. , 2. All of these indicate that the patient is getting worse. Changes in blood pressure are another sign. All these symptoms can be avoided by early detection. X-ray is one of the most cost-effective methods of medical imaging procedures, and is adopted due to its reasonable price and diagnostic accuracy, since through X-ray it is possible to detect the presence of pneumonia, even at the beginning of symptoms or in the early stages (Slika et al. , 2. Therefore, due to the rapid development of technology worldwide, developed countries have turned to the use of artificial intelligence to determine the infection rate through algorithms designed to determine the presence of infection, and it is possible to determine the infection rate. Because this epidemic has completely changed the characteristics and development trends of the earth and the security of world information maintenance. People are protected from infection(Mijwil et al. , 2. In recent years, deep learning has revolutionized medical imaging, particularly in identifying COVID-19 from chest X-rays and CT scans. Numerous studies have demonstrated the effectiveness of convolutional neural networks (CNN. and other deep learning models in identifying COVID-19 infections. Several researchers have proposed a deep learning methodology that uses convolutional neural networks to classify chest X-rays into COVID-19 and non-COVID-19 categories, achieving high accuracy(Talukder et al. , 2. A CNN model has been specifically used to identify COVID19 pneumonia from X-rays, demonstrating the effectiveness of deep learning models for rapid and reliable diagnosis, especially in resource-limited settings(Kashyap et al. , 2. Despite the encouraging results, these studies often face several problems, including limited dataset size, model overfitting, and difficulties in generalizing across diverse populations. Although many models focus primarily on binary classification (COVID-19 vs. non-COVID-. , few address infection severity, which is fundamental for patient management and clinical decision-making. Recent developments have sought to mitigate these limitations by applying transfer learning techniques and leveraging larger datasets, with a focus on models such as U-Net for segmenting and quantifying infection severity(Kashyap et al. , 2. These initiatives underscore the growing importance of AI and deep learning in the early detection and management of COVID19, providing potential solutions to the urgent demand for rapid and accurate diagnostic tools during the pandemic. In this paper. This study presents an innovative technique utilizing a pretrained U-Net model to analyze chest X-rays for the detection and assessment of pneumonia associated with COVID-19, diverging from prior research that primarily concentrated on binary classification . neumonia vs. non-pneumoni. and utilized limited datasets, such as chest Xrays. Prior research has demonstrated encouraging outcomes utilizing deep learning for COVID-19 identification (Wang et al. , 2020. Zhang et al. , 2. nevertheless, numerous models experience overfitting challenges attributable to limited and imbalanced datasets. The severity of infection is crucial for patient treatment and prognosis, however it is frequently Our research fills this gap by utilizing an extensive worldwide dataset and comprehensive infection severity evaluations, proposing a dual strategy encompassing infection detection and severity assessment. Medical Image Types and deep learning methods Medical imaging refers to the process and methodology of capturing images inside the body for clinical examination and medical treatment It also allows for visual depiction of the operation of certain organs or tissues . The medical imaging aims to unveil underlying structures obscured by the skin and bones, as well as to diagnose and treat illnesses. Medical imaging also creates a repository of typical anatomical and physiological data, enabling the detection of anomalie. (Alia et al. , 2. While it is possible to do medical imaging of extracted organs and tissues for diagnostic purposes. Table 1 summarized Difference Types of Medical Image that is commonly used in diagnosing lung diseases. Al-Tamimi et al A Type X-RAY CT SCAN MRI Ultra sound Nuclear Vol 6. 2025: 1197-1214 Table 1 - Summarized Difference Types of Medical Image Description Image One type of ionizing radiation that can enter the human body is X-rays. The most common and traditional type of medical imaging is X-rays, utilized to generate images of bones, teeth, and other solid tissues. They are relatively affordable and straightforward to execute. Nevertheless, their capability is limited to generating visual representations of compact tissues, such as bones and teeth(Chen et al. , 2. The computed axial tomography scan or CAT scan (CT) scans are costlier than X-rays, although they have the capability to generate far more intricate images of the internal structures of the body. They are frequently employed for the purpose of diagnosing cancer, heart disease, and various other medical disorders (Xu et al. , 2. CT scans employ X-rays to create complete images of the body's interior structures. They are frequently employed for the purpose of diagnosing cancer, heart disease, and various other medical disorders(Qadir et al. , 2. Magnetic Resonance Imaging (MRI) employs magnetic fields and radio waves to generate visual representations of the internal structures of the human body. They are frequently employed for the purpose of diagnosing soft tissue ailments, such as torn ligaments or herniated discs. Magnetic Resonance Imaging (MRI) is the costliest form of medical imaging Nevertheless, they possess the ability to generate highly intricate visual representations of the inside structures of the body, encompassing delicate tissues. Magnetic resonance imaging (MRI) is frequently employed for the purpose of diagnosing brain cancers, spinal cord injuries, and various other medical disorders(Al-Tamimi & Sulong, 2. Ultrasound is a secure and non-invasive form of medical imaging commonly employed for pregnancy diagnosis and fetal development monitoring. Additionally, it can be utilized to scrutinize inside organs, including the liver, kidneys, and uterus. Furthermore. Acoustic waves are used in ultrasound to create visual depictions of the body's internal systems. It is frequently employed for the purpose of diagnosing pregnancy, monitoring fetal development, and examining internal organs (Gayathri et , 2. Nuclear medicine use radioactive tracers to generate internal body imaging. It is frequently employed for the purpose of diagnosing cancer, heart disease, and various other medical Furthermore Nuclear medicine use radioactive tracers to generate internal body imaging. The tracers are administered intravenously and subsequently absorbed by targeted tissues. The tracers release radiation that is detectable by a specialized Nuclear medicine is frequently employed for the purpose of diagnosing cancer, cardiovascular disease, and various other medical disorders(Seibert & Boone, 2. There are several different kinds of deep learning models used to identify pneumonia. pint gives a quick summary of them, along with their advantages and disadvantages. Eo Convolutional neural networks (CNN. are extensively employed for pneumonia detection in chest X-rays. They can effectively extract features and classify photos with considerable Nonetheless. CNNs are susceptible to overfitting when trained on limited datasets and frequently struggle to generalize across diverse populations. They also exhibit a deficiency in interpretability, complicating physicians' comprehension of modeling Eo U-Net is a deep learning architecture specifically designed for image segmentation, demonstrating high efficacy in identifying and delineating pneumonia zones in X-ray The U-Net model, while exhibiting precise localization capabilities, is fundamentally intended for segmentation tasks. Al-Tamimi et al A Vol 6. 2025: 1197-1214 Eo ResNet . esidual networ. incorporates a deeper architecture with skip connections to enhance feature extraction and model resilience. It is adept at handling extensive datasets and intricate features. yet, it demands substantial processing resources, rendering it inappropriate for real-time applications. Moreover, it may experience overfitting issues when trained on tiny or imbalanced datasets. Eo VGGNet is recognized for its profound architecture utilizing a compact 3x3 filter for pneumonia detection in chest X-rays. It has robust efficacy in classification tasks. nevertheless, it is computationally intensive and not tailored for medical imaging, rendering it less appropriate for real-time applications. Eo DenseNet interlinks every layer, enhancing feature reutilization and attaining superior performance with a reduced number of parameters. Nonetheless. DenseNet models are resource-intensive and may exhibit suboptimal performance on limited datasets, constraining their applicability in clinical environments. Eo XceptionNet employs depthwise separable convolutions to diminish computing complexity while maintaining excellent accuracy in pneumonia identification. XceptionNet necessitates extensive, high-quality datasets for optimal training and exhibits subpar performance on limited, noisy data, posing challenges in medical imaging. Eo SqueezeNet is an efficient model designed for resource-constrained environments. It is economical and performs effectively on smaller datasets. nevertheless, its accuracy is typically inferior to that of more intricate models like ResNet or DenseNet. It also exhibits subpar performance on tasks necessitating fine-grained classification. Eo YOLO (You Only Look Onc. is a real-time object detection approach utilized for pneumonia identification in chest X-rays. It facilitates rapid detection with great precision. but, it is inadequate for applications necessitating pixel-level classification or segmentation, hence constraining its utility in intricate medical diagnostics. Literature Review Were studies that had an impact by previous researchers about diagnosing the Covid virus in terms of infection, and they were studies that had an impact. Below are the most important studies that were close to the proposed work: Eo Gayathri J. L et al. (Gayathri et al. , 2. proposes a computer-aided detection technique that uses images from chest X-rays to fight the pandemic. To create the model, a number of pre-trained networks and their combinations were employed. The technique makes use of features taken from pre-trained networks, a feed forward neural network (FFNN) for COVID-19 detection, and a sparse autoencoder for dimensionality reduction. The model has been trained using two publicly accessible datasets of chest X-ray pictures, which include 504 COVID-19 images and 542 non-COVID-19 images. Eo Mohamed Loey et al. (Khalifa et al. , 2. there are two major parts to the proposed The first one learns and extracts deep features using CNN. A Bayesian-based optimizer comprises the second part, which is utilized to adjust the CNN hyperparameters based on an objective function. 10,848 photos make up the big, well-balanced dataset that was used. Eo Seyed Mohammad Jafar Jalali et al. (Dipu Kabir et al. , 2. provide a workable solution for using convolutional neural networks (CNN. to analyze chest X-ray pictures in order to diagnose COVID-19 disease to enhance the competitive swarm optimizer's basic version in order to increase accuracy and create a fresh evolutionary method. Eo Oussama Aiadi et al. (Aiadi et al. , 2. suggests using telemedicine to diagnose COVID-19 and lung disorders using a computationally quick network. Because it simultaneously encodes local binary patterns and the filter outputs of the discrete cosine transform (DCT), the proposed network is known as Deep Learning Network (DLNe. The convolution layer, which makes up the first layer in DLNet, uses DCT filters to convolve the input image. Afterward, to prevent overfitting. The process of binary hashing involves combining the output of several filters to create a distinct feature map. Eo Isaac Ariza et al , . (Ariza et al. , 2. recommended technique for identifying mental activity is provided: Using bidirectional LSTM neural networks, instantaneous frequency. Al-Tamimi et al A Vol 6. 2025: 1197-1214 spectral entropy, and Mel-frequency cepstral coefficients (MFCC) are utilized to identify EEG signals, electroencephalography (EEG) paired with deep learning is a powerful technology that lets us investigate brain activity at a high temporal resolution. Eo Somenath Chakraborty et al. (Chakraborty, 2. Chest X-ray (CXR) pictures were used to identify COVID-19 using a Deep Learning Method (DLM) for COVID-19 detection in contrast to other costly and time-consuming pathological procedures used for quick examination of CXR pictures, allowing radiologists to quickly screen possible candidates for COVID-19 detection. Table 2 summarized the above related work in topic Diagnosing Refers Gayathri J. et al. (Gayathri et , 2. Mohamed Loey et al. (Khalifa et , 2. Seyed Mohammad Jafar Jalali et (Dipu Kabir et al. , 2. Oussama Aiadi et al. (Aiadi et al. Isaac Ariza, . (Ariza et al. Somenath Chakraborty et al. (Ariza et al. Table 2 - Summary of Related Work Method Dataset Illustration CNN integration with X-ray image To create the neural COVID-19 model, a number pre-trained networks and their were employed There are two major X-ray image Compared parts to the proposed COVID-19 In the first, ablation scenarios Bayesian extracted and learned via CNN. A Bayesian-based optimizer is the second part, and it is used to CNN hyperparameters based on an objective function. 10,848 photos make up the large-scale, wellbalanced dataset that was X-ray Create a new neural image (CNN) to COVID-19 analyze the X-ray pictures of the chest swarm optimizer's rapid network for X-ray pulmonary disease and image COVID-19 detection that COVID-19 encodes the filter can be outputs of the transform (DCT) and local binary local density X-ray Electroencepha depth feature lography (EEG) nverse Path Length COVID-19 paired with deep activity with high Applied Deep COVID-19 Learning Techniques (DLM) CXR Result Accuracy= 0. F1-Score=0. Precision=0. AUC=0. Accuracy = 0. F1-Score=Not Used Precision=Not Used AUC=Not Used Accuracy = 0. Precision= 0. AUC= 0. F1 = 0. Precision = 98. Recall = 99. F-1= Not Used Accuracy = 98. Precision = 0. Recall = Not used F-1 = 0. Accuracy = Not used Precision = 0. Recall = 0. F-1= 0. Accuracy = 0. Al-Tamimi et al A Vol 6. 2025: 1197-1214 identify COVID19 Despite advances in deep learning pneumonia detection models, numerous major gaps remain in current research. First, most studies detect pneumonia or COVID-19 but not infection severity, which is crucial for patient treatment and clinical decision-making. Second, many models have short and imbalanced datasets, which cause overfitting and poor generalization, especially when tested across populations or medical imaging situations. CNNs. U-Net, and ResNet can categorize pneumonia, but they cannot estimate infection extent, which is crucial for disease development. While successful, previous models demand substantial processing power, rendering them unsuitable for real-time clinical applications, especially in resource-limited Segmentation methods like U-Net have been used to detect pneumonia in X-rays, but most studies have not integrated them with classification or severity analysis, limiting their clinical relevance. This paper proposes a complete method that detects pneumonia and scores infection severity to fill these gaps. This gives models clinical importance they lack. The work ensures model generalizability and robustness by using a larger and more diversified dataset. Pre-trained U-Net design accurately segments contaminated areas, boosting pneumonia localization and diagnostic accuracy. The model has been refined to lower computing costs, allowing quick diagnosis in resource-limited situations and boosting its application in various healthcare settings. These improvements make the suggested approach more complete, practical, and adaptable to various clinical use cases. The Proposed System Proposed an artificial intelligence system that utilizes spatially deep learning. This system employs a pre-training model and utilizes a standardized and global dataset with spatial The dataset includes images for detecting COVID-19 through X-ray scans and comma-separated values (CSV) files for assessing severity. The suggested method consists of four stages: data pruning, image pre-processing, classification for detecting COVID-19, and regression for determining severity. The final stage involves prediction. This stage involves the creation of content sub-stages that are supported by graphical interfaces designed to enhance user productivity. Figure 1. Shows the Structural of proposed system. And This study's innovation is the development of a mechanism for evaluating pneumonia severity, which has been largely neglected in prior research. Utilizing a larger and more diverse dataset improves the model's generalizability, while integrating segmentation with classification and severity analysis yields a more thorough diagnostic instrument. These enhancements render the proposed model more therapeutically practical, efficient, and resilient, particularly in real-time, resource-limited environments. Fig. Structural Of Proposed System. Al-Tamimi et al A Vol 6. 2025: 1197-1214 Based on above figure can summarized the scope of proposed approached is: Generalization across diverse populations: Eo It uses a larger and more diverse dataset, including demographic data and different severity levels, to improve model generalization. These datasets have been challenging for researchers due to their in-depth detail. Eo Data Imbalance and Limited Datasets: Eo It uses a comprehensive and balanced dataset, which reduces overfitting and enhances model This means it contains a consistent number of data points across infection and severity for fair training. Eo Interpretability and Confidence: Eo It incorporates a U-Net segmentation architecture, providing clear and interpretable visual maps of infection areas. The use of this type of model is novel in the diagnosis of multiple lung infections. Eo Severity Assessment and Disease Progression: Eo It provides a severity scoring mechanism to assess the extent of infection and support clinical decision-making. This is the most important aspect, as severity was assessed using x-ray images, an alternative to CT scans, which are expensive or more research-intensive in lung Previous studies have not focused on measuring the severity of the injury, but rather on whether the patient is infected or not. Eo Robustness to Noisy or Low-Quality Data: Eo CLAHE preprocessing is applied to improve image quality, which improves robustness to noisy data. Combining it with other techniques results in a highly effective processing Eo Model Bias and Fairness: Eo It is trained on a diverse dataset to reduce bias and ensure fair and equitable predictions across different population groups. Eo Training: Eo The most important point is that the proposed approach involves several efficient processing Two models were used, one to determine whether a patient is infected or not, and the other to assess the severity of the injury. The result is a single result similar to the medical report generated by a CT scan, which is the injury and its impact on the lung. Dataset and Pre-Processing in Proposed System In the proposed system, a data set (Covid-19 Xray Severity Scorin. was adopted, which is distinguished from others in that it contains a real infection rate diagnosed by doctors and contains infected and uninfected people of different ages of men, women and children. Table 3 showing the complete details of the approved data set that used in proposed approaches. File name Study Date File path Filename Modality Table 3 - Dataset Details Manufacturer Photometric Brixia Score Consensus Test set Interpretation sort Global sort sort DICOM Original Image Width Original ImageOverall The consensus test Photometric Height Severity set is the proper Score . lready evaluated by five radiologists rather so you do not than one elsewhere. worry about -CR SIEMENS Monochrome1 (Computed Agfa unique values Radiograph. Carestream Health Monochrome2 Carestream Health -DX Agfa-Gevaert (Digital Al-Tamimi et al A Vol 6. 2025: 1197-1214 in the proposed system, the CLAHE filter was adopted. The CLAHE filter, or Contrast Limited Adaptive Histogram Equalization, is an effective image processing technique used to improve the local contrast of the image, especially in areas with low contrast(Al-Tamimi & ALKhafaji, 2. In short, it is a filter or algorithm that works to balance the contrast of images, that is, it works. It lightens the dark area and darkens the light area, and it is based on the concept of Clip Limit Parameter (CLP). Is denoted by equation 1(Setiawan et al. , 2. Where: Denotes the size of the tile or window area that has to be considered, is the pre-defined CL This method is an improvement over the traditional adaptive histogram equalization (AHE) technique, because it effectively mitigates the problem of excessive noise amplification and artifacts that can arise with AHE (Al-Khafaji & Al-Tamimi, 2. The following point description the steps of CLAHE filter work that lead to use in proposed system. 1- Split the image up into tiny, non-overlapping tiles: The image is split up into a grid individual tiles, each representing a local area. 2- Determine the histogram for every tile: Every tile's histogram is computed representing the distribution of intensity values within that specific area. 3- Apply histogram equalization to each tile: Each tile's histogram is equalized using a traditional histogram equalization method. This stretches the intensity values to fill the full range, enhancing local contrast. 4- Limit the contrast amplification: In CLAHE, a clipping process is applied to the equalized histogram to limit the maximum intensity value. This prevents the over-amplification of noise and artifacts. 5- Combine the tiles back into the final image: The processed tiles are then combined back together to form the final enhanced image. Figure 2 shows the effected of filter CLAHE in proposed system. Fig. Original Image in Dataset and CLAHE Filter The idea of using this type of filter is to create a balance for grayscale images, so it works to lighten the dark areas and darken the light areas in a balanced way. After performing the initial data preparation operations, the division process of the data into a test set and a training set will take place. This will be done based on the k-fold technique, with five experiments. This method was adopted because the division is more accurate and proportional to the size of the Training stage in proposed system The study AuU-Net: Convolutional Networks for Biomedical Image SegmentationAy established the widely used deep learning architecture U-Net. This design aims to overcome medical data shortages. The network uses small amounts of data efficiently while retaining speed and accuracy. A contracting path and an expanding path make U-Net's architecture The expanding path contains decoder layers that decode encoded data and generate segmentation maps using skip connections from the contracting path, while the contracting path encodes contextual information and reduces input spatial resolution. U-Net's contracting path finds relevant image features. The encoder layers convolutionally lower feature map spatial resolution and increase depth, collecting progressively abstract input representations. Other convolutional neural networks have feed-forward layers like this contracting path. However, the expanding path decodes and localises information while maintaining input spatial resolution. Feature map upsampling and convolution are performed by increasing path decoder layers. Al-Tamimi et al A Vol 6. 2025: 1197-1214 Figure 3 shows how skip connections from the contracting path maintain spatial information lost in the path, helping the decoder layers localise features more precisely. Fig. Neural Network Architecture In Proposed Approaches. A U-Net network produces a binary segmentation map of size 388y388y2 from a greyscale input image of size 572y572y1. Because no padding is employed, the output is smaller than the input. Padding preserves input size. In the contracting path, the input image's height and breadth drop but its channels increase. The increased channels allow the network to record high-level features along the journey. The bottleneck involves a last convolution step to create a 30x30x1024 feature map. After removing the bottleneck feature map, the expanding path converts it back into the original image size. Upsampling layers increase feature map spatial resolution while lowering channels. The contracting path skip connections assist the decoder layer find and refine image features. Finally, each output pixel labels an object or class in the input image. The output map is a binary segmentation map with foreground and background pixels. Table 4 lists the proposed method levels. Layer Type Input Layer Table 4 - Summarizes The Layer Used In The Proposed Approaches. Description Receives the input image as a tensor. Contracting Path Down samples the input image to extract high-level features. In the proposed system. U-Net can perform regression. Although it is for image classification, its convolutional layers can extract features from images to predict continuous To adapt U-Net for regression, some changes are required: 1- Replace the last layer: The original U-Net contains a fully connected last layer with 1000 outputs for classification of 1000 categories. Regression requires replacing this layer with a single output neuron to predict continuous variables. 2- Customized loss function: Regression tasks use MSE or L1 loss functions instead of cross entropy for classification. The average difference between expected and actual values is 3- Fine-tune the network: Regression tasks with transfer learning can start with a pre-trained UNet. This requires fine-tuning the pre-trained weights of the convolutional layers and freezing the previous layers. This exploits the feature extraction capabilities of the network to adapt it to the regression task. U-Net was chosen for its exceptional efficacy in medical picture segmentation, its versatility in classification and regression tasks, and its capacity to manage tiny datasets. U-Net is an effective model for pneumonia detection and severity assessment in X-ray images. The layered architecture offers flexibility in layer management, while its sequencing mechanism facilitates extensive training. This is quite beneficial. It was chosen following an extensive review of research publications on deep learning models and the execution of early tests. Al-Tamimi et al A Vol 6. 2025: 1197-1214 Evolution Result In proposed system using confusion matrixes for evolution the result where confusion matrix is a tabular representation that provides a concise summary of how well a machine learning model performs on a given set of test data. It is a method of visually representing the number of correct and incorrect predictions made by the model. It is commonly employed to evaluate the effectiveness of classification models, which seek to forecast a categorical label for each input instance. The matrix presents the count of occurrences generated by the model on the test data. The following point description the Partitioning the four-confusion matrix yn True Positives (TP) are cases where the model correctly predicts a positive data point. True Negatives (TN) are cases where the model correctly predicts a negative data point. yn False Positives (FP) are cases where the model incorrectly predicts a positive data point. yn False Negatives (FN) are cases where the model incorrectly predicts a negative data point. where the use of the confusion matrix, there are key measurements for measuring the efficiency of systems, and these measures vary depending on the four divisions, which is as follows(Mansoor & Al Tamimi, 2. Precision: It is the percentage of a group's data that the classifier identifies as belonging to a positive class that is considered accurate, as shown in the precision equation 2 (Heydarian et al. , 2. Precision= a. 1- Recall: measurement that determines how accurately a classification system can anticipate the number of affirmative cases. Based on equation 3 (Uddin et al. , 2. Recall . = AA AA. 2- F1-Score: Precision and retention, as well as the flow of the equation, is denoted by equation 4 (Humphrey et al. , 2. F1= A( . 3- Accuracy: measures how close results are to the true or known value. Is denoted by equation 5 (Sayenju & Boardman, 2. (Najm Mansoor & Al-Tamimi, 2. Accuracy= A. 4- RA . oefficient of determinatio. : measures the percentage of variance in the target variable explained by independent variables in the model. Zero implies no linear relationship between the independent and dependent variables, while 1 indicates a perfect match. A higher RA value suggests the model explains more data variability Is denoted by equation 6 (Gneiting & Resin, 2. (Achmad Rifa, 2. (Liu et al. , 2. RA = 1 - . _i - _. A / . _i - )AA. Where: y_i is the actual value of the target variable. _i is the predicted value of the target variable. is the mean of the actual values. 5- RMSE: measures the average model error magnitude. It is the square root of the average squared difference between expected and actual values. Low RMSE means the model produces less errors on average Is denoted by equation 7 (Ashraf et al. , 2. (Li et al. (Guo et al. , 2. RMSE = sqrt(. _i - _. A) / nA. Where: y_i is the actual value of the target variable _i is the predicted value of the target variable n is the number of observations The following section description the result of 5-fold in proposed system as shown in Table 5 and Figure 4. Al-Tamimi et al A Vol 6. 2025: 1197-1214 Table 5 - Result of The Fold Accuracy (%) Precision Fold Recall F1-Score Result of Diagnosing model (A ) (B) Al-Tamimi et al A Vol 6. 2025: 1197-1214 (C) (D) (E) Fig. The Result Of (A) Fold 1, (B)Fold 2, (C)Fold 3, (D)Fold 4. And(E) Fold 5. based on above result that obtain from proposed system the best fold is 3. Table 6 summarized the result of five-fold in proposed system. Table 6 - Summarized Of 5-Fold Results Fold-1 Fold-2 Al-Tamimi et al A Vol 6. 2025: 1197-1214 Fold-3 Fold-4 Fold-5 The best model is fold 3: 99. Based on Table above, the results of the five experiments shown were based on the use of k-fold, in which data was divided by 5-fold, in accordance with the size of the dataset, taking 10% as validation of testing. In the end, experiment. was the highest among the results as It was explained in summary form in Figure 5 . ,b,. , as this figure summarized the results obtained regarding the Diagnosing model. Result of Severity Model (Regressio. Fig. A Chart Shows R2. RMSE And Is Converted into A Table to Extract The Results. The Table Is in CSV Format Fig. R2 Result of Severity Model in the Training Stage. Al-Tamimi et al A Vol 6. 2025: 1197-1214 Fig. The RMSE result of the risk model in the training stage. This measure is followed by researchers in building a regression model, which by its nature differs from the measures of the regular model of deep learning or machine learning. Based on the above figures. Table 7 summarizes the results. Table 7 - Summarizes The Training Stage's Detection Model (Severit. Result Scale Result REMS Evolution With Closest Studies There are many studies related to the topic of diagnosing Corona disease in different ways, but the following is a table 8 showing the two closest approaches to the proposed approach, explaining and summarizing their idea and a comparison with the proposed approach. Rf. (Achmad Rifa, 2. (Liu et al. Table 8 - Evolution with Closest Studies Using Alexnet Model Idea Method Dataset The research focuses on developing AI tools that can help radiologists or other medical professionals to diagnose COVID-19 cases. However, the development of such AI tools is difficult due to the lack of publicly available CT and X-ray image datasets. To achieve this goal, the research aims to create a comprehensive AlexNet model dataset of X-rays dataset of CT scans and XCNN and CT scan ray images from various sources and provide a simple multiple sources but effective COVID-19 detection method using deep learning methods. In this sense, the created X-ray and CT scan image datasets require the application of a pre-trained AlexNet model and a basic network (CNN). The COVID-19 disease was AlexNet model Result The result of the experiments shows that the utilized models can provide accuracy up to 98 % via pretrained network and 1 % accuracy by using the modified CNN Class Al-Tamimi et al A Proposed identified and diagnosed using chest X-ray images approach based on a network (CNN). In addition, different types of pooling layers and/or the number of neurons used in the second fully connected layer were proposed for the modified AlexNet design. The chest X-ray images used were collected using two COVID19 X-ray image datasets, one of which contained a large number of normal and pneumonia X-ray images. Due to the fewer neurons in the second fully connected layer of the proposed model, results equal to or better than the original AlexNet were obtained. discuss the diagnosis of Corona disease, whether a person is infected or not, and also determine the infection rate (Severit. , that is, the percentage of the virus present in the lungs, based on a global data set of Xrays (X-ray. dedicated to infection, its rate, and its diagnosis by specialized doctors from Through a pretrained model (U-net mode. Vol 6. 2025: 1197-1214 CNN COVID-19 cases with chest X-ray or CT Covid-19 Sensitivity= 98. Specificity= 99. Normal Sensitivity= 72. Specificity= 87. Abnormal Sensitivity= 90. Specificity= 94. U-net model Covid-19 Xray Severity Scoring Diagnosis model Accuracy=0. Precision=0. Recall=0. F1-Score=0. Severity model R2=0. REMS=0. The table above highlights the distinction between the proposed methodology and the comparative studies, specifically regarding incidence rate. While all studies concentrated on disease diagnosis, none addressed the determination of infection rates, which is crucial for assessing an individual's infection status and the progression of the disease. The references (Achmad Rifa, 2. focused on x-rays. CT scans, and two forms of deep learningAineural networks and trained modelsAiyet the research aimed solely to determine an individual's infection status. Additionally, reference(Liu et al. , 2. employed an alternative approach utilizing the Class technique, wherein the system was trained across three classes, aligning with machine learning principles. Exceeding deep learning, as it would be unjust for training and failed to address the injury rate severity. The suggested U-Net with Regression model demonstrates significant enhancements over current methods, especially regarding illness severity evaluation, segmentation, and computing efficiency. The model attains superior accuracy, precision, and recall relative to other leading models. Furthermore, including illness severity analysis into the detection process augments the model's clinical relevance, differentiating it from prior research that concentrated exclusively on detection. The U-Net architecture's capability to delineate infection zones, along with its emphasis on real-time diagnosis, renders it an effective and pragmatic option for pneumonia detection, particularly in resource-constrained environments. Conclusion Deep learning has enhanced pneumonia detection. nonetheless, challenges such as generalizability across populations, data imbalance, interpretability, quick diagnosis, severity assessment, robustness to noisy data, ethical issues, and model fairness persist. These issues Al-Tamimi et al A Vol 6. 2025: 1197-1214 must be addressed for deep learning to be extensively implemented in clinical practice and to provide precise, equitable, and reliable diagnoses. The efficiency or adoption of the proposed method decides the focus of this investigation. Diseases progress throughout this extensive scientific domain. The prospective advantages of use X-rays for the diagnosis of COVID-19 infection are considerable. This method can enhance early diagnosis, mitigate viral transmission, and improve patient outcomes. With ongoing research and technological advancements. X-ray-based diagnosis of COVID-19 may significantly contribute to addressing this global pandemic. The objective of the scientific study was to elucidate the significance of utilizing artificial intelligence for both viral detection and infection rate assessment, which is crucial for evaluating the severity of the problem. The proposed model yielded encouraging results, and the integration of the image processing technique with a pre-trained model produces equivalent outcomes. A beneficial and effective outcome from selecting the CLAHE filter. future endeavors, implement the model on an alternative dataset that has not been utilized for References