Air pollution is a global problem and a serious threat to public health. According to the World Health Organization, 99 percent of the world's population lives in places where air quality guideline standards are exceeded, resulting in 4.2 million premature deaths each year. Air pollution not only leads to respiratory diseases such as respiratory infections, asthma, and chronic obstructive pulmonary disease (COPD), but is also associated with chronic non-communicable diseases such as lung cancer, cardiovascular disease, and diabetes. This study analysed the relationship between the air quality index (AQI) and the incidence of respiratory diseases and found a positive correlation, i.e., the worse the air quality, the more respiratory diseases. This result is consistent with other studies and with the mechanism of the adverse effects of air pollution on the respiratory system. Therefore, this study is important for raising public awareness of the hazards of air pollution and promoting air quality improvement and respiratory health protection. This study also provides valuable information for environmental policy makers to help them consider the impacts of air quality on public health more comprehensively. This study used randomly generated data, so the results may not fully reflect what happens in the real world. Future studies need to use real environmental and health data to validate and extend our findings and provide a more sophisticated model for scenario simulation and analysis.