Next Article in Journal
Sub-Diffraction Photoacoustic Microscopy Enabled by a Novel Phase-Shifted Excitation Strategy: A Numerical Study
Previous Article in Journal
Chemiresistive Effect in Ti0.2V1.8C MXene/Metal Oxide Hetero-Structured Composites
Previous Article in Special Issue
Shallow Learning Techniques for Early Detection and Classification of Cyberattacks over MQTT IoT Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prototype of Hydrochemical Regime Monitoring System for Fish Farms

1
Educational-Scientific Institute of Telecommunications, State University of Information and Communication Technologies, 03110 Kyiv, Ukraine
2
Institute of Computer Science, University of the National Education Commission, 30-384 Krakow, Poland
3
The Institute of Security and Information Technology, University of the National Education Commission, 30-084 Krakow, Poland
4
Faculty of Physics and Mathematics, National Technical University of Ukraine “Igor Sikorsky Kyiv Polytechnic Institute”, 03056 Kyiv, Ukraine
5
Ukrainian Institute of Fisheries of the National Academy of Agrarian Sciences, 03164 Kyiv, Ukraine
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(2), 497; https://doi.org/10.3390/s26020497
Submission received: 4 December 2025 / Revised: 5 January 2026 / Accepted: 9 January 2026 / Published: 12 January 2026

Abstract

This paper presents a prototype of an autonomous hydrochemical monitoring system developed for large freshwater aquaculture facilities, directly addressing the need for smart monitoring in Agriculture 4.0. The proposed solution employs low-power sensor nodes based on commercially available components and long-range LoRaWAN communication to achieve continuous, scalable, and energy-efficient water quality monitoring. Each sensor module performs on-board signal preprocessing, including anomaly detection and short-term forecasting of key hydrochemical parameters. An ecological pond dynamics model incorporating an Extended Kalman Filter is used to fuse heterogeneous sensor data with predictive estimates, thus increasing measurement reliability. High-level data analysis, long-term storage, and cross-site comparison are performed on the server side. This integration enables adaptive tracking of environmental variations, supports early detection of hazardous trends associated with fish mortality risks, and allows one to explain and justify the reasoning behind every recommended corrective action. The performance of the forecasting and filtering algorithms is evaluated, and key system characteristics—including measurement accuracy, power consumption, and scalability—are discussed. Preliminary tests of the system prototype have shown that it can predict the dissolved oxygen level with R M S E = 0.104 mg/L even with a minimum set of sensors. The results demonstrate that the proposed conceptual design of the system can be used as a base for real-time monitoring and predictive assessment of hydrochemical conditions in aquaculture environments.

1. Introduction

Global climate change causes unstable and abnormal weather, which mostly manifests itself as long periods of excessive heat and as a rapid change in temperature. Because of sudden temperature fluctuations, the hydrochemical regimes of fish farm ponds may become worse, and that may lead to fish kills. In order to prevent economic losses related to the mentioned phenomenon, prediction of the hydrochemical regime in the pond can be used. The hydrochemical regime of the pond is determined by the parameters of its water [1], in the first place by the temperature, dissolved oxygen (DO), and pH. In most fish farms, hydrochemical parameters are measured with a predefined period [2]. At that, all measurements are performed either using mobile testing systems for express measurement [3] or simply collecting test samples of the water and then analyzing those samples in the specialized laboratory [1]. Such an approach has some drawbacks:
  • Data collection in both cases usually takes a significant time because it is performed by “a man in the field”.
  • Analysis of collected samples using non-express chemical methods also requires some time to implement and obtain correct results.
As a result, data processing and analysis is performed with a time lag, and any dangerous phenomena may manifest themselves well before any data are analyzed and any decision is made. The use of an online hydrochemical regime condition monitoring system allows one to eliminate those drawbacks, thus allowing for early detection of possible problems, including fish kills. Use of such an online monitoring system, built using the concept of smart farming [4], may significantly decrease farm losses and increase fish farm productivity.
The Internet of Things (IoT) is a very promising technology for use in smart agriculture and especially in fish farming. IoT allows one to build a non-centralized network for data measurement and collection, in which each measurement module (node) is independent of the others. IoT nodes may utilize different communication technologies and protocols, allowing for automated identification of modules and control of remote objects (e.g., aerators or water discharges) [5]. Thus, data collection from different sensors, data transmission through wireless communication networks, and data processing can now be implemented on different levels of a monitoring system [6]. A key feature of an IoT-based measurement module is its ability to implement basic data processing and measurement in one place, as stated, e.g., in [7]; that allows one to reduce data flow in the system and thus improve its reliability. Drawbacks of IoT include limited computing power of the module (which limits data processing to a set of simple operations) and possible cybersecurity issues, especially when a public network is used for data transmission and data are stored on the servers available to the public.
In recent years, many fish pond monitoring systems have been developed, based on distributed monitoring and data collection, unmanned air vehicles (UAVs), and on Internet of Things solutions. In [8], a general review of IoT technologies in smart farming is given; those technologies include Wi-Fi (Wireless Fidelity), Bluetooth, ZigBee, and Long Range (LoRa). Manoj et al. [9] made a similar review of various water quality monitoring systems that have been proposed by various researchers in 2011–2020. Analysis of the recent works, related to the use of IoT in fish farming, is presented below.

1.1. Related Works

Chatziantoniou et al. [10] proposed a monitoring tool, called “Aquasafe”, which was evaluated for its effectiveness and performance by test users through real-life scenarios. That system is developed for use in marine aquaculture; the main water parameters used were dissolved oxygen (DO) and sea surface temperature. Some of those parameters were to be measured from UAVs. Empiric mathematical models were used for prediction of values of those parameters, and based on the predicted values, the state of aquaculture was predicted.
In [11], Akhter et al. proposed a system based on static modules. Those modules are powered by solar cells and provide temperature, pH, nitrate, phosphate, calcium, magnesium, and DO measurement. A number of such modules may be used as a base of IoT cloud. A strong side of the study is the discussion of critical water parameters (temperature, pH, nitrate, phosphate, calcium, magnesium, and dissolved oxygen), along with a review of the sensors available. However, the authors of [11] do not provide any estimation of the system precision.
Khudoyberdiev et al. [12] proposed an IoT-based predictive optimization approach for efficient control and energy utilization in smart fish farming. Fuzzy logic is used to calculate control parameters for IoT actuators, which allow one to provide predicted optimal water quality parameters while minimizing energy consumption. Parameters measured and controlled are temperature, pH, water, and electric conductivity levels.
Al-Mutairi and Al-Aubidy [13] proposed an IoT-based system for real-time monitoring, control, and management of fish farming. Each pond is controlled by one embedded microcontroller; pH, turbidity, temperature, DO, electric conductivity, total dissolved solids (TDS), and water level are measured, along with air temperature and light. Corrective measures are taken based on the decision made by the fuzzy controller; those measures include water inlet control, drainage control, oxygen supply control, air-cooling, fans, exhaust, and light control. As a drawback of such a system, one should note that the use of all those measures but oxygen, water inlet, and drainage control are impractical in real-life scenarios, where pond area may be as high as tens of hectares. Moreover, no pH correction is performed, and pH is a critical water parameter.
Mohd Jais et al. [14] in their work developed a monitoring system for Asian seabass fish farming in aquaculture tanks. Water temperature, DO, pH, ammonia, and salinity were measured using low-cost sensors, aimed on Arduino usage. The accuracy of those sensors was enhanced using simple linear regression; as a system base, a Virtuino application and ESP8266 Wi-Fi module were used. The main drawbacks of such an approach are the small signal radius of Wi-Fi signal and the use of laboratory-grade sensors that renders such a system ineffective for monitoring of large ponds.
Mat Tahir et al. [15] proposed a similar system targeting tank-based aquaculture. That system measures pH and provides fish feeding using an automatic feeder with food level measurement. Tolentino et al. [16] proposed a monitoring and correction system for intensive aquaculture based on Arduino and Raspberry Pie, using Long-Range Wide-Area Network (LoRaWAN) as a data transfer technology. Temperature, pH level, oxidation–reduction potential, turbidity, salinity, and DO were to be measured and controlled in tanks using that system. All those systems were also designed for use in fish tanks, and as such cannot be effectively used on large-area ponds.
Chen et al. [17] proposed an automated system for monitoring of pond water quality. The set of the sensors is basic and includes a temperature sensor, pH meter, DO sensor, and water level sensor. However, use of the pH meter, that cannot be submerged for a long time, led to the use of a programmable logic controller (PLC)-controlled robotic arm that provides automatic measurement and sensor maintenance. That significantly decreases energy efficiency of the system and makes its use and maintenance more complex.
Tamim et al. [18] presented another IoT water quality monitoring system that monitors pH and temperature; additional parameters such as DO and ammonia are estimated using testing kits. An Android-based application is used to send measured data to the users; the drawback of the systems is use of Wi-Fi for data transfer. That means limited transmission range and high sensitivity to obstacles and weather.
Similar systems are now developed for wastewater treatment. For example, Salem et al. [19] proposed and tested an IoT system for wastewater management, which collects data about pH and temperature of wastewater and informs users about unexpected industrial wastewater inlets via SMS notification; the system may also control the valves of the plant. The system proposed is based on ESP8266 board and stores data in a cloud but does not provide any modeling or decision support. A similar system, that uses turbidity, TDS, temperature, and humidity sensors, is presented by Valarmathi et al. in [20]; collected data are transmitted for further processing via Wi-Fi to a dedicated server rather than cloud.
Chavan et al. [21] in their wastewater monitoring system APAH used pH, DO, electrical conductivity, TDS, turbidity, and temperature sensors to estimate water state. Machine learning was used in order to provide decision support for wastewater plant personnel. The APAH system is based on ESP8266 board and uses Wi-Fi and cellular networks for data transmission.
General features of all the systems mentioned above are shown in Table 1.
As one can see from the analysis made above and Table 1, hydrochemical regime monitoring systems for fish farming are now in the active research and development phase. However, a majority of the systems already developed are aimed at small farms or tank aquaculture, and that does not allow one to use such systems on large fish farm ponds. That is caused by the following:
  • systems that target fish tanks or small farms cannot cover large-area ponds and adequately estimate the hydrochemical regime of the pond with an area of tens of hectares;
  • systems that use Wi-Fi (like the one proposed in [18]) have limited range between modules due to the nature of the Wi-Fi signal, which is sensitive to obstacles;
  • cellular-based systems require monthly payment for use of telecommunication company services and protection of data and protocols in order to ensure cybersecurity.
The “Aquasafe” system targets marine aquaculture and thus may cover large water areas of an industrial fish farm. The mentioned system takes algal blooms, sea surface temperature, fish growth, and wind speed/gusts into account using satellite imagery. However, it does not measure other important water parameters (like DO and pH) online and thus cannot be used in freshwater aquaculture without modification. One should also note that the use of UAVs for data collection requires significant costs, and the use of the Web for data transfer requires data protection.

1.2. Goal of This Study

