<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>T. Basyuk);</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>system using neural network technologies⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Taras Basyuk</string-name>
          <email>taras.m.basyuk@lpnu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrii Vasyliuk</string-name>
          <email>andrii.s.vasyliuk@lpnu.ua</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Information Systems and Networks, Lviv Polytechnic National University</institution>
          ,
          <addr-line>Lviv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>The article examines a microcontroller-based climate control system development approaches utilizing neural network technologies. Modern methods of automated climate parameter control are analyzed, including classical algorithms, fuzzy logic, and artificial neural networks. The possibilities of adapting neural network approaches to real-time temperature, humidity, and airflow speed prediction and regulation are explored. The main advantages of intelligent systems over traditional control methods are identified, including improved prediction accuracy, adaptability, and reduced energy consumption. A system's structural model is proposed that incorporates a data collection subsystem, a neural network analysis module, and an adaptive climate control mechanism. A system prototype was implemented and tested in the MATLAB environment. Simulation results confirmed the effectiveness of the developed approach, particularly the ability to accurately determine user comfort levels based on the PMV index and automatically regulate the microclimate. The conducted analysis demonstrates the feasibility of using artificial neural networks for automated climate control in residential, office, and industrial spaces. Future research will focus on improving machine learning algorithms, integrating with IoT systems, and expanding the functional capabilities of the developed system. intelligent control system, neural networks, microcontroller, microclimate, automated control ⋆MoDaST 2025: Modern Data Science Technologies Doctoral Consortium, June, 15, 2025, Lviv, Ukraine 1∗ Corresponding author. † These authors contributed equally.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Modern trends in climate control automation are increasingly focused on the use of artificial
intelligence and neural network technologies [1, 2]. An optimal indoor microclimate directly affects
comfort, employee productivity, and overall business efficiency. A high-quality climate control
system enhances work performance and reduces staff fatigue, which is a crucial factor for business
success. Additionally, proper climate regulation positively impacts the equipment and materials’
condition, which is particularly relevant for enterprises with high technological requirements [3].</p>
      <p>Traditional climate control systems are based on mechanical or programmable solutions that
regulate temperature and humidity in indoor environments [4]. However, with the advent of new
technologies, it is now possible to develop adaptive systems that analyze data in real time and adjust
microclimate parameters according to user needs and environmental changes. By leveraging machine
learning algorithms, these systems can predict temperature and humidity fluctuations, considering
seasonal variations, light levels, and even individual user preferences [5].</p>
      <p>The need for intelligent climate control systems arises from increasing demands for energy
efficiency, comfort, and automation. The implementation of neural network algorithms enables the
development of smart climate control systems capable of autonomously adapting to external
conditions and indoor characteristics [6]. These technologies unlock new possibilities for integration
with modern IoT devices [7], optimizing energy consumption, and enhancing the overall efficiency of
climate solutions [8, 9]. This paves the way for the development of innovative systems that not only
improve quality of life but also contribute to sustainable development and lower building
maintenance costs. Moreover, such solutions can play a key role in the implementation of the "smart
city" concept [10], ensuring the interaction of climate control systems with the overall energy
infrastructure, thereby reducing carbon emissions and promoting more rational resource utilization.</p>
      <sec id="sec-1-1">
        <title>1.1. Analysis of recent researches and publications</title>
        <p>In recent years, the issue of automated climate control has attracted significant attention from the
scientific community due to the advancement of microcontroller technologies and artificial
intelligence. The implementation of neural network approaches enables the creation of adaptive
systems that optimize microclimate parameters based on changes in the external environment and
individual user needs [11, 12].</p>
        <p>As the conducted analysis has shown, current research in this field can be divided into several
directions: the use of classical control algorithms, the application of fuzzy logic, and the integration of
neural networks for decision-making and climate parameter prediction.</p>
        <p>One of the classical approaches is the use of PID (Proportional-Integral-Derivative) controllers,
which stabilize temperature and humidity in controlled environments. In [13], the authors examine
the efficiency of PID controllers in HVAC (Heating, Ventilation, and Air Conditioning) systems but
highlight their insufficient adaptability to dynamic external conditions.</p>
        <p>Another research direction involves the use of fuzzy logic for climate control systems. Studies [14,
15] propose an adaptive temperature regulation method based on fuzzy logic models that consider
user behavioral characteristics. This approach improves system efficiency by analyzing multiple
factors but requires careful tuning of fuzzy logic rules.</p>
        <p>Recently, increased attention has been given to the use of artificial neural networks in climate
control systems. In [16], a model utilizing convolutional neural networks is presented, which analyzes
historical temperature and humidity data to predict future changes and adjust system parameters
accordingly. Studies [17, 18] demonstrate the effectiveness of recurrent neural networks (LSTM) in
forecasting climate parameter changes in indoor environments and automatically adjusting air
conditioning system operation.</p>
        <p>A particularly promising direction is the combination of deep learning with the Internet of
Things (IoT) for distributed monitoring of microclimate conditions. In [19, 20], the authors introduce
an intelligent control system that uses IoT sensors and neural network algorithms to reduce energy
consumption and enhance indoor comfort. This system can autonomously learn from collected data
and adapt its algorithms to specific operational conditions.</p>
        <p>Thus, an analysis of existing research demonstrates that classical approaches to climate control are
