Pneumonia is a life-threatening respiratory disease that causes inflammation and fluid accumulation in the lungs. Chest X-ray is one of the most commonly used diagnostic tools to detect pneumonia. In recent years, deep learning techniques have been widely used in the medical field for image analysis and diagnosis.