<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "http://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.2" xml:lang="en">
    <front>
        <journal-meta>
            <journal-id journal-id-type="pmc">F1000Research</journal-id>
            <journal-title-group>
                <journal-title>F1000Research</journal-title>
            </journal-title-group>
            <issn pub-type="epub">2046-1402</issn>
            <publisher>
                <publisher-name>F1000 Research Limited</publisher-name>
                <publisher-loc>London, UK</publisher-loc>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="doi">10.12688/f1000research.176542.1</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Research Article</subject>
                </subj-group>
                <subj-group>
                    <subject>Articles</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>Experimental Demonstration of Cost-Effective Real-Time Risk Prediction and Energy Management System for Fog-Cloud-IoT Architecture in Smart City Applications</article-title>
                <fn-group content-type="pub-status">
                    <fn>
                        <p>[version 1; peer review: 1 approved]</p>
                    </fn>
                </fn-group>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Abduljabbar  Rashid</surname>
                        <given-names>Sami</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <uri content-type="orcid">https://orcid.org/0000-0001-9419-6152</uri>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <contrib contrib-type="author" corresp="yes">
                    <name>
                        <surname>Al Mashhadany</surname>
                        <given-names>Yousif</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Supervision</role>
                    <role content-type="http://credit.niso.org/">Validation</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Review &amp; Editing</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-3943-8395</uri>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Amer Ahmed Alrawi</surname>
                        <given-names>Ali</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Data Curation</role>
                    <role content-type="http://credit.niso.org/">Resources</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-4204-6229</uri>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>Biomedical Engineering Research Center, University of Anbar, Ramadi, Al Anbar Governorate, 31001, Iraq</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:yousif.mohammed@uoanbar.edu.iq">yousif.mohammed@uoanbar.edu.iq</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>18</day>
                <month>2</month>
                <year>2026</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2026</year>
            </pub-date>
            <volume>15</volume>
            <elocation-id>293</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>6</day>
                    <month>2</month>
                    <year>2026</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2026 Abduljabbar  Rashid S et al.</copyright-statement>
                <copyright-year>2026</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <self-uri content-type="pdf" xlink:href="https://f1000research.com/articles/15-293/pdf"/>
            <abstract>
                <sec>
                    <title>Background</title>
                    <p>Smart home-enabled smart cities require low-latency data processing, precise energy forecasting, and strong risk prediction to guarantee efficient energy use and secure system functionality. Traditional cloud-centric IoT architectures face issues such as high latency, excessive energy consumption, and limited real-time threat detection. To tackle these problems, this research presents a fog-cloud-IoT-based framework aimed at improving energy efficiency, security, and operational reliability within smart home settings.</p>
                </sec>
                <sec>
                    <title>Methods</title>
                    <p>This study introduces a Cost-Effective Risk Prediction and Energy Management in Fog-Cloud-IoT (CREFCI) model. The architecture employs a Raspberry Pi 4 fog node for local data processing and communication, tracks user preferences and device statuses locally, ensures network security through Suricata IDS/IPS, and keeps a synchronized duplicate database in the IoT cloud for analytics and user interaction via Android and Web APIs. Interoperability among Zig bee, Z-Wave, and Wi-Fi protocols is facilitated through JSON/XML data transformation, energy demand is predicted using ANN-based learning, and risk scores are calculated through likelihood-impact analysis.</p>
                </sec>
                <sec>
                    <title>Results</title>
                    <p>Experimental assessments reveal that the CREFCI model achieves 75% accuracy in energy prediction, surpassing existing models by 13% for the highest predictions and doubling accuracy for the third-highest probability estimates. The model decreases mean absolute error (MAE) by 50% and enhances accuracy in lower-ranked predictions by 40&#x2013;44%. Energy consumption is significantly lowered by 50&#x2013;80%, using only 0.3&#x2013;0.5 kWh compared to 1.0&#x2013;1.7 kWh in competing methods. Furthermore, average latency is reduced by 40&#x2013;60%, underscoring the effectiveness of fog-based processing.</p>
                </sec>
                <sec>
                    <title>Conclusions</title>
                    <p>The CREFCI model successfully integrates fog computing, cloud analytics, ensemble learning, and risk assessment to improve energy efficiency, prediction accuracy, and security in smart home IoT systems. By reducing latency reducing energy consumption, and providing real-time risk prediction, CREFCI offers a scalable and cost-effective solution for next-generation fog&#x2013;cloud&#x2013;IoT smart city infrastructures.</p>
                </sec>
            </abstract>
            <kwd-group kwd-group-type="author">
                <kwd>Internet of Things (IoT)</kwd>
                <kwd>Message Queuing Telemetry Transport (MQTT)</kwd>
                <kwd>JSON/XML</kwd>
                <kwd>Raspberry Pi 4 Devices</kwd>
                <kwd>Energy Management System</kwd>
            </kwd-group>
            <funding-group>
                <award-group id="fund-1" xlink:href="https://doi.org/10.13039/100025490">
                    <funding-source>Authors League Fund</funding-source>
                </award-group>
                <funding-statement>The author(s) declared that no grants were involved in supporting this work.</funding-statement>
            </funding-group>
        </article-meta>
    </front>
    <body>
        <sec id="sec5" sec-type="intro">
            <title>1. Introduction</title>
            <p>The Internet of Things (IoT) has greatly changed modern life by allowing easy connection of devices, sensors, and smart systems for real-time monitoring and control in various industries, especially in smart homes, transportation, energy, and healthcare.
                <sup>
                    <xref ref-type="bibr" rid="ref1">1</xref>
                </sup> The Smart Home (SH) sector is notable for blending user convenience, energy savings, and security through specialized automation. Major tech companies like Google, Apple, Samsung, and LG are investing heavily in smart home research, moving from basic device management to advanced services like proactive security and predictive energy optimization.
                <sup>
                    <xref ref-type="bibr" rid="ref2">2</xref>
                </sup> Smart homes face several challenges, including limited offline capabilities, delays in data processing, and compatibility issues between devices. There are also concerns about energy inefficiency and cybersecurity threats. Current smart home designs either rely on centralized cloud computing or localized edge processing, each with drawbacks, such as high latency and privacy issues.
                <sup>
                    <xref ref-type="bibr" rid="ref3">3</xref>
                </sup> Most frameworks treat energy management and security separately, lacking a unified approach for better efficiency and resilience. This research introduces the CREFCI model, which uses IoT fog computing for quick data processing.
                <sup>
                    <xref ref-type="bibr" rid="ref4">4</xref>
                </sup> It combines local and cloud computing for energy demand forecasting and security monitoring. The model includes intrusion detection and threat intelligence using protocols like MQTT and SSL, ensuring smart homes function safely even with connection issues. The ensemble learning approach, using ARMA, ARIMA, and SARIMA models, improves forecasting accuracy. Risk quantification algorithms help prevent security threats.
                <sup>
                    <xref ref-type="bibr" rid="ref5">5</xref>
                </sup> The CREFCI framework addresses current smart home challenges and offers a scalable, secure solution for future smart living environments. The paper's major contribution is discussed below. An integrated IoT Fog-Cloud architecture that lowers latency, maintains local control during network downtime, and improves security via real-time threat intelligence sharing with platforms like Suricata and MISP. A multi-layer energy management system utilizing ensemble forecasting methods (ARMA, ARIMA, SARIMA) and ANN to accurately predict energy needs and optimize distribution.
                <sup>
                    <xref ref-type="bibr" rid="ref6">6</xref>
                </sup> The risk prediction framework with likelihood-impact analysis and risk scoring to prioritize threats and strengthen cybersecurity resilience in smart homes.
                <sup>
                    <xref ref-type="bibr" rid="ref7">7</xref>
                </sup> The major gaps in creating a fully integrated, secure, and energy-efficient smart home architecture, despite advancements in IoT technology. Energy optimization and cybersecurity are often treated separately, leading to systems that don't fully utilize real-time data. Many IoT systems rely heavily on centralized cloud infrastructure, which creates delays, requires constant internet connectivity, and raises privacy concerns, especially for time-sensitive applications. Edge-only solutions reduce latency but lack the computing power required for advanced analysis.
                <sup>
                    <xref ref-type="bibr" rid="ref8">8</xref>
                </sup> Most studies focus on single-model prediction methods that struggle with complex energy demand patterns, resulting in inefficient energy distribution in smart grids.
                <sup>
                    <xref ref-type="bibr" rid="ref9">9</xref>
                </sup> The current intrusion detection systems often merge outdated, static rules, rendering smart homes vulnerable to emerging cybersecurity threats. The lack of interoperability among IoT devices complicates seamless data exchange and decision-making. These issues underscore the urgent need for a unified framework that can provide real-time risk prediction, data transformation, enhanced forecasting, and integration between fog and cloud computing. The major contribution of this research is risk prediction and effective energy management in a cost-effective manner in terms of computation and operation with reduced delay. Hence it is a smart city application it is very important to reduce the network congestion and energy consumption as well.</p>
        </sec>
        <sec id="sec6">
            <title>2. Related works</title>
            <p>The presentation of a centralized data collection system for Smart homes that monitors user behavior to reduce redundancy and enhance device management, ultimately improving comfort and quality of life.
                <sup>
                    <xref ref-type="bibr" rid="ref10">10</xref>&#x2013;
                    <xref ref-type="bibr" rid="ref12">12</xref>
                </sup> The cost-effective IoT-based home security system is presented that employs an Arduino Uno alongside PIR and ultrasonic sensors for intrusion detection and automatic door locking. The system has limitations in its detection range and accuracy compared to advanced CCTV systems and may not be as effective in handling complex security issues due to its use of basic components.
                <sup>
                    <xref ref-type="bibr" rid="ref13">13</xref>,
                    <xref ref-type="bibr" rid="ref14">14</xref>
                </sup> The introduce of a Smart home security system utilizing Raspberry Pi, integrated with MISP threat intelligence and Suricata IDS/IPS, which shows a high detection accuracy of 99.9% for emerging cyber threats. The system offers adaptive, real-time protection that exceeds traditional static approaches.
                <sup>
                    <xref ref-type="bibr" rid="ref15">15</xref>
                </sup> A twelve-step framework for analyzing firmware and assessing the security of IoT-enabled smart cameras, focusing on often-overlooked vulnerabilities. The aim is to improve defenses against extensive firmware-level attacks.
                <sup>
                    <xref ref-type="bibr" rid="ref16">16</xref>,
                    <xref ref-type="bibr" rid="ref17">17</xref>
                </sup> The highlights vulnerabilities in IoT-enabled Smart homes, including weak authentication, outdated firmware, and malware, which threaten financial transactions and user identities. It calls for the implementation of standardized security protocols and collaborative regulation.
                <sup>
                    <xref ref-type="bibr" rid="ref18">18</xref>,
                    <xref ref-type="bibr" rid="ref19">19</xref>
                </sup> The Smart home automation within the IoT as a method for promoting sustainable urban development, focusing on data management, efficiency improvements, and advanced technology integration. It provides insights intended for policymakers and technology specialists to enhance urban sustainability.
                <sup>
                    <xref ref-type="bibr" rid="ref20">20</xref>,
                    <xref ref-type="bibr" rid="ref21">21</xref>
                </sup> A Smart home system utilizing ATMEGA2560 and IoT technology, offering features such as voice control, fall detection, GPS tracking, hazard sensing, and remote monitoring, is designed for users of all age demographics. The system aims to improve safety, usability, and reliability while reducing processor and hardware costs.
                <sup>
                    <xref ref-type="bibr" rid="ref22">22</xref>,
                    <xref ref-type="bibr" rid="ref23">23</xref>
                </sup>
            </p>
            <p>In,
                <sup>
                    <xref ref-type="bibr" rid="ref24">24</xref>
                </sup> the behavioral factors impacting the adoption of IoT in Smart homes are highlighted, highlighting three main motivators: performance expectancy, trust, and HM. Conversely, security and privacy concerns deter potential users. In,
                <sup>
                    <xref ref-type="bibr" rid="ref25">25</xref>
                </sup> the author focuses on reverse engineering Smart homes (IoT) firmware to identify critical vulnerabilities with high CVSS scores and unsafe coding practices, highlighting significant security risks. It provides insights and recommended techniques for enhancing firmware security while employing a static firmware analysis approach.
                <sup>
                    <xref ref-type="bibr" rid="ref26">26</xref>
                </sup> A chatbot-based framework for Smart homes that includes Automation Bot, Sensor Bot, and Actuator Bot to autonomously monitor and manage devices while minimizing user interaction. This framework enhances energy management and supports real-time decision-making through a no-code platform.
                <sup>
                    <xref ref-type="bibr" rid="ref27">27</xref>
                </sup> The model utilizing Markov chains to predict user activity trends, coupled with the PF-PEC algorithm, is designed to optimize energy conservation in smart homes while prioritizing occupant comfort.
                <sup>
                    <xref ref-type="bibr" rid="ref28">28</xref>,
                    <xref ref-type="bibr" rid="ref29">29</xref>
                </sup> It employs a fog-based IoT architecture, achieving energy savings of up to 36%. The IoT framework enhanced by Edge AI, incorporating a Raspberry Pi and motion detection software aimed at Smart home surveillance. The system achieves high alert accuracy rates of 91% indoors and 85% outdoors, while significantly reducing bandwidth and storage costs.
                <sup>
                    <xref ref-type="bibr" rid="ref30">30</xref>,
                    <xref ref-type="bibr" rid="ref31">31</xref>
                </sup> The introduce for CRASHED, a cyber-risk assessment framework tailored for smart homes that combines elements from both the MITRE ATT&amp;CK and CAPEC models.
                <sup>
                    <xref ref-type="bibr" rid="ref32">32</xref>,
                    <xref ref-type="bibr" rid="ref33">33</xref>
                </sup> It provides an in-depth, device-specific evaluation of vulnerabilities and assesses threat impacts, thereby enhancing threat detection, response capabilities, and overall cybersecurity for Smart homes.
                <sup>
                    <xref ref-type="bibr" rid="ref32">32</xref>&#x2013;
                    <xref ref-type="bibr" rid="ref35">35</xref>
                </sup> 
                <xref ref-type="table" rid="T1">