gradually being replaced by intelligent methods, particularly those based on neural networks. The
implementation of such solutions enhances the efficiency of climate systems, ensures their
adaptability, and reduces energy consumption. The further advancements of this field are associated
with the improvement of machine learning algorithms and the expansion of neural network model
integration into microcontroller platforms.</p>
      </sec>
      <sec id="sec-1-2">
        <title>1.1.2. Analysis of known software/hardware solutions</title>
        <p>The analysis of existing software and hardware solutions for climate control management shows that
the main approaches are divided into two groups. The first consists of traditional automated control
systems based on classical regulation algorithms, while the second includes solutions that utilize
machine learning and neural networks.</p>
        <p>When considering the first approach [21, 22], traditional automatic climate control systems are
typically based on proportional-integral-derivative (PID) controllers. These controllers ensure
environmental stability but have limited adaptability to changing conditions. Such systems are most
commonly used in industrial and commercial facilities, where maintaining stable operating
parameters is crucial.</p>
        <p>The second approach involves the use of artificial intelligence methods, particularly neural
networks, for forecasting and adaptive regulation of climate parameters [23, 24]. Recent studies
demonstrate the effectiveness of such systems, as they can learn from historical data, predict climate
parameter changes, and adjust equipment operation modes accordingly.</p>
        <p>Among the most well-known solutions in this field, the following can be highlighted:
Nest Learning Thermostat – an intelligent thermostat that uses machine learning algorithms to
automatically adjust temperature settings based on user habits [25]. It analyzes resident behavior,
creates an optimal heating/cooling schedule, and helps save energy. Strengths: high level of
automation and integration with the Google Home ecosystem. Weaknesses: high cost and
dependence on an internet connection.</p>
        <p>Ecobee SmartThermostat – a climate control system that uses temperature and humidity sensors to
optimize energy consumption and enhance comfort [26]. It supports voice control via built-in
Amazon Alexa and is compatible with Apple HomeKit. Advantages: flexible settings and integration
with other smart devices. Drawbacks: complex initial setup and high price.</p>
        <p>Honeywell Home T9 – a solution that utilizes artificial intelligence to manage temperature in
different rooms using external sensors [27]. It provides support for various temperature zones, thus
increasing heating and cooling efficiency. Key benefits: high climate control accuracy and support for
voice commands. Disadvantages: limited compatibility with some smart home ecosystems.</p>
        <p>Tado Smart Thermostat – an innovative system that uses user geolocation to control indoor
climate [28]. It automatically decreases the temperature when residents leave the house and increases
it before they return. Strengths: efficient energy savings and ease of use. Weaknesses: limited
compatibility with certain heating systems.</p>
        <p>Daikin Intelligent Thermostat – a climate control system from Daikin that utilizes artificial
intelligence algorithms to analyze external and internal conditions, predict climate changes, and
adapt equipment operation [29]. Benefits: high forecasting accuracy and efficient climate
management. Drawbacks: high cost and integration complexity with other systems.</p>
        <p>As the analysis shows, modern software and hardware solutions for climate control are
incorporating artificial intelligence and neural network technologies at a growing rate. This enhances
system efficiency, reduces energy consumption costs, and ensures greater user comfort. However,
each solution has its limitations, which should be considered during development.</p>
      </sec>
      <sec id="sec-1-3">
        <title>1.2. The main tasks of the research and their significance</title>
        <p>The objective of this study is to develop a microcontroller-based climate control system utilizing
neural network technologies. The research aims to create an intelligent system that ensures
automated monitoring of climate parameters, their analysis, and adaptive regulation to maintain a
comfortable indoor environment. The proposed system should account for dynamic environmental
changes and room characteristics to maximize energy efficiency and user convenience.</p>
        <p>To achieve this goal, it is necessary to analyze existing climate control approaches, including
classical regulators, fuzzy logic, and neural networks, to identify their advantages and limitations. An
important stage involves developing the system's structural model. This model includes the
architecture of hardware and software components, as well as UML diagrams to illustrate the
interaction logic between elements. Based on the obtained results, a data acquisition subsystem must
be implemented, working with temperature, humidity, and airflow velocity sensors to provide
continuous real-time climate parameter monitoring.</p>
        <p>The next task is to create and train an artificial neural network that will utilize the collected data to
predict climate changes and make automated decisions for parameter regulation. To evaluate the
effectiveness of the proposed approach, system modeling and testing will be conducted in the Matlab
environment, allowing an assessment of its adaptability to changes and energy consumption
optimization.</p>
        <p>The research results address a relevant scientific and practical problem—developing
energyefficient systems that automatically adapt to operational conditions. The proposed approaches and
the developed system will contribute to improving climate change prediction accuracy, reducing
electricity costs, and ensuring comfortable conditions for users.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Major research results</title>
      <p>People constantly face the task of maintaining comfortable microclimatic conditions. The human
brain analyzes information about temperature, humidity, and airflow speed and makes appropriate
decisions for regulation. In modern technological systems, this process is automated using
microcontrollers and neural network algorithms. To implement a microcontroller-based climate
control system utilizing neural network technologies, several key stages must be implemented:





</p>
      <p>First stage – System initialization. This includes configuring the microcontroller, timers,
communication interfaces with sensors, and the communication module.</p>
      <p>Second stage – Data collection. The system receives temperature, humidity, and airflow
readings from sensors and performs initial processing.</p>
      <p>Third stage – Data transmission. The collected information is sent for processing via
