<!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>Kh. Lipianina-Honcharenko);</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An Intelligent Method of Prediction the Demand for Goods/Services in Crisis Conditions</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Khrystyna Lipianina-Honcharenko</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yevgeniy Bodyanskiy</string-name>
          <email>yevgeniy.bodyanskiy@nure.ua</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anatoliy Sachenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ivan Kit</string-name>
          <email>kitivan400@gmail.com</email>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tetiana Podchasova</string-name>
          <email>as@wunu.edu.ua</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Taras Lendiuk</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Kazimierz Pulaski University of Technology and Humanities in Radom, Department of Informatics</institution>
          ,
          <addr-line>Jacek Malczewski str., 29, Radom, 26 600</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Kharkiv National University of Radioelectronics</institution>
          ,
          <addr-line>Kharkiv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Kyiv National University of Construction and Architecture</institution>
          ,
          <addr-line>Kyiv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>West Ukrainian National University</institution>
          ,
          <addr-line>Lvivska str., 11, Ternopil, 46000</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>This study presents the development of a method for prediction the demand for goods and services in crisis conditions, with an emphasis on intelligent algorithms and adaptation to changing market conditions. Noting the limitations of existing approaches, which are mainly focused on specific sectors or have high complexity, this study makes a significant contribution by integrating forecast data to improve the accuracy of further prediction. The method covers the full cycle from data collection and integration to analysis of its performance using advanced machine learning techniques such as HistGradientBoostingRegressor and XGBoost. The RMSE and MAE values indicate the high accuracy of our method compared to other studies using different metrics. The project chosen for the practical implementation of the method demonstrates its effectiveness in real conditions, confirming its importance in various sectors of the economy. The high level of adaptability and accuracy makes the method particularly valuable for resource management in various economic sectors, surpassing other less comprehensive approaches.</p>
      </abstract>
      <kwd-group>
        <kwd>Keywords1</kwd>
        <kwd>Demand prediction</kwd>
        <kwd>Economic crisis</kwd>
        <kwd>Intelligent algorithms</kwd>
        <kwd>Machine learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>In today's dynamic world, where market conditions change rapidly, especially in the context of
economic and social crises, the ability to accurately prediction the demand for goods and services
becomes critical. This not only helps businesses and organizations to effectively plan their
activities, but also contributes to the stability of the economy as a whole. Accordingly, the
development of effective prediction methods that can adapt to rapid changes in consumer
demand and market conditions becomes an important task.</p>
      <p>Traditional prediction methods are often challenged by changing market conditions,
especially during crises. This includes insufficient flexibility and adaptability to new data, as well
as a limited ability to take into account the complexity and unpredictability of human behavior
and economic processes. Therefore, there is a need to develop more advanced, intelligent
prediction methods that can work effectively under a wide range of conditions, including periods
of economic uncertainty.</p>
      <p>The purpose of this paper is to develop an intelligent method of demand prediction for goods
and services, particularly in times of crisis. The method is distinguished by its ability to integrate
prediction data to improve the accuracy of future predictions. This approach not only ensures
high accuracy and adaptability, but also opens up new opportunities for flexible response to
market challenges.</p>
      <p>The rest of paper is structured as follows. In the "Related Work" section, an analysis of modern
existing methods in the domain was carried out. Next, the "Method" section presents the
developed method in detail, including the stages of data collection, their processing, selection of
the optimal prediction model, and its analysis. The section "Case Study” describes the
experimental part of th paper. Finally, the "Conclusion" section summarizes the key aspects of the
research and its practical significance.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        The study [
        <xref ref-type="bibr" rid="ref1">1, 24</xref>
        ] uses a complex deep learning approach based on LSTM networks for demand
analysis in the field of supply chain management. This method, although effective, requires
significant computing resources and is highly complex. At the same time, studies [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] focus
on the use of machine learning to demand prediction in specific areas - taxis and agriculture,
respectively. These methods are limited in their specificity and are not widely used.
      </p>
      <p>
        Work [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] analyzes changes in consumer behavior during the economic crisis. However, the