Table 1</xref> shows the advantages and disadvantages.</p>
            <table-wrap id="T1" orientation="portrait" position="float">
                <label>
Table 1. </label>
                <caption>
                    <title>Earlier research summary.</title>
                </caption>
                <table content-type="article-table" frame="hsides">
                    <thead>
                        <tr>
                            <th align="left" colspan="1" rowspan="1" valign="top">Ref</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">Method name</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">Purpose</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">Advantages</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">Limitations</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref10">10</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Centralized Data Collection System</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">To monitor user behavior, reduce redundancy, and improve device management</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Enhances comfort, quality of life, and efficient device control</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">A centralized approach may face scalability issues and single-point-of-failure risks</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref13">13</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">IoT-Based Home Security (Arduino)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Intrusion detection and automatic door locking using PIR &amp; ultrasonic sensors</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Cost-effective, simple, low-power system</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Limited detection range, low accuracy compared to advanced CCTV systems</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref15">15</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Raspberry Pi + MISP + Suricata IDS/IPS</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Real-time cybersecurity threat detection in smart homes</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">99.9% detection accuracy, adaptive and real-time protection</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Higher cost and hardware requirements compared to basic IoT setups</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref16">16</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Firmware Security Analysis Framework</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Twelve-step framework to analyse IoT camera firmware vulnerabilities</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Improves firmware security, identifies hidden vulnerabilities</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Time-consuming and requires expertise in firmware analysis</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref18">18</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">IoT Security Vulnerability Analysis</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Identifying weak authentication, outdated firmware, and malware threats in IoT smart homes</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Calls for standardized protocols enhance awareness among developers &amp; regulators</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Lacks direct mitigation implementation strategies</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref20">20</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Smart Home Automation for Sustainability</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Promotes sustainable urban development with IoT data management and efficiency techniques</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Provides insights for policymakers, enhances sustainability initiatives</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Focuses on policy and technology integration, lacks real-world deployment examples</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref22">22</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">ATMEGA2560 IoT System</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Voice control, fall detection, GPS tracking, hazard sensing, and remote monitoring</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Low cost, supports safety features for all age groups, and reduces hardware costs</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Limited processing power compared to modern IoT processors</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref24">24</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">IoT Adoption Behavioral Factors</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Analyzing motivators and deterrents for IoT adoption in smart homes</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Identifies performance expectancy, trust, and HM as key motivators</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Security and privacy concerns remain unresolved</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref26">26</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Firmware Reverse Engineering Analysis</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Detecting critical IoT firmware vulnerabilities using static analysis techniques</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Highlights unsafe coding practices, improves firmware security awareness</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Requires high technical expertise and access to firmware code</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref28">28</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Chatbot-Based Smart Home Framework</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">AutomationBot, SensorBot, and ActuatorBot for real-time energy management &amp; device control</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">No-code platform, autonomous control, reduces user interaction</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Limited customization for complex automation scenarios</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref30">30</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">PF-PEC + Markov Chain Energy Model</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Predicting user activities and energy conservation using fog-based IoT architecture</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Energy savings up to 36%, prioritizes user comfort</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Performance may degrade with inaccurate user activity predictions</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref32">32</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Edge AI Surveillance Framework</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">IoT + Edge AI for motion detection and smart home surveillance</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">High accuracy (91% indoors, 85% outdoors), reduces bandwidth &amp; storage costs</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Outdoor detection accuracy is lower than indoor performance</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <sup>
                                    <xref ref-type="bibr" rid="ref34">34</xref>
                                </sup>
                            </td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">CRASHED Cyber-Risk Assessment Framework</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Device-specific vulnerability &amp; threat impact assessment integrating MITRE ATT&amp;CK &amp; CAPEC</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">In-depth risk evaluation, improved threat detection &amp; response</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Complex implementation requiring extensive system data and threat intelligence integration</td>
                        </tr>
                    </tbody>
                </table>
            </table-wrap>
            <p>From the above survey the major research gap which are identified in the earlier researches are lack of prediction capability at the risky situations, lack of security and customization, higher cost and high time consumption. In order to overcome all these drawbacks in this proposed CREFCI model the main concentrated is about proper energy management and risk prediction in a cost-effective manner.</p>
        </sec>
        <sec id="sec7">
            <title>3. Proposed CREFCI network</title>
            <p>The CREFCI model integrates IoT fog and cloud networks, focusing on advanced data transformation, energy forecasting, and risk assessment in smart homes. It collects data from smart device sensors and actuators at a fog node to ensure low latency and secure, offline communication. The fog node processes this data and synchronizes it with the IoT cloud through various protocols, enabling real-time control. 
                <xref ref-type="fig" rid="f1">
Figure 1</xref> explains the CREFCI process in detail.</p>
            <fig fig-type="figure" id="f1" orientation="portrait" position="float">
                <label>
