{"title":"基于KNN的空气质量等级预测研究与实现","authors":"Y. Gong, P. Zhang","doi":"10.1109/AIAM54119.2021.00068","DOIUrl":null,"url":null,"abstract":"Since entering modern society, people have paid more and more attention to air quality in order to better help predict the air quality level. This paper proposes an air quality grade prediction model based on the K-nearest neighbor algorithm. Firstly, the historical measurement data of air quality is crawled from the relevant weather website and saved to the local CSV file; then the data is read, and the scatter diagram is used to visually display the 6 characteristics that affect the air quality level evaluation; then the K nearest neighbor algorithm is selected, and the difference is adjusted. The parameter training model of, and then through the test set verification, the test accuracy rate is 95.10%. Finally, a set of new data is randomly given, and the prediction results are in line with the expected results, which can be extended to predict the air quality level.","PeriodicalId":227320,"journal":{"name":"2021 3rd International Conference on Artificial Intelligence and Advanced Manufacture (AIAM)","volume":"17 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Research and Realization of Air Quality Grade Prediction Based on KNN\",\"authors\":\"Y. Gong, P. Zhang\",\"doi\":\"10.1109/AIAM54119.2021.00068\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Since entering modern society, people have paid more and more attention to air quality in order to better help predict the air quality level. This paper proposes an air quality grade prediction model based on the K-nearest neighbor algorithm. Firstly, the historical measurement data of air quality is crawled from the relevant weather website and saved to the local CSV file; then the data is read, and the scatter diagram is used to visually display the 6 characteristics that affect the air quality level evaluation; then the K nearest neighbor algorithm is selected, and the difference is adjusted. The parameter training model of, and then through the test set verification, the test accuracy rate is 95.10%. Finally, a set of new data is randomly given, and the prediction results are in line with the expected results, which can be extended to predict the air quality level.\",\"PeriodicalId\":227320,\"journal\":{\"name\":\"2021 3rd International Conference on Artificial Intelligence and Advanced Manufacture (AIAM)\",\"volume\":\"17 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2021 3rd International Conference on Artificial Intelligence and Advanced Manufacture (AIAM)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/AIAM54119.2021.00068\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 3rd International Conference on Artificial Intelligence and Advanced Manufacture (AIAM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/AIAM54119.2021.00068","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Research and Realization of Air Quality Grade Prediction Based on KNN
Since entering modern society, people have paid more and more attention to air quality in order to better help predict the air quality level. This paper proposes an air quality grade prediction model based on the K-nearest neighbor algorithm. Firstly, the historical measurement data of air quality is crawled from the relevant weather website and saved to the local CSV file; then the data is read, and the scatter diagram is used to visually display the 6 characteristics that affect the air quality level evaluation; then the K nearest neighbor algorithm is selected, and the difference is adjusted. The parameter training model of, and then through the test set verification, the test accuracy rate is 95.10%. Finally, a set of new data is randomly given, and the prediction results are in line with the expected results, which can be extended to predict the air quality level.