communication modules.</p>
      <p>Fourth stage – Data processing using a neural network. Based on the received parameters, the
level of thermal comfort is determined.</p>
      <p>Fifth stage – Decision-making. If the parameters exceed acceptable limits, the system
automatically adjusts the operation of climate control devices.</p>
      <p>Sixth stage – System adaptation. The neural network analyzes the obtained results, adjusts its
parameters, and improves climate control algorithms.</p>
      <p>One of the key stages in system development is the application of an object-oriented approach,
which allows logically structuring the entire system into a unified model. Utilizing this approach
system can be divided into separate classes and objects, each with its own attributes and methods,
facilitating complexity management during software design and implementation. Thanks to the
object-oriented approach, the development process becomes more understandable, and its outcome is
more flexible and scalable [30]. The use of UML diagrams to visualize the system's structure and
processes enhances understanding of interactions between its components [31]. The use case diagram
shown in Figure 1 illustrates the relationships between actors and use cases.</p>
      <p>An office worker can input personal climate preferences and monitor the current microclimate
status. The administrator has additional capabilities, including configuring the neural network,
adjusting system parameters, and remotely monitoring its status. The sensor system is responsible for
collecting the data necessary for making management decisions.</p>
      <p>This diagram demonstrates how the system interacts with different users and helps identify the
main use cases for each, which is crucial for defining further software and hardware requirements.</p>
      <p>The class diagram, shown in Figure 2, illustrates the system's structure at the class level, including
their attributes, methods, and relationships. It helps clearly define the types of objects that exist
within the system, their properties, and how they interact with each other.</p>
      <p>The class diagram represents the architecture of the climate control system, which consists of
several key components.</p>
      <p>Neural Network is responsible for calculating the comfort index, computing errors, and adjusting
expected parameters. It also sends control signals.</p>
      <p>UserData stores the user's expected parameters and their identifier, allowing for parameter
modifications.</p>
      <p>Microcontroller serves as the central component of the system. It processes data received via the
I2C bus, adjusts control parameters, executes necessary changes, collects data from sensors, transmits
them to the server, and generates alerts when needed.</p>
      <p>Sensors measure environmental parameters such as airspeed, humidity, temperature, and carbon
content.</p>
      <p>Control Object is responsible for modifying control parameters based on the received data.</p>
      <p>The sequence diagram (Figure 3) is a crucial element for visualizing how different objects interact
within the system. This diagram illustrates the data lifecycle and the message exchange processes
between objects, providing a clear understanding of the interaction order.</p>
      <p>In the case of this system, the sequence diagram shows how sensors data is transmitted to the
microcontroller, where it is processed by the neural network. The results are compared with the
expected values, and based on the comparison outcome, a control signal is generated to adjust the
climate control devices. This allows for a precise identification of when and how the system's
operation will be corrected.</p>
      <p>A key element of the system is the neural network. It is trained using an error backpropagation
algorithm. This allows for efficient adjustment of the network's weight coefficients, reducing
prediction error and ensuring high accuracy of regulation. The advantage of this approach is the
reduction in computational costs compared to deep neural networks, making it suitable for
implementation in microcontroller systems [32, 33].</p>
      <p>To form the input data, the Predicted Mean Vote (PMV) index is used, which is one of the most
effective for determining thermal comfort. The PMV is calculated using Fanger’s equation, which
allows for the assessment of comfort conditions based on the individual’s parameters [34]. The
average value of the sample is shown on a seven-point scale of thermal sensation, as shown in Table1.</p>
      <p>An additional parameter is the use of the Predicted Percentage of Dissatisfied (PPD) index, which