Figure 1. </label>
                <caption>
                    <title>Structure of CREFCI process.</title>
                </caption>
                <graphic id="gr1" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/194606/819569df-48de-4fa4-8d2d-3d0e7b94310e_figure1.gif"/>
            </fig>
            <sec id="sec8">
                <title>3.1 IoT fog network</title>
                <p>The implementation of numerous sensing and actuation modules in smart homes necessitates maintaining connectivity with the IoT cloud, which can be resource-intensive. An IoT fog node addresses this by acting as an edge device that connects to both the local server and the cloud, ensuring data is logged locally and then reported. This setup offers benefits such as reduced latency, better scalability, and support for a range of devices. The fog node operates in online and offline modes: offline mode allows local network appliances to use without internet, synchronizing appliance states with the cloud upon reconnection. User preferences are stored on both the fog node and the cloud for direct appliance control. The node uses the MQTT protocol for communication with devices, hosts a local intelligence module for user-defined functions, and has the described service that facilitates data forwarding between different application programming interfaces (APIs) and includes features for device identification and user authentication. It utilizes Transmission Control Protocol (TCP) and Secure Socket Layer (SSL) for secure connections to cloud services. The architecture combines functionalities such as Secure Shell (SSH), Secure File Transfer Protocol (SFTP), alongside Web and Android APIs for configuring fog nodes. It features multiple security layers, including a traffic management firewall, Suricata IDS/IPS, and MISP, a platform for real-time threat intelligence exchange. MISP, integrated with Raspberry Pi, serves as the central hub for collecting Indicators of Compromise (IoCs) from various open-source sources. The proposed fog node, designed for smart home environments, utilizes a Raspberry Pi 4 featuring a quad-core processor and 8 GB of RAM.</p>
                <p>This node utilizes services like SSH and SFTP for configuring smart homes while facing limitations in Wi-Fi range and request concurrency. To mitigate Wi-Fi issues, aesthetic reflectors and multithreading are introduced, but too much threading can harm performance. The architecture includes various security tools such as a firewall, Suricata IDS/IPS, and the MISP open-source threat intelligence platform for enhanced cybersecurity measures specific to smart homes. A custom Python script coordinates Suricata's interactions with MISP for real-time updating of threat intelligence. In case of significant alerts, Suricata sends notifications to MISP for widespread intelligence sharing and routes them for further analysis through Cohere&#x2019;s AI API. Users are promptly informed via email alerts. The system functions on a Raspberry Pi as an IoT device in the smart home, while MISP connects to open-source threat feeds on a virtual machine, optimizing performance under hardware constraints.</p>
            </sec>
            <sec id="sec9">
                <title>3.2 IoT cloud network</title>
                <p>The intelligent home architecture utilizes integrated IoT cloud technology designed for enhanced interactions among fog nodes, users, and developers. It incorporates a TCP/IP stack for connection-oriented services secured by SSL, along with a data dissemination layer for organizing appliance and sensor data before storage in the database. A copy of the database is maintained on a separate VM in the cloud, allowing for machine learning and data analytics while maintaining data integrity. Service-side requests for device access are managed by a relaying service, and customized Android and Web APIs facilitate user control over smart home appliances. A monitoring module for alert generation is also included, and additional protocols like FTP, SFTP, and SSH are utilized for secure communication.</p>
            </sec>
            <sec id="sec10">
                <title>3.3 Data transformation</title>
                <p>The integration of various wireless protocols in a multi-layer WSN requires effective data exchange among devices using differing communication standards. Each protocol, such as Z-Wave, Zigbee, or Wi-Fi, uses distinct data formats, necessitating data conversions to ensure uniformity and functionality across the system. Methods for data transformation are crucial to accommodate these varying formats, which may include adjusting data fields or modifying packet structures to pertinent protocols. Approaches such as using JSON or XML can facilitate the data conversion process while maintaining data integrity across network layers, minimizing the need for specialized algorithms. Ensuring compatibility also requires structural alignment between the differing protocols. Aligned data formatting is crucial during data transformation to ensure compatibility with the receiving device. Minimizing processing time is a critical aspect, as delays can cause discrepancies and risk information loss. Thus, the development of effective transformation algorithms and efficient protocols is vital.</p>
            </sec>
            <sec id="sec11">
                <title>3.4 Energy management system</title>
                <p>Forecast-Based Energy Prediction leverages predictive models and historical data to project future energy consumption or generation using various forecasting techniques like time-series analysis and machine learning. Accurate energy estimates allow for improved organization of energy generation, optimized supply chain management, cost reductions, and enhanced grid stability while diminishing issues such as power outages and low voltage outages in a smarter energy system. A proposed multi-hop forecast-based energy distribution model is described, aimed at predicting energy needs on multiple levels, both for individual households over different time frames and for groups of sub-grid level at smart homes. It manages overall energy demand, reduces waste, schedules energy usage, detects losses, and ultimately contributes to efficient energy supply management within smart areas. The proposed energy forecasting model employs an ensemble learning approach consisting of two stages: individual predictions and ensemble synthesis. Initially, three distinct models predict hourly energy demands, with outputs further processed by an ANN to enhance accuracy. The model focuses on devising mathematical formulations and algorithms for optimizing energy use in Home Energy Management Systems (HEMS), aiming to minimize total energy consumption and costs in smart urban settings. Key factors influencing energy optimization include power balance, the diversity of devices, energy sources, and temporal consumption patterns. Appliance sets within smart homes are represented as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:mi>T</mml:mi>
                            <mml:mo>=</mml:mo>
                            <mml:mrow>
                                <mml:mo stretchy="true">{</mml:mo>
                                <mml:msub>
                                    <mml:mi>a</mml:mi>
                                    <mml:mn>1</mml:mn>
                                </mml:msub>
                                <mml:mo>,</mml:mo>
                                <mml:msub>
                                    <mml:mi>a</mml:mi>
                                    <mml:mn>2</mml:mn>
                                </mml:msub>
                                <mml:mo>,</mml:mo>
                                <mml:msub>
                                    <mml:mi>a</mml:mi>
                                    <mml:mn>3</mml:mn>
                                </mml:msub>
                                <mml:mo>.</mml:mo>
                                <mml:mo>.</mml:mo>
                                <mml:mo>&#x2026;</mml:mo>
                                <mml:mo>,</mml:mo>
                                <mml:msub>
                                    <mml:mi>a</mml:mi>
                                    <mml:mi>n</mml:mi>
                                </mml:msub>
                                <mml:mo stretchy="true">}</mml:mo>
                            </mml:mrow>
                            <mml:mo>,</mml:mo>
                        </mml:math>
</inline-formula> where 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>a</mml:mi>
                                <mml:mn>1</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi>a</mml:mi>
                                <mml:mn>2</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi>a</mml:mi>
                                <mml:mn>3</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:mo>.</mml:mo>
                            <mml:mo>.</mml:mo>
                            <mml:mo>&#x2026;</mml:mo>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi>a</mml:mi>
                                <mml:mrow>
                                    <mml:mi>n</mml:mi>
                                    <mml:mo>,</mml:mo>
                                </mml:mrow>
                            </mml:msub>
                        </mml:math>
</inline-formula> the total energy consumed can be represented as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msubsup>
                                <mml:mi mathvariant="italic">Tot</mml:mi>
                                <mml:mtext mathvariant="italic">ENERGY</mml:mtext>
                                <mml:mrow>
                                    <mml:mi>S</mml:mi>
                                    <mml:mspace width="0.25em"/>
                                    <mml:mi>H</mml:mi>
                                </mml:mrow>
                            </mml:msubsup>
                        </mml:math>
</inline-formula> and specific consumption by the 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msup>
                                <mml:mi>j</mml:mi>
                                <mml:mi mathvariant="italic">th</mml:mi>
                            </mml:msup>
                        </mml:math>
</inline-formula> appliance as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mtext mathvariant="italic">Energy</mml:mtext>
                                <mml:msub>
                                    <mml:mi>a</mml:mi>
                                    <mml:mi>j</mml:mi>
                                </mml:msub>
                            </mml:msub>
                            <mml:mo>.</mml:mo>
                        </mml:math>
</inline-formula>

                    <disp-formula id="e1">

                        <mml:math display="block">
                            <mml:msubsup>
                                <mml:mi mathvariant="italic">Tot</mml:mi>
                                <mml:mtext mathvariant="italic">ENERGY</mml:mtext>
                                <mml:mrow>
                                    <mml:mi>S</mml:mi>
                                    <mml:mspace width="0.25em"/>
                                    <mml:mi>H</mml:mi>
                                </mml:mrow>
                            </mml:msubsup>
                            <mml:mo>=</mml:mo>
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mo>&#x2212;</mml:mo>
                                        <mml:mi>n</mml:mi>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mi>i</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                            <mml:msub>
                                <mml:mtext mathvariant="italic">Energy</mml:mtext>
                                <mml:msub>
                                    <mml:mi>a</mml:mi>
                                    <mml:mi>i</mml:mi>
                                </mml:msub>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="italic">lk</mml:mi>
                                <mml:mtext mathvariant="italic">Energy</mml:mtext>
                            </mml:msub>
                        </mml:math>

                        <label>(1)</label>
</disp-formula>
                </p>
                <p>These methodologies are applicable in diverse areas such as business, finance, supply chain management, meteorology, and energy. Time-series analysis, featuring ARMA and ARIMA models, is particularly important in evaluating energy consumption in smart cities, with ARMA models integrating Auto Regressive (AR) and Moving Average (MA) components for future value projections by referencing prior observations in relation to their current counterparts.
                    <disp-formula id="e2">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>Y</mml:mi>
                                <mml:mi mathvariant="italic">tAR</mml:mi>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mi>c</mml:mi>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mrow>
                                    <mml:mn>1</mml:mn>
                                    <mml:msub>
                                        <mml:mi>Y</mml:mi>
                                        <mml:mrow>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mn>1</mml:mn>
                                        </mml:mrow>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mrow>
                                    <mml:mn>2</mml:mn>
                                    <mml:msub>
                                        <mml:mi>Y</mml:mi>
                                        <mml:mrow>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mn>2</mml:mn>
                                        </mml:mrow>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mrow>
                                    <mml:mn>3</mml:mn>
                                    <mml:msub>
                                        <mml:mi>Y</mml:mi>
                                        <mml:mrow>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mn>3</mml:mn>
                                        </mml:mrow>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>.</mml:mo>
                            <mml:mo>&#x2026;</mml:mo>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi>e</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                        </mml:math>

                        <label>(2)</label>
</disp-formula>
                </p>
                <p>The MA part of the ARMA model analyzes the relationship between current observations and past residual errors from a moving average to forecast future results. Here, c signifies a constant, 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mn>1</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mn>2</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:mo>&#x2026;</mml:mo>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mi>n</mml:mi>
                            </mml:msub>
                        </mml:math>
</inline-formula> represent coefficients, and 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>e</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                        </mml:math>
</inline-formula> denotes the error term.
                    <sup>
                        <xref ref-type="bibr" rid="ref2">2</xref>
                    </sup>
                    <disp-formula id="e3">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>Y</mml:mi>
                                <mml:mi mathvariant="italic">tMA</mml:mi>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mi>c</mml:mi>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi>e</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mrow>
                                    <mml:mn>1</mml:mn>
                                    <mml:msub>
                                        <mml:mi>e</mml:mi>
                                        <mml:mrow>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mn>1</mml:mn>
                                        </mml:mrow>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mrow>
                                    <mml:mn>2</mml:mn>
                                    <mml:msub>
                                        <mml:mi>e</mml:mi>
                                        <mml:mrow>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mn>2</mml:mn>
                                        </mml:mrow>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mrow>
                                    <mml:mn>3</mml:mn>
                                    <mml:msub>
                                        <mml:mi>e</mml:mi>
                                        <mml:mrow>
                                            <mml:mi>t</mml:mi>
                                            <mml:mo>&#x2212;</mml:mo>
                                            <mml:mn>3</mml:mn>
                                        </mml:mrow>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                        </mml:math>

                        <label>(3)</label>
</disp-formula>
                </p>
                <p>
ARIMA models enhance ARMA by integrating an &#x201c;I&#x201d; component to manage non-stationary time series data through differencing. They are characterized by three parameters: p (autoregressive order), d (necessity of differencing for stationarity), and q (moving average order). SARIMA expands upon this framework by incorporating seasonal elements into the ARIMA structure, making it applicable for forecasting seasonal patterns and various forecasting scenarios. Where c represents a constant and 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mn>1</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mn>2</mml:mn>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:mo>&#x2026;</mml:mo>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                                <mml:mi mathvariant="normal">&#x00df;</mml:mi>
                                <mml:mi>n</mml:mi>
                            </mml:msub>
                        </mml:math>
