MODEL FOR PROCESSING HISTORICAL TIMESERIES AND ESTABLISHING RULESET FOR ANOMALY DETECTION IN CURRENT SENSOR DATA AND GENERAL-PURPOSE FORECASTING FOR SMART FARMING IN LATVIA
DOI:
https://doi.org/10.17770/etr2025vol2.8569Keywords:
Anomaly Detection, Data Analysis, Forecasting Techniques, Historical Timeseries, Sensor Data, Smart FarmingAbstract
In this article the model is created for establishing ruleset for further anomaly detection in data from smart farming sensors which could be utilized in data cleaning, data analysis and general-purpose forecasting. Model is based on assumption that processes related to smart farming are tied to nature in particular area, for example, Latvia. In case we have historical data for some metric, for example, air temperature, then we can build such a model as long-term knowledge of phenomena provides the basement for such a model to be successful, for example, we know that in Latvia there are four repeating seasons spring, summer, autumn, and winter, but there are even shorter cycles as twelve months with certain known characteristics for each month and day night cycles. Air temperature is more affected by day and night cycles during summer season, less in other seasons.
Created model will show calculations based on air temperature, but similar approach could be utilized for other metrics which depend on location and seasonality of nature, such as soil moisture level, sunlight, etc. In case, approach is applied elsewhere it is assumed that rulesets are regenerated based on local historical timeseries data.
References
Wikipedia, “Smart farming,” [Online]. Available: https://en.wiktionary.org/wiki/smart_farming [Accessed: Jan. 22, 2025].
Latvian Government Open Data, “Historical data of road weather stations 2001-2020,” [Online]. Available: https://data.gov.lv/dati/dataset/celu-meteo-staciju-vesturiskie-dati-2001-2019-gadi [Accessed: Feb. 09, 2025].
Pandas, “Python Pandas – data analysis library,” [Online]. Available: https://pandas.pydata.org [Accessed: Feb. 09, 2025].
Matplotlib, “Matplotlib: Visualization with Python,” [Online]. Available: https://matplotlib.org [Accessed: Feb. 09, 2025].
NumPy, “The fundamental package for scientific computing with Python,” [Online]. Available: https://numpy.org [Accessed: Feb. 09, 2025].
Plotly, “Plotly Open Source Graphing Library for Python,” [Online]. Available: https://plotly.com/python [Accessed: Feb. 09, 2025].
Statsmodels, “Statistical models, hypothesis tests, and data exploration,” [Online]. Available: https://www.statsmodels.org/stable/index.html [Accessed: Feb. 09, 2025].
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Roberts Volkovičs

This work is licensed under a Creative Commons Attribution 4.0 International License.