Abstract To quickly customize, develop, and extend intelligent library IoT systems, this paper proposes a runtime model-based approach for managing wireless sensor networks. Manageability is abstracted into runtime models that propagate changes to architecture models. A composite (portfolio) model is then constructed to unify diverse devices. Finally, customized application scenario models are created via model transformation. Experimental results in a library stack room demonstrate a 10.57% energy saving compared to traditional methods.
Introduction
The development of Internet of Things (IoT) systems for modern libraries is often hampered by "tight coupling" between high-level management logic and low-level hardware code. Libraries utilize a heterogeneous array of sensors—RFID readers, light sensors, and occupancy trackers—across varied environments like stack rooms and study halls. Traditional development requires hardware-specific coding (e.g., C or NesC), making system updates or sensor replacements cumbersome. This paper introduces a middle-layer abstraction to bridge the gap between physical sensing devices and management requirements.
Methodology: The Three-Tier Modeling Approach
The proposed framework utilizes a hierarchical modeling structure to decouple management from hardware specifics.
- Runtime Model Construction: Using the SM@RT tool, individual sensors are represented as "runtime models." These act as digital twins, ensuring that physical changes (e.g., a temperature increase) are immediately reflected in the software architecture.
- Model Composition (Portfolio Model): These individual models are merged into a "portfolio model." This layer shields administrators from "isomerism"—the diversity of hardware protocols and brands—allowing the library to be managed as a unified system.
- Model Transformation: Application-specific models (e.g., "Stack Room Management") are derived from the portfolio model using XML-based mapping rules (MEE, MPP, and MSM).
Model Abstraction and Synchronization
A key feature of this approach is the abstraction of raw sensor data into actionable information. For instance, a specific sensor ID and brightness value are mapped to a human-readable state like "Stack Room 201 is Dim."
To maintain consistency, a depth-first synchronization algorithm ensures that real-time events, such as a student entering a room, trigger immediate updates in the high-level management model without requiring system reboots. This allows for dynamic adaptation where the system can be modified and debugged while live.
Experimental Evaluation
The framework was deployed in a university library's Stack Room 201, featuring 90 energy-saving lamps (14W each) and a network of RFID and environmental sensors. Monitoring occurred daily from 8:00 AM to 5:30 PM.
Key results include:
- Energy Efficiency: The traditional illumination system consumed approximately 11,970W daily. The model-based system reduced this to 10,705W.
- Quantitative Saving: This represents a 10.57% energy saving, achieved through automated, context-aware lighting control that responds to real-time occupancy and ambient light levels.
- Complexity Reduction: The approach significantly reduces the amount of "conversion code" developers need to write by shielding them from hardware-specific isomerism.
Conclusion and Future Work
The runtime model approach effectively reduces IoT development complexity and improves operational efficiency in library settings. While the 10.57% energy saving is significant, future research will expand this methodology to more complex library functions, such as automated anti-theft systems and book tracking. Additionally, the authors aim to simplify the initial XML mapping process to make the system more accessible to non-technical library administrators.
Summary updated