</inline-formula> denote the coefficients.
                    <sup>
                        <xref ref-type="bibr" rid="ref2">2</xref>
                    </sup>
                    <disp-formula id="e4">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>y</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mi>c</mml:mi>
                            <mml:mo>+</mml:mo>
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mo>.</mml:mo>
                                        <mml:mi>p</mml:mi>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mi>n</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                            <mml:msub>
                                <mml:mi>a</mml:mi>
                                <mml:mi>n</mml:mi>
                            </mml:msub>
                            <mml:msub>
                                <mml:mi>y</mml:mi>
                                <mml:mrow>
                                    <mml:mi>t</mml:mi>
                                    <mml:mo>&#x2212;</mml:mo>
                                    <mml:mi>n</mml:mi>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mo>.</mml:mo>
                                        <mml:mi>q</mml:mi>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mi>n</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                            <mml:msub>
                                <mml:mi>&#x03d1;</mml:mi>
                                <mml:mi>n</mml:mi>
                            </mml:msub>
                            <mml:msub>
                                <mml:mi>&#x03f5;</mml:mi>
                                <mml:mrow>
                                    <mml:mi>t</mml:mi>
                                    <mml:mo>&#x2212;</mml:mo>
                                    <mml:mi>n</mml:mi>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mo>.</mml:mo>
                                        <mml:mi>p</mml:mi>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mi>n</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                            <mml:msub>
                                <mml:mi>&#x03d1;</mml:mi>
                                <mml:mi>n</mml:mi>
                            </mml:msub>
                            <mml:msub>
                                <mml:mi>V</mml:mi>
                                <mml:mrow>
                                    <mml:mi>t</mml:mi>
                                    <mml:mo>&#x2212;</mml:mo>
                                    <mml:mi mathvariant="italic">sn</mml:mi>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:mtable displaystyle="true">
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mo>.</mml:mo>
                                        <mml:mi>p</mml:mi>
                                    </mml:mtd>
                                </mml:mtr>
                                <mml:mtr>
                                    <mml:mtd>
                                        <mml:mi>n</mml:mi>
                                        <mml:mo>=</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mtd>
                                </mml:mtr>
                            </mml:mtable>
                            <mml:msub>
                                <mml:mi>&#x03b7;</mml:mi>
                                <mml:mi>n</mml:mi>
                            </mml:msub>
                            <mml:msub>
                                <mml:mi>&#x03f5;</mml:mi>
                                <mml:mrow>
                                    <mml:mi>t</mml:mi>
                                    <mml:mo>&#x2212;</mml:mo>
                                    <mml:msub>
                                        <mml:mi>s</mml:mi>
                                        <mml:mi>n</mml:mi>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>+</mml:mo>
                            <mml:msub>
                                <mml:mi>&#x03f5;</mml:mi>
                                <mml:mi>t</mml:mi>
                            </mml:msub>
                        </mml:math>

                        <label>(4)</label>
</disp-formula>
                </p>
                <p>The ensemble model integrates three forecasting methods: ARMA, ARIMA, and SARIMA, to produce weekly forecasts. The generated weekly forecast data is then used as input for a simple ANN. Furthermore, a demand-based distribution phase is developed to allocate energy from the substation to smart homes, considering each home's specific needs and the energy supply from the grid substation. In general ANN structure consists of input layer, hidden layers and output layer. It performs certain actions such as forward propagation, loss function analysis, backward propagation and optimization is required. ANN structure is mainly used here to handle the data collected from the sensors like temperature, humidity and energy meter and so on.</p>
            </sec>
            <sec id="sec12">
                <title>3.5 Risk prediction</title>
                <p>Risk prediction is the final stage of the proposed methodology. This phase focuses on quantitative measurement and risk analysis after identifying assets, threats, and vulnerabilities. It quantifies the risk from a specific threat to an asset, denoted as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                        </mml:math>
</inline-formula>, by assessing both the likelihood of the threat and its potential impact on the asset, following a specific calculation method.
                    <disp-formula id="e5">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:msub>
                                <mml:mi>L</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                            <mml:mo>&#x00d7;</mml:mo>
                            <mml:msub>
                                <mml:mi>I</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                            <mml:mspace width="0.25em"/>
                        </mml:math>

                        <label>(5)</label>
</disp-formula>
                </p>
                <p>

                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                        </mml:math>
</inline-formula> reflects the risk to asset i from threat j, 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>L</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                        </mml:math>
</inline-formula> assesses the probability of the occurrence of that threat, and 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>I</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                        </mml:math>
</inline-formula> evaluates the potential impact on the asset if the threat occurs. The total risk of an asset, 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mrow>
                                    <mml:mtext mathvariant="italic">asse</mml:mtext>
                                    <mml:msub>
                                        <mml:mi>t</mml:mi>
                                        <mml:mi>i</mml:mi>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                        </mml:math>
</inline-formula>, is obtained by aggregating the individual risks from all identified threats related to that asset. An equation is provided for determining this risk.
                    <disp-formula id="e6">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mrow>
                                    <mml:mtext mathvariant="italic">asse</mml:mtext>
                                    <mml:msub>
                                        <mml:mi>t</mml:mi>
                                        <mml:mi>i</mml:mi>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:munderover>
                                <mml:mo>&#x2211;</mml:mo>
                                <mml:mrow>
                                    <mml:mi>J</mml:mi>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>1</mml:mn>
                                </mml:mrow>
                                <mml:msub>
                                    <mml:mi>M</mml:mi>
                                    <mml:mi>i</mml:mi>
                                </mml:msub>
                            </mml:munderover>
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                        </mml:math>

                        <label>(6)</label>
</disp-formula>
                </p>
                <p>The risk associated with asset i is represented as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mrow>
                                    <mml:mtext mathvariant="italic">asse</mml:mtext>
                                    <mml:msub>
                                        <mml:mi>t</mml:mi>
                                        <mml:mi>i</mml:mi>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:msub>
                        </mml:math>
</inline-formula>, while 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>M</mml:mi>
                                <mml:mi>i</mml:mi>
                            </mml:msub>
                        </mml:math>
</inline-formula> signifies the total number of threats to that asset. The risk contribution of each specific threat j to asset i is denoted as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:msub>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mi mathvariant="italic">ij</mml:mi>
                                </mml:msub>
                            </mml:msub>
                        </mml:math>
</inline-formula>. To standardize the risk evaluation for an asset, the maximum potential risk as influenced by all threats operating at their maximal impact has been evaluated with a mathematical expression.
                    <sup>
                        <xref ref-type="bibr" rid="ref18">18</xref>
                    </sup>
                    <disp-formula id="e7">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mi mathvariant="italic">max</mml:mi>
                            </mml:msub>
                            <mml:mtext mathvariant="italic">asset</mml:mtext>
                            <mml:mo>=</mml:mo>
                            <mml:mi>N</mml:mi>
                            <mml:mo>&#x00d7;</mml:mo>
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mi mathvariant="italic">max</mml:mi>
                            </mml:msub>
                            <mml:mtext mathvariant="italic">threat</mml:mtext>
                        </mml:math>

                        <label>(7)</label>
</disp-formula>
                </p>
                <p>The asset risk indicates that 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mi mathvariant="italic">max</mml:mi>
                            </mml:msub>
                            <mml:mtext mathvariant="italic">asset</mml:mtext>
                        </mml:math>
</inline-formula> is the utmost potential risk, with 
                    <italic toggle="yes">N</italic> representing the maximum number of threats and 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mi mathvariant="italic">max</mml:mi>
                            </mml:msub>
                        </mml:math>
</inline-formula> threat denoting the greatest risk assigned to any individual threat. It introduces a standardization equation that scales asset risk to a range of 0 to 100.
                    <disp-formula id="e8">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">normalized</mml:mtext>
                            </mml:msub>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mtext mathvariant="italic">asset</mml:mtext>
                                <mml:mi>i</mml:mi>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mfrac>
                                <mml:msub>
                                    <mml:mi>R</mml:mi>
                                    <mml:mrow>
                                        <mml:mtext mathvariant="italic">asse</mml:mtext>
                                        <mml:msub>
                                            <mml:mi>t</mml:mi>
                                            <mml:mi>i</mml:mi>
                                        </mml:msub>
                                    </mml:mrow>
                                </mml:msub>
                                <mml:mrow>
                                    <mml:mspace width="0.25em"/>
                                    <mml:msub>
                                        <mml:mi>R</mml:mi>
                                        <mml:mi mathvariant="italic">max</mml:mi>
                                    </mml:msub>
                                    <mml:mtext mathvariant="italic">asse</mml:mtext>
                                    <mml:msub>
                                        <mml:mi>t</mml:mi>
                                        <mml:mi>i</mml:mi>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:mfrac>
                            <mml:mo>&#x00d7;</mml:mo>
                            <mml:mn>100</mml:mn>
                        </mml:math>

                        <label>(8)</label>
</disp-formula>
                </p>
                <p>A smart home, denoted as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">normalized</mml:mtext>
                            </mml:msub>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mtext mathvariant="italic">asset</mml:mtext>
                                <mml:mi>i</mml:mi>
                            </mml:msub>
                        </mml:math>
</inline-formula>. Lower normalized risk values indicate reduced risk, whereas values near 100 signify high risk. The overall risk of the smart home, represented as 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">SmartHome</mml:mtext>
                            </mml:msub>
                        </mml:math>
</inline-formula>, is obtained by combining the normalized risks of all assets. An equation is referenced for determining this total risk.
                    <disp-formula id="e9">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">SmartHome</mml:mtext>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:munderover>
                                <mml:mo>&#x2211;</mml:mo>
                                <mml:mrow>
                                    <mml:mi>i</mml:mi>
                                    <mml:mo>=</mml:mo>
                                    <mml:mn>1</mml:mn>
                                </mml:mrow>
                                <mml:mi>N</mml:mi>
                            </mml:munderover>
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">normalized</mml:mtext>
                            </mml:msub>
                            <mml:mspace width="0.25em"/>
                            <mml:msub>
                                <mml:mtext mathvariant="italic">asset</mml:mtext>
                                <mml:mi>i</mml:mi>
                            </mml:msub>
                        </mml:math>

                        <label>(9)</label>
</disp-formula>
                </p>
                <p>

                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">SmartHome</mml:mtext>
                            </mml:msub>
                        </mml:math>
</inline-formula> represents the overall risk associated with a smart home, while N indicates the total number of assets present in the home. The term 
                    <italic toggle="yes">R</italic>normalized asset
                    <italic toggle="yes">i</italic> signifies the overall risk of each asset within the smart home context, and 
                    <italic toggle="yes">R</italic>normalized asset
                    <italic toggle="yes">i</italic> denotes the normalized risk associated with asset i. Normalization involves calculating the identified maximum potential risk that arises when all assets are exposed to their peak risk levels, determined through a defined equation.
                    <disp-formula id="e10">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">MaxsmartHome</mml:mtext>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mi>N</mml:mi>
                            <mml:mo>&#x00d7;</mml:mo>
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mrow>
                                    <mml:mo>max</mml:mo>
                                    <mml:mtext mathvariant="italic">asset</mml:mtext>
                                </mml:mrow>
                            </mml:msub>
                        </mml:math>

                        <label>(10)</label>
</disp-formula>
                </p>
                <p>In smart homes, the total number of assets is represented as N, while 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mrow>
                                    <mml:mo>max</mml:mo>
                                    <mml:mtext mathvariant="italic">asset</mml:mtext>
                                </mml:mrow>
                            </mml:msub>
                        </mml:math>