The authors of this paper propose combining an IoT-based approach to data collection and transmission with well-established principles of condition monitoring in one system. That will allow the use of readily available components, thereby simplifying system development and reducing its cost while ensuring low energy consumption and high autonomy of the measurement modules.
In addition, the fish pond ecosystem model is employed to predict pond parameters, and the Extended Kalman Filter (EKF) is used to allow the model to adapt to changes in pond conditions based on the measured data. Application of the EKF improves the overall reliability of the system and allows long-term forecasting (up to 20–30 days). Such an approach also allows one to explain and justify the reasoning behind every recommended corrective action for the ponds. Therefore, any decision regarding fish farm operation made by, or with the assistance of, the monitoring system can be fully interpreted and justified—something that is not possible, for example, when neural networks are used.
To the best of the authors’ knowledge, this approach has not been applied before. An important feature of the proposed system is its focus on large fish farms, primarily freshwater ones.
In Figure 1, the general concept of the system is shown. The monitoring system is based on a network of autonomous measurement modules, which are installed at the ponds of a fish farm. Measurement modules provide operative control of the water conditions in the pond, measuring DO, pH, and water temperature, and employs a pond model with EKF for adaptation to pond conditions. Measured and pre-processed data are transmitted by air to a LoRaWAN gateway and then to a local server, on which dedicated software is running; that software includes the LoRaWAN network server, database, and client software. Based on estimated hydrochemical parameters and prognosis, corrective actions are recommended. Optionally, the system may contain actuator controllers that allow it to initiate and apply corrective actions to the monitored ponds.
The goal of this study is to develop a monitoring system for large-area fish ponds; at that, the system should meet the following requirements:
  • long distance between nodes (measurement units)—up to 5–10 km;
  • low energy consumption;
  • 24/7/365 operation;
  • measured parameters should include at least temperature, pH, and DO.
  • long period between sensor maintenance and/or replacement (at least 6 months);
  • good scalability (ones to tens of nodes);
  • automated prognosis of dangerous phenomena in a pond, and recommendation (or initiation) of corrective measures.
The system should integrate physical and chemical measurements with the ecological model in order to estimate non-observable state variables. Complex quantitative estimation of accuracy, stability, and practical feasibility of the system should be presented.

2. Materials and Methods

As a theoretical base of this study, well-known general principles of predictive condition monitoring are used. Parameters that should be measured in order to estimate the hydrochemical regime in a fish pond are selected based on [1,2,3]. Outlier elimination and least square approximation are used in order to provide measured data approximation and prediction of parameters levels. Based on those levels, water quality deterioration and, respectively, probable fish kills are predicted.
In order to improve overall reliability of the system, the pond ecosystem is modeled using the Lotka–Volterra and Michaelis–Menten equations. The model explicitly includes three trophic levels: phytoplankton, zooplankton, and fish. Extended Kalman Filter (EKF) is employed to estimate the system state and to predict its behavior based on a limited set of measured data: DO and chlorophyll-a concentration. DO is measured using an optical sensor once an hour, while chlorophyll-a is sampled at a lower frequency (once every three days). System observability is formally analyzed using Lie derivatives. Validation of the proposed algorithm is performed in two distinct stages: initially, the algorithm is validated using a restricted dataset that mimics limited information availability; subsequently, validation using additional, comprehensive field data is planned. The initial validation presented in this work is based on a continuous 30-day monitoring period.
In order to implement condition monitoring, a distributed measurement system is to be used. As a base for the system under development, a network of autonomous modules, which provide parameter measurement and initial data processing, is used. Measured and processed data are transmitted to the server and stored in the database. Dedicated software, which runs on the same server, provides approximation and prediction and, optionally, initiates corrective actions. Information about the current state of the farm may be made available via the Internet.
The network of measurement modules is based on LoRaWAN technology. That allows one to obtain long distances between modules—up to 5–15 km between module and gateway in rural, clear-sky conditions within a line of sight. Use of LoRaWAN also allows one to provide low energy consumption, as modules may be active only during measurements and measured data transmission.
Preliminary tests (functional validation) of the system concept and algorithms were performed during initial field trials in the Kyiv Reservoir (50° 38 25.5 N, 30° 26 42.2 E). The probe was positioned at a 20 cm depth. This horizon is characterized by the highest amplitude of diurnal variation in dissolved oxygen and temperature. This specific deployment depth was chosen to test system functionality under a highly dynamic signal regime and to address practical requirements: ensuring sensor safety, providing a stable environment for calibration consistency, and facilitating logistical execution during preliminary experiments. For measurements, an Atlas Scientific Gen 3 Industrial D.O. Probe sensor [22] with an EZOTM board was utilized. The sensor was calibrated according to the manufacturer’s specifications. System control, preliminary data processing, and logging were managed by a WeAct Black Pill board featuring an STM32F401CEU6 microcontroller. The hardware assembly was secured inside an IP68-rated waterproof case, with only the sensing probes and their cables exposed. Chlorophyll-a was measured using an ATO Chlorophyll Sensor for Water Quality [23] and used for EKF adjustment and during offline algorithm validation. Obtained DO data were processed offline using MATLAB R2016b.

3. Basics of Hydrochemical Regime Monitoring in a Fish Pond

Fish kill, depending on its intensity, may lead to death of from 20–30% up to 70–80% of the fish in the pond [1]. The occurrence of a fish kill can be predicted using (but not limited to) the following parameters: water temperature, DO, and pH [1]. Thus, if one measures at least the parameters mentioned, one can predict their change with time and, therefore, the possibility of a fish kill. Based on that prediction, corrective measures (e.g., aeration) may be taken.
Predictive condition monitoring is based on two principles:
  • state of an object is related to one (or a combination of some) physical parameter that can be measured and expressed in quantity;
  • object state changes with a limited speed, and thus it may be predicted using a set of previously measured data and approximation.
In order to select parameters measured by the hydrochemical regime monitoring system, both references [1,2,3] were used. A general set of water parameters is presented in [3], but no recommendations on the measurement period and use of those parameters for water condition prediction are made in that book.
According to recommendations of “Collection of normative and technical documentation on commercial fish farming” [2], operative control of pond water parameters must include water temperature, DO, and pH in summer and water temperature and DO in winter. Such measurements should be made daily.
The key water parameter for fish health is dissolved oxygen. A detailed survey of its role and the range of tolerance to DO in fish is presented in [2,24]. For carp, grass carp, silver carp, and other carp fish [2], in summer, the desirable DO level should be not less than 5.0 mg/L. If the DO concentration is 3.0 mg/L or less, the condition of the fish deteriorates, and fish cannot feed and grow. When DO concentration is 0.5–0.1 mg/L, the fish dies. In wintering ponds, the dissolved oxygen content should not be less than 6.0 mg/L. For other fish species, DO levels at which respiratory depression and fish death occur according to [25] are shown in Table 2.
One should note that if the DO level is 10 mg/L or higher in the surface layers of water [2], in most cases that means that water is not mixed in a pond, and one has to mix the water in order to break stratification and prevent fish kill.
The next important water parameter is its temperature. In order to determine the presence of stratification in the pond, one should measure the temperature near its surface and near its bottom. Water temperature should be controlled in characteristic points of the pond—near the water inlet, near the discharge, and at the middle of the pond. Moreover, DO and pH levels depend on water temperature, so it has to be measured along with those parameters in order to predict changes of the hydrochemical regime.
pH level is very important for fish health. A normal pH level for carp ponds is 6.5–8.5, but during a day, the pH value may change by 2–3 units. If intensive phytoplankton development occurs (or in thickets of algae and other macrophytes), pH level may take a value of 10–11, which is dangerous to fish, as it causes damage to gills and skin [1,2]. The magnitude of the pH change allows one to draw conclusions about the dynamics of DO concentration in the water. Temperature stratification causes the formation of zones with low oxygen content in the bottom layers of the water. The destructive processes of organic matter and accumulation of substances harmful to fish—ammonia, nitrites, hydrogen sulfide, dominate those layers while the pH decreases. If the ratio of the pH level near the water surface and near the pond bottom in a small pond is higher than 1.05 [1], fish kill is very probable.
Summing up what was stated above, in order to predict the occurrence of fish kill accurately, one has to:
  • Constantly monitor water temperature, dissolved oxygen content, and hydrogen index (pH) in the bottom and surface layers of the pond [1]. The monitoring period in summer should be 1 h from 9 p.m. until 6 a.m. and is not strictly defined from 6 a.m. to 9 p.m.; in winter, the monitoring period may be increased.
  • Determine timely the boundaries of stratification zones in the reservoir (feeding areas, pits, bottom channels, deep places, etc.).
What is stated above can be assumed to be the base of a hydrochemical regime monitoring system for the fish pond. Other water parameters—including its turbidity, phytoplankton development, CO2 level, ammonia, ammonium, nitrite, nitrate, etc.—according to normative and technical documentation recommendations are to be measured once every 10–15 days [2]. Taking the cost of the sensors needed and the required sampling interval into account, it is more cost effective to measure those parameters using the mobile monitoring system rather than an online one. More thorough tests that include other water parameters should be performed by the specialized laboratory, as those tests are used rarely.

4. System Structure and Design

4.1. Sensor Selection

The base of every monitoring system is its sensors. Taking all said above into account, sensors for hydrochemical regime monitoring in a fish pond should meet the following requirements:
  • sensors must operate underwater at depths up to 10–20 m (pond depth of 50 m and more is very rare);
  • sensors must operate underwater for long periods—preferably for months;
  • sensors should have a time before re-calibration of at least 6 months—the more the better;
  • sensors should have a service period of at least 6 months—the more the better.
All requirements stated above allow one to ensure continuous system operation for a desired period of 6 months at least, which is determined by the technological cycle of the farm in temperate climate (fish wintering). With such a period, maintenance of sensors and measurement modules will be performed while fish are moved from one group of ponds into another one and will not affect either fish condition or normal farm operation. That should greatly increase system effectiveness and decrease its maintenance and exploitation costs.
Most Arduino-oriented sensors, like the ones used in [14], do not meet the above requirements; a detailed comparison of some of the industrial-grade and laboratory-grade sensors available on the market that can be used for hydrochemical regime monitoring in a fish pond is presented in Appendix A.
From the analysis presented in Appendix A it follows that in most cases, i.e., for fish farming of common river fish like carp, the use of Atlas Scientific or similar sensors with their relatively low retail price is preferable.
If a fish farm is dedicated to trout or sturgeon, sensors that are more expensive could be used. In addition to DO and pH sensors, CO2 level, ammonia, and other sensors may be used in order to improve monitoring quality. To that end, the use of standard interfaces to such sensors is mandatory, and the software of the system will have to be changed.

4.2. System Structure

The structure of the proposed system is shown in Figure 2. The data flow is shown as lines with arrows; optional components and data flows are drawn with dashed lines.
As one can see, the monitoring system consists of some autonomous measurement modules, which are installed at the ponds of a fish farm, a LoRaWAN gateway, and a server with database and dedicated software. Optionally, the system may contain actuator controllers, which allow it to make corrective actions on the monitored ponds. In most cases, those controllers have to provide simple functions, like start and stop of the aerator, closing and opening inlet or discharge, etc.
Water condition should be measured in at least three points of the pond, mentioned above. In the case of a large pond area, there may be some additional characteristic points for water parameter measurement: feeding areas, pits, bottom channels, and deep places are some of the examples. Therefore, the number of measurement modules per pond in each and every case should be determined individually.
Measured data are transmitted via LoRaWAN gateway to a local server, on which dedicated software is running; that software includes the LoRaWAN network server, database, and client software. A detailed description and functioning of the software is given below. The data obtained may be made accessible via Internet connection using Web Socket or Message Queue Telemetry Transport (MQTT). The LoRaWAN network of the proposed system has star topology; in the case when the area is very large, daisy chain topology may be used instead.
All data analysis and decision making described in Section 4.4 can be performed on the central server. However, in order to increase system reliability, it is preferable to distribute data processing between system nodes. Measurement modules may perform basic data processing, including outlier detection and prognosis of water parameters in the measurement point. On the base of data obtained, modeling of the hydrochemical regime of the pond can also be performed on each node of the system; the model of the regime may be based on differential equations or neural network. More thorough data processing, including comparative analysis of obtained and history data and storage of data history should be performed on the server. Additional data from the mobile testing system may also be used in order to increase reliability of hydrochemical regime prediction. Such an approach allows one to decease data flow in the system; moreover, even if one or some of the modules fail, the monitoring system will continue operate as a whole. At that, the final data processing has to be provided by custom client software.
Based on data processing performed by client software, corrective actions may be initiated. In the simplest case, that is characterized by giving recommendations to service personnel; if optional actuator controllers are used, some of the measures may be applied automatically. The modeling, data processing, and decision-making process is described below.

