Pneumonia is a lung infection caused by various pathogens and poses a global health threat with a high mortality rate. The World Health Organization (WHO) reports that pneumonia caused approximately 740,180 deaths among children under five years of age in 2019, making early detection essential. Pneumonia is generally diagnosed using chest X-ray images because they are inexpensive, easily access…