</inline-formula> denotes the maximum potential risk for any individual asset. Overall risk is assessed by standardizing these measurements on a scale from 0 to 100 using specific equations.
                    <sup>
                        <xref ref-type="bibr" rid="ref18">18</xref>
                    </sup>
                    <disp-formula id="e11">

                        <mml:math display="block">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">normalizedsmartHome</mml:mtext>
                            </mml:msub>
                            <mml:mo>=</mml:mo>
                            <mml:mfrac>
                                <mml:msub>
                                    <mml:mi>R</mml:mi>
                                    <mml:mtext mathvariant="italic">SmartHome</mml:mtext>
                                </mml:msub>
                                <mml:mrow>
                                    <mml:mspace width="0.25em"/>
                                    <mml:msub>
                                        <mml:mi>R</mml:mi>
                                        <mml:mtext mathvariant="italic">MaxsmartHome</mml:mtext>
                                    </mml:msub>
                                </mml:mrow>
                            </mml:mfrac>
                            <mml:mo>&#x00d7;</mml:mo>
                            <mml:mn>100</mml:mn>
                        </mml:math>

                        <label>(11)</label>
</disp-formula>
                </p>
                <p>

                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">normalizedsmartHome</mml:mtext>
                            </mml:msub>
                        </mml:math>
</inline-formula> (normalized risk), 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">SmartHome</mml:mtext>
                            </mml:msub>
                        </mml:math>
</inline-formula> (risk level), and 
                    <inline-formula>

                        <mml:math display="inline">
                            <mml:msub>
                                <mml:mi>R</mml:mi>
                                <mml:mtext mathvariant="italic">MaxsmartHome</mml:mtext>
                            </mml:msub>
                        </mml:math>
</inline-formula> (maximum potential risk). The normalized risk is expressed as a percentage scale where values between 0-25 are designated as low risk, 26-50 as medium, 51-75 as high, and 76-100 as critical. Additionally, it introduces a systematic algorithm designed for assessing risks associated with individual assets. This 
                    <xref ref-type="boxed-text" rid="B1">Algorithm 1</xref> classifies assets, identifies associated threats, calculates their likelihood and impact using established methodologies, and ultimately assesses the total risk for each threat by multiplying the two reported scores.</p>
                <boxed-text id="B1" orientation="portrait" position="float">
                    <label>Algorithm 1. </label>
                    <caption>
                        <title>CRASHED's risk assessment.</title>
                    </caption>
                    <p>1: procedure Risk Assessment (assets, CAPEC)</p>
                    <p>2: for each asset in assets do</p>
                    <p>3: 
                        <inline-formula>

                            <mml:math display="inline">
                                <mml:mtext mathvariant="italic">asset</mml:mtext>
                                <mml:mo>&#x2190;</mml:mo>
                                <mml:mtext mathvariant="italic">Classify</mml:mtext>
                                <mml:mrow>
                                    <mml:mo stretchy="true">(</mml:mo>
                                    <mml:mtext mathvariant="italic">asset</mml:mtext>
                                    <mml:mo stretchy="true">)</mml:mo>
                                </mml:mrow>
                            </mml:math>
</inline-formula>
                    </p>
                    <p>4: 
                        <inline-formula>

                            <mml:math display="inline">
                                <mml:mtext mathvariant="italic">threats</mml:mtext>
                                <mml:mo>_</mml:mo>
                                <mml:mtext mathvariant="italic">of</mml:mtext>
                                <mml:mo>_</mml:mo>
                                <mml:mtext mathvariant="italic">asset</mml:mtext>
                                <mml:mo>&#x2190;</mml:mo>
                                <mml:mtext mathvariant="italic">Identify Threats</mml:mtext>
                                <mml:mrow>
                                    <mml:mo stretchy="true">(</mml:mo>
                                    <mml:mtext mathvariant="italic">asset</mml:mtext>
                                    <mml:mo stretchy="true">)</mml:mo>
                                </mml:mrow>
                            </mml:math>
</inline-formula>
                    </p>
                    <p>5: for each 
                        <inline-formula>

                            <mml:math display="inline">
                                <mml:mtext mathvariant="italic">threat in threats</mml:mtext>
                                <mml:mo>_</mml:mo>
                                <mml:mtext mathvariant="italic">of</mml:mtext>
                                <mml:mo>_</mml:mo>
                                <mml:mtext mathvariant="italic">asset</mml:mtext>
                                <mml:mspace width="0.25em"/>
                                <mml:mi mathvariant="italic">do</mml:mi>
                            </mml:math>
</inline-formula>
                    </p>
                    <p>6: 
                        <inline-formula>

                            <mml:math display="inline">
                                <mml:mtext mathvariant="italic">Likelihood</mml:mtext>
                                <mml:mo>&#x2190;</mml:mo>
                                <mml:mtext mathvariant="italic">Calculate Likelihood</mml:mtext>
                                <mml:mspace width="0.25em"/>
                                <mml:mrow>
                                    <mml:mo stretchy="true">(</mml:mo>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mo>,</mml:mo>
                                    <mml:mtext mathvariant="italic">CAPEC</mml:mtext>
                                    <mml:mo stretchy="true">)</mml:mo>
                                </mml:mrow>
                            </mml:math>
</inline-formula>
                    </p>
                    <p>7: 
                        <inline-formula>

                            <mml:math display="inline">
                                <mml:mtext mathvariant="italic">Impact</mml:mtext>
                                <mml:mo>&#x2190;</mml:mo>
                                <mml:mtext mathvariant="italic">Calculate Impact</mml:mtext>
                                <mml:mrow>
                                    <mml:mo stretchy="true">(</mml:mo>
                                    <mml:mtext mathvariant="italic">threat</mml:mtext>
                                    <mml:mo stretchy="true">)</mml:mo>
                                </mml:mrow>
                            </mml:math>
</inline-formula>
                    </p>
                    <p>8: Risk
                        <inline-formula>

                            <mml:math display="inline">
                                <mml:mo>&#x2190;</mml:mo>
                                <mml:mtext mathvariant="italic">Likelihood</mml:mtext>
                                <mml:mo>&#x00d7;</mml:mo>
                                <mml:mtext mathvariant="italic">Impact</mml:mtext>
                            </mml:math>
</inline-formula>
                    </p>
                    <p>9: end for</p>
                    <p>10: end for</p>
                    <p>11: end procedure</p>
                </boxed-text>
                <p>The CREFCI methodology supports cybersecurity experts by providing specific steps to evaluate a smart home's vulnerability to risks. Cumulative risk assessments enable experts to identify and categorize risk levels associated with various assets as critical, high, medium, or low, allowing for the prioritization of mitigation strategies tailored to individual asset risks. If high or critical risks are identified, the expert can reassess the individual asset risks to effectively address the most significant threats. The CREFCI model creates an advanced smart home infrastructure by combining IoT fog and cloud networks with effective forecasting and risk management techniques. It enables low-latency communication, secure data handling, and compatibility between various devices. The system optimizes energy consumption, reduces waste, and enhances grid reliability through a multi-hop forecasting approach. Proactive security measures are implemented through risk prediction, while intrusion detection and prevention are strengthened by integrating Suricata IDS/IPS and MISP. Seamless data communication across wireless standards, along with offline functionality, ensures continuity during connectivity issues.</p>
            </sec>
        </sec>
        <sec id="sec13">
            <title>4. Simulation environment</title>
            <p>By implementing energy prediction, mean absolute error, consumed energy, average latency, and energy conservation of the CREFCI model with some existing models, EMSHF,
                <sup>
                    <xref ref-type="bibr" rid="ref16">16</xref>
                </sup> EAIISS,
                <sup>
                    <xref ref-type="bibr" rid="ref17">17</xref>
                </sup> and CRASH.
                <sup>
                    <xref ref-type="bibr" rid="ref18">18</xref>
                </sup> 
                <xref ref-type="table" rid="T2">
Table 2</xref> discusses the simulation parameters. Here a multi-source real time data is used with various sub-systems in smart city application is utilized which is sensor (temperature and humidity), traffic sensors, pedestrians&#x2019; safety sensors. Candidate features are selected fog nodes, imbalance load and peak load with energy consumption.</p>
            <table-wrap id="T2" orientation="portrait" position="float">
                <label>
Table 2. </label>
                <caption>
                    <title>Simulation parameter.</title>
                </caption>
                <table content-type="article-table" frame="hsides">
                    <thead>
                        <tr>
                            <th align="left" colspan="1" rowspan="1" valign="top">Parameters</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">
Values</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Hardware</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Raspberry Pi</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Specification</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Quad core Processor &amp; 8GB RAM</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Fog Nodes</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">50 Nodes</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Protocols</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">MQTT, TCP, and SSL protocols</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Testing Time</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">100 sec</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Platform</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">MISP Platform</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Transmission Protocols</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">TCP, SSL, SSH, SFTP</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">APIs</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Web and Android APIs</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">For Security</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Firewall, IDS/IPS, MISP</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Smart City Size</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">1000 meters</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Number of Trails</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">50 Trials</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Simulation Tool</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">OMNETT++ with SUMO</styled-content>
</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Execution Environment</styled-content>
</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">
                                <styled-content style="#252525" style-type="color">Python</styled-content>
</td>
                        </tr>
                    </tbody>
                </table>
            </table-wrap>
            <sec id="sec14">
                <title>4.1 Energy prediction of CREFCI</title>
                <p>An energy prediction, scoring 75% for the highest probability predictions, a 13% enhancement over current models, which performed at 62%. For second-highest predictions, CREFCI achieved 45% compared to 32% from existing models, and for third-highest probabilities, it doubled the performance from 6% to 12%. It integrates IoT fog-cloud architecture, energy forecasting methods like ARMA and ANN, and multi-hop distribution techniques, enhancing prediction accuracy and reducing data latency in 
                    <xref ref-type="fig" rid="f2">
Figure 2</xref>.</p>
                <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                    <label>
Figure 2. </label>
                    <caption>
                        <title>Energy prediction of CREFCI.</title>
                    </caption>
                    <graphic id="gr2" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/194606/819569df-48de-4fa4-8d2d-3d0e7b94310e_figure2.gif"/>
                </fig>
            </sec>
            <sec id="sec15">
                <title>4.2 Mean absolute error of CREFCI</title>
                <p>It is to measure the average magnitude of error among the given data and with the prediction. It clarifies the true observation about the considered information and its absolute differences. A MAE of 0.004, corresponding to a 50% enhancement from an existing MAE of 0.008. Similar improvements were observed in the second-highest probability event, where the MAE decreased from 0.0125 to 0.007 (a 44% increase in precision), and in the third event, with a reduction from 0.020 to 0.012 (a 40% enhancement) in 
                    <xref ref-type="fig" rid="f3">
Figure 3</xref>. These improvements are attributable to a multi-hop forecasting mechanism combined with ensemble learning models and an ANN. The data transformation protocols ensure better compatibility among IoT devices, assisting in consistent data collection while effectively managing energy demand fluctuations.</p>
                <fig fig-type="figure" id="f3" orientation="portrait" position="float">
                    <label>
Figure 3. </label>
                    <caption>
                        <title>Mean absolute error of CREFCI.</title>
                    </caption>
                    <graphic id="gr3" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/194606/819569df-48de-4fa4-8d2d-3d0e7b94310e_figure3.gif"/>
                </fig>
            </sec>
            <sec id="sec16">
                <title>4.3 Consumed energy calculation</title>
                <p>The energy consumption for EMSHF and EAIISS was 1.0 kWh, while CRASH registered 1.7 kWh. CREFCI utilizes only 0.5 kWh (50%-70% lower). In Smart mode, EMSHF and EAIISS consumed 0.9 kWh and CRASH consumed 1.6 kWh, whereas CREFCI required 0.4 kWh, promoting a 55%-75% in 
                    <xref ref-type="fig" rid="f4">