reflects the number of people who may experience discomfort under certain conditions, and is
described by the following equation [35]:</p>
      <p>
        PPD=100−95 e(−(0.03353 PMV 4+0.2179 PMV 2)) (
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
      </p>
      <p>Next, this data is fed into the neural network, which uses it to adapt the operation of the
microclimate control system. According to the relationship presented in Figure 4, the correlation
between the PMV and PPD indices allows for the assessment of how comfortable the conditions are
for the workers.</p>
      <p>If the PMV equals zero, it means that the conditions are thermally neutral. Ideal comfort conditions
for most people are defined by PMV values ranging from -0.5 to +0.5. This combination of parameters
ensures that the workers satisfaction level will be at least 80%. Thus, the application of a neural
network for microclimate control allows for precise control over environmental parameters, taking
into account the individual needs of users and ensuring a high level of comfort in the workplace.</p>
      <p>One effective approach to implementing predictive control is the use of a Neural Predictive
Controller (NPC) [36]. This approach enables the forecasting of the system's state based on empirical,
neural network built models. The proposed control strategy takes into account the interrelationships
between microclimate parameters, allows adaptive adjustments of the system settings according to
operating conditions, and optimizes the control trajectory within allowable states. Figure 5 shows the
control configuration diagram.</p>
      <p>The operation of the controller is determined by the empirical model of the controlled process,
which is based on previous values of state variables. The control strategy is chosen to account for the
relationships between the parameters describing the state of the control object, the limitations of
control devices, and the ability to select the best trajectory for state changes within the set of
allowable values.</p>
      <p>An important element of the system’s development is the implementation of the information
collection subsystem, which performs the client part function of the microcontroller-based climate
control system and is based on the ATMEL ATMEGA series microcontroller [37, 38]. Microcontrollers
in this series are single-chip computing devices that allow for signal processing from various sensors,
ensuring efficient control of electronic systems. For the implementation of the data collection
subsystem in this study, the AVR ATMega32 microcontroller was chosen. It has several advantages,
including high performance, low power consumption, and a wide range of built-in functions. The
microcontroller in a PDIP package has 40 pins, which are shown in Figure 6.</p>
      <p>In particular, the microcontroller includes 32 KB of flash memory, 2 KB of SRAM, an 8-channel
10bit ADC, support for serial interfaces (USART, SPI, I2C), as well as power-saving mechanisms. The
Harvard architecture ensures high data processing speed, which is crucial for working with real-time
climate parameters.</p>
      <p>To collect the necessary information about the environmental state, the developed system uses the
following sensors:

</p>
      <p>Temperature and humidity sensor SHT21 – a high-precision digital sensor that
simultaneously measures two parameters. The SHT21 sensor has output signals in I2C, PWM,
and SDM formats. Its power consumption is 1.5 µW, making it very energy-efficient. It can
measure relative humidity in the range of 0 to 100% and operate in a temperature range of -40
to 125°C. The sensor’s response time is 8 seconds, and its measurement accuracy is up to 2%.
The sensor's dimensions are a QFN package of 3x3 mm [39].</p>
      <p>Air velocity sensor PAV3005D – a highly sensitive sensor based on MEMS technology,
providing air velocity measurements in the range of 0-7 m/s. The use of the I2C digital
interface allows for efficient integration of this sensor into the system's overall architecture
[40].</p>
      <p>To transmit the collected data to the system’s server, a module SIM900D [41] (Figure 7) is used.</p>
      <p>This module enables wireless data exchange through mobile networks using the GPRS standard.
The interaction between the ATMega32 microcontroller and the SIM900D is carried out via the
USART serial interface, allowing for the transmission of collected climate parameters for further
processing.</p>
      <p>To simulate the operation of the data collection subsystem, the Proteus software platform [42] was
used, which allows for testing electrical circuits and verifying the correctness of software operation
without the need to create a physical prototype. Proteus VSM Simulation provides a realistic
emulation of the interaction between the microcontroller, sensors, and communication tools,
enabling optimization of the system's operation at the design stage. Thus, the developed data
collection subsystem ensures efficient reception, preliminary processing, and transmission of climate
parameters. This is crucial for the subsequent operation of neural network-based data analysis
algorithms in the microclimate control system.</p>
      <p>The next step was modeling the main stages of system operation using the algebraic algorithms
apparatus [43].The first stage of the implementation of the algorithms algebra is the description of
unit terms and the synthesis of sequences [43], which is given below.</p>
      <p>Formed uniterms: I(s) – uniterm of system initialization; C(d) - is the data collection from sensors
uniterm; T(d) - is the unitterm of data transmission via GSM module; N(d) - is the uniterm of data
processing by neural network; D - is the uniterm for decision-making and climate regulation; F - is the
uniterm of network feedback and adaptation; E – a uniterm of cycle completion and re-reading; u1 – a
uniterm of cycle completion or continuation; u2 – a uniterm of check if PMV is within limits [-2, +2];.
As a result the following sequences and eliminations were synthesized:</p>
      <p>S1 - the sequence of system initialization and completion of the work cycle:
S2 – the sequence of a full cycle of operation when the condition u1 is satisfied:
S3 – the sequence of a full cycle of operation when the condition u1 is not satisfied:</p>
      <sec id="sec-2-1">
        <title>L1 – the elimination of check if PMV is within limits [-2, +2]:</title>
      </sec>
      <sec id="sec-2-2">
        <title>L2 – the elimination of cycle completion or continuation:</title>
        <p>After substituting the corresponding sequences into the elimination, we obtain the following
formulas:</p>
        <p>As a result of using the properties of the algebra of algorithms [43], we subtract the common unit
terms by the sign of the elimination operation and obtain the following formula of the algebra of
algorithms:</p>
        <p>According to the presented model, the first stage is the initialization of the system, which includes
setting the clock frequency of the ATMega32 microcontroller to 8 MHz, configuring the timers for
processing delays and interrupts, setting up the I2C interface [44] for communication with the
sensors, and initializing USART for communication with the GSM module. To do this in the Proteus
program, the properties window needs to be opened and the "Timers" section selected. Any AVR
microcontroller contains several built-in timers (Figure 8).</p>
        <p>Timer 0 will be used to generate delays, while Timer 2 will interrupt every 10 milliseconds and will
be used for reading data from the sensor and displaying the results. Unlike Timer 0, Timer 2 will
trigger an interrupt.</p>
        <p>Configuration of Timers 0 and 2:
// Timer/Counter 0 initialization
TCCR0=(0&lt;&lt;CS02) | (1&lt;&lt;CS01) | (1&lt;&lt;CS00);
// Timer/Counter 2 initialization
ASSR=0&lt;&lt;AS2;</p>
        <p>TCCR2=(0&lt;&lt;PWM2) | (0&lt;&lt;COM21) | (0&lt;&lt;COM20) | (0&lt;&lt;CTC2) | (1&lt;&lt;CS22) | (1&lt;&lt;CS21) |
(1&lt;&lt;CS20); TCNT2=0xB2; OCR2=0x00;</p>
        <p>In the interrupt mask register of the timer, only the TOIE2 bit is initialized with a value of 1,
meaning the interrupt for Timer 2 is enabled.</p>
        <p>// Timer(s)/Counter(s) Interrupt(s) initialization</p>
        <p>TIMSK=(0&lt;&lt;OCIE2) | (1&lt;&lt;TOIE2) | (0&lt;&lt;TICIE1) | (0&lt;&lt;OCIE1A) | (0&lt;&lt;OCIE1B) | (0&lt;&lt;TOIE1) |
(0&lt;&lt;TOIE0);</p>
        <p>
          To enable the use of USART, you need to go to the corresponding section and check the
"Transmitter" and "Receiver" checkboxes, as well as enable the Rx interrupt. Since the digital signal
from the sensor is transmitted via the I2C protocol, it is necessary to configure the controller to work
with the sensor in the "Bit-Banged I2C Bus Interface" section. For this, set the 4th pin of port C as the
SDA bit and the 5th pin as SCL. Then, the value obtained from the sensor should be converted
according to the expression (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) to receive the number in degrees Celsius.
        </p>
        <p>175.72∗ST
T =−46.85+
216
}
Sending the data read from the sensors via the GSM module is described in the following listing:
void Send(unsigned char Message[]){
for(n=0;n=2';n++){
for(z=0; cmd[z]!='';z++){
while(!(UCSRA&amp;(1&lt;&lt;UDRE))){};</p>
        <p>UDR = cmd [z];
}</p>
        <p>UDR = ('\r');
}
for(z=0;Message[z]!='';z++){
while(!(UCSRA&amp;(1&lt;&lt;UDRE))){};</p>
        <p>UDR = Message[z];
}
while(!(UCSRA&amp;(1&lt;&lt;UDRE))){};
UDR = (26);
}</p>
        <p>In the Labcenter Electronics Proteus simulation environment, a schematic of the data monitoring