4.3. Modeling of the Hydrochemical Regime of the Pond

A pond ecosystem in its basic form contains phytoplankton, zooplankton, and fish. Therefore, an analytical model of a pond ecosystem, based on Lotka–Volterra and Michaelis–Menton equations [26], is defined by the following system of ordinary differential equations:
d P d t = r P P 1 P K g Z P Z h P + P m P P , d Z d t = e Z g Z P Z h P + P g F Z F h Z + Z m Z Z , d F d t = e F g F Z F h Z + Z m F F , d O d t = a P P b R ( P + Z + F ) + k 2 ( O s a t O ) ,
where P, Z, F are biomasses of phytoplankton, zooplankton, and fish, respectively, expressed in g/m3; O is the DO concentration in mg/L; r P , K , g Z , g F , h P , h Z , e Z , e F , m P , m Z , m F are growth, trophic interaction, and mortality parameters, a P , b R , k 2 are parameters of the oxygen balance, O s a t ( T ) = O s a t _ b a s e 1 0.02 ( T 20 ) is the DO saturation level of the water, which depends on its temperature T, and O s a t _ b a s e is the DO saturation level at 20 °C. Descriptions, typical and normal values of growth, trophic interaction, and mortality parameters mentioned above are shown in detail in Table 3, Table 4, Table 5 and Table 6. The values and ranges shown in those tables are based on published experimental and theoretical studies in aquaculture, limnology, and ecological modeling, including classical predator–prey dynamics, functional responses, and oxygen dynamics in fish ponds [27,28,29]. Those sources provide reliable typical values and normal ranges for model parameters.
In state-space form, model (1) is expressed as
X ˙ = f ( X ) = r P P 1 P K g Z P Z h P + P m P P e Z g Z P Z h P + P g F Z F h Z + Z m Z Z e F g F Z F h Z + Z m F F a P P b R ( P + Z + F ) + k 2 ( O s a t O )
where X = P Z F O T is the system’s state vector. This model, called the P–Z–F–O model, reflects key trophic and biochemical processes in the pond and allows prediction of its state while being computationally efficient for implementation in real-time systems. One can see from (2) that the pond ecosystem model is non-linear. At that, usually only O (DO concentration) is measured, and thus the measurement vector is Z 1 = h ( X ) = O . Values of state variables P, Z, and F usually cannot be measured directly and have to be estimated. To address that problem, the application of Extended Kalman filtering [30] is considered.
Hereinafter, notation x n m represents the estimate of x at time n given observations up to and including at time m n , and y n represents the estimate of y at time n. In the EKF, for each time-step k, first a priori system state X ^ k k 1 and covariance P k k 1 are predicted using formulae
X ^ k k 1 = f X ^ k 1 k 1 ,
P k k 1 = F 1 k P k 1 k 1 F 1 k T + Q k ,
where F 1 k = f X X ^ k | k , u k is the state transition model, applied to the previous state of the system, f ( X ) is the function that describes the right-hand side of (2), Q is the covariance of the process noise, and P is the covariance matrix of the system. Then, innovation Y k , innovation covariance S k , and optimal Kalman gain K 1 k are calculated, and a posteriori state X ^ k k and covariance matrix P k k are estimated based on measured data as follows
Y k = Z 1 k H X k 1 ,
S k = H k P k k 1 H k T + R k ,
K 1 k = P k k 1 H k T S k 1 ,
X ^ k k = X ^ k k 1 + K 1 k Y k ,
P k k = I K 1 k H k P k | k 1 ,
where I is the unit matrix, H k = h X X ^ k | k = 0 0 0 1 T is the observation model at time k, and R k is the covariance of the measurement noise at the same step.
In order to provide biological and physical correctness of parameter estimation, the following constraints are set: P 0 , Z 0 , F 0 , O m i n O O m a x , where O m i n and O m a x are the minimal and maximal DO concentrations possible. Such constraints are standard for ecological models of water ecosystems and prevent incorrect state estimation in the process of Kalman filtering. After each EKF correction step, system state estimates are projected into the domain of valid values in order to ensure that above constraints are met.
Indirect parameters (water clarity by Secchi S, chlorophyll concentration C c h l ) are used for:
  • initialization of initial state X 0 ;
  • checking of P and Z estimation adequacy;
  • correction of model parameters and matrix of noise process Q.
The model that empirically connects indirect parameters with phytoplankton biomass has the form
S = c S P + ϵ S , C c h l = k c h l P
where c S and k c h l are empiric coefficients that depend on pond morphometry (depth, area, volume, etc.); ϵ S is noise or measurement error that models random factors. Zooplankton with biomass Z consumes phytoplankton, therefore P concentration will decrease with the increase in Z. After the introduction of coefficient α that characterizes how much phytoplankton is consumed by a unit biomass of zooplankton, Equation (10) takes the form:
S = c S P e f f + ϵ S = c S ( P α Z ) + ϵ S , C c h l = k c h l P e f f = k c h l ( P α Z )
where P e f f is the “effective” phytoplankton biomass, which is “visible” through water clarity and chlorophyll. If Z is small, the model reduces to the classic one: P P e f f .
The model presented above enables the estimation of Z through an inverse solution: given that values of key parameters—S and C c h l —are known, one can calculate the proportion of phytoplankton biomass consumed by zooplankton. The indirect parameters are measured at different frequencies: key parameters are sampled 1–3 times per day, while other parameters, that may be needed for model calibration, are typically gathered only once per vegetation season. While those low-frequency measurements are not included in the measurement vector during the normal operation of the EKF, they serve a critical methodological role: they are essential for constraining the model during initialization and for the periodic refinement of its parameters in dedicated calibration phases, thereby ensuring long-term prognostic fidelity.
Use of the proposed approach to pond ecosystem modeling allows one to estimate fish pond parameters using a minimal set of sensors. Moreover, as P k k and K 1 k are updated at each step of Kalman filtering, the pond model adapts to changes in the pond using measured data Z 1 k .
In a formal sense, a non-linear state-space model (2) is partially observable, as only one state variable of the vector X (DO concentration O) is measured directly. However, practical system observability is ensured by the structure of the ecological model and the presence of a strong functional relationship between phytoplankton biomass and the oxygen balance of the pond.
To analyze local observability of the non-linear system, an approach, based on Lie derivatives, is used. The Lie derivative matrix is defined as
𝒪 ( X ) = h ( X ) L f h ( X ) L f 2 h ( X )
where L f h ( X ) is the Lie derivative of the observability function along the vector field f ( X ) . The zeroth Lie derivative has the form
L f 0 h ( X ) = h ( X ) = O .
The first Lie derivative is determined by the oxygen balance dynamics
L f h = O ˙ = a P P b R ( P + Z + F ) k 2 ( O O s a t ) ,
and its gradient by the state vector is
L f h = ( a P b R ) b R b R k 2 T .
The second Lie derivative has the form
L f 2 h = d d t ( O ˙ ) = a P P ˙ b R ( P ˙ + Z ˙ + F ˙ ) k 2 O ˙ ,
that contains non-linear combinations of variables P, Z, F via their own dynamics equations. For typical modes of pond operation, vectors h ( X ) , L f h ( X ) , L f 2 h ( X ) are linearly independent relative to variables P, Z, O, and as a result, the rank of the observability matrix O ( X ) is not lower than 3 (locally and under non-equilibrium modes of system functioning). That allows one to restore states of phytoplankton and zooplankton biomass (P and Z) from time series of DO measurements O.
As for fish biomass F, it has an indirect influence on the oxygen balance—via breathing and trophic interactions of higher order—and manifests itself mostly in Lie derivatives of second or higher order. Thus, F is structurally observable, but with a lower sensitivity compared to other state variables, i.e., it’s weakly observable. As a result, instant estimates of fish biomass has higher uncertainty compared to other model parameters estimates, but at the same time, long trends of F dynamics can be restored reliably.
One should note, that the P–Z–F–O model (2) is introduced as a generalized state-space representation of dissolved oxygen dynamics. Phytoplankton and zooplankton are included as latent variables describing internal oxygen sources and sinks rather than as management targets. For practical fish farming scenarios, the model can be reduced to a simplified oxygen–fish interaction without altering the monitoring, filtering, or forecasting algorithms.
Identifiability of model parameters using only one sensor is limited; therefore, biological parameters r P , g Z , g F , m P , m Z , m F are set a priori using one-time field measurements. At that, EKF is used mostly in order to estimate ecosystem state and not for full online parameter identification.
As for Q and R, their initial values are determined as follows. The initial value of the measurement noise co-variation R is defined by characteristics of the sensors, and typical values of mean square error for optical DO sensors are 0.05–0.1 mg/L, so R 0 = 0 . 1 2 = 0.01 . The process noise matrix Q models the system’s uncertainty and is estimated based on the expected speed of state variable change during one period of sampling Δ t . The initial value of Q is a diagonal matrix with elements
q i , i = ( α i · X i m a x · Δ t ) 2 ,
where α i is a dimensionless uncertainty coefficient, usually 0.05–0.15, and X i m a x is the maximum expected value of X i . In the process of filtering, Q and R are adaptively corrected based on the statistics of innovation Y k , defined by (5). That allows the filter to adapt to season and weather changes and to compensate for ecosystem model uncertainty and sensor noise.
Thus, the proposed approach provides practically sufficient observability for monitoring tasks, early detection of critical hydrochemical states, and decision support in pond management. Even the system with one DO sensor, integrated with the dynamic pond model via EKF, can be used as a base for pond monitoring.
The study of the pond model was divided into two stages. Stage 1, presented in this article, is aimed at validation of the algorithm on a minimal system configuration. The goal of the stage is to prove that ecosystem state may be reconstructed using just one integral parameter using model (1). That allows one to validate the core of the pond system modeling algorithm using minimal configuration, focus on the solution of the partial observability problem, and separate errors related to observability from ones introduced by additional sub-models. This approach also ensures reproducibility of the study and creates a clear benchmark for further studies.
The proposed system prototype is designed to measure DO, pH, and water temperature. That allows one to use a more sophisticated model, which takes all three hydrochemical parameters into account, thus integrating basic biological, physical, and chemical processes in the pond. Stage 2 of the study is to be devoted to the study of the complex model. The authors performed the preliminary study of the complex pond model, and it was determined that:
  • A complex model is the system of 6 non-linear differential equations and has more than 30 parameters, compared to 13 parameters of (1).
  • Most of the mentioned parameters depend on water temperature T according to the Q10 Van’t Hoff rule, and some of parameters depend on two or three variables.
  • The complex model is fully locally observable, and the rank of its observability matrix is 6. Therefore, dynamics of all three biomasses P, Z, and F can be restored.
  • Estimated computational complexity (see Appendix B) for the basic model with the DO sensor only is approximately 400 floating point operations per second (FLOPS) and for the complex model is 1350 FLOPS.