Figure 4</xref>. Under the optimally functional Smart + PF-PEC mode, CREFCI's consumption fell to 0.3 kWh, marking up to an 80% gain compared to others. This underscores the effectiveness of CREFCI's multi-hop energy prediction prototype, as enabled by its IoT fog-cloud architecture to lower data processing times and enhance power distribution. CREFCI uniquely integrates anomaly detection to avoid overconsumption linkage that spatial static methodology, including EMSHF and EAIISS, typically misses.</p>
                <fig fig-type="figure" id="f4" orientation="portrait" position="float">
                    <label>
Figure 4. </label>
                    <caption>
                        <title>Consumed energy calculation.</title>
                    </caption>
                    <graphic id="gr4" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/194606/819569df-48de-4fa4-8d2d-3d0e7b94310e_figure4.gif"/>
                </fig>
            </sec>
            <sec id="sec17">
                <title>4.4 Average latency calculation</title>
                <p>It is the total time taken to perform a proper communication in response and return manner. It is defined as that of the elapsed duration of the transmitted required and the response delivered. In latency from 0.7 seconds (in EMSHF) to 0.3 seconds, achieving a 40-60% enhancement over baseline models due to its integration of IoT fog-cloud technology in 
                    <xref ref-type="fig" rid="f5">
Figure 5</xref>. This technology processes data closer to the source with edge and fog computing, expediting real-time decision-making and minimizing cloud-associated delays. A multi-hop energy prediction mechanism that helps distribute computational tasks effectively, adaptive scheduling for energy-efficient handling of time-sensitive events, and predictive analytics through ARIMA-ANN models for proactive data processing.</p>
                <fig fig-type="figure" id="f5" orientation="portrait" position="float">
                    <label>
Figure 5. </label>
                    <caption>
                        <title>Average latency calculation.</title>
                    </caption>
                    <graphic id="gr5" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/194606/819569df-48de-4fa4-8d2d-3d0e7b94310e_figure5.gif"/>
                </fig>
            </sec>
            <sec id="sec18">
                <title>4.5 Energy conservation calculation</title>
                <p>An energy efficiency of 38%, surpassing the EMSHF (35%), EAIISS (34%), and CRASH (36%) models by 5&#x2013;10%. The multi-hop energy forecasting and real-time optimization algorithms, which adapt energy resource allocation to fluctuations in demand. CREFCI enhanced thermal comfort, raising the PMV index from 1.0 (EMSHF) and 1.2 (EAIISS) to 1.8 in 
                    <xref ref-type="fig" rid="f6">
Figure 6</xref>. This IoT fog-cloud integration is used to dynamically regulate environmental parameters. The competing models relied on more static energy allocation tactics, resulting in limited energy savings and comfort.</p>
                <fig fig-type="figure" id="f6" orientation="portrait" position="float">
                    <label>
Figure 6. </label>
                    <caption>
                        <title>Energy conservation calculation.</title>
                    </caption>
                    <graphic id="gr6" orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/194606/819569df-48de-4fa4-8d2d-3d0e7b94310e_figure6.gif"/>
                </fig>
            </sec>
        </sec>
        <sec id="sec19" sec-type="results|discussion">
            <title>5. Results and discussion</title>
            <p>The CREFCI model shows a 75% prediction accuracy for likely events, with baseline models by 13%. Its multi-hop forecasting and ANN-based ensemble learning enhance the second and third most likely predictions to 45% and 12%, By using seasonal analysis and combining ARMA, ARIMA, and SARIMA models, the method reduced absolute error by 50% to 0.004. The ANN refinement layer further minimized residual errors, cutting them down by 44% and 40% for the second and third highest events. Energy usage has dropped by 50&#x2013;70% to 0.5 kWh, with further reductions in Smart mode (0.3 kWh) and PF-PEC mode (up to 80%). This is due to demand-aware energy distribution and anomaly detection that optimize power use. Local processing through fog computing has lowered latency from 0.7 to 0.3 seconds. Secure data handling is achieved through SSL/TCP and Suricata IDS/IPS, while SARIMA manages seasonal demand fluctuations and maintains system functionality during outages. The real-time optimization and advanced forecasting have led to a 38% increase in energy efficiency and better thermal comfort compared to older models. 
                <xref ref-type="table" rid="T3">
Table 3</xref> discusses the comparative results.</p>
            <table-wrap id="T3" orientation="portrait" position="float">
                <label>
Table 3. </label>
                <caption>
                    <title>Comparative analysis.</title>
                </caption>
                <table content-type="article-table" frame="hsides">
                    <thead>
                        <tr>
                            <th align="left" colspan="1" rowspan="1" valign="top">Parameter</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">Parameter</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">EMSHF</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">EAIISS</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">CRASH</th>
                            <th align="left" colspan="1" rowspan="1" valign="top">CREFCI</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td align="left" colspan="1" rowspan="3" valign="middle">Energy Prediction of CREFCI</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Highest Probability (%)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">41</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">45</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">59</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">62</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">2nd Highest Probability (%)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">15</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">22</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">27</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">32</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">3rd Highest Probability (%)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">2</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">4</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">6</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="3" valign="middle">Mean Absolute Error of CREFCI</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">MAE (Highest Prob. Event)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.008</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.008</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.008</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.008</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">MAE (2nd Prob. Event)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.0125</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.0125</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.0125</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.0125</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">MAE (3rd Prob. Event)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.020</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.020</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.020</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.020</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="3" valign="middle">Consumed Energy Calculation</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Energy Consumed - Manual (kWh)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.0</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.0</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.7</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Energy Consumed - Smart (kWh)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.9</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.9</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.6</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.4</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Energy Consumed - Smart+PF-PEC (kWh)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.7</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.4</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.5</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.3</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Average Latency Calculation</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Average Latency (s)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.7</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.6</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">0.5</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="2" valign="middle">Energy Conservation Calculation</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">Energy Conservation (%)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">35</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">34</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">36</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">38</td>
                        </tr>
                        <tr>
                            <td align="left" colspan="1" rowspan="1" valign="middle">PMV (Human Comfort)</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.0</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.2</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.6</td>
                            <td align="left" colspan="1" rowspan="1" valign="middle">1.8</td>
                        </tr>
                    </tbody>
                </table>
            </table-wrap>
            <p>For the smart city environment, risk prediction and energy management are the most important requirements in the fog-cloud-IoT network model. In this research, these requirements are properly addressed in a cost-effective manner. From the performance and the comparative analysis, it is understood that the results obtained by CREFCI is better than the earlier research in terms of energy prediction probability, MAE, consumed energy and latency and as well in whole it improves the overall performance of the smart city environment.</p>
        </sec>
        <sec id="sec20" sec-type="conclusion">
            <title>6. Conclusion</title>
            <p>By integrating IoT fog computing with cloud services, the network design ensures low latency, scalability, and enhanced device interaction. A fog node implemented on a Raspberry Pi 4 reduces dependence on continuous cloud connectivity, providing local intelligence for real-time decisions and automation of smart devices. The system combines secure communication protocols (SSL, SSH, SFTP) alongside advanced threat detection, enhancing overall security. It also includes a data transformation framework that ensures compatibility among various wireless protocols like Zigbee, Z-Wave, and Wi-Fi, fostering a unified smart home network. Forecast-Based Energy Prediction model techniques, such as ARMA, ARIMA, and SARIMA, are used to accurately predict energy demands at both household and sub-grid scales. A risk prediction framework is established to assess potential threats and devise proactive responses by categorizing risks based on amplitude and severity. The CREFCI model has a 75% accuracy in energy predictions, with existing models by 13% in the highest predictions and achieving ado double accuracy for the third-highest probabilities. It also reduced MAE by 50% and improved lower-ranked prediction accuracy by 40-44%. The model utilized 50-80% less energy, 0.3-0.5 kWh compared to 1.0&#x2013;1.7 kWh in rival models, and minimized latency by 40-60%, improving from 0.7 seconds to 0.3 seconds, fog-cloud computing, and edge data processing. The use of a multi-hop energy prediction approach allowed better distribution of computational tasks and adaptive scheduling. In future studies, advanced AI-driven predictive analytics will enhance energy forecasting accuracy and anomaly detection. The integration of blockchain technology ensures decentralized security and transparent energy trading among smart homes.</p>
        </sec>
        <sec id="sec21">
            <title>Ethical approval</title>
            <p>The present study does not require ethical approval.</p>
        </sec>
    </body>
    <back>
        <sec id="sec24" sec-type="data-availability">
            <title>Data availability</title>
            <p>The data supporting the findings of this study are openly available at code was obtained the DOI by using Zenodo, and its can be accessed at: 
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.18321846">https://doi.org/10.5281/zenodo.18321846</ext-link>.
                <sup>
                    <xref ref-type="bibr" rid="ref36">36</xref>
                </sup> The dataset was generated from Python source code based on the mathematical models described in 
                <xref ref-type="disp-formula" rid="e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e11">
Equations (1)&#x2013;(11)</xref> and 
                <xref ref-type="boxed-text" rid="B1">Algorithm 1</xref> (CRASHED risk assessment). The repository includes the datasets used for analysis, the values underlying the reported results and figures, and all extended data required to replicate the findings. The data are shared under an open license (CC-BY) and are accessible without restriction.</p>
        </sec>
        <sec id="sec25">
            <title>Software availability</title>
            <p>Source code available from: 
                <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/records/18353173">https://zenodo.org/records/18353173</ext-link>
                <sup>
                    <xref ref-type="bibr" rid="ref37">37</xref>
                </sup>
            </p>
            <p>Archived software available from: 
                <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5281/zenodo.18321846">https://doi.org/10.5281/zenodo.18321846</ext-link>
                <sup>
                    <xref ref-type="bibr" rid="ref36">36</xref>
                </sup>
            </p>
            <p>License: MIT License</p>
        </sec>
        <ack>
            <title>Acknowledgment</title>
            <p>The University of Anbar/Biomedical Engineering Research Center in University of Anbar provided help for the authors to finish their work, for which they are grateful.</p>
        </ack>
        <ref-list>
            <title>References</title>
            <ref id="ref1">
                <label>1</label>
                <mixed-citation publication-type="book">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Jana</surname>
                            <given-names>D</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Pal</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Kumar</surname>
                            <given-names>P</given-names>
                        </name>
</person-group>:
                    <source>

                        <italic toggle="yes">Real-Time Agile Software Management for Edge and Fog Computing Based Smart City Infrastructure.</italic>
</source>
                    <publisher-name>arXiv (Cornell University)</publisher-name>;<year>Jun. 2025</year>.
                    <pub-id pub-id-type="doi">10.48550/arxiv.2506.12616</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref2">
                <label>2</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Rajagopal</surname>
                            <given-names>S</given-names>
                        </name>