subsystem was developed. For this, a transformer-based power supply block with a 5V output was
designed. The core of the circuit is the ATMega32 microcontroller, which is connected to the SHT21
sensor and the SIM900D GSM module. An LCD display is used for the digital indication of the
measurement results. Monitoring the threshold values of the parameters is carried out with the help
of LEDs (green for humidity and red for temperature). The result of the microcontroller system
simulation with the temperature and humidity sensor is shown in Figure 10.</p>
        <p>Using simulation, a dataset for training the neural network was generated. Let's pay attention to
the control subsystem for which the data has already been obtained. The constraints of the control
system are the use of the PMV index only within the range of -2 to +2. Additionally, the parameters
must comply with the ISO 7730 standard [45]: the temperature should be between +10°C and +30°C,
humidity between 30% and 70%, and CO₂ concentration should not exceed 1400 ppm. For training the
neural network, a test sample from the monitoring system is used, as well as expert assessments from
office workers to determine the PMV index.</p>
        <p>
          According to Fanger [46], the thermal comfort equation is as follows (
          <xref ref-type="bibr" rid="ref3">3</xref>
          ):
        </p>
        <p>PMV =( 0.303 e−0.036 M +0.028 ) { M −W −3.05∗10−3∗[ 5733−6.99 ( M −W )− Pa ]
−0.42 [ ( M −W )−58.15 ]−1.7∗10−5 M (5867− Pa)−0.0014 M∗(34−t a)</p>
        <p>−3.96∗10−8 f cl [ ( t cl+273 )4−( t r +273 )4 ]−f cl hc ( t cl−t a ) }</p>
        <p>
          The metabolic rate coefficient M for a relaxed state of a person is 58.15 W/m². The activity
coefficient W for office work can be approximated as zero. The clothing insulation coefficient Icl, with
a value of 0, represents a person without clothes, while a value of 1 represents comfortable conditions
for a person in business attire. The average normalized value of this parameter is 0.078. This value will
be used for calculating fcl – the comfort area coefficient (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ):
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
(
          <xref ref-type="bibr" rid="ref5">5</xref>
          )
(6)
(7)
Pa=
        </p>
        <p>RH∗Ps
100</p>
        <p>,