Therefore, the implementation of Stage 2, which involves the use of a significantly more complex three-sensor model, raises two fundamental scientific and technical challenges: the calibration of over 30 additional model parameters and overcoming the significant increase in computational complexity. A comprehensive solution to these problems requires dedicated experimental procedures and the development of novel algorithmic approaches, which fall outside of the scope of the present study. Consequently, a complete three-sensor model constitutes a separate, subsequent investigation, logically extending the results obtained from the minimal configuration.
During modeling, anomalies in the system state are detected:
  • If any of the state variables violates physical limitations (e.g., F < 0 or O > 20 mg/L, which is impossible).
  • If the Mahalanobis distance D 2 = Y k T S k 1 Y k of the measured data prognosis is higher than the critical χ 2 level (for 90% probability and number of degrees of freedom, equal to length of Y k ).
Anomalous values are ignored when detected, and the system switches to the simple prognosis mode described in Section 4.4. Modeling error is estimated using root mean square error (RMSE) of the state estimation. In numerical experiments performed in MATLAB, the true state of the system X t r u e is known; therefore, RMSE is calculated as follows
R M S E = 1 N k = 1 N X t r u e , k X ^ k 2 .
where X t r u e is the true (simulated) state vector and X ^ is the state estimate obtained using the EKF. In a real-world scenario, when the true system state is not known, estimation error is calculated using the innovation sequence Y k = Z 1 k H X ^ k | k 1 and its statistical properties. Typically, EKF reduces state estimation error by 35–60% depending on noise parameters.
Based on the modeling performed as described above for a time range of 20–30 days, critical conditions in the pond are detected:
  • If the DO level is lower than the respiratory depression level or fish death level stated in Table 2, respiratory depression or fish kill is likely to occur.
  • When phytoplankton biomass P > 2.5 , algal bloom is likely to occur. The thershold is based on established eutrophication criteria in temperate freshwater systems [31,32].
  • When fish biomass F < 0.1 , fish are in danger.
In addition, dimensionless system stability index S I is estimated as
S I = 1 m e a n s i m i ,
where s i and m i are standard deviations and mean values of system state parameters X i , i = 1 4 over the ensemble of all states modeled in the given time range.
Modeling of the fish pond ecosystem was performed using MATLAB; software may be obtained from authors by request. An example of pond modeling along with results is presented in Section 5.1.

4.4. Data Processing and Decision Making Algorithms

DO and pH do not remain constant during a day. DO increases during the day and decreases at night [33]. pH level also does not remain stationary: it increases during the day up to late afternoon and then decreases at night [34]. Typical change in DO and pH in a fish pond are shown in Figure 3.
Most current studies [35], Ref. [36], concentrate on DO and pH prediction using neural networks and a combination of neural networks and wavelets [36]. Such an approach, while being effective for prediction of the hydrochemical regime, has some drawbacks:
  • in order to make a reliable prediction, one needs to use extensive datasets to use wavelets and/or train the neural network and thus needs to collect data for months (authors of [35] used in their study data collected for a year);
  • use of neural network by the nature of that approach does not provide any reasoning that lies behind the prognosis.
The latter issue mentioned renders the monitoring system unreliable in the eyes of farm management, as prognosis cannot be justified and possible expenses and losses due to the prognosis error are harder to eliminate. Moreover, if hydrochemical regime parameters are measured once an hour, only 24 points collected during a day are available for analysis; for DO prognosis, 150 points were used in [35]. Thus, use of another prognosis approach is desirable.
As a classical approach, in order to predict value of the parameter and, thus, water condition, least square approximation is used. The idea of a least square approximation is to minimize the difference between the approximation function and the measured parameter data:
S ( a j ) = i = 1 n ( f ( t i ) y i ) 2 m i n ,
where t i , y i are values of measurement time and measured values of the parameter in question, respectively; n is the number of measured data i = 1 n ; f ( t ) is the approximation curve, a j are the coefficients of that curve. One should note that the moments of time t i , at which measured data are registered, do not have to be equally spaced; however, in most cases, that is desirable.
Typically, approximation using (20) is performed using three curves:
f 1 ( t ) = a 2 t + a 1 ,
f 2 ( t ) = a 1 e a 2 t ,
f 3 ( t ) = a 3 t 3 + a 2 t 2 + a 2 t + a 1 ,
i.e., linear function, exponential one, and a cubic curve. Most processes in nature manifest either linear or exponential character, therefore curve (21) or (22) is typically used.
Approximation correctness is estimated using a correlation coefficient between the measured data and approximation curve, which is expressed in the form
r = i = 1 n ( y ^ i y ^ ¯ ) ( y i y ¯ ) n i = 1 n ( y ^ i y ^ ¯ ) 2 n · i = 1 n ( y i y ¯ ) 2 n ,
where y ^ i = f ( t i ) ; y ^ ¯ is the mean value of the approximated data, and y ¯ is the mean value of the measured data. If the value of the correlation coefficient r (24) is less than 0.8…0.9, approximation results cannot be considered reliable.
In order to improve r, automatic detection and elimination of outliers (i.e., data, measured with errors) has to be applied to measured data before approximation. In [37], a review of outlier elimination methods is presented. Use of statistical, density-based and cluster-based outlier detection methods requires knowledge of the measured signal’s statistical characteristic, typical signal data density, or measurement data clusterization, respectively. That, in turn, requires a significant volume of data to be measured and analyzed and also requires use of a powerful MCU, preferably with a floating point unit (FPU). In the case of the distributed measurement system which monitors scalar values, distance-based outlier detection methods are the methods of choice, as these ones do not require significant computation power and large datasets.
Distance-based outlier detection methods are based on the idea that data in every measured set should not differ from a given value (or one point from another) more than by some preset value. Therefore, two approaches are commonly used:
  • the value is assumed to be an outlier if it is higher or lower than a preset threshold(s);
  • the value is assumed to be an outlier if the absolute difference between that value and adjacent values is higher than a preset threshold.
Usually, a combination of both approaches is used in practice; in the second case, the threshold may be expressed as an absolute value or as a relative one. In addition, the measured point can be considered to be an outlier if the speed of the value change is higher than a given value. For a scalar value, outlier points along the timeline may be isolated or occur in groups. If the monitored parameter is measured with low frequency, outlier values will most probably be isolated points; the only exception is the case of sensor failure. Therefore, a simple algorithm that eliminates a data point if the absolute difference between its value and adjacent values is too high is assumed to be the basis of data processing.
When data approximation is performed and assumed reliable, the time when the DO level will reach corresponding limiting values is presented in Table 2, and the time when pH value will become higher than 8.5 for carp fish, higher than 8.0 for salmon and trout, or lower than 6.5 is calculated. The ratio of the pH level near the water surface and near the pond bottom is also taken into account (it should not be close to 1.05 [1]). If temperature stratification is detected, then water in the pond is either mixed or discharged near the pond bottom, and aeration is applied. If any condition that leads to fish kill is met within a predefined time interval, respective corrective measures are also initiated. The decision-making algorithm for any water parameter value is shown in Figure 4.
Pseudo code of the algorithm presented above and implemented as the MakeDecision procedure is as follows (Algorithm 1):
Algorithm 1 Decision-making algorithm based on the predicted value of the water parameter
 1:
procedure MakeDecision(Measured data, curve type, critical value)
 2:
         ▹Measured data are usually given as an array of points ( t i , y i ) , ( t n , y n ) , curve type is one of those defined by (21)–(23), critical value for each water parameter is set according to reasoning presented above in the Section 3
 3:
      Eliminate outliers in measured data
 4:
      Approximate measured data with the selected curve
 5:
       r i = 1 n ( y ^ i y ^ ¯ ) ( y i y ¯ ) n i = 1 n ( y ^ i y ^ ¯ ) 2 n · i = 1 n ( y i y ¯ ) 2 n
 6:
      if  r 0.8 0.9  then
 7:
           Calculate time T c r i t at which parameter will get critical value
 8:
           if  T c r i t < preset level then
 9:
                 Start corrective measures
10:
               return
11:
         else
12:
               Do not initiate corrective measures
13:
               return
14:
         end if
15:
    else
16:
         No reliable data - do not initiate corrective measures
17:
         return
18:
    end if
19:
end procedure
Preset levels of time intervals for taking corrective measures should be established at the level of 3–5 h before a predicted problem and corrected in practice. Corrective measures are usually finished when water condition is normalized.
Using approximation-based prediction, one has to note the following:
  • After any event, that may severely change condition of water in the pond, i.e., after treating the pond with chemicals, introduction of fertilizers, aeration, very heavy rain, moving fish from one pond to another, etc., all data measured on the pond before the event should not be used for prediction of hydrochemical regime parameters. In order to obtain a correct prognosis, one has to use data collected after the mentioned event.
  • Care must be taken when analyzing and comparing data, collected in different ponds—especially when those ponds are from different farms. Even if parameter values are similar, that does not mean that parameter will behave similarly in both cases; e.g., different water supplies may significantly alter water parameter dynamics. The same is true for data collected in one pond but during different seasons (in summer and in winter, in spring and in summer, etc.).
  • If any new unusual trends manifest themselves in the data, advise of an experienced fish farming practitioner is desired, as those trends may be related to a problem that may require an additional diagnosis and elimination.
One should also note that approximation-based prediction is a tool of operative control, and as such is suitable only for a short-term prognosis (usually for a period of some hours). Therefore, in order to make a long-term prognosis (e.g., during at least 20–30 days), use of a deterministic model, presented in Section 4.3, is one of the possible solutions. Prognosis for a one-year production cycle, if needed, should be implemented on the server, as that requires vast datasets and a significant computing power to function properly.

4.5. Measurement Module

Each measurement module should contain:
  • sensors with wires and connectors;
  • waterproof case (preferably IP68);
  • board with 32-bit MCU that contains analog–digital converters (ADCs), I2Cs, and universal asynchronous receivers/transmitters (UARTs);
  • LoRa or LoRaWAN module that provides connection to LoRaWAN network;
  • accumulator and/or another power source;
  • power conversion unit.
The MCU and LoRa/LoRaWAN modules may be replaced with a dedicated system on a chip (SoC), like ASR6601 [38] or STM32WL55xx devices [39]. As a power source, a solar cell may be used in addition to an accumulator. The basic scheme of the measurement module, selected for implementation, along with its description, is shown in Appendix C.
The module is to be powered by Li-Ion cells and solar cells in order to improve the time of its autonomous operation. All electric parts, excepts sensors with their cables and connectors, antenna, and solar cell are to be placed inside the IP68 case. As a result, the measurement module can be installed and should successfully operate on a buoy at any point of the pond.

4.6. Software Description

Software of the system is to be organized in two levels:
  • lower-level firmware that provides measurement, initial data analysis, basic hydrochemical regime modeling and prognosis and transmits data to a higher level using LoRaWAN;
  • higher-level software that provides data collection, data storage in a database, comparative analysis, and service to clients via local network or Internet (if needed).
Lower-level firmware will be running on MCUs of measurement modules. General functions of the firmware include water parameter measurement and automated outlier elimination. The pond model with EKF and basic trend analysis should also be included in firmware. Each measurement module operates as a class A LoRaWAN device, which provides measurement data to higher-level software with a given period of time in order to save the energy of the accumulator.
Most of the time, module will sleep and will initiate measurement only at preset time moments. The measurement schedule may be changed if system prognoses fish kill (more frequent measurement), when water parameters are normalized (less frequent measurement), or by user’s request. As stated above, basic data processing, including outlier detection and prognosis of water parameters in the measurement point, will be performed by the module in order to reduce data flow. In order to decrease influence of random noise, data measured at each moment of time in the schedule will be averaged during measurement.
General algorithm of the measurement module’s firmware operation is as follows (Algorithm 2):
Algorithm 2 General algorithm of the measurement module’s firmware operation
 1:
Power on module/Get it out of deep sleep mode
 2:
Read configuration (including curve type, critical value) from flash memory
 3:
Initialize sensors
 4:
Read data from sensors, average them
 5:
Turn sensors off
 6:
Use EKF (5)–(9) on measured data
 7:
Add corrected measurement results to Measured data array
 8:
for each sensor do                     ▹Call routine that clears and processes measured data
 9:
      MakeDecision(Measured data, curve type, critical value)
10:
end for
11:
Save processed measurement data into the local flash
12:
Send processed measurement data to higher level via LoRaWAN
13:
Receive configuration or commands from higher level
14:
if There are any configuration changes then
15:
     Save changes to flash memory
16:
else if Significant changes (chemical treatment, etc.) require data reset then
17:
     Reset data buffers
18:
else if Other command received then
19:
     Process that command
20:
end if
21:
Setup wake-up timer for the next measurement cycle
22:
Put module into deep sleep
23:
Wait for wake-up event
24:
Go to step 1
Such an algorithm of operation allows one to provide low power consumption and ensure that all data are processed at a low level of the system before sending them to a higher level. As for computation complexity, most of calculations can be performed using single precision arithmetic; moreover, fixed point may also be used—as 32 bit MCUs have good performance if 32 bit integer arithmetic is used. As for real-time feasibility, if data are measured once an hour according to recommendations presented above, processing can be considered real-time even if computation will take one–two minutes.
As a base for the firmware, the open-source LoRa Basic Modem LoRaWAN stack developed by Semtech [40] is to be used; its main advantage is its portability between different MCUs. In order to simplify the measurement unit, Activation By Personalization (ABP) is to be used to authenticate the unit in the LoRaWAN network. User-defined static Device Address (DevAddr), Network Session Key (NwkSKey), and Application Session Key (AppSKey) will be stored in the end-device and may be changed using an external interface both during commissioning and in the process of operation. Over The Air Activation (OTAA) may also be used in the future if necessary.
Higher-level software consists of the LoRaWAN network server that receives measured data, LoRaWAN application server with a database that collects and stores those data, and a client software that may provide long-term pond modeling, data visualization, trend analysis, prognosis, and corrective measures.
In order to exclude data leak to the Internet and prevent unauthorized access to any devices that can change pond condition (e.g., inlet and discharge), use of a local network is planned. Therefore, both LoRaWAN servers with a database should run on a dedicated server hardware, which has to operate and be available 24/7/365.
As a LoRaWAN network server, a number of software packages may be used. Some of those include:
  • The Things Stack [41];
  • Activity servers [42];
  • Chirpstack [43];
  • LORIOT [44];
  • Multitech Network Server [45], and may others.
Most of those servers store data in a cloud; some of them operate in public networks with many restrictions and require payment for commercial usage. Of those servers listed above, Chirpstack is the only open-source and free LoRaWAN Network Server.
Chirpstack is targeted on Linux, but using Docker and Docker Compose it can be also be run under Windows and Mac OS. It provides both the Network Server and Application Server and can use SQLite or Postgre SQL as a database. Both installers and ready-to-use Docker images are available on Chirpstack’s official site download page. In order to connect the LoRaWAN network server to external clients, HTTP, Web Socket protocol, or MQTT may be used; in real-life scenarios, secure versions of those protocols should be used.
Client software of the monitoring system has to provide to its end-users the following features:
  • trend analysis of measured water parameters;
  • analysis and long-term prediction of hydrochemical regime using the model of the pond;
  • prognosis of fish kill based on that analysis;
  • and, optionally, initiation of corrective actions, including aeration and water exchange in the pond.
The functions mentioned above are easy to implement on any personal computer, under either Windows, Mac OS, or Linux. Mobile software, based on Android or iOS, may also provide real-time indication of water parameters and trend analysis. Any automated corrective actions (if they are possible) should be initiated by the monitoring system and acknowledged by the user (fish farm specialist or pond owner). Those actions may include water aeration, mixing water or discharge of lower layers of water in order to break stratification, etc. One should note that if the monitoring system can initiate any corrective measures, it is preferable that any actuator mechanisms which control aerators, water inlets, water discharges, and other equipment were physically inaccessible from external networks (especially from the Internet).
At last, all results of water parameters prediction that indicate possible problems (including fish kill) and all corrective actions taken should be stored in the event log, placed on the same server hardware that hosts LoRaWAN servers. To that end, the same database server that is used to store measured data may be used.

5. Results and Discussion

The system proposed above is now in the process of implementation; therefore, only estimation of its parameters and results of simulation are available for now. Results of that estimation and simulation are presented below.

5.1. Test of Fish Pond Modeling

First, modeling of the fish pond was performed with the following model parameters: r P = 0.8 1/day, K = 5.0 g/m3, g Z = 0.6 1/day, g F = 0.3 1/day, h P = 0.5 g/m3, h Z = 0.3 g/m3, e Z = 0.4 , e F = 0.3 , m P = 0.1 1/day, m Z = 0.08 1/day, m F = 0.05 1/day, a P = 0.3 mg/(L·day), b R = 0.1 mg/(L·day), k 2 = 0.15 1/day. Base oxygen saturation was assumed to be 10 mg/L, medium temperature of the water was 18 °C, water temperature amplitude change was 8 °C, and temperature fluctuation period was set to 25 days. Measurement noise was 0.08, process noise was 0.02, and initial state vector X 0 = [ 1.5 0.8 0.3 9.0 ] T . Modeling results during the period of 50 days are shown in Figure 5 and Figure 6.
As one can see from Figure 5, phytoplankton biomass becomes higher than algae bloom threshold from day 3 to day 16 and from day 41 to day 50; that may lead to algae bloom and, subsequently, to fish kill. DO level changes as shown in Figure 6; it fluctuates from 9 to 15 mg/L, while temperature oscillates from 10 to 26 °C. At that, estimated data are in good agreement with measured ones for both values due to application of the Kalman filter. Thus, the proposed model allows one to estimate DO level and other parameters of the pond state and may be used in fish pond state monitoring.

5.2. Preliminary Tests of System Concept and Algorithms

Preliminary tests of the system concept and algorithms were carried out in the Kyiv Reservoir (50° 38 25.5 N 30° 26 42.2 E) at a depth of 20 cm (near the surface). Model parameters were calibrated using data collected in September 2025, with chlorophyll-a (a key pigment of oxygenic photosynthesis) concentration as the input variable. Chlorophyll-a measurements were made once every three days. Chlorophyll-a concentration declined from values of 13.8 μg/L in early September to 6.5 μg/L at the end of the month.
DO and temperature measurement were performed using an Atlas Scientific Gen 3 Industrial D.O. Probe sensor [22] with an EZOTM auxiliary board. The WeAct Black Pill board with a STM32F401CEU6 microcontroller was used for sensor control, pre-processing, and data storage. The sensor was calibrated according to the manufacturer’s recommendations. The system was programmed to measure the concentration of DO (mg/L O 2 ) and water temperature at 1 h intervals, and DO, water temperature, and measurement time were collected and stored. Collected data were saved in .csv format. Data processing was performed in the MATLAB R2016b environment. The processing main pipeline included:
  • Import and validation: Loading the .csv file with the readtable function (DateTime text column is converted to datetime format).
  • Outlier elimination: detection and interpolation of anomalous values using the median filter(movmedian function).
  • Aggregation: calculation of daily statistics (minimum, maximum values) for further analysis.
In Figure 7, DO and water temperature are plotted. Data were recorded from 1 September to 30 September 2025. The black dots represent the measured DO concentrations. The red solid line shows the DO predicted in real time by the Extended Kalman Filter (EKF). The blue line indicates the measured water temperature, a key driver of DO dynamics.
EKF effectiveness was assessed using comparison of predicted DO values and empirical (measured) data. The system demonstrated high accuracy with R M S E = 0.104 mg/L and determination coefficient R 2 = 0.979 . The mean absolute error of DO prognosis is 0.081 mg/L. Those results clearly show that the model reflects dynamics of the pond’s oxygen regime adequately and thus can be used in the operative monitoring.
A detailed statistical assessment of the prediction residuals (differences of estimated and measured DO values) is presented in Figure 8.
The residuals exhibit a negligible systematic bias of 0.018 mg/L and a standard deviation of 0.102 mg/L, yielding a mean absolute error (MAE) of 0.081 mg/L. The apparent contradiction between the Jarque–Bera test result and the empirical distribution is resolved by distinguishing statistical from practical significance: while the test’s high sensitivity indicates a formal deviation from perfect normality (p = 0.0010), the actual error distribution is practically normal. Key evidence of this is the proportion of residuals within ± 1 σ and ± 2 σ of the mean, which are 68.5% and 96.7%, respectively. These empirical quantiles show close agreement with the theoretical expectations for a Gaussian distribution (68.3% and 95.5%). Therefore, practical insignificance of these deviations, combined with the known robustness of the Kalman filter to minor violations of normality, validates its applicability and ensures high forecasting accuracy within this operational framework.
As one can see from the results of preliminary tests, a system built under the presented concept can clearly be implemented. At that, the use of EKF allows one to estimate hydrochemical pond parameters—at least DO—with R M S E = 0.104 mg/L. Thus, the system that uses the Atlas Scientific Gen 3 Industrial D.O. Probe sensor can be used as a base for further system development on the next stage of this study.

5.3. Data Processing Simulation

The results of application of the proposed approach to approximation and outlier elimination are shown below. An example of the Windows-based software under development in trend analysis mode with generated demo data is shown in Figure 9.
As one can see from Figure 9, the DO level in the pond near its surface is increasing, and stratification seems to be forming in the pond. The critical DO level in the pond is estimated to be attained at 7:15:10. Outliers are shown in gray color and are not included into approximation.
As both DO and pH change during the day (see Figure 3), approximation must take that into account. The simplest way to ensure good approximation is to divide obtained data into two regions: first from 6 a.m. until 9 p.m. and second from 9 p.m. to 6 a.m. In such a way, one can ensure monotonic changes in DO and pH at night, and almost monotonic during a day, and that will allow one to use approximation while minimizing its errors. However, simple analysis of the absolute maximum and minimum of the water parameter during a day may also be used in order to establish mentioned regions for the next operation day; as light day length changes slowly, such an approach should be an acceptable solution.

5.4. Design Parameters Estimation and Discussion