</person-group>:
                    <article-title>Edge Computing- Smart Cities: Optimizing Data Processing &amp; Resource Management in Urban Environments.</article-title>
                    <source>

                        <italic toggle="yes">Journal of Information Systems Engineering &amp; Management.</italic>
</source>
                    <year>Jan. 2025</year>;<volume>10</volume>:<fpage>473</fpage>.
                    <pub-id pub-id-type="doi">10.52783/jisem.v10i5s.667</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref3">
                <label>3</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ala&#x2019;anzy</surname>
                            <given-names>MA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Abilakim</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zhanuzak</surname>
                            <given-names>R</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Real time smart parking system based on IoT and fog computing evaluated through a practical case study.</article-title>
                    <source>

                        <italic toggle="yes">Sci. Rep.</italic>
</source>
                    <year>Sep. 2025</year>;<volume>15</volume>(<issue>1</issue>):<fpage>33483</fpage>.
                    <pub-id pub-id-type="pmid">41022834</pub-id>
                    <pub-id pub-id-type="doi">10.1038/s41598-025-15507-6</pub-id>
                    <pub-id pub-id-type="pmcid">PMC12480910</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref4">
                <label>4</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Reis</surname>
                            <given-names>MJCS</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Branco</surname>
                            <given-names>F</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Gupta</surname>
                            <given-names>N</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>An IoT Architecture for Sustainable Urban Mobility: Towards Energy-Aware and Low-Emission Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">Future Internet.</italic>
</source>
                    <year>Oct. 2025</year>;<volume>17</volume>(<issue>10</issue>):<fpage>457</fpage>.
                    <pub-id pub-id-type="doi">10.3390/fi17100457</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref5">
                <label>5</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Tareen</surname>
                            <given-names>FN</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Alvi</surname>
                            <given-names>AN</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Alsamani</surname>
                            <given-names>B</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>EOTE-FSC: An efficient offloaded task execution for fog enabled smart cities.</article-title>
                    <source>

                        <italic toggle="yes">PLoS ONE.</italic>
</source>
                    <year>Apr. 2024</year>;<volume>19</volume>(<issue>4</issue>).
                    <pub-id pub-id-type="pmid">38578775</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pone.0298363</pub-id>
                    <pub-id pub-id-type="pmcid">PMC10997119</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref6">
                <label>6</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Qasem</surname>
                            <given-names>MH</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Abu-Srhan</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Natoureah</surname>
                            <given-names>H</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Fog Computing Framework for Smart City Design.</article-title>
                    <source>

                        <italic toggle="yes">International Journal of Interactive Mobile Technologies (iJIM).</italic>
</source>
                    <year>Jan. 2020</year>;<volume>14</volume>(<issue>1</issue>):<fpage>109</fpage>.
                    <pub-id pub-id-type="doi">10.3991/ijim.v14i01.9762</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref7">
                <label>7</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hussain</surname>
                            <given-names>MM</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Alam</surname>
                            <given-names>MS</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Beg</surname>
                            <given-names>MMS</given-names>
                        </name>
</person-group>:
                    <article-title>Computational Viability of Fog Methodologies in IoT Enabled Smart City Architectures-A Smart Grid Case Study.</article-title>
                    <source>

                        <italic toggle="yes">EAI Endorsed Transactions on Smart Cities.</italic>
</source>
                    <year>Feb. 2018</year>;<volume>2</volume>(<issue>7</issue>):<fpage>154104</fpage>.
                    <pub-id pub-id-type="doi">10.4108/eai.12-2-2018.154104</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref8">
                <label>8</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Aldossary</surname>
                            <given-names>M</given-names>
                        </name>
</person-group>:
                    <article-title>Multi-Layer Fog-Cloud Architecture for Optimizing the Placement of IoT Applications in Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">Computers, materials &amp; continua/Computers, materials &amp; continua (Print).</italic>
</source>
                    <year>Jan. 2023</year>;<volume>75</volume>(<issue>1</issue>):<fpage>633</fpage>.
                    <pub-id pub-id-type="doi">10.32604/cmc.2023.035414</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref9">
                <label>9</label>
                <mixed-citation publication-type="book">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Sobati-M</surname>
                            <given-names>S</given-names>
                        </name>
</person-group>:
                    <source>

                        <italic toggle="yes">FOGNITE: Federated Learning-Enhanced Fog-Cloud Architecture.</italic>
</source>
                    <publisher-name>arXiv (Cornell University)</publisher-name>;<year>Jul. 2025</year>.
                    <pub-id pub-id-type="doi">10.48550/arxiv.2507.16668</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref10">
                <label>10</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Rosendo</surname>
                            <given-names>D</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Silva</surname>
                            <given-names>P</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Simonin</surname>
                            <given-names>M</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>E2Clab: Exploring the Computing Continuum through Repeatable, Replicable and Reproducible Edge-to-Cloud Experiments.</article-title>
                    <year>Sep. 2020</year>;<fpage>176</fpage>.
                    <pub-id pub-id-type="doi">10.1109/cluster49012.2020.00028</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref11">
                <label>11</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Papaioannou</surname>
                            <given-names>C</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Dimara</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Papaioannou</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Hierarchical Resources Management System for Internet of Things-Enabled Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">Sensors.</italic>
</source>
                    <year>Jan. 2025</year>;<volume>25</volume>(<issue>3</issue>):<fpage>616</fpage>.
                    <pub-id pub-id-type="pmid">39943255</pub-id>
                    <pub-id pub-id-type="doi">10.3390/s25030616</pub-id>
                    <pub-id pub-id-type="pmcid">PMC11820741</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref12">
                <label>12</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Nallagattla</surname>
                            <given-names>VRG</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Blockchain-Enabled IoT Framework with Energy-Efficient Machine Learning for Scalable and Secure Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">Sustainable Computing Informatics and Systems.</italic>
</source>
                    <year>Sep. 2025</year>;<fpage>101212</fpage>.
                    <pub-id pub-id-type="doi">10.1016/j.suscom.2025.101212</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref13">
                <label>13</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Sathupadi</surname>
                            <given-names>K</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Achar</surname>
                            <given-names>S</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Bhaskaran</surname>
                            <given-names>S</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Edge-Cloud Synergy for AI-Enhanced Sensor Network Data: A Real-Time Predictive Maintenance Framework.</article-title>
                    <source>

                        <italic toggle="yes">Sensors.</italic>
</source>
                    <year>Dec. 2024</year>;<volume>24</volume>(<issue>24</issue>):<fpage>7918</fpage>.
                    <pub-id pub-id-type="pmid">39771653</pub-id>
                    <pub-id pub-id-type="doi">10.3390/s24247918</pub-id>
                    <pub-id pub-id-type="pmcid">PMC11678991</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref14">
                <label>14</label>
                <mixed-citation publication-type="book">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Nezami</surname>
                            <given-names>Z</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Chaniotakis</surname>
                            <given-names>E</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Pournaras</surname>
                            <given-names>E</given-names>
                        </name>
