2. Related Work
The literature relevant to this study spans four convergent areas: low-cost environmental sensing, short-term predictive analytics, smart-environment orchestration, and trustworthy digital infrastructures. In the first area, the use of Raspberry Pi and low-cost sensors for environmental monitoring has been widely discussed as a viable alternative to expensive proprietary weather stations. Alali et al. [
2] show that low-cost sensing infrastructures can provide sufficiently reliable measurements for localized monitoring applications, especially when combined with appropriate quality-control procedures. Camera-based and sensor-based low-cost approaches have also been validated in other monitoring domains: Vasta et al. [
36] demonstrate that affordable sensing hardware can match the accuracy of scientific-grade instruments when combined with appropriate signal processing, a finding that supports the use of BME280-class sensors in the ClimaBogotá deployment. These works validate the feasibility of affordable sensor deployments, but generally focus on acquisition and monitoring rather than on complete predictive and operational ecosystems.
In the second area, machine learning techniques have demonstrated usefulness for short-term forecasting in environmental and time-series contexts. Random Forest remains attractive because it balances predictive capacity, robustness to noisy data, limited tuning requirements, and interpretability through feature importance analysis [
3,
12,
13]. Naskinova et al. [
42] provide a comprehensive comparative study of ML models for physiological prediction, showing that even well-engineered Random Forest and CatBoost pipelines yield modest
values (0.19–0.27) when the target variable is inherently complex, which contextualises the
achieved by ClimaBogotá as a strong result for a similarly constrained prediction problem. Santamaría et al. [
39] further demonstrate that compact, clinically relevant feature sets can yield robust predictive performance in ML-based decision-support systems, reinforcing the feature selection rationale adopted in this work. Hybrid AI systems have also been proposed in other data-intensive domains, such as smart education, where the integration of machine learning with heterogeneous big-data pipelines improves prediction and operational support [
5]. Although these studies are not focused on meteorological micro-zones, they reinforce the methodological argument that predictive performance depends not only on the algorithm, but also on the quality of the full data-processing pipeline.
A third relevant line of work concerns smart environments and adaptive infrastructures. Recent studies highlight that AI-based systems are increasingly being deployed as part of broader digital ecosystems that must combine sensing, automation, optimization, resilience, and interoperability. Khan et al. [
10] discuss the synergy between AI and blockchain in smart buildings to improve efficiency and security; Noetzold et al. [
27] propose a self-adaptive architecture for predictive and reinforcement-based optimization in smart environments; and Holgado et al. [
4], Tari et al. [
8], and the work in [
2] show that security, cryptographic agility, and human-centric resilience are increasingly necessary in connected infrastructures. The challenge of aligning heterogeneous temporal signals from multiple sources is also addressed in the multimodal detection literature: Luo et al. [
43] propose a cross-modal temporal alignment module that maps signals from different sources into a unified temporal semantic space, a conceptual parallel to the session-based alignment strategy adopted in ClimaBogotá for multi-station data fusion. These works are especially important to position ClimaBogotá not merely as a weather-prediction model, but as a distributed smart-environment service in which data integrity, service continuity, and secure connectivity matter for future operational deployments.
A fourth area concerns trust, adoption, and human interaction with intelligent systems. Ibrahim et al. [
9] show that digital interfaces affect decision-making performance and user experience in operational scenarios; Sasongko et al. [
7] and Emon et al. [
6] highlight the importance of perceived usefulness, self-efficacy, and attitudes in technology adoption; and Narayan et al. [
11] discuss how trust and governance become central when AI-generated outputs influence user behaviour. The design of context-aware delivery channels is also relevant: Karlović et al. [
41] demonstrate that LLM-based systems integrating contextual signals (user profile, environmental conditions) can produce more relevant and personalized outputs, a direction that informs the planned Version 2.0 of ClimaBogotá, which will incorporate a large language model for natural-language climate summaries. Although these studies address domains such as virtual reality, e-learning, professional AI adoption, and e-commerce governance, they are relevant here because micro-zone climate prediction systems ultimately depend on user trust, accessibility, and reliable information delivery. In this sense, the adoption of Telegram notifications and dashboard-based dissemination in ClimaBogotá is aligned with the broader need to make predictive systems operationally usable rather than merely technically accurate.
Furthermore, lightweight inference architectures designed for resource-constrained edge devices are increasingly relevant for IoT deployments. Riaz et al. [
40] show that compact models combining local and global feature extraction can achieve real-time inference performance on edge hardware, a design principle that informs the Flask-based inference layer of ClimaBogotá, where the 269 MB Random Forest model must respond within 2.5 seconds on a standard cloud instance.
Despite these advances, the existing literature rarely combines all the layers required for a fully operational hyperlocal climate prediction service. Prior works typically emphasise either sensing, or prediction, or smart-environment architecture, or user-facing dissemination. In contrast, the present work integrates low-cost IoT sensing, data cleaning for non-standard field exports, session-based temporal feature engineering, machine learning inference, workflow orchestration with n8n, persistent cloud storage, Telegram-based subscription delivery, and Grafana Cloud visualization in a single reproducible architecture.
2.1. Positioning Within Prior Research
The development of ClimaBogotá represents the culmination of a systematic research trajectory focused on adaptive intelligent systems for environmental and smart-environment applications.
Table 1 summarizes the internal evolution of these contributions and illustrates how each prior phase informs the current hyperlocal climate intelligence architecture.
This progression begins with the cryptographic performance analysis in PRISEC [
17], which establishes the computational feasibility of secure data transmission on resource-constrained IoT devices such as Raspberry Pi. PRISEC II [
18] introduces the conceptual framework for integrating multi-layer contextual information—device state, network conditions, environmental parameters—into adaptive security policies, a principle directly applied in ClimaBogotá’s fault-tolerant consolidation logic that adapts predictions based on station availability. PRISEC III [
19] advances this concept by demonstrating dynamic cryptographic switching, analogous to the session-based feature engineering in ClimaBogotá that adapts to varying temporal coverage across stations.
Table 2 summarizes the main differences between representative prior works and the system proposed in this article. The Oraculum framework [
20] introduces reinforcement learning-based self-adaptive optimization for smart environments, providing the methodological foundation for autonomous orchestration that informed the design of the n8n pipeline’s fault-tolerant consolidation and the confidence-based prediction delivery mechanism. Finally, the DN25 protocol [
21] establishes quantum-safe communication primitives for distributed IoT systems, representing a future-proofing pathway for ClimaBogotá when the network scales beyond the current four-station prototype and requires secure inter-station coordination.
2.2. Q-OPSEC and DN25: Secure Adaptive Frameworks as Foundations for ClimaBogotá
A research trajectory directly connected to the present work is the line of contributions by Noetzold et al. on secure and adaptive architectures for distributed IoT environments, which constitutes both a methodological antecedent and a future-proofing pathway for ClimaBogotá. This trajectory begins with the PRISEC series [???], which benchmarks symmetric cryptographic algorithms on Raspberry Pi-class hardware and demonstrates that AES-128 and ChaCha20 can sustain secure sensor-to-server communication at the sampling rates required by ClimaBogotá’s 5-second acquisition cycle without exceeding the computational budget of the ARM Cortex-A72 processor. This result is directly relevant to the four BME280 stations deployed in Bogotá: as the system transitions from CSV-based data export to direct MariaDB streaming (planned for v1.3), each station will require an authenticated and encrypted channel to the Flask inference server, and the PRISEC benchmarks provide the empirical basis for selecting the appropriate cipher without degrading the 5-second sampling interval.
PRISEC II [?] extends this foundation by introducing a multi-layer contextual security model in which cryptographic policies adapt dynamically to the operational state of each node—device load, network quality, and environmental conditions. This principle is structurally analogous to the fault-tolerant consolidation logic of ClimaBogotá’s n8n orchestration layer, which adapts the zone prediction based on the number of active stations: when Este or Oeste are unavailable (as occurred during the initial deployment in December 2024, when these stations had only 9 days and 3 weeks of data respectively), the pipeline substitutes the missing readings with the most recent valid prediction rather than aborting the cycle. Both systems share the same design philosophy: operational continuity under partial node failure, with graceful degradation rather than hard failure.
PRISEC III [?] advances this concept further by demonstrating dynamic cryptographic switching based on runtime context, a mechanism analogous to the session-based feature engineering of ClimaBogotá (Equation (1)), where the definition of a valid session adapts to the temporal coverage available from each station. Just as PRISEC III selects the cipher that best fits the current resource profile, the session operator selects the feature window that best fits the available data density—both mechanisms implement context-aware adaptation at the operational layer.
The Oraculum framework [?] introduces reinforcement learning-based self-adaptive optimization for smart environments, providing the methodological reference for the autonomous orchestration design of ClimaBogotá’s n8n pipeline. Specifically, the confidence-based prediction delivery mechanism (Equation (8)), which maps the Random Forest’s inter-tree standard deviation to a confidence score reported via Telegram, implements a lightweight version of the adaptive output modulation principle of Oraculum: the system communicates not only the predicted temperature but also its epistemic uncertainty, enabling end users to calibrate their trust in the prediction based on the current state of the sensor network.
Finally, the DN25 protocol [?] and its underlying Q-OPSEC framework address the challenge of securing inter-node communication in heterogeneous distributed IoT networks where nodes differ in computational capacity, connectivity, and data availability—conditions that precisely characterise the four-station ClimaBogotá network, where Norte and Sur have 18 months of history while Este and Oeste were deployed only in December 2024. DN25 defines an adaptive quantum-safe handshake that negotiates post-quantum cryptographic parameters based on the endpoint’s resource profile, making it directly applicable to a scenario where Raspberry Pi 4B stations (ARM Cortex-A72, 4 GB RAM) must communicate securely with a Flask server hosted on a free-tier cloud instance with variable latency. The integration of DN25 into ClimaBogotá v1.3 is identified as the primary security upgrade for the transition from prototype to operational service.