{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/airphynet-harnessing-physics-guided-neural","title":"AirPhyNet: Harnessing Physics-Guided Neural Networks for Air Quality Prediction","arxiv_id":"2402.03784","date":"2024-02-06","proceeding":null,"authors":["Kethmi Hirushini Hettige","Jiahao Ji","Shili Xiang","Cheng Long","Gao Cong","Jingyuan Wang"],"abstract":"Air quality prediction and modelling plays a pivotal role in public health and environment management, for individuals and authorities to make informed decisions. Although traditional data-driven models have shown promise in this domain, their long-term prediction accuracy can be limited, especially in scenarios with sparse or incomplete data and they often rely on black-box deep learning structures that lack solid physical foundation leading to reduced transparency and interpretability in predictions. To address these limitations, this paper presents a novel approach named Physics guided Neural Network for Air Quality Prediction (AirPhyNet). Specifically, we leverage two well-established physics principles of air particle movement (diffusion and advection) by representing them as differential equation networks. Then, we utilize a graph structure to integrate physics knowledge into a neural network architecture and exploit latent representations to capture spatio-temporal relationships within the air quality data. Experiments on two real-world benchmark datasets demonstrate that AirPhyNet outperforms state-of-the-art models for different testing scenarios including different lead time (24h, 48h, 72h), sparse data and sudden change prediction, achieving reduction in prediction errors up to 10%. Moreover, a case study further validates that our model captures underlying physical processes of particle movement and generates accurate predictions with real physical meaning.","url_abs":"https://arxiv.org/abs/2402.03784v2","url_pdf":"https://arxiv.org/pdf/2402.03784v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"airphynet-harnessing-physics-guided-neural","repo_url":"https://github.com/kethmih/airphynet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"prediction","task_name":"Prediction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.03784","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.03784"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kethmih/airphynet","reach":null}],"summary":{"ran":5,"unverified":3},"by_repo_kind":{"listed":{"samples":8,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"bb82ba0e85d3728c","entry":"Decoder","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bb82ba0e85d3728c"}},{"code_sha256_prefix":"41585b9a13b2f370","entry":"DiffeqSolver","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"41585b9a13b2f370"}},{"code_sha256_prefix":"0ffa6a7ccc25f9b5","entry":"EncoderAttrs","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0ffa6a7ccc25f9b5"}},{"code_sha256_prefix":"080303713985a4c6","entry":"GatedFusionModel","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"080303713985a4c6"}},{"code_sha256_prefix":"99dd0729ec83dfae","entry":"LinearNet","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"99dd0729ec83dfae"}},{"code_sha256_prefix":"4af1588c1a5c6e77","entry":"AirPhyNetModel","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4af1588c1a5c6e77"}},{"code_sha256_prefix":"38a44df4ada46dd3","entry":"Encoder_z0_RNN","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"38a44df4ada46dd3"}},{"code_sha256_prefix":"f23d570660ddaa65","entry":"ODEFunc","repo":"kethmih/airphynet","repo_kind":"listed","path":"airphynet_model.py","file_url":"https://github.com/kethmih/airphynet/blob/HEAD/airphynet_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f23d570660ddaa65"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}