</person-group>:
                    <source>

                        <italic toggle="yes">When `Computing follows Vehicles&#x2019;: Decentralized Mobility-Aware Resource Allocation in the Edge-to-Cloud Continuum.</italic>
</source>
                    <publisher-name>arXiv (Cornell University)</publisher-name>;<year>Apr. 2024</year>.
                    <pub-id pub-id-type="doi">10.48550/arxiv.2404.13179</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref15">
                <label>15</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Maqdid</surname>
                            <given-names>G</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Ibrahim</surname>
                            <given-names>MA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Askar</surname>
                            <given-names>S</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Deep Learning Applications in Fog Computing Environments: a review.</article-title>
                    <source>

                        <italic toggle="yes">Indonesian Journal of Computer Science.</italic>
</source>
                    <year>Feb. 23, 2025</year>;<volume>14</volume>(<issue>1</issue>).
                    <pub-id pub-id-type="doi">10.33022/ijcs.v14i1.4654</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref16">
                <label>16</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Elhajj</surname>
                            <given-names>M</given-names>
                        </name>
</person-group>:
                    <article-title>Integrating Iot and Blockchain for Smart Urban Energy Management: Enhancing Sustainability Through Real-Time Monitoring and Optimization.</article-title>
                    <source>

                        <italic toggle="yes">SSRN Electron. J.</italic>
</source>
                    <year>Jan. 2024</year>.
                    <pub-id pub-id-type="doi">10.2139/ssrn.5029140</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref17">
                <label>17</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Y&#x0131;ld&#x0131;r&#x0131;m</surname>
                            <given-names>F</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Yalman</surname>
                            <given-names>Y</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Bay&#x0131;nd&#x0131;r</surname>
                            <given-names>K&#x00c7;</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Comprehensive Review of Edge Computing for Power Systems: State of the Art, Architecture, and Applications.</article-title>
                    <source>

                        <italic toggle="yes">Appl. Sci.</italic>
</source>
                    <year>Apr. 2025</year>;<volume>15</volume>(<issue>8</issue>):<fpage>4592</fpage>.
                    <pub-id pub-id-type="doi">10.3390/app15084592</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref18">
                <label>18</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Jakkani</surname>
                            <given-names>AK</given-names>
                        </name>
</person-group>:
                    <article-title>Enhancing Urban Sustainability through AI-Driven Energy Efficiency Strategies in Cloud-Enabled Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">Journal of Energy Engineering and Thermodynamics.</italic>
</source>
                    <year>Aug. 2024</year>;<volume>45</volume>:<fpage>1</fpage>.
                    <pub-id pub-id-type="doi">10.55529/jeet.45.1.13</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref19">
                <label>19</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Rajaan</surname>
                            <given-names>R</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Baishya</surname>
                            <given-names>BK</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Rao</surname>
                            <given-names>TV</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Efficient Usage of Energy Infrastructure in Smart City Using Machine Learning.</article-title>
                    <source>

                        <italic toggle="yes">EAI Endorsed Transactions on Internet of Things.</italic>
</source>
                    <year>Mar. 2024</year>;<volume>10</volume>.
                    <pub-id pub-id-type="doi">10.4108/eetiot.5363</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref20">
                <label>20</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Moinuddin</surname>
                            <given-names>MD</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Nasir</surname>
                            <given-names>MK</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Zaman</surname>
                            <given-names>M</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Integrating fourth industrial revolution (4IR) technologies with green energy systems: A framework for AI-driven smart grid optimization and carbon footprint reduction.</article-title>
                    <source>

                        <italic toggle="yes">Mari Papel y Corrugado.</italic>
</source>
                    <year>May 2025</year>;<volume>2025</volume>:<fpage>122</fpage>.
                    <pub-id pub-id-type="doi">10.71442/mari2025-0013</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref21">
                <label>21</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Almulhim</surname>
                            <given-names>AI</given-names>
                        </name>
</person-group>:
                    <article-title>Integrating Artificial Intelligence into Smart Infrastructure Management for Sustainable Urban Planning.</article-title>
                    <source>

                        <italic toggle="yes">Technologies.</italic>
</source>
                    <year>Oct. 2025</year>;<volume>13</volume>(<issue>11</issue>):<fpage>481</fpage>.
                    <pub-id pub-id-type="doi">10.3390/technologies13110481</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref22">
                <label>22</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ma</surname>
                            <given-names>R</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Alahmadi</surname>
                            <given-names>AA</given-names>
                        </name>

                        <name name-style="western">
                            <surname>El-Gorashi</surname>
                            <given-names>TEH</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Energy Efficient Software Matching in Distributed Vehicular Fog Based Architecture with Cloud and Fixed Fog Nodes.</article-title>
                    <year>Jul. 2020</year>;<fpage>1</fpage>.
                    <pub-id pub-id-type="doi">10.1109/icton51198.2020.9203175</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref23">
                <label>23</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Erregui</surname>
                            <given-names>H</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Aouaqi</surname>
                            <given-names>AE</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Aberbach</surname>
                            <given-names>H</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>The Role of Internet of Things and Fog Computing in Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">International Journal of Artificial Intelligence &amp; Applications.</italic>
</source>
                    <year>Nov. 2024</year>;<volume>15</volume>(<issue>6</issue>):<fpage>31</fpage>.
                    <pub-id pub-id-type="doi">10.5121/ijaia.2024.15603</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref24">
                <label>24</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Kumari</surname>
                            <given-names>R</given-names>
                        </name>
</person-group>:
                    <article-title>Smart Cities Empowered: Leveraging Cloud Computing for IoT Applications.</article-title>
                    <source>

                        <italic toggle="yes">International Journal for Research in Applied Science and Engineering Technology.</italic>
</source>
                    <year>May 2025</year>;<volume>13</volume>(<issue>5</issue>):<fpage>7409</fpage>.
                    <pub-id pub-id-type="doi">10.22214/ijraset.2025.71893</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref25">
                <label>25</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Salhi</surname>
                            <given-names>A</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Algarni</surname>
                            <given-names>FS</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Alshamrani</surname>
                            <given-names>R</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Leveraging artificial intelligence to enable sustainable urban development through the creation of smart and environmentally friendly carbon-free cities.</article-title>
                    <source>

                        <italic toggle="yes">Sci. Rep.</italic>
</source>
                    <year>Oct. 2025</year>;<volume>15</volume>(<issue>1</issue>).
                    <pub-id pub-id-type="pmid">41087390</pub-id>
                    <pub-id pub-id-type="doi">10.1038/s41598-025-16801-z</pub-id>
                    <pub-id pub-id-type="pmcid">PMC12521657</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref26">
                <label>26</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Mithul Raaj</surname>
                            <given-names>AT</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Intelligent Energy Management across Smart Grids Deploying 6G IoT, AI, and Blockchain in Sustainable Smart Cities.</article-title>
                    <source>

                        <italic toggle="yes">IoT.</italic>
</source>
                    <year>Aug. 2024</year>;<volume>5</volume>(<issue>3</issue>):<fpage>560</fpage>.
                    <pub-id pub-id-type="doi">10.3390/iot5030025</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref27">
                <label>27</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Gondhalekar</surname>
                            <given-names>G</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Tewari</surname>
                            <given-names>DB</given-names>
                        </name>

                        <name name-style="western">
                            <surname>Balakrishnan</surname>
                            <given-names>P</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Internet of Things Integration in Smart Cities Enhancing Urban Living through Connected Technologies.</article-title>
                    <source>

                        <italic toggle="yes">ITM Web of Conferences.</italic>
</source>
                    <year>Jan. 2025</year>;<volume>76</volume>:<fpage>3001</fpage>.
                    <pub-id pub-id-type="doi">10.1051/itmconf/20257603001</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref28">
                <label>28</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Guo</surname>
                            <given-names>Z</given-names>
                        </name>
</person-group>:
                    <article-title>Blockchain-enhanced smart contracts for formal verification of IoT access control mechanisms.</article-title>
                    <source>

                        <italic toggle="yes">Alex. Eng. J.</italic>
</source>
                    <year>2025</year>;<volume>118</volume>:<fpage>315</fpage>&#x2013;<lpage>324</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.aej.2024.12.109</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref29">
                <label>29</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Ahmed</surname>
                            <given-names>AM</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Management and prediction of traffic crashes on residential streets in Iraq using the expert system (MPTCRSI-ES).</article-title>
                    <source>

                        <italic toggle="yes">Case Studies on Transp. Policy.</italic>
</source>
                    <year>2025</year>;<volume>21</volume>:<fpage>101530</fpage>.
                    <pub-id pub-id-type="doi">10.1016/j.cstp.2025.101530</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref30">
                <label>30</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Hemant Kumar Reddy</surname>
                            <given-names>K</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>An Ensemble Learning based Energy Forecasting Model: A Sustainable Home Energy Management System for Smart City.</article-title>
                    <source>

                        <italic toggle="yes">Procedia Computer Science.</italic>
</source>
                    <year>2025</year>; vol.<volume>258</volume>: pp.<fpage>1316</fpage>&#x2013;<lpage>1325</lpage>. Batyrzhan.
                    <pub-id pub-id-type="doi">10.1016/j.procs.2025.04.365</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref31">
                <label>31</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Akhmetzhanov</surname>
                            <given-names>BU</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Multi-Layer Integration of Heterogeneous Wireless Sensor Networks for Smart Home Optimization.</article-title>
                    <source>

                        <italic toggle="yes">Procedia Computer Science.</italic>
</source>
                    <year>2024</year>;<volume>231</volume>:<fpage>666</fpage>&#x2013;<lpage>671</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.procs.2023.12.166</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref32">
                <label>32</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Preethi</surname>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Blockchain modeled swarm optimized Lyapunov smart contract deep reinforced secure tasks offloading in smart home.</article-title>
                    <source>

                        <italic toggle="yes">MethodsX.</italic>
</source>
                    <year>2025</year>;<volume>14</volume>:<fpage>103305</fpage>.
                    <pub-id pub-id-type="pmid">40255465</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.mex.2025.103305</pub-id>
                    <pub-id pub-id-type="pmcid">PMC12008677</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref33">
                <label>33</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Huraj</surname>
                            <given-names>L</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Dataset of DDoS attacks on Fibaro home center 3 for smart home security.</article-title>
                    <source>

                        <italic toggle="yes">Data Brief.</italic>
</source>
                    <year>2024</year>;<volume>57</volume>:<fpage>110991</fpage>.
                    <pub-id pub-id-type="pmid">39957732</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.dib.2024.110991</pub-id>
                    <pub-id pub-id-type="pmcid">PMC11827081</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref34">
                <label>34</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Al Rawahi</surname>
                            <given-names>A</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Analyze user behavior to improve Smart Home services.</article-title>
                    <source>

                        <italic toggle="yes">Procedia Computer Science.</italic>
</source>
                    <year>2025</year>;<volume>258</volume>:<fpage>2006</fpage>&#x2013;<lpage>2017</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.procs.2025.04.451</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref35">
                <label>35</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Afif</surname>
                            <given-names>RY</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Smart Home Monitoring to Improve Valuable Storage Security Using IoT-Bluetooth.</article-title>
                    <source>

                        <italic toggle="yes">Procedia Computer Science.</italic>
</source>
                    <year>2023</year>;<volume>227</volume>:<fpage>1077</fpage>&#x2013;<lpage>1085</lpage>.
                    <pub-id pub-id-type="doi">10.1016/j.procs.2023.10.618</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref36">
                <label>36</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Rashid</surname>
                            <given-names>SA</given-names>
                        </name>
</person-group>:
                    <article-title>Dataset for Experimental Demonstration of Cost-Effective Real-Time Risk Prediction and Energy Management System for Fog-Cloud-IoT Architecture.</article-title>
                    <source>

                        <italic toggle="yes">Zenodo.</italic>
</source>
                    <year>2025</year>.
                    <pub-id pub-id-type="doi">10.5281/zenodo.18321846</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref37">
                <label>37</label>
                <mixed-citation publication-type="other">
                    <person-group person-group-type="author">

                        <name name-style="western">
                            <surname>Al Mashhadany</surname>
                            <given-names>Y</given-names>
                        </name>

                        <etal/>
</person-group>:
                    <article-title>Experimental Demonstration of Cost-Effective Real-Time Risk Prediction and Energy Management System for Fog-Cloud-IoT Architecture in Smart City Applications.</article-title>
                    <source>

                        <italic toggle="yes">Zenodo.</italic>
</source>
                    <year>2026</year>.
                    <pub-id pub-id-type="doi">10.5281/zenodo.18353173</pub-id>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
    <sub-article article-type="reviewer-report" id="report460542">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.194606.r460542</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Thornbush</surname>
                        <given-names>Mary J</given-names>
                    </name>
                    <xref ref-type="aff" rid="r460542a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r460542a1">
                    <label>1</label>University of Guelph, Guelph, Ontario, Canada</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>10</day>
                <month>3</month>
                <year>2026</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2026 Thornbush MJ</copyright-statement>
                <copyright-year>2026</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport460542" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.176542.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>The paper contributes the Cost-Effective Risk Prediction and Energy Management in Fog-Cloud-IoT (CREFCI) model for the purpose of&#x00a0;improving energy efficiency, security, and operational reliability within Smart home settings.</p>
            <p> </p>
            <p> Analytical Methodology:</p>
            <p> To more clearly present the study from an analytical perspective, perhaps it would help to present the hypothesis. The paper does present probabilities for energy prediction, and the mean absolute error is considered. It would help to have error bars on graphs (e.g., Figures 4 and 6).</p>
            <p> </p>
            <p> Presentation and Language:</p>
            <p> Please move up figures and tables so that they are placed after first mention in the manuscript. Some editing is required to improve the use of shorter paragraphs in the introduction.</p>
            <p> </p>
            <p> Need to improve some incomplete sentences and other language-related issues, such as not using contractions (do not rather than don't) and consistent capitalization of smart or Smart homes - check the entire manuscript for such issues.</p>
            <p>Is the work clearly and accurately presented and does it cite the current literature?</p>
            <p>Yes</p>
            <p>If applicable, is the statistical analysis and its interpretation appropriate?</p>
            <p>Yes</p>
            <p>Are all the source data underlying the results available to ensure full reproducibility?</p>
            <p>Yes</p>
            <p>Is the study design appropriate and is the work technically sound?</p>
            <p>Yes</p>
            <p>Are the conclusions drawn adequately supported by the results?</p>
            <p>Yes</p>
            <p>Are sufficient details of methods and analysis provided to allow replication by others?</p>
            <p>Yes</p>
            <p>Reviewer Expertise:</p>
            <p>Use of smart energy cities for urban energy saving and improved urban sustainability.</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.</p>
        </body>
    </sub-article>
</article>
