A research team led by Shuangshuang Yan, Yachao Shi, and Huaiwei Lv has developed an artificial intelligence framework that integrates domain knowledge graphs with multi-agent reinforcement learning to perceive dormitory safety hazards and coordinate dynamic regulatory decisions within a simulated residential environment. Published in Discover Internet of Things, the investigation targets long-standing operational challenges in campus housing facilities, where high population density and concentrated electrical appliances generate frequent yet dispersed hazards. Dormitory safety management has historically relied on qualitative risk evaluations, static neural network models, and fragmented manual interventions that struggle to capture latent hazards or resolve operational delays. To bridge the divide between theoretical safety frameworks and automated multi-agent coordination, the researchers introduced the Knowledge-Enhanced Multi-Agent Proximal Policy Optimization algorithm, abbreviated as KE-MAPPO, which couples structured semantic graph retrieval with decentralized policy optimization across distributed sensor nodes.
The foundational layer of the architecture is a dedicated dormitory safety knowledge graph designed to associate sporadic physical events with underlying risk mechanisms, personnel hierarchies, and operational remediation protocols. Rather than viewing incidents in isolation, the authors established four formal meta-ontology models defining concepts, relations, attributes, and instances to structure the domain. Concepts span human occupants, dormitory safety facilities, utility infrastructure, risk accidents, causes, and disposal methods, while relations capture causal links and inheritance hierarchies. Across the complete knowledge base, the authors defined five major categories of first-level entities and twenty-seven specialized sub-entity types, encompassing 1,264 individual entity nodes. Key entity classes track the discoverer of an anomaly to establish accountability, designate the specific handler responsible for facility rectification, record risk incident progression including elapsed rectification days, and classify diverse hazards into behavioral deviations of occupants, equipment aging or flaws, and adverse environmental conditions.
To populate this structured knowledge base from unstructured regulatory documentation, the authors implemented a four-layer entity extraction model combining a Bidirectional Long Short-Term Memory network with Conditional Random Fields, known as BiLSTM-CRF. Textual sources—including safety regulations, operational practice manuals, and student accommodation guidelines—were curated into a dedicated corpus comprising 5,286 text samples partitioned into training, validation, and test sets according to a 7:2:1 ratio. Text sequence labeling was performed using the Doccano tool under a nine-tag BIO annotation scheme covering persons, objects, geographical locations, risk events, and non-entity tokens, achieving a Cohen’s kappa annotation consistency score of 0.87. Within the network, the forward and backward LSTM layers capture contextual character sequence dependencies, while the CRF layer evaluates label transition matrices and emission scores to assign the optimal semantic sequence. Relational triples extracted via the open-source Pyltp toolkit and curated lexicons were subsequently instantiated within a Neo4j NoSQL graph database using Python and Py2neo.
The core computational innovation of the system centers on how discrete symbolic graph structures are embedded into the continuous learning dynamics of multi-agent reinforcement learning. Standard deep reinforcement learning models in complex spatial domains often suffer from unstable exploration, slow policy convergence, and poor coordination when individual agents rely strictly on sparse ex-post penalties. To overcome this limitation, the authors transformed the discrete symbolic constraints of graph triples into differentiable regularization terms that directly modify the policy gradient of the Actor network. Symbolic facts are mapped to continuous penalty functions acting on action probability distributions, such as calculating smooth penalties when an occupant departs while an electrical appliance remains powered. The knowledge graph is queried during forward inference to supply penalty coefficients, ensuring that the Neo4j database provides structured domain guidance without requiring direct differentiation of the discrete graph structure during backpropagation.
The multi-agent execution framework operates under the centralized-training with decentralized-execution paradigm, where individual agents execute actions conditioned solely on local sensory observations while centralized networks utilize shared system-wide states. Each agent represents a localized perception and decision unit operating within a Markov Decision Process defined by formal state spaces, action spaces, and state transition probability matrices. The Actor network optimizes its localized control policy to adjust risk cognition states, early-warning alerts, and decision response levels, while the centralized Critic network evaluates global value states. In this architecture, the Critic network is supplied with global knowledge-enhanced features and inter-agent relational data, executing a knowledge-guided credit assignment mechanism that resolves cognitive biases arising from local sensor limitations and aligns heterogeneous agents toward global facility safety.
To evaluate the control policies under reproducible conditions, the authors built a custom Python Gym simulation engine modeling a standardized student housing complex composed of four residential buildings, each containing six floors with thirty rooms per floor. The simulation deploys a total of 720 perception agents corresponding to individual dormitory rooms, with each agent continuously integrating telemetry from three distinct onboard sensors: smoke detectors, electrical load monitors, and access control hardware. State iterations advance at five-minute intervals, while hazard events are generated probabilistically using historical hazard distributions and transitional matrices. For model training and evaluation, the researchers supplemented the core 5,286-sample dormitory corpus—which covers electrical, fire, structural facility, and behavioral risks with a positive-to-negative ratio of 1:3—with approximately 800 household risk instructions from the benchmark SafeAware-VH dataset to introduce auxiliary adversarial test cases.
Simulation experiments contrasting KE-MAPPO against four established multi-agent reinforcement learning baselines—specifically vanilla MAPPO, Multi-Agent Deep Deterministic Policy Gradient (MADDPG), QMIX, and Role-Based Multi-Agent Reinforcement Learning (RODE)—demonstrated consistent performance gains across all measured classification and operational indicators. Across five independent experimental runs initialized with distinct random seeds, KE-MAPPO achieved the highest recorded precision, recall, classification accuracy, and F1-score, yielding a statistically significant performance advantage over all baselines with p < 0.05. In computational efficiency assessments, KE-MAPPO exhibited the shortest overall runtime at 84.6 seconds and achieved an average task latency of 0.44 seconds. While the computational complexity of KE-MAPPO is slightly higher than vanilla MAPPO due to knowledge processing, it remains markedly lower than MADDPG, maintaining practical tractability within the multi-agent control loop.
Analysis of episodic reward trajectories over 3,000-episode and 30,000-episode simulation regimes revealed substantial differences in learning stability between unguided and knowledge-guided policies. In the 3,000-episode training runs, vanilla MAPPO exhibited sluggish reward convergence because unconstrained policy exploration struggled to navigate the complex joint action space. Conversely, KE-MAPPO achieved rapid reward curve convergence within the initial 500 to 800 episodes while maintaining a steady upward trajectory. After approximately 1,000 episodes, the reward trajectory of KE-MAPPO aligned with that of MAPPO as standard policy gradients caught up, demonstrating that early knowledge regularization prevents erratic exploration without capping asymptotic performance. When training was extended to 30,000 episodes, KE-MAPPO demonstrated an additional pronounced surge in reward magnitude near the 15,000th episode, reflecting deeper cooperative policy discovery enabled by continuous structured graph guidance.
To isolate the individual contribution of each component within the knowledge enhancement architecture, the authors performed component-stripping ablation experiments across five distinct configurations. When all knowledge enhancement mechanisms were removed, leaving baseline MAPPO, performance dropped across all metrics. Selective ablation demonstrated that the knowledge regularization term embedded within the policy loss function contributed most significantly to improvements in precision and recall by penalizing unsafe exploratory actions. Providing knowledge-enhanced semantic features directly to the centralized Critic network was found to drive the primary reductions in inference and dispatch latency, while action masking and network bias constraints effectively suppressed invalid operational actions, thereby minimizing false positive classifications. The full KE-MAPPO configuration, uniting all three sub-modules, generated synergistic gains that surpassed any partial implementation.
The researchers further evaluated system resilience through cross-validation and graph perturbation stress tests to assess whether imperfect knowledge representations degrade control policies. In ten-fold cross-validation trials conducted on the SafeAware-VH dataset across multiple random seeds, KE-MAPPO attained an average area under the ROC curve (AUC) of 0.913 with a standard deviation of 0.021, while maintaining a mean degree of confidence of approximately 94.0 percent and lower confidence interval bounds exceeding 80 percent. In synthetic noise perturbation experiments where entity labels were tampered with, incorrect relations inserted, and triples randomly deleted, the algorithm maintained superior precision over baseline MAPPO up to a 10 percent triple error rate. However, when noise injection exceeded 15 percent, corrupted graph constraints introduced excessive bias into the loss function, causing performance deterioration and establishing an operational boundary requirement that real-world knowledge graphs maintain error rates below 10 percent.
In their concluding analysis, the authors emphasized that all reported empirical findings and performance superiorities are strictly confined to their standardized Python Gym simulation engine and lack experimental validation within operational campus dormitories. Deploying reinforcement learning to real-world residential facilities introduces severe technical barriers, most notably the fundamental conflict between the exploratory trial-and-error mechanisms of reinforcement learning and the uncompromising zero-accident safety mandates of human living quarters. Real-world facilities also present substantial environmental non-stationarity from unmodeled noise, dynamic occupant movements, structural deterioration, and sensor errors that risk policy failure. Furthermore, the high computational overhead of synchronous multi-agent inference challenges standard campus server capacity, while expanding graph triple scales increases query latencies from 0.07 seconds at baseline to 0.32 seconds at five-fold scale, necessitating edge-caching architectures before physical implementation can be responsibly contemplated.
Subject of Research: Knowledge-enhanced multi-agent reinforcement learning for dormitory safety risk perception and dynamic regulation
Article Title: Knowledge enhanced multi agent proximal policy optimization for dormitory safety risk perception and dynamic regulation KE MAPPO
Article References: Yan, S., Shi, Y., & Lv, H. (2026). Knowledge enhanced multi agent proximal policy optimization for dormitory safety risk perception and dynamic regulation KE MAPPO. Discover Internet of Things, 6(1), Article 285. https://doi.org/10.1007/s43926-026-00551-z
Image Credits: AI Generated
DOI: 10.1007/s43926-026-00551-z
Keywords: Multi-Agent Reinforcement Learning, KE-MAPPO, Knowledge Graphs, Dormitory Safety, Risk Perception, Dynamic Regulation, BiLSTM-CRF, Neo4j, Markov Decision Process, Actor-Critic Architecture, Centralized Training Decentralized Execution, Simulated Environments, Sensor Deployment, Ablation Studies, Graph Noise Perturbation, Campus Safety Management
News Source: Denise Maddox. (November 28, 2026). Knowledge-Guided Multi-Agent Reinforcement Learning Improves Dormitory Risk Management in Simulation. Scienmag.