Power efficiency of the design is the key to successful system deployment. Components, selected for system implementation, are shown in Table 7.
The estimated power budget of the measurement module with Atlas Scientific sensors is presented in Table 8.
As module activity time, which includes measurement, data processing, and transmission, is 1 min maximum, and measurement takes place once an hour, total power consumption per one day is 1.5332 W·h, and, therefore, a single 18,650 3.7 V Li-Ion battery with 12.95 W·h capacity will allow the module to run for 15.6 days—if no solar cell is used. Use of 12 such batteries will allow the module to operate for half of a year (188 days) on a single charge. Use of a solar cell allows for charging of the battery during a day, thus the number of Li-Ion batteries needed per module can be reduced.
As for the ease of the monitoring system’s implementation, it is based mostly on the standard off-the-shelf components, and its hardware requires a little development time to implement. In order to implement such a system, one has to put the most effort into development and manufacturing of the measurement module with its firmware and client software, as most of the high-level software is standard.
Next thing to consider is the system’s accuracy. As sensors proposed for use are digital, system accuracy is determined by the errors of sensors themselves, as sensing elements, amplifiers, signal conditioners, and ADCs are contained inside those sensors. The measurement module is also digital and, therefore, does not introduce an additional error in digital input signal. The only source of errors, that may have an impact on the measured values, is the power source; as power is provided by an accumulator, any power fluctuations are unlikely to occur. With Atlas Scientific sensors, measurement errors are ±0.05 mg/L for DO, ±0.002 for pH, and up to ±0.2 °C for temperature. That is more than enough for fish farming.
Next is the system’s scalability. Theoretically, LoRaWAN allows one to use up to 10,000 nodes (modules); however, to that end, one has to correctly plan both network and data rate. As for network planning, use of a single 8-channel gateway usually allows one to receive data from 32 to 128 modules. At that, use of a high spreading factor (i.e., SF10–SF12) allows one to achieve the longest range between nodes but also limits the size of the LoRa packet payload to 51 bytes and increases time on air for 16 bytes payload up to 1646.6 ms (868 MHz frequency band, bandwidth 125 MHz). For spreading factor SF7, the maximum payload size is 222 bytes, and time on air is 66.8 ms with the same channel characteristics. Moreover, in order to obtain distance of 10–15 km between modules in rural areas, one has to place module and gateway antennas in a line of sight. So, in each case of monitoring system deployment, the network has to be set up individually, taking the position of modules and gateway antennas into account. In cases of very large areas or when 100+ modules are to be used, use of many gateways that transfer data to the LoRaWAN network server is desired in order to speed up data transfer and simplify system adjustment. However, such a solution will increase the system’s overall cost.
The last, but not the least, is the system’s cost. Overall cost depends on the number of modules used, and the most expensive parts of the measurement module are its sensors. If Atlas Scientific sensor’s retail price lies in the range of $100–$300 (as of 2025, depending on the lot size), industrial-grade sensors of other manufacturers are much more expensive (usually $1000+). However, if the loss due to one fish kill is estimated to be tens of thousands dollars, use of the monitoring system can clearly be justified.

6. Conclusions

This study presents a conceptual design of a hydrochemical monitoring system tailored for large-scale aquaculture, contributing to the development of smart Agriculture 4.0 solutions. The proposed system architecture, combining low-power sensor nodes, LoRaWAN communication, and hierarchical data processing, establishes a foundation for developing an operational monitoring platform. The core of the approach is integration of a dynamic pond ecosystem model with an Extended Kalman Filter (EKF). It has been demonstrated that even a minimal configuration using only a DO sensor allows for the estimation of pond hydrochemical state, thereby validating the fundamental feasibility of state reconstruction under conditions of partial observability. Such an approach also allows one to explain and justify the reasoning behind every recommended corrective action. A basic set of sensors (DO, pH, temperature) provides a suitable basis for measurements, with the architecture allowing for the integration of other sensor types. It is important to note that the current work concludes the first stage of research, corresponding to Technology Readiness Level (TRL) 3—experimental proof of concept.
The next stage of research (targeting TRL 4–5) will focus on:
  • Calibration and validation of the basic model using data from a specific fish farm.
  • Establishment of operational thresholds for key water quality parameters (DO, pH, T) with the involvement of experienced aquaculture practitioners.
  • Field testing and optimization of the hardware to ensure durability and energy efficiency under real-world conditions.
In the next research stage, further system development is planned, including implementation of an expanded model that accounts for pH and temperature dynamics. This step will require overcoming specific scientific and technical challenges, including the calibration of over 30 additional parameters and optimization of computation. Within this stage, a pilot deployment, final system tuning, and the development of practical recommendations for fish farms management are planned.

Author Contributions

Conceptualization, S.I., O.K. and P.O.; methodology, S.I., O.K., P.O. and O.O.; software, S.I., G.L. and P.O.; validation, S.I., O.K., G.L., P.O. and O.O.; investigation, S.I. and P.O.; data curation, S.I. and P.O.; writing—original draft preparation, S.I. and P.O.; writing—review and editing, S.I., O.K., G.L. and O.O.; funding acquisition, S.I., O.K. and G.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data may be obtained by request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ABPActivation By Personalization
ADCAnalog–Digital Converter
AppSKeyApplication Session Key
ARMAdvanced RISC Machine
DevAddrDevice Address
DODissolved Oxygen
EKFExtended Kalman Filter
FLOPSFloating Point Operation Per Second
FPUFloating Point Unit
I2CInter-Integrated Circuit
IoTInternet of Things
LoRaLong Range
LoRaWANLong-Range Wide-Area Network
MAEMean Absolute Error
MCUMicrocontroller Unit
MQTTMessage Queue Telemetry Transport
NwkSKeyNetwork Session Key
OTAAOver The Air Activation
RMSERoot Mean Square Error
RTURemote Terminal Unit
SoCSystem on a Chip
SPISerial Peripheral Interface
TDSTotal Dissolved Solids
TRLTechnology Readiness Level
UARTUniversal Asynchronous Receiver/Transmitter
UAVUnmanned Air Vehicle
Wi-FiWireless Fidelity

Appendix A. Data of Commercially Available Industrial-Grade and Laboratory-Grade DO and pH Sensors

Characteristics of some of the industrial-grade and laboratory-grade sensors available on the market that can be used for hydrochemical regime monitoring in a fish pond are shown in Table A1 and Table A2. As for the temperature sensor, it is present in either DO or pH sensors.
Table A1. Characteristics of DO sensors.
Table A1. Characteristics of DO sensors.
ParameterAtlas Scientific Gen 3 Industrial D.O. Probe [22]BOQU IOT-485-DO [46]AQUALABO OPTOD [47]YOKOGAWA DO71 [48]
Measurement range, mg/L0–1000–200–200–22.5
Accuracy, mg/L±0.05±0.20±0.10±0.05
Temperature range, °C1–990–650–500–50
Built-in temperature sensorYesYesYesYes
Temperature accuracy 1, °C ± ( 0.15 + ( 0.002 t ) ±0.5±0.5≤1.0
Maximum depth, m212-50120
Output interfaceAnalog (galvanic) 2RS-485 Modbus RTURS-485 Modbus RTU and SDI-12RS-485 Modbus RTU
Time before recalibration1 year-1 year1 year
Maintenance period1–2 years-2 years1 year
1t is the measured temperature value expressed in °C. 2 May be converted to Inter-Integrated Circuit (I2C) interface using an external EZOTM board.
Table A2. Characteristics of pH sensors.
Table A2. Characteristics of pH sensors.
ParameterAtlas Scientific Gen 3 Mini Lab Grade pH Probe [49]BOQU BH-485-PH [50]AQUALABO PHEHT Monobloc [47]YOKOGAWA PM21 with FLXA21 [51]
Measurement range0–140–140–140–14
Accuracy±0.002±0.1±0.1±0.01
Temperature range, °C−5–990–650–500–60
Built-in temperature sensorNoYesYesYes
Temperature accuracy, °C-±0.1±0.5±0.3
Maximum depth, m78-5050
Output interfaceAnalog (voltage) 1RS-485 Modbus RTURS-485 Modbus RTU and SDI-12HART, Profibus, Fieldbus 2
Time before recalibration1 year> 60 days1 year-
Maintenance period1 year-1 year-
1 May be converted to I2C interface using an external EZOTM board; 2 May be converted to Modbus RTU using YOKOGAWA FLXA402 device.
As one can see from the tables presented above, most of the industrial-grade sensors have a Modbus RTU interface. The use of a digital interface eliminates the need for measurement channel re-calibration when replacing a faulty sensor. Analog sensors proposed by Atlas Scientific may be converted to the I2C interface, using either the Atlas Scientific (EZOTM) interface board or a custom-made board in the measurement module. The main drawback of the digital output is that the Modbus register map is unique for each sensor type. As a result, sensors of different manufacturers are not interchangeable.
As for other parameters, all sensors are rather close in terms of measurement range and operating temperature range and have comparable measurement precision. A maximum immersion depth of 50 m and more is redundant for most fish farming applications. So, the limiting factors of sensor choice are maintenance period and price.
Many DO sensors nowadays are optical rather than electrochemical; therefore, no frequent electrode change and re-calibration are needed. The same is true for temperature sensors, which mostly use resistive temperature detectors. pH sensors, however, in most cases still require use of gel and electrodes, and, therefore, sensor maintenance time and lifetime are defined mostly by service life of electrodes. So, when selecting the pH sensor, one has to take both price and life of a sensing electrode into account.
Sensor maintenance may include not only electrode or gel replacement. Periodic cleaning of membranes or optical windows may also be necessary if sensor operating conditions are harsh. To that end, most manufacturers propose cleaning systems, which allow one to clear sensors in place of operation, thus decreasing maintenance time. However, use of such a system increases total cost and energy consumption of the measurement module.
If identifying and measuring of contaminants in water is necessary, usually, offline measurement using additional sensors is performed. General review of sensors for detection and monitoring of contaminants in wastewater is presented in [52] and may be used as a base for selection of such sensors. Remote sensing technology and sensors for water quality monitoring are also discussed in [53].

Appendix B. Estimation of Computation Complexity for Pond Models

Computational complexity of EKF is determined by the dimension of the tasks (number of state variables n x and measurements n z ) and the number of matrix operations needed at each step. This analysis is performed for two stages of conceptual development of the monitoring system with model (1) and with the model that takes DO, pH, and temperature into account, and analysis results are shown in Table A3.
Table A3. Computation complexity for pond models.
Table A3. Computation complexity for pond models.
ParameterStage 1 (Model (1))Stage 2 (Complex Model)
ConceptModel with partial observabilityFull biogeochemical model with full observability
State dimension ( n x )4 (P, Z, F, O)6 (P, Z, F, O, p H , T)
Measurement dimension ( n z )1 (O)3 (O, p H , T)
Model integration∼24 FLOPS (4 simple equations)∼84 FLOPS (6 simple equations)
Jacobian F k ∼96 FLOPS (4 × 4 matrix)∼360 FLOPS (6 × 6 matrix))
Covariation prognosis∼144 FLOPS (2 × 4 3 + 4 2 )∼468 FLOPS (2 × 6 3 + 6 2 )
Kalman correction∼40 FLOPS∼392 FLOPS
Total complexity (per one step)≈304 FLOPS≈1304 FLOPS
One should note that data presented in Table A3 are approximate and reflect the number of floating point arithmetic operations (additions, subtractions, multiplications, and divisions). Model integration (Euler scheme) complexity strongly depends on the complexity of the right-hand side of the model equations. The most significant contribution to the complexity is provided by matrix operations, especially by covariance prediction (4) and Kalman correction (5)–(9).
Calculations requiring both 304 FLOPS and 1304 FLOPS complexity can be performed on 32-bit MCU with built-in FPU (e.g., STM32F401CE), especially if data are collected rarely, e.g., once an hour.

Appendix C. Schematics of the Measurement Module

Basic schematics of the measurement module are shown in Figure A1.
As one can see from Figure A1, the measurement unit is based on the WeAct Black Pill board featuring STM32F401CEU6 MCU. As a LoRa module, RFM-95W with a serial peripheral interface (SPI) interface is used. Taking data shown in Table A1 and Table A2 into account, the module allows RS-485 and galvanic (using I2C interface boards) sensors to be used. In both cases, sensors are to be connected to J2 and J3 screw terminals in parallel (via respective connectors). For RS-485 interface sensors, polarization resistors are installed. Use of standard interfaces allows one to attach different sensors (not only DO and pH ones) to the measurement module; however, firmware adaptation will be needed due to different register maps of different sensors.
The power system of the module includes a 3.7 V Li-Ion battery, solar cell, and DD05CVSA charger-converter, which allows one to obtain 12 V output and 500 mA peak current. In order to save power, sensors are powered only during measurement on MCU command, and radio module, RS-485 converter, and MCU stay in sleep state between measurement cycles.
Figure A1. Measurement unit schematics.
Figure A1. Measurement unit schematics.
Sensors 26 00497 g0a1