lack of specific prediction algorithms makes this research less practical for real-world
application. On the other hand, studies [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] focus on narrow market segments, such as
financial time series and the labor market. These techniques, while useful in their own domains,
cannot be easily adapted to other sectors. Also, works [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and [8] consider specialized models for
the demand prediction for food additives during a pandemic and in the field of water-energy
connection. These studies also have limitations due to their specificity.
      </p>
      <p>The study [9] analyzes the application of machine learning methods for predicting the number
of patients in emergency medical institutions. The main limitation of this approach is its narrow
specialization, which prevents its use in other areas.</p>
      <p>The article [10] presents a methodology for prediction of short-term time series, but it does
not involve using already predicted data for further predictions. This approach is more focused
on mathematical modeling and the use of specific techniques for high-dimensional data, while
our method covers a wider range of data sources and includes a more detailed preparation and
visualization process.</p>
      <p>Work [11] describes the use of a multimodal neural network for sales volumes prediction, but
does not focus on the use of prediction data as a basis for subsequent predictions. This method
differs from ours by using specific external data, such as Google news and trends, and focusing on
neural networks, while our approach is more versatile and open to different machine learning
techniques.</p>
      <p>The studies analyzed above cover a wide range of demand prediction methods, from specific
fields such as supply chain management, agriculture, and healthcare, to more general approaches
that use machine learning to analyze financial time series and the labor market. However, none
of these studies include the use of predicted data as a basis for further prediction, which is a key
feature of our method.</p>
      <p>Thus, the goal of our work is to develop a method of intelligent prediction of the demand for
goods/services in crisis conditions, which includes the use of predicted data to increase the
accuracy of further predictions. This allows our method to be more flexible and adaptable to
different scenarios, unlike analogs [10, 11], which do not take into account this important aspect
of prediction.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Method</title>
      <p>In today's world, where data is a critical resource for making informed business decisions,
time series prediction plays a key role. This is especially important in conditions where market
variability and customer needs are constantly evolving, especially in times of crisis. Effective data
analysis and prediction not only enables a better understanding of current trends, but also
predicts future changes, which is extremely valuable for strategic planning and resource
optimization. In this context, an intelligent method of prediction the demand for goods/services
in crisis conditions (Fig. 1) has been developed, which covers from the selection and preparation
of data to the determination of the optimal prediction model and visualization of results.</p>
      <sec id="sec-3-1">
        <title>Database for previous sales of goods/services</title>
      </sec>
      <sec id="sec-3-2">
        <title>Database of</title>
        <p>supermarkets</p>
      </sec>
      <sec id="sec-3-3">
        <title>Feedback database</title>
        <p>1
2
3</p>
      </sec>
      <sec id="sec-3-4">
        <title>OLAP</title>
      </sec>
      <sec id="sec-3-5">
        <title>Database</title>
      </sec>
      <sec id="sec-3-6">
        <title>Separation of data into test and training data</title>
        <p>Prediction of
individual
parameters
4</p>
      </sec>
      <sec id="sec-3-7">
        <title>Choosing the best model</title>
        <p>5</p>
        <p>7</p>
        <p>Final
prediction
8</p>
        <p>Calculation of
the error
interval
Visualization of the forecast with
an error interval</p>
        <p>7.3. Representation of the confidence interval as a shaded area around  ̂</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Case Study</title>
      <p>As part of the study, the "SmartMed" project was chosen, which is aimed at developing innovative
medical solutions in the context of smart cities. The project covers a wide range of activities,
including telemedicine, medical data analysis and intelligent recommendations for health
support.</p>
      <p>The main emphasis in this study was on the development of an intelligent forecasting system
(Fig. 2) capable of adapting to changes in the market, especially during periods of crisis. The initial
forecasting stage involved gathering data from a variety of sources, such as online reviews [19,
21] and medical product sales statistics, as well as historical data.</p>
      <p>Using data analysis, key parameters for forecasting were determined, including: paracetamol
sales, positive feedback about the service, negative feedback about the service, positive feedback
on paracetamol, negative feedback on paracetamol, number of services. Based on the RMSE and
MAE [25] criteria, the HistGradientBoostingRegressor [15] model was selected as the most
accurate for predicting these parameters. The results of the comparison of this model with other
machine learning algorithms are shown in Table 1.</p>
      <sec id="sec-4-1">
        <title>HistGradientBoosti</title>
        <p>ng Regressor [15]</p>
      </sec>
      <sec id="sec-4-2">
        <title>RMSE MAE</title>
      </sec>
      <sec id="sec-4-3">
        <title>XGBoost [16] CatBoost [17]</title>
      </sec>
      <sec id="sec-4-4">
        <title>LightGBM [18] MAE</title>
      </sec>
      <sec id="sec-4-5">
        <title>RMSE</title>
        <p>MAE</p>
      </sec>
      <sec id="sec-4-6">
        <title>RMSE MAE</title>
        <p>The XGBoost method [16] was used to predict the "number of services" parameter, which
demonstrated higher accuracy according to R2 (Table 2) [20, 22]. Taking into account the
received forecasts and their interrelationships, the final forecast for "number of services" was
formed (Fig. 2).</p>
        <p>Next, the model was built and the accuracy of the model was analyzed using the RMSE and
MAE indicators, which confirmed its effectiveness (Fig. 2). The RMSE value was approximately
10.35, indicating the root mean square error, and the MAE, which was 8.97, reflected the mean
absolute error of the forecasts.</p>
        <p>Therefore, the results of the study indicate the practical applicability of the proposed approach
to forecasting within the "SmartMed" project, in particular for increasing the efficiency of
resource management in the field of health care.</p>
        <p>To compare the results of our study with the results of similar studies [10] and [11], a Table 3
is presented that includes the main characteristics of each approach.</p>
        <p>When comparing the accuracy estimates of the three studies, it can be seen (Table 1) that each
of them uses different metrics, but all demonstrate high accuracy in their measurements. Our
method shows low values of RMSE (~10.35) and MAE (~8.97) and high R2 (up to 0.98), indicating
its high accuracy. Study [10] uses sMAPE (8.22), MASE (0.49) and OWA (0.58), showing good
accuracy with these composite metrics. Research [11] demonstrates the statistical significance of
its results with a low p-value (0.00152) and z-value (−3.1733). This highlights that although the
metrics differ, each approach effectively measures prediction accuracy in its context.</p>
        <p>Our method stands out due to its ability to adapt to changes in the market, especially during
periods of crises, and the use of various data sources for accurate forecasting. It demonstrates
high accuracy with low RMSE and MAE values and a high coefficient of determination R2. This
makes our method particularly effective for resource management in any sector of the economy,
giving it an advantage over other methods that may be limited in their specificity or use less
complex forecasting approaches.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>The developed intelligent method is distinguished by its unique ability to adapt to market
crisis scenarios. This approach integrates the analysis of forecast data, significantly increasing the
accuracy of future forecasts. This possibility separates this method from traditional studies [10,
11], which are often limited by their specificity and do not take into account the dynamics of
changes over time.</p>
      <p>The proposed method shows low values of RMSE (~10.35) and MAE (~8.97) and high R2 (up
to 0.98), indicating its high accuracy. Compared with studies [10] and [11], our method
demonstrates competitive accuracy by using different machine learning methods and showing
high adaptability.</p>
      <p>The method can be applied in various areas of the economy, in particular to increase the
efficiency of resource management in crisis conditions. Its flexibility and adaptability open wide
prospects for further development and application in other sectors, adapting to new market
conditions.
[8] A. K. Singh and R. K. Singh, Artificial intelligence for demand forecasting in the water-energy
nexus, International Journal of Low-Carbon Technologies 17 (2022) 342-350.
https://doi.org/10.1093/ijlct/ctac043
[9] S. Zehtabian, S. Khodadadeh, L. Bölöni, D. Turgut, Modeling an intelligent controller for
predictive caching in AR/VR-enabled home scenarios, Pervasive and Mobile Computing 71
(2021). https://doi.org/10.1016/j.pmcj.2021.101334
[10] A. Ivaschenko, P. Sitnikov, M. Milutkin, D. Khasanov, A. Krivosheev, AR optimization for
interactive user guides, in: Arai K., Kapoor S., Bhatia R. (eds), Intelligent Systems and
Applications. IntelliSys 2018, volume 869 of Advances in Intelligent Systems and Computing,.</p>
      <p>Springer, Cham, 2019, pp 948-956. https://doi.org/10.1007/978-3-030-01057-7_70
[11] A. Ivaschenko, M. Milutkin and P. Sitnikov, Industrial application of accented visualization
based on augmented reality, in: Proceedings of the 2019 24th Conference of Open
Innovations Association (FRUCT), 2019, pp. 123-129, doi: 10.23919/FRUCT.2019.8711981.
https://doi.org/10.23919/FRUCT.2019.8711981
[12] P. O. Queiroz-Sousa, &amp; A. C. Salgado, A review on OLAP technologies applied to information
networks, ACM Transactions on Knowledge Discovery from Data (TKDD) 14 (2019) 1-25.
https://doi.org/10.1145/3370912
[13] D. S. K. Karunasingha, Root mean square error or mean absolute error? Use their ratio as
well, Information Sciences 585 (2022) 609-629. https://doi.org/10.1016/j.ins.2021.11.036
[14] S. S. Gaikwad, P. Adkar, A review paper on bootstrap framework, IRE Journals 2 (2019)
349351.
[15] S. Sharma, D. Arora, G. Shankar, P. Sharma, V. Motwani, House price prediction using machine
learning algorithm, in: Proceedings of the 2023 7th IEEE International Conference on
Computing Methodologies and Communication (ICCMC), February 2023, pp. 982-986.
https://doi.org/10.1109/ICCMC56507.2023.10084197
[16] O. Sagi, &amp; L. Rokach, Approximating XGBoost with an interpretable decision tree, Information</p>
      <p>Sciences 572 (2021), 522-542. https://doi.org/10.1016/j.ins.2021.05.055
[17] S. B. Jabeur, C. Gharib, S. Mefteh-Wali, W. B. Arfi, CatBoost model and artificial intelligence
techniques for corporate failure prediction, Technological Forecasting and Social Change 166
(2021). https://doi.org/10.1016/j.techfore.2021.120658
[18] X. Sun, M. Liu, Z. Sima, A novel cryptocurrency price trend forecasting model based on</p>
      <p>LightGBM, Finance Research Letters 32 (2020). https://doi.org/10.1016/j.frl.2018.12.032
[19] R. Gramyak, H. Lipyanina-Goncharenko, A. Sachenko, T. Lendyuk, D. Zahorodnia, Intelligent
method of a competitive product choosing based on the emotional feedbacks coloring, in:
Proceedings of the IntelITSIS, 2021, pp. 246-257.
[20] V. Krylov et al., Multiple regression method for analyzing the tourist demand considering the
influence factors, in; Proceedings of the 2019 10th IEEE International Conference on
Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications
(IDAACS), Metz, France, 2019, pp. 974-979. https://doi.org/10.1109/IDAACS.2019.8924461
[21] K. Lipianina-Honcharenko, T. Lendiuk, A. Sachenko, O. Osolinskyi, D. Zahorodnia, M. Komar,
An intelligent method for forming the advertising content of higher education institutions
based on semantic analysis, in: Proceedings of the International Conference on Information
and Communication Technologies in Education, Research, and Industrial Applications,
September 2021, pp. 169-182. https://doi.org/10.1007/978-3-031-14841-5_11
[22] V. Koziuk, H. Lipyanina-Goncharenko, Intelligent method of predicting the discount rate
trend, in: Proceedings of the 2021 11th IEEE International Conference on Intelligent Data
Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS),
September 2021, vol. 2, pp. 1132-1140.
https://doi.org/10.1109/IDAACS53288.2021.9660835
[23] M. Duhan, &amp; P. K. Bhatia, Software reusability estimation based on dynamic metrics using
soft computing techniques, International Journal of Computing 21 (2022) 188-194.
https://doi.org/10.47839/ijc.21.2.2587
[24] I. Paliy, A. Sachenko, V. Koval and Y. Kurylyak, "Approach to Face Recognition Using Neural
Networks," 2005 IEEE Intelligent Data Acquisition and Advanced Computing Systems:
Technology and Applications, Sofia, Bulgaria, 2005, pp. 112-115, doi:
10.1109/IDAACS.2005.282951.
[25] Lutsiv, N., Maksymyuk, T., Beshley, M., Sachenko, A, Vokorokos, L., Gazda, J. Deep
semisupervised learning-based network anomaly detection in heterogeneous information
systems // Computers, Materials and Continua, 2021, 70(1), pp. 413–431</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S. K.</given-names>
            <surname>Prasad</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Alahakoon</surname>
          </string-name>
          , and
          <string-name>
            <given-names>X.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <article-title>Deep Learning for demand forecasting in supply chain management</article-title>
          ,
          <source>International Journal of Industrial Engineering and Management</source>
          <volume>12</volume>
          (
          <year>2022</year>
          )
          <fpage>21</fpage>
          -
          <lpage>31</lpage>
          . https://doi.org/10.22266/ijies2022.
          <fpage>0430</fpage>
          .42
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Kozlov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. A.</given-names>
            <surname>Mottl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and I. V.</given-names>
            <surname>Oseledets</surname>
          </string-name>
          ,
          <article-title>Forecasting changes in consumer behavior in the context of an economic crisis</article-title>
          ,
          <source>Economic Analysis: Theory and Practice</source>
          <volume>21</volume>
          (
          <year>2022</year>
          )
          <fpage>911</fpage>
          -
          <lpage>925</lpage>
          . https://doi.org/10.24891/ea.21.5.
          <fpage>911</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Duan</surname>
          </string-name>
          ,
          <article-title>Real-time taxi demand forecasting using machine learning methods</article-title>
          ,
          <source>Applied Sciences</source>
          <volume>10</volume>
          (
          <year>2020</year>
          ). https://doi.org/10.3390/app10196681
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>G.</given-names>
            <surname>Bo</surname>
          </string-name>
          and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Cai</surname>
          </string-name>
          ,
          <article-title>Artificial neural network-based smart irrigation management in agriculture</article-title>
          ,
          <source>Computers in Industry</source>
          <volume>129</volume>
          (
          <year>2021</year>
          ). https://dblp.org/rec/journals/cin/BoC21
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A. S.</given-names>
            <surname>Kozmenko</surname>
          </string-name>
          and
          <string-name>
            <given-names>S. V.</given-names>
            <surname>Kozmenko</surname>
          </string-name>
          ,
          <article-title>Intelligent methods for financial time series forecasting,"</article-title>
          <source>Advances in Intelligent Systems and Computing</source>
          <volume>1268</volume>
          (
          <year>2021</year>
          )
          <fpage>411</fpage>
          -
          <lpage>420</lpage>
          . https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -63322-6_
          <fpage>41</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>O. V.</given-names>
            <surname>Kuznetsova</surname>
          </string-name>
          and
          <string-name>
            <given-names>E. A.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <article-title>A conceptual model for forecasting skill needs in the labor market using an agent-based approach</article-title>
          , Bulletin of the South Ural State University,
          <source>Series: Economics and Management</source>
          <volume>14</volume>
          (
          <year>2022</year>
          )
          <fpage>101</fpage>
          -
          <lpage>106</lpage>
          . https://doi.org/10.31040/
          <fpage>2222</fpage>
          - 8349-2022-0-4-
          <fpage>101</fpage>
          -106
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Lee</surname>
          </string-name>
          and
          <string-name>
            <given-names>K. S.</given-names>
            <surname>Park</surname>
          </string-name>
          ,
          <article-title>Machine learning-based sales forecasting for dietary supplements in the era of the pandemic</article-title>
          ,
          <source>Journal of Research in Advanced Computer Engineering and Technology</source>
          <volume>12</volume>
          (
          <year>2021</year>
          )
          <fpage>326</fpage>
          -
          <lpage>334</lpage>
          . https://doi.org/10.54560/jracr.v12i2.
          <fpage>326</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>