t cl=35.7−0.0275 ( M −W )− I cl {( M −W )−3.05 [ 5.73−0.007 ( M −W )− Pa ]
−0.42 [ ( M −W )−58.15 ]−0.0173 M (5.87− Pa)−0.0014 M (34−t a) }
f cl={
The convective heat transfer hc is determined by formula (8):
hc={</p>
        <p>Since the PMV value is determined by four parameters, the input layer consists of four neurons:
the average external temperature, the indoor air temperature, the indoor humidity, and the indoor air
flow speed. The output layer has only one value, the PMV, so the number of neurons in the output
layer is one. Therefore, the input layer has a 4-dimensional size, and the output layer is
onedimensional.</p>
        <p>The PMV index is a complex nonlinear relationship, and the initial weights of the neurons play a
crucial role in the training process. They affect the algorithm convergence, the training time, and the
likelihood of reaching a local minimum. To avoid the stabilization of the output value at the beginning
of the training, the initial weights are randomly generated in the range: [-2 / q, 2 / q].</p>
        <p>Analysis of the obtained results.</p>
        <p>To create the control system model, the Deep Learning Toolbox package was used, specifically the
Neural Network Predictive Controller module. This module consists of a neural network (NN) block
and an optimization block. The diagram of the module is shown in Figure 11.</p>
        <p>According to the obtained mathematical model, a control scheme was created, which is shown in
Figure 12. The mathematical model of the microprocessor subsystem is used as the object of the
mathematical model (Plant). First, we input the initial value and the learning efficiency of the weight
coefficient for each layer. Then, we define the input vector and the system's output, and compute the
error E(k). Next step is calculating the input and output of the neurons in each layer of the neural
network, with the output layer being the computed PMV index. Finally, we compute the controller's
output and conduct training through the neural networks, performing online adjustment of the
weight coefficient to achieve adaptive control of the PMV parameters. We set k = k + 1 and repeat the
entire process from the first step.</p>
        <p>The result of the network training is shown in Figure 13. To implement the adaptability of the
system, it is necessary to modify the optimal values, which is done through the system performance
assessments by office workers.</p>
        <p>As seen from the graphs (Fig. 13), the desired error value of 10-4 was achieved after 2149 iterations.
The training, testing, and validation graphs are shown in Figure 14.</p>
        <p>To verify the system's functionality, we will run the created model and display the graphs of
measured and controlled parameters, as well as the PMV index (Fig. 15).</p>
        <p>In Figure 14, the graphs of PMV, relative humidity, outdoor and indoor temperatures, and airspeed
are shown, respectively. As we can see, the comfort index for employees is maintained at
approximately 0.21. Given the above we can conclude that the office climate control neural network,
which stabilizes the climatic parameters at the level determined by the mathematical model while
considering the PMV index, is ready.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>As a result of the conducted research, a microcontroller-based climate control system that uses neural
network technologies was developed. Modern methods of regulating climatic parameters were
analyzed, including classic control algorithms, fuzzy logic, and neural networks. The study showed
that traditional methods, such as PID controllers, have limitations in flexibility when adapting to
dynamic environmental changes, while the use of neural network algorithms significantly improves
the system's efficiency.</p>
      <p>The developed system ensures automated monitoring of microclimate parameters and their
adaptive regulation based on data obtained from temperature, humidity, and airspeed sensors. The
use of artificial neural networks in decision-making allows the system to predict changes in climatic
conditions and adjust the operation of climate devices accordingly. An analysis of the relationship
between the PMV index and user comfort levels also enabled the optimization of control algorithms.</p>
      <p>The creation of UML diagrams for object-oriented system design allowed for a clear definition of
its functional capabilities and interactions between components. The proposed control model was
implemented as a prototype, which was tested in the MATLAB environment. The testing results
confirmed the effectiveness of the approach: the system ensures the maintenance of microclimate
parameters within comfortable limits with minimal energy consumption. It was also confirmed that
the application of neural network technologies improves the accuracy of climate control parameters
and automates the regulation process without the need for constant user intervention.</p>
      <p>Further research will focus on improving machine learning algorithms, expanding the capabilities
of adaptive control, and integrating with modern IoT solutions to enhance automation and optimize
energy consumption. Methods for improving the accuracy of climate change prediction are planned
as well. Those will use deep neural networks and will help refine the system's learning model.</p>
    </sec>
    <sec id="sec-4">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, X-GPT-4 and Gramby were used for grammar and spelling
verification. After utilizing these tools/services, the content was reviewed and edited accordingly. The
authors take full responsibility for the content of the publication.
[6] A.F. Pashchenko, Y. M. Rassadin, Microclimate Monitoring System Design for the Smart Grid
Analysis and Constructive Parameters Estimation. IFAC-PapersOnLine. 2022, Vol. 55, Issue 9, pp.
479-484.
[7] A. Vasyliuk, T. Basyuk, Construction features of the industrial environment control system //
CEUR Workshop Proceedings. – 2021. – Vol. 2870 : Proceedings of the 5th International
conference on computational linguistics and intelligent systems (COLINS 2021), Lviv, Ukraine,
April 22–23, 2021. Volume I : main conference. – Р. 1011–1025.
[8] A. Kharbouch, M. Essaaidi, M. Benhaddou, B. Qolomany, J. Qadir, M. Anan, A. Al-Fuqaha, R. M.</p>
      <p>Abid, D. Benhaddou, Internet-of-Things based hardware-in-the-loop framework for
modelpredictive-control of smart building ventilation," Sensors. 2022. Vol. 22, No. 20, p.79-92
[9] G. Halhoul Merabet, M. Essaaidi, M. Ben-Haddou, B. Qolomany, J. Qadir, M. Anan, A. Al-Fuqaha,
R. M. Abid, D. Benhaddou, Artificial Intelligence-Assisted Energy and Thermal Comfort Control
for Sustainable Buildings: An Extended Representation of the Systematic Review. 2020. ArXiv
preprint arXiv:12559, 2020.
[10] A. Katrenko, I. Krislata, O. Veres, O. Oborska, T. Basyuk, A. Vasyliuk, I. Rishnyak, N.</p>
      <p>
        Demyanovskyi, O. Meh, Development of traffic flows and smart parking system for smart city //
CEUR Workshop Proceedings. – 2020. – Vol. 2604 : Proceedings of the 4th International
conference on computational linguistics and intelligent systems (COLINS 2020), Lviv, Ukraine,
April 23–24, 2020. Vol. I : main conference. – P. 730–745.
[11] E. Yang, Z. Long, Research on the Weighting Method Based on Tf-IDF and Apriori Algorithm,
2023 IEEE 6th International Conference on Information Systems and Computer Aided Education
(ICISCAE), Dalian, China, 2023, pp. 1003-1005.
[12] M. Panagiotis, M. Iakovos, G. Socratis, K. Elias. Artificial Neural Network Applications for
Energy Management in Buildings: Current Trends and Future Directions. 2024. Energies. Vol. 17.
doi. 570. 10.3390/en17030570.
[13] C. Blasco, J. Monreal, I. Benítez, L. Andrés. Modelling and PID Control of HVAC System
According to Energy Efficiency and Comfort Criteria. Smart Innovation, Systems and
Technologies. 2019. Volume: 12, pp .365-374
[14] L. Saddik, K. Benahmed, F. Bounaama. Evaluation quality of service for internet of things based
on fuzzy logic: a smart home case study. Indonesian J Electr Eng Comput Sci. 2022. Vol. 25(
        <xref ref-type="bibr" rid="ref2">2</xref>
        ).
pp.825–839.
[15] H. Khajeh, H. Laaksonen, M. Godoy. A fuzzy logic control of a smart home with energy storage
providing active and reactive power flexibility services. Electric Power Syst Res. 2023. Vol.
216. https://doi.org/10.1016/j.epsr.2022.109067
[16] A. Jain, F. Smarra, E. Reticcioli, A. D’Innocenzo, M. Morari. NeurOpt: Neural network based
optimization for building energy management and climate control. In: Learning for Dynamics
and Control. PMLR, 2020. p. 445-454.
[17] Z. Muxing, Z. Xiaosong, G. Siyi, Xu. Xiaodong, C. Jiayu, W. Wei Wang. Urban micro-climate
prediction through long short-term memory network with long-term monitoring for on-site
building energy estimation. Sustainable Cities and Society. 2021. Volume 74,
https://doi.org/10.1016/j.scs.2021.103227
[18] S. M. Gharghory. Deep Network based on Long Short-Term Memory for Time Series Prediction
of Microclimate Data inside the Greenhouse. International Journal of Computational Intelligence
and Applications. 2020. Vol.19. No.2, doi: 10.1142/S1469026820500133
[19] R. Manikandan, G. Ranganathan, V. Bindhu. Deep learning based IoT module for smart farming
in different environmental conditions. Wireless Personal Communications. 2023. Vol. 128(
        <xref ref-type="bibr" rid="ref3">3</xref>
        ), pp.
1715-1732.
[20] N. Fatima, S. Siddiqui, A. Ahmad. IoT-based smart greenhouse with disease prediction using deep
learning. International Journal of Advanced Computer Science and Applications. 2021. Vol. 12(7).
pp.13-22
[21] R. Abdrakhmanov, O. Alchinbayeva. Optimizing Microclimate Comfort in Smart Constructions
Using an Intelligent Fuzzy-PID Temperature Regulation System. In 2024 IEEE 4th International
Conference on Smart Information Systems and Technologies (SIST). 2024. pp. 290-295.
[22] Y. Cheng, Y. Research on intelligent control of an agricultural greenhouse based on fuzzy PID
control. J. Environ. Eng. Sci. 2020, Vol. 15, pp. 113–118.
[23] D. Yu, L. Deng. Automatic Speech Recognition: A Deep Learning Approach. Signals and
      </p>
      <p>Communication Technology. Springer. 2019. P.347.
[24] X. Zhang, Y. Wang. Application of Neural Network in Smart HVAC System Optimization.</p>
      <p>Journal of Building Performance. 2024. Vol. 14, no. 2, pp. 111-118.
[25] J. Tuohy. Nest Learning Thermostat review: pretty smart. [Electronic resource]. Access mode:
https://www.theverge.com/24322643/nest-learning-thermostat-4th-gen-review
[26] J. Reed. Ecobee Smart Thermostat Premium Review: Expensive, but It Does Everything.
[Electronic resource]. Access mode:
https://www.cnet.com/home/energy-and-utilities/ecobeesmart-thermostat-premium-review/
[27] M. Wollerton. Honeywell Home T9 smart thermostat knows what room you're in. [Electronic
resource]. Access mode:
https://www.cnet.com/reviews/resideo-honeywell-home-t9-smartthermostat-review/
[28] S. Hill. Review: Tado Wireless Smart Thermostat V3+. [Electronic resource]. Access mode:
https://www.wired.com/review/tado-wireless-smart-thermostat-v3/
[29] M. Luongo. All About the Daikin One+ Smart Thermostat. [Electronic resource]. Access mode:
https://blog.totalhomesupply.com/daikin-one-smart-thermostat/
[30] A. Dennis, B. Wixom, D. Tegarden, Systems Analysis and Design: An Object-Oriented Approach
with UML, Wiley, 2020
[31] A. Rababah. Assessing the Effectiveness of UML Models in Software System Development.</p>
      <p>International Journal of Applied Science and Research. 2024. Pp.13-24.
https:/doi.org/10.56293/IJASR.2024.5703.
[32] O. Mediakov, T. Basyuk. Specifics of Designing and Construction of the System for Deep Neural
Networks Generation // CEUR Workshop Proceedings. – 2022. – Vol. 3171 : Computational
Linguistics and Intelligent Systems 2022 : Proceedings of the 6th International conference on
computational linguistics and intelligent systems (COLINS 2022). Vol. 1 : Main conference,
Gliwice, Poland, May 12-13, 2022. – P. 1282–1296.
[33] W. Song, N. Feng, Y. Tian, S. Fong. An IoT-based smart controlling system of air conditioner for
high energy efficiency. In Proceedings of the 2017 IEEE International Conference on Internet of
Things (iThings), Exeter, UK, 2020, pp. 442-449.
[34] Z. Sheng, L. Zhang. Extending Predicted Mean Vote using adaptive approach. Building and</p>
      <p>
        Environment. 2020. Vol. 171, https://doi.org/10.1016/j.buildenv.2020.106665
[35] R. Rezaei, Z. Khodaee, M. Ghiai, J. Tabe Arjmand, M. El Haj Assad. The quantitative assessment
of the effects of the morphology of urban complexes on the thermal comfort using the PMV/PPD
model (a case study of Gheytariyeh neighborhood in Tehran). International Journal of
LowCarbon Technologies. 2021. Vol.16(
        <xref ref-type="bibr" rid="ref2">2</xref>
        ), pp. 672-682.
[36] A. Ademola-Idowu, B. Zhang. Frequency Stability Using MPC-Based Inverter Power Control in
      </p>
      <p>Low-Inertia Power Systems. IEEETrans. Power Syst.2021. Vol. 36, No. 2, pp. 1628–1637.
[37] Atmega32 Datasheet [Electronic resource]. Access mode:
http://ww1.microchip.com/downloads/en/devicedoc/doc2503.pdf
[38] A. Vasyliuk, T. Basyuk, V. Lytvyn. Specialized interactive methods for using data on radar
application models // CEUR Workshop Proceedings. – 2020. – Vol. 2631 : Proceedings of the 2nd
International workshop on modern machine learning technologies and data science
(MoMLeT+DS 2020). Vol. I: Main conference. – P. 1–11.
[39] SHT21 Datasheet [Electronic resource]. Access mode:
http://www.farnell.com/datasheets/1780639.pdf.
[40] PAV3005D Datasheet [Electronic resource]. Access mode:
https://posifatech.com/wp-content/uploads/2019/10/Datasheet_PAV3000_AirVelocity_
RevC_C2.pdf
[41] Interfacing GSM-module with ATMega32 AVR microcontroller. [Electronic resource]. Access
mode: http://www.gadgetronicx.com/
[42] Proteus Design Suite [Electronic resource]. Access mode: https://www.labcenter.com/
[43] V. Ovsyak, Algorithms: methods of construction, optimization, probability research. L'viv: Svit,
2001. P. 268. (In Ukrainian).
[44] Electronic Wings. I2C in AVR ATmega16/ATmega32. [Electronic resource]. Access mode:
https://www.electronicwings.com/avr-atmega/atmega1632-i2c
[45] ISO 7730:2005 Ergonomics of the thermal environment — Analytical determination and
interpretation of thermal comfort using calculation of the PMV and PPD indices and local
thermal comfort criteria. [Electronic resource]. Access mode:
https://www.iso.org/standard/39155.html
[46] Y. Cheng, J. Niu, N. Gao. Thermal comfort models: A review and numerical investigation.</p>
      <p>Building and Environment, 2018, Vol. 47, pp. 13–22.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>V.K.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.N.</given-names>
            <surname>Tiwari</surname>
          </string-name>
          ,
          <article-title>Prediction of greenhouse micro-climate using artificial neural network</article-title>
          .
          <source>Applied Ecology and Environmental Research</source>
          .
          <year>2017</year>
          . Vol.
          <volume>15</volume>
          . pp.
          <fpage>767</fpage>
          -
          <lpage>778</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>V.</given-names>
            <surname>Nazarenko</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Cherednichenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Soloviev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Nykyforuk</surname>
          </string-name>
          , P. Tereshchenko,
          <article-title>Studies on microclimate of office premises and improvement of its hygienic regulation in Ukraine</article-title>
          .
          <source>Ukrainian Journal of Occupational Health</source>
          .
          <year>2021</year>
          . pp.
          <fpage>37</fpage>
          -
          <lpage>43</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>C.</given-names>
            <surname>Weiming</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Guangye</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Changjie</surname>
          </string-name>
          ,
          <article-title>Traditional Residential Spatial Comfort Assessment and Passive Room Technology Application Strategy Based on K-means Cluster Analysis</article-title>
          .
          <source>ICCBD '24: Proceedings of the 2024 International Conference on Cloud Computing and Big Data</source>
          .
          <year>2024</year>
          . pp.
          <fpage>100</fpage>
          -
          <lpage>104</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , M. Cheng,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Meng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>Simulation of airflow organization and thermal comfort evaluation method of tall space buildings based on RANS and LES</article-title>
          .
          <source>Journal of System Simulation</source>
          .
          <year>2023</year>
          . Vol.
          <volume>35</volume>
          (
          <issue>10</issue>
          ), pp.
          <fpage>2212</fpage>
          -
          <lpage>2222</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <article-title>Research and application of passive house technology in hot summer and cold winter areas</article-title>
          .
          <source>Engineering Construction (Weize Technology)</source>
          .
          <year>2023</year>
          . Vol.
          <volume>6</volume>
          (
          <issue>9</issue>
          ), pp.
          <fpage>66</fpage>
          -
          <lpage>68</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>