References

  1. Bessonov, N.M.; Privezentsev, Y.A. Ribokhoziaisvennaia Hydrokhymyia (Fish Farm Hydrochemy); Agropromizdat: Moscow, Russia, 1987; p. 158. [Google Scholar]
  2. Landa, N.G. (Ed.) Sbornik Normativno-Tekhnicheskoy Dokumentatsii po Tovarnomu Rybovodstvu (Collection of Normative and Technical Documentation on Commercial Fish Farming); Agropromizdat: Moscow, Russia, 1986; Volume 2, p. 316. [Google Scholar]
  3. Parker, R. Aquaculture Science, 3rd ed.; Delmar Thomson Learning: Albany, NY, USA, 2012; p. 653. [Google Scholar]
  4. Walter, A.; Finger, R.; Huber, R.; Buchmann, N. Smart farming is key to developing sustainable agriculture. Proc. Natl. Acad. Sci. USA 2017, 114, 6148–6150. [Google Scholar] [CrossRef] [PubMed]
  5. Verdouw, C.; Sundmaeker, H.; Tekinerdogan, B.; Conzon, D.; Montanaro, T. Architecture framework of IoT-based food and farm systems: A multiple case study. Comput. Electron. Agric. 2019, 165, 104939. [Google Scholar] [CrossRef]
  6. Pivoto, D.; Waquil, P.D.; Talamini, E.; Finocchio, C.P.S.; Dalla Corte, V.F.; de Vargas Mores, G. Scientific development of smart farming technologies and their application in Brazil. Inf. Process. Agric. 2018, 5, 21–32. [Google Scholar] [CrossRef]
  7. Lambrou, T.P.; Anastasiou, C.C.; Panayiotou, C.G.; Polycarpou, M.M. A Low-Cost Sensor Network for Real-Time Monitoring and Contamination Detection in Drinking Water Distribution Systems. IEEE Sens. J. 2014, 14, 2765–2772. [Google Scholar] [CrossRef]
  8. Navarro, E.; Costa, N.; Pereira, A. A Systematic Review of IoT Solutions for Smart Farming. Sensors 2020, 20, 4231. [Google Scholar] [CrossRef]
  9. Manoj, M.; Dhilip Kumar, V.; Arif, M.; Bulai, E.R.; Bulai, P.; Geman, O. State of the Art Techniques for Water Quality Monitoring Systems for Fish Ponds Using IoT and Underwater Sensors: A Review. Sensors 2022, 22, 2088. [Google Scholar] [CrossRef] [PubMed]
  10. Chatziantoniou, A.; Papandroulakis, N.; Stavrakidis-Zachou, O.; Spondylidis, S.; Taskaris, S.; Topouzelis, K. Aquasafe: A Remote Sensing, Web-Based Platform for the Support of Precision Fish Farming. Appl. Sci. 2023, 13, 6122. [Google Scholar] [CrossRef]
  11. Akhter, F.; Siddiquei, H.R.; Alahi, M.E.E.; Mukhopadhyay, S.C. Recent Advancement of the Sensors for Monitoring the Water Quality Parameters in Smart Fisheries Farming. Computers 2021, 10, 26. [Google Scholar] [CrossRef]
  12. Khudoyberdiev, A.; Jaleel, M.A.; Ullah, I.; Kim, D. Enhanced Water Quality Control Based on Predictive Optimization for Smart Fish Farming. Comput. Mater. Contin. 2023, 75, 5471–5499. [Google Scholar] [CrossRef]
  13. Al-Mutairi, A.; Al-Aubidy, K. IoT-based smart monitoring and management system for fish farming. Bull. Electr. Eng. Inform. 2023, 12, 1435–1446. [Google Scholar] [CrossRef]
  14. Mohd Jais, N.A.; Abdullah, A.F.; Mohd Kassim, M.S.; Abd Karim, M.M.; M, A.; Muhadi, N.A. Improved accuracy in IoT-Based water quality monitoring for aquaculture tanks using low-cost sensors: Asian seabass fish farming. Heliyon 2024, 10, e29022. [Google Scholar] [CrossRef]
  15. Mat Tahir, N.H.; Mohamad, S.N.B.; Wan Tarmizi, W.F.; Muhd Zain, M.L.; Jailani, N.N. IOT Based Approach On Aquarium Monitoring System With Fish Feeder Automation. J. Eng. Technol. (JET) 2020, 11, 1–10. [Google Scholar]
  16. Tolentino, L.K.; Pedro, C.; Icamina, J.; Navarro, J.; Salvacion, L.; Sobrevilla, G.; Villanueva, A.; Amado, T.; Padilla, M.; Madrigal, G.A.; et al. Development of an IoT-based Intensive Aquaculture Monitoring System with Automatic Water Correction. Int. J. Comput. Digit. Syst. 2021, 10, 1355–1365. [Google Scholar] [CrossRef]
  17. Chen, C.H.; Wu, Y.C.; Zhang, J.X.; Chen, Y.H. IoT-Based Fish Farm Water Quality Monitoring System. Sensors 2022, 22, 6700. [Google Scholar] [CrossRef]
  18. Tamim, A.T.; Begum, H.; Shachcho, S.A.; Khan, M.M.; Yeboah-Akowuah, B.; Masud, M.; Al-Amri, J.F. Development of IoT Based Fish Monitoring System for Aquaculture. Intell. Autom. Soft Comput. 2022, 32, 55–71. [Google Scholar] [CrossRef]
  19. Salem, R.M.M.; Saraya, M.S.; Ali-Eldin, A.M.T. An Industrial Cloud-Based IoT System for Real-Time Monitoring and Controlling of Wastewater. IEEE Access 2022, 10, 6528–6540. [Google Scholar] [CrossRef]
  20. Valarmathi, R.; Hemavathi, N.; Chandra, A.S.; Sai Mohanram, N. Internet of Things enabled Edge based Tertiary Wastewater Treatment Plant Monitoring System. In Proceedings of the 2025 IEEE Madhya Pradesh Section Conference (MPCON), Bhopal, India, 28–29 November 2025; pp. 978–982. [Google Scholar] [CrossRef]
  21. Chavhan, N.; Bhattad, R.; Khot, S.; Patil, S.; Pawar, A.; Pawar, T.; Gawli, P. APAH: An autonomous IoT driven real-time monitoring system for Industrial wastewater. Digit. Chem. Eng. 2025, 14, 100217. [Google Scholar] [CrossRef]
  22. Atlas Scientific Gen 3 Industrial D.O. Probe. 2025. Available online: https://files.atlas-scientific.com/Industrial-DO-probe.pdf (accessed on 19 June 2025).
  23. Chlorophyll Sensor for Water Quality, 0 400 ug/L. 2025. Available online: https://www.ato.com/chlorophyll-sensor?srsltid=AfmBOopz-1G9YIVYF91oX2UK48yNK37r280jxOPXTz_d6FO4u38KbHFf (accessed on 16 December 2025).
  24. Ali, B.; Anushka; Mishra, A. Effects of dissolved oxygen concentration on freshwater fish: A review. Int. J. Fish. Aquat. Stud. 2022, 10, 113–127. [Google Scholar] [CrossRef]
  25. Lukjanenko, V.I. Ekologicheskie Aspekti Ichtyotoksikologyi (Ecological Aspects of Ichtyotoxicology); Agropromizdat: Moscow, Russia, 1987; p. 240. [Google Scholar]
  26. Jørgensen, S.E.; Fath, B.D. Fundamentals of Ecological Modelling: Applications in Environmental Management and Research, 4th ed.; Elsevier: Oxford, UK, 2011; p. 399. [Google Scholar]
  27. Boyd, C.E.; Tucker, C. Pond Aquaculture Water Quality Management; Springer Science & Business Media: Berlin/Heidelberg, Germany, 1998; p. 700. [Google Scholar]
  28. Liu, B.; Chen, M.; Wang, C. The Dynamics of Trophic Cascades on Phytoplankton Induced by Mesozooplankton in Coastal Water, Daya Bay, Northern South China Sea. Microorganisms 2024, 12, 1982. [Google Scholar] [CrossRef]
  29. Di Matteo, L.; Benedetti, F.; Ayata, S.D.; Aumont, O. Including different mesozooplankton feeding strategies in a biogeochemical ocean model impacts global ocean biomass and carbon cycle. Biogeosciences 2025, 22, 7233–7268. [Google Scholar] [CrossRef]
  30. Ribeiro, M.; Ribeiro, I. Kalman and Extended Kalman Filters: Concept, Derivation and Properties; Technical Report; Institute for Systems and Robotics, Instituto Superior T´ecnico: Lisboa, Portugal, 2004. [Google Scholar]
  31. OECD. Eutrophication of Waters. Monitoring, Assessment and Control; OECD: Paris, France, 1982; p. 154. [Google Scholar]
  32. Solheim, A.; Rekolainen, S.; Moe, J.; Carvalho, L.; Phillips, G.; Ptacnik, R.; Penning, W.; Tóth, L.G.; O’Toole, C.; Schartau, A.; et al. Ecological Threshold Responses in European Lakes and Their Applicability for the Water Framework Directive (WFD) Implementation: Synthesis of Lakes Results from the REBECCA Project. Aquat. Ecol. 2008, 42, 317–334. [Google Scholar] [CrossRef]
  33. Sriyasak, P.; Chanagun, C.; Whangchai, N.; Promya, J.; Lebel, L. Effects of Temperature upon Water Turnover in Fish Ponds in Northern Thailand. Int. J. Geosci. 2013, 4, 18–23. [Google Scholar] [CrossRef]
  34. Wurts, W.; Durborow, R. Interactions of pH, Carbon Dioxide, Alkalinity and Hardness in Fish Ponds; Southern Regional Aquaculture Center Publication: Stoneville, MS, USA, 1992; Volume 464. [Google Scholar]
  35. Li, W.; Wu, H.; Zhu, N.; Jiang, Y.; Tan, J.; Guo, Y. Prediction of dissolved oxygen in a fishery pond based on gated recurrent unit (GRU). Inf. Process. Agric. 2021, 8, 185–193. [Google Scholar] [CrossRef]
  36. Khani, S.; Rajaee, T. Modeling of Dissolved Oxygen Concentration and Its Hysteresis Behavior in Rivers Using Wavelet Transform-Based Hybrid Models. CLEAN—Soil Air Water 2016, 45. [Google Scholar] [CrossRef]
  37. Smiti, A. A critical overview of outlier detection methods. Comput. Sci. Rev. 2020, 38, 100306. [Google Scholar] [CrossRef]
  38. ASR6601 Datasheet. 2021. Available online: https://community.hiveeyes.org/uploads/short-url/c1VQyuRKdA7RIQTihetlhOHqg5j.pdf (accessed on 19 June 2025).
  39. STM32WL Series. 2025. Available online: https://www.st.com/en/microcontrollers-microprocessors/stm32wl-series.html (accessed on 19 June 2025).
  40. LoRa Basics Modem LoRaWAN Stack. 2025. Available online: https://github.com/Lora-net/SWL2001 (accessed on 19 June 2025).
  41. The Things Stack. 2025. Available online: https://www.thethingsindustries.com/docs/ (accessed on 19 June 2025).
  42. ThingParkMarket by Activity. 2025. Available online: https://market.thingpark.com/connectivity/private-lorawan-networks-servers (accessed on 19 June 2025).
  43. The ChirpStack Project. 2025. Available online: https://www.chirpstack.io/docs/ (accessed on 19 June 2025).
  44. LORIOT. Hybrid Network Management System for Massive IoT. 2025. Available online: http://loriot.io (accessed on 19 June 2025).
  45. Multitech. LoRa Network Server. 2025. Available online: https://www.multitech.net/developer/software/lora/lora-network-server/ (accessed on 19 June 2025).
  46. IOT-RS485-DO Digital Dissolved Oxygen Sensor. 2024. Available online: https://www.boquinstrument.com/iot-rs485-do-digital-dissolved-oxygen-sensor.html (accessed on 19 June 2025).
  47. CATALOG AQUALABO Smart Water Solutions. 2023. Available online: https://csqanalytics.com/wp-content/uploads/2024/04/AQUALABO-Catalog-2023.pdf (accessed on 19 June 2025).
  48. IM12J06J01-00EN-P Instruction Manual Model DO71 Optical Dissolved Oxygen Sensor. 2024. Available online: https://web-material3.yokogawa.com/IM12J06J01-00EN-P.pdf (accessed on 19 June 2025).
  49. Atlas Scientific Gen 3 Mini Lab Grade pH Probe. 2024. Available online: https://files.atlas-scientific.com/Mini_pH_probe.pdf (accessed on 19 June 2025).
  50. Online Digital pH Sensor Model:BH-485-PH User Manual. 2024. Available online: https://www.boquinstruments.com/uploads/BH-485-PH-Digital-pH-Sensor-User-manual1.pdf (accessed on 19 June 2025).
  51. 2-Wire Dual Channel Transmitter/Analyzer FLXA21. 2024. Available online: https://www.yokogawa.com/solutions/products-and-services/measurement/analyzers/liquid-analyzers/ph-analyzers/two-wire-transmitter-analyzer-flxa21/#Details__pH-ORP-Measurement (accessed on 19 June 2025).
  52. Weerasinghe, M.; Jayathilaka, K.; Vithanage, M. Sensors for detection and monitoring of contaminants in wastewater. Curr. Opin. Environ. Sci. Health 2025, 45, 100609. [Google Scholar] [CrossRef]
  53. Chen, H.; Gao, X.; Yuan, R. Advances in Remote Sensing and Sensor Technologies for Water-Quality Monitoring: A Review. Water 2025, 17, 3000. [Google Scholar] [CrossRef]
