2 Majooor Documentation PDF
2 Majooor Documentation PDF
Submitted by
Mr.R.Praveen Kumar
Associate Professor
BACHELOR OF TECHNOLOGY
in
May 2024
CERTIFICATE
This is to certify that the project work titled”Water Quality Prediction For
Smart Aquaculture” submitted by Tatitoti Prabhu (20891A66520), Julakanti
Sowmya (21895A6602), AVSS.Nithin Kumar (20891A6604) in partial fulfill-
ment of the requirements for the award of the degree of Bachelor of Technol-
ogy in Computer Science and Engineering(AI&ML) to the Vignan Institute of
Technology And Science, Deshmukhi is a record of bonafide work carried out
by them under my guidance and supervision.
The results embodied in this project report have not been submitted in any uni-
versity for the award of any degree, and the results are achieved satisfactorily.
External Examiner
i
DECLARATION
We hereby declare that the project entitled Water Quality Prediction For
Smart Aquaculture is bonafide work duly completed by us. It does not con-
tain any part of the project submitted by any other candidate to this or any other
institute of the university. All such materials that have been obtained from other
sources have been duly acknowledged.
Tatitoti Prabhu
(Reg.No. 20891A6652)
Julakanti Sowmya
(Reg.No. 21895A6602)
ii
ACKNOWLEDGEMENT
Last but not least, we wish to express our gratitude and thanks to friends and
beloved parents for their support and help.
iii
ABSTRACT
iv
Table of Contents
Abstract iv
List of Algorithms ix
List of Abbreviation x
1 INTRODUCTION 1
1.1 Purpose of the Project . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Scope of the Project . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 LITERATURE SURVEY 15
2.1 What is literature survey . . . . . . . . . . . . . . . . . . . . . . . 15
2.2 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3 Existing System . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.4 Proposed System . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3 DESIGN 35
3.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.1.1 Autoregressive Integrated Moving Average . . . . . . . . . . 49
3.1.2 Long Short Term Memory . . . . . . . . . . . . . . . . . . . 50
3.1.3 Artificial Neural Networks . . . . . . . . . . . . . . . . . . . 51
4 IMPLEMENTATION 53
4.1 Time Series Forecasting . . . . . . . . . . . . . . . . . . . . . . 54
4.2 LSTM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.3 Hybrid Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
v
TABLE OF CONTENTS TABLE OF CONTENTS
REFERENCES 69
vi
List of Tables
vii
List of Figures
viii
List of Algorithms
ix
List of Abbreviations
x
List of Abbreviations List of Abbreviations
xi
Chapter 1
INTRODUCTION
1
CHAPTER 1. INTRODUCTION
exchange[1].As the Figure 1.1 depicts the Measurement of Water quality, these
systems contribute to improved resource utilization efficiency and reduced op-
erational costs.
Sensor networks deployed within aquaculture systems collect real-time data
on key water quality parameters, such as temperature, dissolved oxygen, pH,
ammonia, and turbidity. These sensors can be strategically placed throughout
the aquaculture facility, including in tanks, ponds,Recirculating Aquaculture
Systems (RAS), and water treatment units[2].The collected data is then trans-
mitted to a central database or cloud-based platform for analysis and interpre-
tation.
Data analytics techniques, including machine learning algorithms, are ap-
plied to the collected sensor data to identify patterns, trends, and correlations.
By analyzing historical data alongside current observations, predictive mod-
els can be developed to forecast future water quality conditions. These models
may incorporate factors such as environmental variables, weather forecasts, and
aquaculture management practices to improve accuracy and reliability.
2
1.1. PURPOSE OF THE PROJECT CHAPTER 1. INTRODUCTION
The above Figure 1.2 represents the Water Treatment and Management in
smart aquaculture.Aquaculture operations have the potential to exert significant
pressure on the environment through the release of excess nutrients, pollutants,
3
1.1. PURPOSE OF THE PROJECT CHAPTER 1. INTRODUCTION
4
1.1. PURPOSE OF THE PROJECT CHAPTER 1. INTRODUCTION
The above Figure 1.3 represents the Aquaculture Pond Management. This
sustainable approach aligns with global efforts to promote responsible aqua-
culture practices that minimize environmental impact while meeting the grow-
ing demand for seafood. Ultimately, by integrating predictive capabilities into
aquaculture management, smart systems enable farmers to operate more ef-
ficiently, responsibly, and profitably while ensuring the well-being of aquatic
ecosystems.
By establishing a robust monitoring system is essential, utilizing a network
of sensors strategically placed throughout the pond to continuously measure
key water quality parameters such as temperature, pH, dissolved oxygen, and
ammonia levels. These sensors provide real-time data that serves as the foun-
dation for predictive modeling and decision-making.
Once data is collected, advanced data analytics techniques such as machine
learning algorithms can be employed to analyze historical data and predict fu-
ture trends in water quality parameters.
By identifying patterns and correlations within the dataset, predictive models
5
1.1. PURPOSE OF THE PROJECT CHAPTER 1. INTRODUCTION
6
1.1. PURPOSE OF THE PROJECT CHAPTER 1. INTRODUCTION
7
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
meet current and future seafood demand while preserving the health of aquatic
ecosystems.
The scope of the Water quality predicton for smart acquaculture begins with
comprehensive data collection and integration efforts, involving the aggrega-
tion of data from various sources such as sensors deployed within aquaculture
systems, environmental monitoring stations, and historical records.
Water quality prediction lies at the heart of smart aquaculture, offering a
proactive approach to maintaining optimal conditions for aquatic life within
aquaculture systems. This predictive capability is realized through the inte-
gration of advanced sensor networks throughout aquaculture facilities[6], con-
stantly monitoring critical parameters like dissolved oxygen, pH levels, tem-
perature, and more.
By gathering real-time data, these sensors provide a comprehensive under-
standing of water quality dynamics, forming the basis for predictive models.
Data analytics and modeling play a pivotal role in water quality prediction,
utilizing machine learning algorithms and historical data to forecast changes in
water parameters. By analyzing patterns and trends, these models offer insights
into future water quality scenarios, empowering aquaculture operators to antic-
ipate fluctuations and take preemptive action. Moreover, historical data serves
as a valuable resource for calibrating predictive models, enabling more accurate
forecasts based on past performance.
Incorporating environmental factors into predictive models enhances their
accuracy and reliability. Aquaculture operations are influenced by various ex-
ternal factors such as weather patterns, tidal cycles, and nutrient inputs from
surrounding landscapes. By integrating these factors into predictive analytics,
aquaculture operators gain a more holistic view of water quality dynamics, al-
8
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
9
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
10
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
The table 1.1water provides an overview of the current status of various water
quality parameters in an aquaculture system. Each row in the table represents
a different water quality parameter, while the columns indicate the parameter’s
name and its current status.
Firstly, the ”pH” parameter indicates the acidity or alkalinity of the water. In
this case, the status is described as ”Neutral,” suggesting that the pH level is
within the acceptable range for aquatic life.
Secondly, the ”Temperature” parameter refers to the water temperature. The
status is described as ”Optimal,” indicating that the current temperature is suit-
able for the aquatic species being cultivated.
Thirdly, the ”Dissolved Oxygen” parameter measures the concentration of
oxygen dissolved in the water, crucial for the survival of aquatic organisms.
Here, the status is indicated as ”High,” suggesting that the oxygen levels in the
water are sufficient for the health and well-being of the fish.
Fourthly, the ”Turbidity” parameter refers to the cloudiness or clarity of the
water, which can impact light penetration and nutrient availability for aquatic
plants and animals. In this case, the status is described as ”Low,” indicating that
11
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
12
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
organisms.
Predictive analytics further enhance feed management by forecasting changes
in water quality that may affect feed utilization and nutrient uptake.This opti-
mization reduces feed wastage, minimizes nutrient loading in aquaculture sys-
tems, and improves overall feed conversion ratios, leading to cost savings and
enhanced production efficiency.
Maintaining optimal water quality conditions is essential for preventing dis-
ease outbreaks and promoting the health of aquatic organisms. Water quality
prediction systems play a crucial role in disease prevention by identifying po-
tential stressors and risk factors before they escalate into health issues.
For example, changes in water temperature or dissolved oxygen levels may
predispose aquatic organisms to stress and increase susceptibility to pathogens.
By monitoring and predicting these changes, aquaculturists can implement pre-
ventive measures such as water exchange, aeration, or biosecurity protocols to
minimize disease risks and maintain optimal health in aquaculture systems.
Aquaculture operations must adhere to regulatory standards and environmen-
tal regulations to minimize their impact on surrounding ecosystems. Water
quality prediction systems facilitate environmental monitoring and compliance
by continuously monitoring key water parameters and alerting aquaculturists to
deviations from regulatory thresholds.
By proactively managing water quality and mitigating potential risks, aqua-
culturists can minimize the discharge of pollutants, reduce nutrient runoff, and
preserve water quality in nearby water bodies. This proactive approach pro-
motes environmental sustainability and helps aquaculture operations meet reg-
ulatory requirements and obtain certification from environmental stewardship
programs.
Water quality prediction systems contribute to resource conservation and ef-
ficiency by optimizing the use of water and energy resources in aquaculture
13
1.2. SCOPE OF THE PROJECT CHAPTER 1. INTRODUCTION
14
Chapter 2
LITERATURE SURVEY
15
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
The paper titled ”LSTM and GRU based Accurate Water Quality Prediction for
Smart Aquaculture,” published in the Journal of Physics: Conference Series by
IOP Publishing, introduces a novel approach to water quality prediction specif-
ically tailored for smart aquaculture systems. The paper focuses on utilizing
Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) neural
network architectures, which are well-suited for capturing temporal dependen-
cies and patterns in sequential data, to accurately forecast key water quality
parameters crucial for maintaining optimal conditions within aquaculture se-
tups.
The methodology outlined in the paper likely emphasizes the selection and
implementation of LSTM and GRU neural network architectures for water
quality prediction. These Recurrent Neural Networks (RNN) excel at modeling
sequential data and are particularly effective in scenarios where past observa-
tions influence future outcomes, making them ideal for time-series forecasting
tasks such as water quality prediction. The authors likely detail the training
process, which involves feeding historical sensor data into the LSTM and GRU
networks, optimizing model parameters, and fine-tuning the architectures to
achieve optimal predictive performance.
16
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
This time-series sensor data serves as the input for the LSTM and GRU neu-
ral networks, enabling continuous monitoring and accurate prediction of water
quality conditions. Preprocessing steps may include data cleaning, normaliza-
tion, and feature engineering to ensure the data is suitable for input into the
neural network models.
This study highlights the effectiveness of the LSTM and Gated Recurrent
Unit (GRU) neural network architectures in accurately predicting water qual-
ity parameters within smart aquaculture systems. Through rigorous validation
and evaluation, the authors assess the performance of the models, comparing
predicted values with actual measurements to gauge predictive accuracy. The
implications of this research extend to improving operational efficiency, en-
hancing productivity, and facilitating proactive management practices in aqua-
culture operations, ultimately contributing to the advancement of smart aqua-
culture technologies and practices.
[8]Juna, A., Umer, M., Sadiq, S., Karamti, H., Eshmawi, A. A., Mo-
hamed, A., Ashraf, I. (2022). Water quality prediction using KNN imputer
and multilayer perceptron. Water, 14(17), 2592.
The paper titled ”Water quality prediction using KNN imputer and multilayer
perceptron,” published in the journal Water in volume 14, issue 17, presents a
study focused on the development of a predictive model for water quality as-
sessment. Recognizing the importance of maintaining high water quality stan-
dards for various applications such as drinking water supply, aquatic ecosystem
health, and industrial processes, the authors propose a novel approach combin-
ing the K-Nearest Neighbour (KNN) imputer and Multilayer Perceptron (MLP)
neural network.
The KNN imputer is employed to address missing data in the water quality
dataset, which is a common challenge in environmental monitoring. By im-
puting missing values using the characteristics of neighboring data points, the
17
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
KNN imputer enhances the completeness and reliability of the dataset, thereby
improving the accuracy of subsequent predictive modeling. Subsequently, the
MLP neural network is utilized to build a predictive model capable of forecast-
ing water quality parameters based on various input variables.
This sophisticated modeling technique leverages the non-linear relationships
between input features and output variables to accurately predict water qual-
ity parameters. Through rigorous experimentation and evaluation, the study
demonstrates the effectiveness of the proposed approach in predicting water
quality parameters with high accuracy, highlighting its potential for practical
applications in water resource management, environmental monitoring, and de-
cision support systems. Overall, the paper contributes to advancing the field of
water quality prediction by introducing a novel methodology that integrates
data imputation and machine learning techniques to improve the accuracy and
reliability of predictive models, thereby facilitating informed decision-making
and sustainable management of water resources.
18
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
the proposed system in predicting crucial water quality parameters essential for
maintaining optimal conditions within aquaculture facilities.
In detailing the methodology, the authors emphasize the deployment of a
network of sensors strategically positioned within aquaculture setups to cap-
ture real-time data on key water quality indicators. This sensor network forms
the foundation for the automated monitoring system, enabling continuous data
collection and analysis.
Subsequent preprocessing of the collected data involves rigorous cleaning
and normalization procedures to ensure the accuracy and integrity of the dataset.
Feature selection techniques are then employed to identify the most informative
variables for forecasting, drawing on domain knowledge and statistical analysis
to enhance prediction accuracy.
Central to the paper’s methodology is the development of regression-based
forecasting models tailored specifically for aquaculture applications. Leverag-
ing historical data, these models utilize regression techniques such as linear
regression, polynomial regression, or Support Vector Regression (SVR) to es-
tablish relationships between input features and target water quality parameters.
Through thorough validation and evaluation, the researchers assess the perfor-
mance of the forecasting system, employing standard metrics such as Mean
Squared Error (MSE) or Root Mean Squared Error (RMSE) to gauge predic-
tive accuracy.
The findings presented in the paper underscore the effectiveness of the au-
tomated monitoring and forecasting system in predicting future water qual-
ity conditions within aquaculture systems. The accuracy and reliability of
the regression-based forecasting models demonstrate the potential of advanced
technological solutions to enhance operational efficiency and productivity in
aquaculture operations. Furthermore, the implications of this research extend
beyond the academic realm, with practical applications in improving aqua-
19
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
[10] Sen, S., Maiti, S., Manna, S., Roy, B., GHOSH, A. (2023). Smart
Prediction of Water Quality System for Aquaculture using Machine Learn-
ing Algorithms. Authorea Preprints
The paper ”Smart Prediction of Water Quality System for Aquaculture using
Machine Learning Algorithms” published on Authorea Preprints proposes an
innovative approach to enhance water quality management in aquaculture en-
vironments. By leveraging machine learning algorithms, the system aims to
predict key water quality parameters crucial for maintaining optimal conditions
within aquaculture facilities.
The methodology outlined in the paper involves data collection from sen-
sors deployed within aquaculture setups, preprocessing of the collected data
to ensure accuracy and reliability, and the selection and training of machine
learning models tailored to the specific requirements of water quality predic-
tion. Through rigorous evaluation and validation, the proposed system demon-
strates its potential to improve the efficiency and productivity of aquaculture
operations by enabling proactive monitoring and management of water quality
conditions.
The paper’s contributions extend to facilitating informed decision-making,
mitigating risks, and optimizing resource utilization, thereby addressing critical
challenges in aquaculture management. Overall, the research presented in the
20
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
[11]Yang, J., Jia, L., Guo, Z., Shen, Y., Li, X., Mou, Z., ... Lin, J. C. W.
(2023). Prediction and control of water quality in Recirculating Aquacul-
ture System based on hybrid neural network. Engineering Applications of
Artificial Intelligence, 121, 106002
The paper titled ”Prediction and control of water quality in Recirculating Aqua-
culture System based on hybrid neural network,” published in Engineering Ap-
plications of Artificial Intelligence, delves into the development and application
of a hybrid neural network approach for predicting and controlling water qual-
ity in Recirculating Aquaculture Systems (RAS).
The introduction of the paper serves to provide a comprehensive overview of
the importance of water quality management in aquaculture, specifically within
Recirculating Aquaculture Systems (RAS). It highlights the critical role that
optimal water quality plays in ensuring the health and productivity of aquatic
organisms raised in RAS facilities. The introduction likely begins by discussing
the rapid growth of aquaculture as a global industry and the increasing adoption
21
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
of RAS due to its potential for water conservation and environmental sustain-
ability.
In addition to outlining the challenges and opportunities in RAS water qual-
ity management, the introduction sets the stage for the paper’s main objective:
to develop a hybrid neural network approach for predicting and controlling wa-
ter quality in RAS.
The architecture details the proposed hybrid neural network approach for wa-
ter quality prediction and control in RAS. It begins by providing an overview of
the components and structure of the hybrid neural network architecture, which
likely involves the integration of different types of neural networks or the fusion
of neural networks with other modeling techniques.
For instance, the architecture may incorporate feedforward neural networks
to process input data and extract relevant features, which are then fed into re-
current neural networks (RNN) to capture temporal dependencies and dynamics
in the data. Alternatively, the architecture might integrate neural networks with
fuzzy logic systems or other hybrid modeling approaches to enhance prediction
accuracy and robustness.
The design choices made in developing the hybrid neural network architec-
ture, such as the selection of specific neural network architectures, activation
functions, loss functions, and optimization algorithms. Additionally, the archi-
tecture section may address practical considerations related to model training,
validation, and deployment, such as data preprocessing techniques, hyperpa-
rameter tuning strategies, and computational resources required for training the
model.
the implementation of the hybrid neural network approach for water quality
prediction and control in Recirculating Aquaculture Systems (RAS) involves
several key steps. Initially, real-world data on water quality parameters are col-
lected from sensors deployed within RAS facilities and preprocessed to ensure
22
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
data quality. The architecture of the hybrid neural network is designed, inte-
grating different types of neural networks to capture complex relationships in
the data.
Next, the model is trained and validated using the preprocessed data, with
hyperparameters fine-tuned to optimize performance. Testing on a separate
dataset assesses the model’s accuracy, typically using metrics like mean squared
error or root mean squared error. Control strategies are then developed based
on the model’s predictions, enabling proactive management of water quality
within the RAS.
Additionally, the hybrid architecture may incorporate Convolutional Neural
Networks (CNN) to extract spatial features from sensor data, particularly use-
ful for analyzing water quality in large bodies of water or spatially distributed
aquaculture facilities. By leveraging the complementary capabilities of these
neural network architectures, hybrid models can provide more comprehensive
and accurate predictions of water quality parameters, enabling proactive man-
agement and optimization of aquaculture operations.
The implementation process also involves integrating the trained model and
control strategies into the RAS management system, ensuring seamless com-
munication with sensor networks and control systems. This integration enables
real-time monitoring and adjustment of operational parameters to maintain op-
timal water quality conditions.
[12]Bi, J., Zhang, L., Yuan, H., Zhang, J. (2023). Multi-indicator water
quality prediction with attention-assisted bidirectional LSTM and encoder-
decoder. Information Sciences, 625, 65-80.
23
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
24
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
[13]Yang, H., Sun, M., Liu, S. (2023). A hybrid intelligence model for
predicting dissolved oxygen in aquaculture water. Frontiers in Marine Sci-
ence, 10, 1126556.
The paper titled ”A hybrid intelligence model for predicting dissolved oxy-
gen in aquaculture water,” published in Frontiers in Marine Science, introduces
an innovative approach to forecast dissolved oxygen levels crucial for aqua-
culture water quality management. Through a novel integration of artificial
neural networks (ANNs), fuzzy logic, and evolutionary algorithms, the authors
propose a hybrid intelligence model designed to address the complexities and
uncertainties inherent in aquaculture systems.
This model amalgamates the strengths of each technique, with ANNs adept
at capturing intricate data patterns, fuzzy logic handling uncertainties, and evo-
lutionary algorithms optimizing model parameters. The methodology likely
involves a meticulous process of model development, training, and evalua-
tion, aiming to enhance prediction accuracy and interpretability. Key findings
likely encompass the model’s superior predictive performance compared to tra-
ditional methods, highlighting its potential to revolutionize water quality man-
agement in aquaculture. Furthermore, the paper likely discusses implications
for aquaculture stakeholders, emphasizing the model’s role in facilitating proac-
25
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
tive decision-making and paving the way for sustainable aquaculture practices.
[14]Saparudin, F. A., Chee, T. C., Ab Ghafar, A. S., Majid, H. A., Kati-
ran, N. (2019). Wireless water quality monitoring system for high density
aquaculture application. Indones. J. Electr. Eng. Comput. Sci, 13(2),
507-513.
The paper titled ”Wireless water quality monitoring system for high density
aquaculture application,” published in the Indonesian Journal of Electrical En-
gineering and Computer Science in 2019, presents a study focused on the de-
velopment of a wireless monitoring system tailored for high-density aquacul-
ture settings. In aquaculture, particularly in high-density systems, maintaining
optimal water quality is crucial for the health and productivity of aquatic or-
ganisms. Traditional monitoring methods often involve manual sampling and
analysis, which can be labor-intensive and may not provide real-time insights
into changing conditions. To address these challenges, the authors propose
a wireless monitoring system capable of continuously assessing water quality
parameters in high-density aquaculture environments.
The study describes the design and implementation of the wireless moni-
toring system, which is equipped with sensors to measure key water quality
parameters such as temperature, pH, dissolved oxygen, and turbidity. These
parameters are critical indicators of water quality and can directly impact the
well-being of aquatic organisms. By continuously monitoring these parame-
ters in real-time, the system provides aquaculturists with timely information to
detect any deviations from optimal conditions and implement necessary inter-
ventions promptly.
One of the notable features of the proposed system is its wireless connectiv-
ity, which enables remote monitoring and data transmission. This capability is
particularly advantageous in high-density aquaculture settings, where access to
monitoring points may be challenging or impractical. The wireless connectiv-
26
2.2. RELATED WORK CHAPTER 2. LITERATURE SURVEY
[15]Da Silva, L. F., Yang, Z., Pires, N. M., Dong, T., Teien, H. C., Store-
bakken, T., Salbu, B. (2018). Monitoring aquaculture water quality: De-
sign of an early warning sensor with Aliivibrio fischeri and predictive mod-
els. Sensors, 18(9), 2848.
The study focuses on addressing the critical need for real-time monitoring
of water quality in aquaculture systems, which directly impacts the health and
productivity of aquatic organisms. The researchers propose a novel approach
utilizing a sensor system incorporating Aliivibrio fischeri, a bioluminescent
bacterium, alongside predictive models.
This sensor system enables rapid and sensitive detection of changes in water
quality parameters, such as contaminants or pollutants, before they reach harm-
ful levels.By harnessing the bioluminescent response of A. fischeri, the sensor
offers a highly sensitive and cost-effective method for monitoring water quality.
Additionally, the integration of predictive models enhances the system’s capa-
bility to anticipate and mitigate potential water quality issues proactively.This
innovative sensor design represents a promising tool for aquaculture practition-
ers to maintain optimal conditions for aquatic organisms, thereby promoting
sustainability and efficiency in aquaculture operations.
27
2.3. EXISTING SYSTEM CHAPTER 2. LITERATURE SURVEY
Before the integration of machine learning (ML) Deep Learning (DL) mod-
els, the existing system for water quality prediction in smart aquaculture relied
on conventional methods and manual monitoring practices. Typically, aqua-
culturists employed sensor networks to collect real-time data on water quality
parameters such as temperature, pH, dissolved oxygen, and nutrient concentra-
tions.
These sensor readings were periodically logged and manually analyzed to
assess the current state of the aquaculture environment. However, this approach
had limitations, as it often lacked the capability to anticipate future changes or
identify subtle patterns that could impact water quality.
The existing system also heavily relied on threshold-based alerts, where pre-
defined limits triggered notifications or alarms when specific parameters fell
outside acceptable ranges. While this reactive approach addressed immediate
concerns, it often resulted in delayed responses to evolving conditions, leading
to potential negative impacts on the health and growth of aquatic organisms.
Some aquaculture management systems incorporated expert knowledge and
rule-based algorithms to predict water quality conditions. These expert systems
relied on predefined rules and heuristics derived from expert knowledge to in-
terpret sensor data and make decisions about water quality management prac-
tices. While expert systems offered valuable insights and recommendations,
they often lacked adaptability and scalability compared to machine learning
approaches.
Additionally, the reliance on manual analysis made it challenging to cope
with the complex and dynamic nature of aquaculture systems, where various
factors interacted in intricate ways.
The existing predictive modeling approaches often lack comprehensive in-
tegration of multi-parameter data and real-time feedback mechanisms, limiting
28
2.3. EXISTING SYSTEM CHAPTER 2. LITERATURE SURVEY
their predictive accuracy and reliability. While machine learning algorithms of-
fer promising capabilities for analyzing complex datasets and predicting water
quality conditions, their performance may be hindered by insufficient data gran-
ularity, limited data availability, or inadequate model validation procedures.
Furthermore, predictive models may struggle to capture the dynamic and
nonlinear nature of aquatic ecosystems, leading to inaccuracies in long-term
forecasting and decision-making.
The scalability and accessibility of existing water quality prediction sys-
tems pose significant challenges for widespread adoption and implementation
in aquaculture operations.
Many current systems are designed for specific geographic regions or aqua-
culture species, limiting their applicability and adaptability to diverse environ-
mental conditions and operational contexts.
Additionally, the high cost of sensor equipment, data infrastructure, and tech-
nical expertise required for system deployment and maintenance may present
barriers to entry for smaller-scale aquaculture operators or resource-limited
regions, further exacerbating disparities in access to sustainable aquaculture
practices and technologies. Addressing these limitations will be essential for
advancing the efficacy and accessibility of water quality prediction systems in
aquaculture pond management.
Overall, before the widespread adoption of machine learning techniques,
aquaculture relied on a combination of manual sampling, sensor-based moni-
toring, and expert systems for water quality prediction and management. These
methods provided valuable insights, they were often limited in their predictive
capabilities, real-time monitoring, and scalability. Machine learning techniques
have since revolutionized water quality prediction in aquaculture by enabling
more accurate, and scalable predictive models based on large volumes of data.
29
2.4. PROPOSED SYSTEM CHAPTER 2. LITERATURE SURVEY
The proposed system for water quality prediction in smart aquaculture in-
troduces a transformative approach by incorporating machine learning (ML)
and deep learning (DL) models. The system leverages advanced data analytics
techniques to predict and manage water quality parameters crucial for the health
and productivity of aquatic organisms. Unlike the previous manual monitoring
system, the proposed system utilizes sensor networks to collect real-time data
on temperature, pH, dissolved oxygen, and other relevant factors. This data is
then fed into ML algorithms, which analyze historical patterns and correlations
to develop predictive models.
One key feature of the proposed system is the integration of deep learning
techniques, such as convolutional neural networks (CNN) and recurrent neural
networks (RNN). These DL models are designed to automatically extract in-
tricate features from large and diverse datasets, allowing for a more nuanced
understanding of the complex relationships within aquaculture environments.
The deep learning models contribute to enhanced accuracy in water quality
predictions, capturing nonlinear patterns and subtle dependencies that may go
unnoticed with traditional methods.
The system also introduces an adaptive component, where ML and DL mod-
els continuously learn and adjust based on real-time sensor data. This adapt-
ability ensures dynamic responsiveness to changing environmental conditions,
addressing the inherent complexity and variability of aquaculture systems. De-
cision support tools are integrated into the proposed system, providing aqua-
culturists with actionable insights for informed decision-making. By predicting
potential issues before they escalate, optimizing resource utilization, and pro-
moting sustainable practices, the proposed system aims to revolutionize water
quality management in smart aquaculture, contributing to the overall efficiency
and sustainability of the industry.This adaptability ensures dynamic responsive-
30
2.4. PROPOSED SYSTEM CHAPTER 2. LITERATURE SURVEY
The above Table 2.1 shows Water Quality Prediction Parameters provides
an overview of various parameters commonly predicted in the context of water
quality management. Each row of the table corresponds to a specific parameter,
while the columns delineate the parameter name and the method employed for
its prediction.
The parameters listed include Dissolved Oxygen, pH, Ammonia Concentra-
tion, Turbidity, Temperature, and Salinity. These parameters are vital indicators
of water quality in aquaculture systems, influencing the health and productivity
of aquatic organisms.
The provided table outlines various water quality parameters along with the
corresponding prediction methods employed for each parameter. Firstly, for
Dissolved Oxygen, a Regression method is utilized, indicating a quantitative
approach to predicting the concentration of dissolved oxygen in the water. This
method likely involves statistical modeling techniques to establish relationships
between dissolved oxygen levels and other relevant factors such as temperature,
31
2.4. PROPOSED SYSTEM CHAPTER 2. LITERATURE SURVEY
32
2.4. PROPOSED SYSTEM CHAPTER 2. LITERATURE SURVEY
33
2.4. PROPOSED SYSTEM CHAPTER 2. LITERATURE SURVEY
rameters.
Machine learning algorithms could capture complex relationships and pat-
terns within the data, enabling accurate predictions of water quality conditions.
Time series analysis techniques would facilitate the identification of temporal
patterns and trends, aiding in the forecasting of seasonal variations and periodic
fluctuations in water quality parameters.
The predictive models serve as the foundation for a decision support system
that provides actionable insights to aquaculture managers and operators. Alerts,
notifications, and recommendations are generated based on the predicted water
quality conditions, enabling timely interventions and management decisions.
The system operates in a continuous monitoring mode, constantly updating
its predictive models based on newly acquired data. This adaptive approach al-
lows the system to dynamically respond to changes in water quality conditions
and optimize management strategies over time.
A user-friendly interface is provided to aquaculture stakeholders, allowing
them to visualize the real-time and predicted water quality data, access histori-
cal trends, and interact with the decision support system. This interface facili-
tates informed decision-making and enhances transparency and communication
within the aquaculture operation.
The proposed system for water quality prediction in aquaculture represents a
holistic approach towards optimizing production efficiency, ensuring environ-
mental sustainability, and mitigating risks associated with water quality fluctu-
ations. By leveraging advanced technologies and data-driven methodologies,
the system empowers aquaculture managers to proactively manage water qual-
ity conditions and achieve optimal performance outcomes.
34
Chapter 3
DESIGN
35
CHAPTER 3. DESIGN
36
CHAPTER 3. DESIGN
37
CHAPTER 3. DESIGN
identify trends, detect anomalies, and anticipate potential issues before they
escalate.
The above Figure 3.2 shows the Fish farm monitoring,the effective monitor-
ing of water quality within fish farms stands as a cornerstone for ensuring the
health and productivity of aquatic species.
Smart aquaculture systems with water quality prediction capabilities play a
pivotal role in the sustainability and efficiency of fish farming operations.
Firstly, they are crucial for ensuring the health and well-being of the aquatic
species. Fish are highly sensitive to changes in their environment, and even
slight fluctuations in water quality parameters such as temperature, pH, and
dissolved oxygen levels can stress or even kill them.
Continuous monitoring of water quality parameters such as pH levels, dis-
solved oxygen content, temperature, and ammonia concentration is essential
in smart aquaculture systems. By leveraging real-time data from sensors de-
ployed within aquaculture facilities, farmers can gain insights into the dynamic
conditions of the aquatic environment. Predictive analytics play a crucial role
38
CHAPTER 3. DESIGN
39
CHAPTER 3. DESIGN
Finally, smart aquaculture systems have the potential to enhance food se-
curity and meet the growing demand for seafood worldwide. By improving
the efficiency and productivity of fish farming operations, these systems can
increase the supply of high-quality seafood while reducing reliance on wild
fisheries, which are often overexploited and unsustainable.
By promoting responsible aquaculture practices and minimizing environ-
mental impact, smart aquaculture systems help ensure the long-term viability of
the aquaculture industry, thus supporting global efforts to achieve food security
and sustainable development goals.
In addition to alerting systems, smart aquaculture may employ automated
control systems to adjust environmental variables in real-time. For example,
automated aeration systems can be activated to increase dissolved oxygen levels
in response to predicted or detected oxygen depletion, ensuring the health and
well-being of fish populations.
Smart aquaculture systems often include remote monitoring and control ca-
pabilities, allowing operators to access and manage aquaculture facilities from
anywhere with an internet connection. This remote accessibility enables timely
response to water quality issues and facilitates efficient management of aqua-
culture operations.
Automation plays a significant role in intelligent aquaculture structures, en-
abling the automation of various tasks such as feeding, water quality manage-
ment, aeration, and waste removal.
Automated feeding systems dispense feed at optimal times and quantities,
reducing wastage and ensuring proper nutrition for the fish. Control systems
regulate environmental conditions based on sensor data, adjusting parameters
such as water flow, temperature, and oxygen levels to maintain optimal condi-
tions for growth.
Feature engineering plays a vital role in extracting meaningful insights from
40
3.1. ARCHITECTURE CHAPTER 3. DESIGN
3.1 Architecture
41
3.1. ARCHITECTURE CHAPTER 3. DESIGN
further analysis.
The sensor network comprises a variety of sensors tailored to monitor spe-
cific water quality parameters. For instance, temperature sensors measure water
temperature, PH sensors measure acidity or alkalinity, DO sensors measure dis-
solved oxygen levels, turbidity sensors gauge water clarity, and salinity sensors
assess salt concentration.
The architecture depicted in Figure 3.3 serves as a roadmap for integrating
predictive analytics into smart aquaculture systems. By guiding the sequential
flow of processes from data acquisition to actionable insights, it enables aqua-
culturists to make informed decisions in real-time, fostering enhanced produc-
42
3.1. ARCHITECTURE CHAPTER 3. DESIGN
43
3.1. ARCHITECTURE CHAPTER 3. DESIGN
Once the models are trained, the next stage involves performance evaluation
to assess their accuracy and generalization ability. Performance metrics such as
mean squared error, root mean squared error, mean absolute error, or correlation
coefficient are commonly used to quantify the model’s predictive performance.
The trained models are then applied to unseen data or a test dataset to eval-
uate their performance on new observations. This process helps identify any
overfitting or underfitting issues and fine-tune the models to improve their pre-
dictive capabilities.
The performance evaluation stage also involves comparing the predictions
generated by the models with actual observed values to assess their reliabil-
ity and effectiveness in real-world scenarios. Additionally, ongoing monitoring
and validation of the models’ performance are essential to ensure that they re-
main accurate and reliable over time.
Continuous feedback loops allow for model refinement and improvement
based on new data and evolving environmental conditions, ultimately enhanc-
ing the overall predictive accuracy and effectiveness of the smart aquaculture
system.
Finally, it concludes with the action stage, where the predicted water quality
parameters drive automated actions or trigger alerts for human intervention.
For example, if the predictive model forecasts a decrease in dissolved oxygen
levels below a critical threshold, the system may automatically activate aerators
to increase oxygenation in the water.
Similarly, if the model detects an increase in ammonia concentration, it may
send alerts to farm operators, prompting them to take corrective measures such
as adjusting feed rates or water exchange schedules. This closed-loop architec-
ture ensures proactive management of water quality in smart aquaculture sys-
tems, ultimately promoting the health and productivity of the aquatic species
while minimizing the risk of adverse events.
44
3.1. ARCHITECTURE CHAPTER 3. DESIGN
The sensors are strategically placed at different depths and locations within
the aquaculture system to capture variations in water quality across the environ-
ment. Additionally, sensors may be equipped with self-cleaning mechanisms
to minimize fouling and ensure accurate measurements over time.
The data acquisition system collects raw sensor data and transmits it to a
central processing unit for further analysis. Depending on the scale of the aqua-
culture operation and the geographical layout, data transmission may occur via
wired connections, such as Ethernet cables, or wireless protocols like Wire-
less Fidelity (Wi-Fi), Bluetooth, or LoRaWAN. Advanced data logging devices
or gateways ensure reliable data transmission, even in remote or challenging
environments.
The Figure 3.4 shows the overview of Smart aquaculture systems.It revo-
lutionize fish farming through technology integration, ensuring optimal condi-
tions for aquatic life and sustainable production. Sensors continuously moni-
tor water quality parameters like temperature, pH, and oxygen levels, feeding
data to a central unit for analysis. Predictive models anticipate environmen-
tal changes, guiding automated actions such as adjusting aeration to maintain
optimal conditions.
This not only enhances fish health and growth but also optimizes resource
use, reducing waste and operational costs. Moreover, by minimizing environ-
45
3.1. ARCHITECTURE CHAPTER 3. DESIGN
The table 3.1 presents a concise overview of the architecture for a water
46
3.1. ARCHITECTURE CHAPTER 3. DESIGN
47
3.1. ARCHITECTURE CHAPTER 3. DESIGN
48
3.1. ARCHITECTURE CHAPTER 3. DESIGN
49
3.1. ARCHITECTURE CHAPTER 3. DESIGN
50
3.1. ARCHITECTURE CHAPTER 3. DESIGN
Artificial Neural Networks (ANNs) have emerged as powerful tools for water
quality prediction due to their ability to model complex relationships and pat-
terns in large and diverse datasets. In the context of water quality prediction,
ANNs can be trained to analyze various parameters such as dissolved oxygen,
pH, turbidity, and nutrient levels, among others, to forecast future trends and
identify potential anomalies or pollution events.
ANN operate by mimicking the structure and functionality of the human
brain, comprising interconnected nodes organized into layers. Through a pro-
cess of supervised learning, ANN are trained on historical water quality data,
where the model learns to map input parameters to corresponding output val-
ues. By iteratively adjusting the weights and biases of connections between
nodes, ANN optimize their predictive accuracy and generalize patterns hidden
within the data.
Once trained, ANN can be deployed to predict water quality parameters
51
3.1. ARCHITECTURE CHAPTER 3. DESIGN
ANNs are trained using a process known as supervised learning, where the
model learns to map input data to corresponding output labels or predictions.
During training, the network adjusts its parameters (weights and biases) through
an optimization algorithm.
52
Chapter 4
IMPLEMENTATION
The table 4.1 outlines the implementation steps for water quality prediction
in smart aquaculture systems, offering a structured approach to deploying pre-
dictive models effectively. The first step, Data Collection, involves the deploy-
ment of sensors throughout the aquaculture environment to measure key water
quality parameters. These sensors continuously collect data, forming the foun-
dation for subsequent analysis and prediction.
Following data collection, the Data Preprocessing step is essential for ensur-
ing the quality and reliability of the data used in predictive modeling. This stage
involves cleaning the data, handling missing values, and normalizing the fea-
53
4.1. TIME SERIES FORECASTING CHAPTER 4. IMPLEMENTATION
tures to prepare them for analysis. By addressing data quality issues upfront,
the preprocessing step lays the groundwork for accurate and reliable predic-
tions.
Next, Model Selection involves choosing suitable machine learning algo-
rithms for the predictive modeling task. Options may include regression algo-
rithms, decision trees, or neural networks, depending on the complexity of the
data and the specific prediction objectives.
Once the appropriate algorithms are selected, the Model Training step in-
volves training the machine learning model using historical data, allowing it to
learn patterns and relationships within the dataset.
Validation is a critical step in the implementation process, where the trained
model’s accuracy and performance are assessed using separate validation datasets.
This helps ensure that the model generalizes well to unseen data and can
reliably make predictions in real-world scenarios. Upon successful validation,
the model is ready for Deployment, where it is integrated into the aquaculture
system to provide real-time predictions of water quality parameters.
Finally, the Feedback Loop is established to continuously monitor the perfor-
mance of the deployed model and update it as needed. This involves collecting
feedback data from the aquaculture system and using it to evaluate the model’s
accuracy and effectiveness over time.
By iteratively refining the model based on new data and evolving environ-
mental conditions, the feedback loop ensures that the predictive capabilities of
the system remain accurate and reliable in the long term.
A time series is a series of data points listed in time order. A time series
is a sequence at successive equally spaced points in time. It is a sequence of
discrete-time data. It is a set of observations, xt, each one being recorded at a
54
4.1. TIME SERIES FORECASTING CHAPTER 4. IMPLEMENTATION
specific time. A discrete time series is one in which the set T0 of times at which
observations made is a discrete set. Continuous time series is obtained when
observations example, when T0 = [0,1].
Time series analysis involves techniques for studying time series data so as
to obtain meaningful statistics and different characteristics of the data. Time
series forecasting is the utilization of a model to predict future values based on
historical observed data.
The dynamic nature of water quality in aquaculture systems poses unique
challenges for predictive modeling. Water quality parameters such as temper-
ature, pH, dissolved oxygen levels, and nutrient concentrations are subject to
various environmental factors, seasonal fluctuations, and anthropogenic influ-
ences. Traditional statistical methods may struggle to capture the complex tem-
poral patterns and nonlinear relationships inherent in water quality data. Conse-
quently, there is a growing interest in employing machine learning and artificial
intelligence techniques, particularly time series forecasting models, to address
the inherent complexities of water quality prediction in aquaculture.
One of the most prominent approaches to time series forecasting in aquacul-
ture is the use of Long Short-Term Memory (LSTM) neural networks. LSTM
networks are a type of recurrent neural network (RNN) specifically designed to
model sequential data and capture long-term dependencies. In the context of
water quality prediction, LSTM models excel at learning from historical data
to forecast future trends and fluctuations in water parameters. By analyzing
patterns and correlations within the time series data, LSTM networks can pro-
vide valuable insights into the dynamics of water quality, enabling aquaculture
managers to anticipate changes and take proactive measures to mitigate risks.
However, while LSTM models represent a powerful tool for time series fore-
casting, they are not without limitations. LSTM networks require large amounts
of training data to effectively learn complex temporal patterns, and they may
55
4.2. LSTM CHAPTER 4. IMPLEMENTATION
struggle with noisy or irregularly sampled data. Moreover, LSTM models may
not fully exploit all available information relevant to water quality prediction,
particularly in scenarios where external factors play a significant role in driving
water quality dynamics.
4.2 LSTM
Recurrent neural networks (RNN) are networks with loops in them, enabling
the information to persevere. When the gap between the related information and
the place it is required is small, RNNs can learn to utilize the past information.
Unfortunately, as the gap increases, RNNs become unfit to learn to associate
the information.
LSTM are an extraordinary sort of RNN, equipped for adapting long term
conditions. Recollecting information for long periods purposes their default
behaviour. LSTM also have a chain like structure, yet the repeating module has
an alternate structure, not at all like RNN. Rather than having a single neural
network, there are four layers, cooperating in a unique manner. The way to
LSTM is the cell state. The cell state is somewhat similar to a conveyor belt.
It runs straight down the whole chain, with some minor linear connections. It
is extremely simple for information to the cell state, carefully controlled by
structures called gates.
LSTM networks are appropriate for classifying, processing and making pre-
dictions based on time series data, since there can be lags of obscure duration
between important events in a time series. They were created to manage the
exploding gradient and vanishing gradient problems that can be experienced
when training traditional RNNs. The activation function of the LSTM gates is
frequently the logistic function. The weight of these connections, which need
to be learned during training, decide how the gates operate.
A RNN utilizing LSTM can be trained in a supervised fashion, on a set of
56
4.2. LSTM CHAPTER 4. IMPLEMENTATION
The Figure 4.2 shows the block diagram of a gate ,sigmoid layer’s output
values regulate the flow of information in an LSTM cell, determining how
much information from the input and previous cell state should be retained or
discarded. This control mechanism enables LSTM to effectively manage and
preserve relevant information over long sequences, making them well-suited
for tasks involving sequential data processing and prediction, such as natural
57
4.3. HYBRID MODEL CHAPTER 4. IMPLEMENTATION
language processing, time series analysis, and water quality prediction in aqua-
culture systems.
The Figure 4.3 depicts LSTM network with memory block, initial phase in
our LSTM is to choose what data we are going to discard from the cell state.
This choice is made by the sigmoid layer, called the ”forget gate” layer. It looks
at ht-1 and xt and yields a number somewhere in the range of 0 and 1 for every
cell state Ct-1. 1 signifies ”totally keep this” and 0 implies “totally dispose of
this”.
Thus, this single unit settles on choice by thinking about the present informa-
tion, past output, and past memory. What’s more, it produces new output and
adjusts its memory.
The Hybrid model shows that the advancing variable of interest is relapsed
on its lagged values. The MA part demonstrates that the regression error is
58
4.3. HYBRID MODEL CHAPTER 4. IMPLEMENTATION
really a direct combination of the error terms whose values came contempora-
neously and at different times in the past. The data values have been supplanted
with the difference between their values and the past values. This differencing
procedure may have been executed more than once. The purpose of each one
of these features is to make the model fit the information just as conceivable.
Implementing a water quality prediction system for smart aquaculture using
a hybrid approach combining LSTM (Long Short-Term Memory) and Random
Forest forecasting methods offers a robust solution to monitor and maintain op-
timal conditions for aquatic life. LSTM, a type of recurrent neural network,
excels at capturing long-term dependencies in sequential data, making it ideal
for modeling the temporal dynamics of water quality parameters such as tem-
perature, pH, dissolved oxygen, and ammonia levels. By leveraging LSTM,
the system can effectively learn from historical data patterns and predict future
water quality trends with high accuracy.
Complementing LSTM with Random Forest, a powerful ensemble learning
technique, further enhances the predictive capabilities of the system. Random
Forest excels at handling heterogeneous data and capturing complex interac-
tions among various input features, which is crucial for accurately forecasting
water quality in dynamic aquaculture environments. By integrating these two
methods into a hybrid approach, the system can exploit the strengths of both
models, resulting in a more robust and reliable prediction system for smart
aquaculture management.
59
Chapter 5
The user interface for water quality prediction in smart aquaculture is de-
signed to be both intuitive and informative, providing users with a streamlined
experience for monitoring and managing their aquatic environments. Central
to this interface are real-time data visualizations and summary cards that offer
immediate insights into critical water quality parameters like temperature, pH,
and dissolved oxygen levels.
The Figure 5.1 shows the user login page.The user login page for the water
quality prediction system in smart aquaculture features a simple, secure inter-
face requiring a username and password for access. Users can also opt for
multi-factor authentication for enhanced security.The login page offers options
for password recovery and support contact for any login issues.
60
CHAPTER 5. RESULTS AND DISCUSSION
The Figure 5.2 represents dataset that is processed and in above graph x-axis
contains water quality as 0 or 1 where 0 means good quality and 1 means poor
quality and y-axis represents number of records and now close the above graph
to get the below screen.
The Figure 5.3 shows that the dataset is preprocessed and loaded.Now click
on ’Train LSTM algorithm’ link to train LSTM.We can see from the seasonal
decomposition of pH that there is no trend and seasonality is being followed.
61
CHAPTER 5. RESULTS AND DISCUSSION
Since there is no trend or seasonality present, we can say that our data is sta-
tionary.These lines mark safe and risky zones for dissolved oxygen levels.
The Figure 5.4 shows LSTM got trained and with LSTM we got 57 percent
accuracy and now click on ‘Train Random Forest Algorithm’ link to train Ran-
dom Forest and get output.The above screen with Random Forest we got 94
percent accuracy and now click on ‘Forecast Water Quality’ link to upload test
data and then forecast quality.The random forest algorithm, a robust machine
learning technique, is effectively utilized for water quality prediction in smart
aquaculture systems.Training the Random Forest model involves initializing
it and fitting it to the training data. By constructing a multitude of decision
trees during training and outputting the mode of the classes for classification or
mean prediction for regression, random forest handles complex, non-linear re-
lationships between various water quality parameters such as temperature, pH,
dissolved oxygen, and turbidity.
This ensemble method enhances predictive accuracy and resilience against
overfitting, making it particularly well-suited for dealing with the diverse and
dynamic data typical in aquaculture environments. The algorithm’s ability to
weigh the influence of each parameter and manage missing data further ensures
reliable and actionable insights, aiding aquaculture managers in maintaining
optimal conditions for aquatic life.
62
CHAPTER 5. RESULTS AND DISCUSSION
Summary cards in the user interface for water quality prediction in smart
aquaculture serve as quick-glance indicators of critical metrics and system sta-
tus. Each card typically presents a specific water quality parameter such as
temperature, pH, dissolved oxygen, and turbidity, prominently displaying the
current reading alongside its corresponding safe range. Visual aids like color-
coding (green for normal, yellow for caution, red for danger) and icons (check-
marks for normal conditions, warning triangles for issues) provide immediate
clarity on the status of each parameter. These cards often include trend arrows
or small graphs to indicate whether the parameter is stable, increasing, or de-
creasing, which helps users quickly assess whether conditions are improving or
deteriorating.
The Figure 5.5 depicts the screen selecting and uploading ‘testData.csv’
file.In the user interface designed for water quality prediction in smart aqua-
culture, users can easily upload a data file, such as ‘testData.csv’, to obtain a
forecast output. This process begins with selecting the file through a ’Browse’
or ’Choose File’ button, navigating their local storage, and selecting ‘test-
Data.csv’. After choosing the file, users click the ’Open’ button to load it into
the interface. Following this, clicking the ’Submit’ button uploads the file to the
server for analysis. The system then processes the data using the random forest
algorithm, generating forecast outputs for various water quality parameters like
63
CHAPTER 5. RESULTS AND DISCUSSION
temperature, pH, and dissolved oxygen levels. These predictions are displayed
on a results page, often in the form of tables, graphs, and summary cards that
highlight key trends and potential issues.
The forecast output is accompanied by actionable recommendations and com-
parisons to historical data, helping aquaculture managers maintain optimal con-
ditions and proactively address any potential water quality issues. This stream-
lined process enhances the usability of the system, allowing for accurate, data-
driven decision-making.
The Figure 5.6 shows the screen in tabular column contains water test val-
ues and second column contain forecast result as poor or good.Once the ‘test-
Data.csv’ file is submitted and processed, the forecast results are displayed in
a detailed and user-friendly format on the results page. The interface typi-
cally presents these results using a combination of tables, graphs, and summary
cards, providing a overview of the predicted water quality parameters. Each
parameter, such as temperature, pH, dissolved oxygen, and turbidity, is shown
with its predicted value, confidence intervals, and visual indicators highlighting
any deviations from optimal ranges. This clear presentation helps users quickly
understand the state of their aquaculture environment and any potential risks.
The results are often supplemented with historical data comparisons, which
are displayed alongside the forecast to provide context. For instance, line
64
CHAPTER 5. RESULTS AND DISCUSSION
graphs might show past trends in water temperature and how the predicted val-
ues fit into these trends. This historical perspective allows aquaculture man-
agers to see if conditions are expected to stabilize, improve, or deteriorate,
enabling more informed decision-making. Additionally, trend arrows or color-
coded markers can indicate whether each parameter is trending upward, down-
ward, or remaining stable, offering further insight into potential future condi-
tions.
To enhance usability, the interface may also feature summary cards that high-
light key forecasts at a glance. These cards often include alert indicators for
parameters predicted to fall outside safe ranges. For example, if the dissolved
oxygen levels are forecasted to drop to a critical level, the corresponding sum-
mary card would be highlighted in red, with an exclamation mark or warning
icon to draw immediate attention. Such visual cues are essential for prioritizing
actions and ensuring that critical issues are addressed promptly.
The forecast results page for water quality prediction using a Random Forest
model not only provides predictions but also includes actionable recommen-
dations based on the predicted data. These recommendations are crucial for
maintaining optimal water quality and mitigating potential risks. For instance,
if low dissolved oxygen levels are predicted, the recommendation might be to
increase aeration by running aerators more frequently or for longer periods.
Similarly, if high nutrient levels are forecasted, it could suggest optimizing
feeding schedules to reduce overfeeding. To stabilize pH, recommendations
might include adding lime or sodium bicarbonate for acidic conditions, or acid
buffers for alkaline conditions. Nutrient management recommendations could
involve reducing fertilizer runoff through buffer strips and controlled drainage,
or using phosphate binders to manage high phosphate levels.
Chemical treatments such as ammonia detoxifiers and chelating agents for
heavy metal contamination might be advised based on specific predictions.Physical
65
CHAPTER 5. RESULTS AND DISCUSSION
The Table 5.1 provides a concise overview of the performance metrics for
three different models—Hybrid, LSTM, and ARIMA—in predicting two key
water quality parameters such as pH levels. Each row corresponds to a specific
metric (Mean Absolute Error, Root Mean Square Error, and R-squared), while
the columns represent the different models.It can effectively capture the dy-
namics in a time series, making it suitable for various types of forecasting tasks
across different domains The values within the table quantify the performance
of each model for both pH and DO prediction tasks.
LSTM can discern intricate patterns that may elude traditional statistical
models, thereby offering more accurate and nuanced predictions. This predic-
tive capacity is particularly valuable in dynamic aquatic environments where
pH fluctuations can signify shifts in water quality and ecosystem health. Ad-
66
CHAPTER 5. RESULTS AND DISCUSSION
The Figure 5.7 shows the comparsion graph of PH value.The predictive na-
ture of the water quality prediction system enables aquaculturists to optimize
production efficiency. By forecasting future water quality conditions, aqua-
culturists can adjust feeding regimes, aeration systems, and water treatment
protocols to maximize growth rates and minimize resource wastage. This op-
timization leads to higher yields and improved profitability for aquaculture op-
erations.
Smart aquaculture systems equipped with water quality prediction capabil-
ities contribute to environmental sustainability. By maintaining optimal water
quality conditions, these systems minimize the discharge of pollutants and re-
duce the ecological footprint of aquaculture operations. Furthermore, proactive
management practices help mitigate the negative impacts of aquaculture on sur-
rounding ecosystems, preserving biodiversity and ecosystem health.
67
Chapter 6
68
REFERENCES
[ 3 ] Li, T., Lu, J., Wu, J., Zhang, Z., Chen, L. (2022). Predicting aquaculture
water quality using machine learning approaches. Water, 14(18), 2836.
[ 4 ] Hu, Z., Zhang, Y., Zhao, Y., Xie, M., Zhong, J., Tu, Z., Liu, J. (2019). A
water quality prediction method based on the deep LSTM network consid-
ering correlation in smart mariculture. Sensors, 19(6), 1420.
[5 ] Yang, J., Jia, L., Guo, Z., Shen, Y., Li, X., Mou, Z., ... Lin, J. C. W.
(2023). Prediction and control of water quality in Recirculating Aquacul-
ture System based on hybrid neural network. Engineering Applications of
Artificial Intelligence, 121, 106002.
[8 ] Juna, A., Umer, M., Sadiq, S., Karamti, H., Eshmawi, A. A., Mohamed,
A., Ashraf, I. (2022). Water quality prediction using KNN imputer and
multilayer perceptron. Water, 14(17), 2592.
69
[9 ] Swetha, P., Rasheed, A. H. K., Harigovindan, V. P. (2023, March). Ran-
dom Forest Regression based Water Quality Prediction for Smart Aquacul-
ture. In 2023 4th International Conference on Computing and Communi-
cation Systems (I3CS) (pp. 1-5). IEEE.
[10 ] Sen, S., Maiti, S., Manna, S., Roy, B., GHOSH, A. (2023). Smart Pre-
diction of Water Quality System for Aquaculture using Machine Learning
Algorithms.Authorea Preprints.
[11 ] Yang, J., Jia, L., Guo, Z., Shen, Y., Li, X., Mou, Z., ... Lin, J. C. W.
(2023). Prediction and control of water quality in Recirculating Aquacul-
ture System based on hybrid neural network. Engineering Applications of
Artificial Intelligence, 121, 106002.
[12 ] Bi, J., Zhang, L., Yuan, H., Zhang, J. (2023). Multi-indicator water
quality prediction with attention-assisted bidirectional LSTM and encoder-
decoder. Information Sciences, 625, 65-80.
[13 ] Yang, H., Sun, M., Liu, S. (2023). A hybrid intelligence model for
predicting dissolved oxygen in aquaculture water. Frontiers in Marine Sci-
ence, 10, 1126556.
[14 ] Saparudin, F. A., Chee, T. C., Ab Ghafar, A. S., Majid, H. A., Katiran, N.
(2019). Wireless water quality monitoring system for high density aqua-
culture application. Indones. J. Electr. Eng. Comput. Sci, 13(2), 507-513.
[15 ] Da Silva, L. F., Yang, Z., Pires, N. M., Dong, T., Teien, H. C., Store-
bakken, T., Salbu, B. (2018). Monitoring aquaculture water quality: De-
sign of an early warning sensor with Aliivibrio fischeri and predictive mod-
els. Sensors, 18(9), 2848.
70