Figure 1. General concept of the monitoring system. Data are collected and pre-processed by measurement modules then sent via LoRaWAN gateway to a server for analysis and initiation of corrective actions.
Figure 1. General concept of the monitoring system. Data are collected and pre-processed by measurement modules then sent via LoRaWAN gateway to a server for analysis and initiation of corrective actions.
Sensors 26 00497 g001
Figure 2. Structure of the proposed system. Optional parts are drawn in dashed lines; additional data from mobile monitoring systems may be used in order to improve prognosis.
Figure 2. Structure of the proposed system. Optional parts are drawn in dashed lines; additional data from mobile monitoring systems may be used in order to improve prognosis.
Sensors 26 00497 g002
Figure 3. Typical DO and pH change in the fish pond during day and night.
Figure 3. Typical DO and pH change in the fish pond during day and night.
Sensors 26 00497 g003
Figure 4. Decision-making algorithm based on the predicted value of the water parameter.
Figure 4. Decision-making algorithm based on the predicted value of the water parameter.
Sensors 26 00497 g004
Figure 5. Results of phytoplankton modeling. Measured data (magenta points) and estimation results (black solid line) are in good agreement. Algae bloom is possible when phytoplankton biomass concentration is higher than the bloom threshold.
Figure 5. Results of phytoplankton modeling. Measured data (magenta points) and estimation results (black solid line) are in good agreement. Algae bloom is possible when phytoplankton biomass concentration is higher than the bloom threshold.
Sensors 26 00497 g005
Figure 6. Results of DO level modeling. Measured data (magenta points) and estimation results (black solid line) are in good agreement. DO is higher than respiratory depression and fish death levels, so any problems are unlikely to occur.
Figure 6. Results of DO level modeling. Measured data (magenta points) and estimation results (black solid line) are in good agreement. DO is higher than respiratory depression and fish death levels, so any problems are unlikely to occur.
Sensors 26 00497 g006
Figure 7. Time series of DO dynamics and water temperature from the field tests (50° 38 25.5 N 30° 26 42.2 E, at 20 cm depth, 1 September 1 to 30 September 2025).
Figure 7. Time series of DO dynamics and water temperature from the field tests (50° 38 25.5 N 30° 26 42.2 E, at 20 cm depth, 1 September 1 to 30 September 2025).
Sensors 26 00497 g007
Figure 8. Analysis of DO prediction residuals: (a) Time series of residuals (measured DO—EKF-predicted DO). (b) Histogram of the residuals with an overlaid normal distribution curve. Key metrics: Bias (mean) = 0.018 mg/L, Standard Deviation = 0.102 mg/L.
Figure 8. Analysis of DO prediction residuals: (a) Time series of residuals (measured DO—EKF-predicted DO). (b) Histogram of the residuals with an overlaid normal distribution curve. Key metrics: Bias (mean) = 0.018 mg/L, Standard Deviation = 0.102 mg/L.
Sensors 26 00497 g008
Figure 9. Trend analysis window of the client software, showing DO (red squares) and pH (green circles) values.
Figure 9. Trend analysis window of the client software, showing DO (red squares) and pH (green circles) values.
Sensors 26 00497 g009
Table 1. Comparison of features of aquaculture monitoring systems.
Table 1. Comparison of features of aquaculture monitoring systems.
PublicationSpatial ScaleSensors UsedCommunicationModeling and Decision Support
Chatziantoniou et al. [10]Scattered marine areasDO, temperature, satellite imageryInternet (wired and Wi-Fi)Bioenergetic model of fish growth
Akhter et al. [11]Small fisheriesDO, temperature, pH, nitrate, phosphate, calcium, magnesiumLoRaNot specified
Khudoyberdiev et al. [12]Tank aquacultureTemperature, pH, and water and conductivity levelsNot specifiedNeural Network + Fuzzy logic
Al-Mutairi and Al-Aubidy [13]Small fisheriesDO, pH, turbidity, temperature, electric conductivity, total dissolved solids, water levelWi-FiFuzzy logic
Mohd Jais et al. [14]Tank aquacultureTemperature, DO, pH, ammonia, and salinityWi-FiNone (to be implemented)
Mat Tahir et al. [15]Tank aquaculturepH, food levelWi-FiNone
Tolentino et al. [16]Intensive (tank) aquacultureTemperature, DO, pH, oxidation–reduction potential, turbidity, salinityLoRaWANNot specified
Chen et al. [17]Small fisheries, tank aquacultureTemperature, pH, DO, water levelLoRaWANNone (to be implemented)
Tamim et al. [18]Not specifiedpH, temperature (DO, ammonia measured offline)Wi-FiNone
Salem et al. [19]Tanks (wastewater plant)pH and temperatureWi-Fi + cellular networksNone
Valarmathi et al. in [20]Tanks (wastewater plant)Turbidity, total dissolved solids, temperature, and humidityWi-FiNone
Chavan et al. [21]Tanks (wastewater plant)pH, DO, electrical conductivity, TDS, turbidity, and temperatureWi-Fi + cellular networksMachine learning (method unspecified)
Table 2. DO levels at which respiratory depression and fish death occur at 0–0.5 °C (Data from [25]).
Table 2. DO levels at which respiratory depression and fish death occur at 0–0.5 °C (Data from [25]).
Fish SpeciesRespiratory Depression Level, mg/LFish Death Level, mg/L
Nelma7.5–6.04.5–4.0
Sterlet7.5–6.03.5
Muksun4.5–3.02.0–1.5
Peled4.5–3.01.5–1.0
Common dace4.5–3.01.2–0.8
European perch4.5–3.01.1–0.6
Ide4.5–3.00.5
Roach3.0–2.00.7
Northern pike3.0–2.00.6–0.3
Crucian carp2.0–1.00.1
Table 3. Phytoplankton parameters (data from [27,28,29]).
Table 3. Phytoplankton parameters (data from [27,28,29]).
ParameterDesignationMeasurement UnitsTypical ValueRange of Normal Values
Growth rate r P day−10.8–1.20.5–2.0
Carrying capacityKg/m35.03.0–8.0
Half-saturation constant h P g/m30.50.1–1.0
Mortality rate m P day−10.10.05–0.2
Table 4. Zooplankton parameters (data from [27,28,29]).
Table 4. Zooplankton parameters (data from [27,28,29]).
ParameterDesignationMeasurement UnitsTypical ValueRange of Normal Values
Grazing rate g Z day−10.60.3–1.0
Assimilation efficiency e Z dimensionless0.40.3–0.6
Half-saturation constant h Z g/m30.30.1–0.5
Mortality rate m Z day−10.080.05–0.15
Table 5. Fish parameters (data from [27,28,29]).
Table 5. Fish parameters (data from [27,28,29]).
ParameterDesignationMeasurement UnitsTypical ValueRange of Normal Values
Predation rate g F day−10.30.1–0.5
Assimilation efficiency e F dimensionless0.30.2–0.4
Mortality rate m F day−10.050.02–0.1
Table 6. Oxygen balance parameters (data from [27,28,29]).
Table 6. Oxygen balance parameters (data from [27,28,29]).
ParameterDesignationMeasurement UnitsTypical ValueRange of Normal Values
Oxygen production a P mg/L/day0.30.1–0.5
Oxygen consumption b R mg/L/day0.10.05–0.2
Reaeration coefficient k 2 day−10.150.1–0.3
Base oxygen saturation (at 20 °C) O s a t _ b a s e mg/L9.18.0–10.0
Table 7. Components selected for system implementation.
Table 7. Components selected for system implementation.
ComponentModel
DO sensorAtlas Scientific Gen 3 Industrial D.O. Probe with EZOTM board
pH sensorAtlas Scientific Gen 3 Mini Lab Grade pH Probe with EZOTM board
MCU boardWeAct Black Pill with STM32F401CEU6 MCU
LoRa ModuleRFM-95W
Table 8. Estimated power budget of the measurement module with Atlas Scientific sensors.
Table 8. Estimated power budget of the measurement module with Atlas Scientific sensors.
Module ComponentOperation Mode Consumption, WSleep Mode Consumption, W
DO sensor0.62400
pH sensor0.09150
MCU board0.66000.005
LoRa Module0.39603.3 × 10−6
Total1.77150.005
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ivanov, S.; Korchenko, O.; Litawa, G.; Oliinyk, P.; Oliinyk, O. Prototype of Hydrochemical Regime Monitoring System for Fish Farms. Sensors 2026, 26, 497. https://doi.org/10.3390/s26020497

AMA Style

Ivanov S, Korchenko O, Litawa G, Oliinyk P, Oliinyk O. Prototype of Hydrochemical Regime Monitoring System for Fish Farms. Sensors. 2026; 26(2):497. https://doi.org/10.3390/s26020497

Chicago/Turabian Style

Ivanov, Sergiy, Oleksandr Korchenko, Grzegorz Litawa, Pavlo Oliinyk, and Olena Oliinyk. 2026. "Prototype of Hydrochemical Regime Monitoring System for Fish Farms" Sensors 26, no. 2: 497. https://doi.org/10.3390/s26020497

APA Style

Ivanov, S., Korchenko, O., Litawa, G., Oliinyk, P., & Oliinyk, O. (2026). Prototype of Hydrochemical Regime Monitoring System for Fish Farms. Sensors, 26(2), 497. https://doi.org/10.3390/s26020497

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop