🔒
Global Scientific Platform
Serving Researchers Since 2012

Biofloc Fish Farming

DOI : 10.17577/IJERTCONV14IS060163
Download Full-Text PDF Cite this Publication

Text Only Version

Biofloc Fish Farming

Mrs. Lakshmi Priya P Assistant Professor

Dept of Computer Science & Engineering ACS College of Engineering Bangalore, India priyainlakshmi@gmail.com

Yogaraj C

Dept of Computer Science & Engineering ACS College of Engineering Bangalore, India yogarajc77@gmail.com

Tejaswi SR

Dept of Computer Science & Engineering ACS College of Engineering Bangalore, India tejaswisr03@gmail.com

Vinayaka KN

Dept of Computer Science &Engineering ACS College of Engineering Bangalore, India

vinayakaknI5@gmail.com

Suraj Kumar Rawal D

Dept of Computer Science & Engineering ACS College of Engineering Bangalore, India Sdpsuraj46@gmail.com

Abstract- Biofloc technology is increasingly recognized as an eco-friendly and space-saving approach to aquaculture, especially beneficial in areas where water availability is limited. By delivering real-time notifications, it improves overall system management and efficiency. . However, its operation is performance of biofloc fish farming while reducing fish mortality and

highly sensitive to variations in water quality parameters such economic losses. The results demonstrate that integrating IoT with as, ammonia levels, turbidity, machine learning can transform small-scale aquaculture into a moredata-driven and sustainable sector. and temperature. This study proposes a cost-efficient, solar- powered IoT system for monitoring biofloc

aquaculture tanks,

which utilizes machine learning techniques to detect fish mortality at an early stage.

Designed for low-income fish farmers in southern Punjab, Pakistan, the system continuously measures critical water quality parameters using affordable sensors connected to Arduino UNO and NodeMCU ESP8266 microcontrollers.

Over a period of 1.5 months, data was collected at two- minute intervals and uploaded to the ThingSpeak cloud platform. After preprocessing and balancing the dataset using ADASYN, many ML algorithmsincluding Random Forest, XGBoost, A number of machine learning models were developed and evaluatedsuch as Naïve Bayes, decision tree models, and support vector machine techniques. Among these, Random Forest and XGBoost performed better, predicting fish.

Keywords- Biofloc Technology, Internet of Things (IoT), Machine Learning, Fish Mortality Prediction, Smart Aquaculture, Tilapia Farming

  1. INTRODUCTION

    Figure 1: System Architecture

    Global malnutrition remains a pressing issue, particularly in low-income and developing regions. Fish, a valuable protein source that is essential to support reliable food availability and adequate nutritional intake. As conventional fish farming methods struggle with land and water limitations, Biofloc technology has emerged as a promising alternative. It offers sustainable aquaculture by recycling waste nutrients, reducing water consumption, and increasing fish yield in limited space. Yet, this system is highly sensitive to water quality parameters such as pH, ammonia, dissolved oxygen, turbidity, and temperature. Minor deviations in these values can significantly affect fish health and lead to high mortality rates.

    In Pakistan, especially in the underdeveloped regions of southern Punjab, traditional biofloc farming lacks automation and is labor-intensive. Fish farmers often struggle to monitor key water parameters manually, resulting in delayed interventions and preventable losses. The absence of predictive tools and real-time data further exacerbates the risk of sudden fish deaths, undermining the profitability and sustainability of biofloc farming.

    The Internet of Things (IoT) has greatly improved modern agriculture by enabling real-time monitoring through networked sensors and cloud platforms.IoT systems can process sensor- generated data to find patterns when combined with machine learning (ML) approaches. and forecast unfavorable outcomes such as fish mortalityby analyzing past data and relationships between different environmental factors.

    This research addresses the gap by developing a lowcost, solar-powered IoT-based smart monitoring system tailored for biofloc tanks in rural Pakistan. Integrated with ML models, captures real-time data on water quality and

    predicts fish mortality 12 hours in advance, allowing for timely intervention.

    Objectives of the Study

    • To design and implement a cost-effective, solar powered IoT-based water monitoring system for biofloc tanks.

    • To gather real-time sensor readings of important water quality parameters affecting Tilapia fish during a crucial growth stage.

    • To clean, preprocess, and balance the collected dataset using methods such as ADASYN to improve the accuracy of prediction models

    • To develop and assess Several machine learning are applied to accurately forecast fish mortality.

    • To identify the major environmental factors linked to fish mortality and provide meaningful insights to support fish farmers in better management decisions.

      Novel Contributions

    • Development of a low-cost, solar-powered, real-time IoT monitoring system using Arduino and NodeMCU.

    • Data collection and analysis during a high-risk aquaculture period (MayJuly), with over 18,000 sensor readings.

    • are applied to estimate fish mortality with accuracy reaching 98%.

    • Deployment of a correlation matrix to evaluate the influence of water parameters on fish mortality.

    • Introduction of a scalable early-warning system that enables fish farmers to take corrective actions before mass mortality occurs.

  2. METHODS

      1. System Architecture

        The designed solution integrates affordable sensing devices with IoT- based tools to track and forecast water conditions in biofloc aquaculture systems. The complete structural layout of the system is depicted in Figure 1 (to be included).

        The device runs continuously thanks to a solar energy source and a 16-hour backup battery.

        A Node MCU ESP8266 WiFi module sends data collected by the Arduino UNO microcontroller from several sensors to the Thing speak cloud server every two minutes.

        Sensors deployed:

        • MQ-135: Determines the concentration of ammonia

        • MQ-7: Quantifies carbon monoxide

          1. The concentration of dissolved solids in the water is monitored using a TDS sensing device.

        • pH Sensor: Determines the acidity or basicity of water

        • Turbidity Sensor: Determines how clear the water is

        • DHT11: Monitors humidity and ambient temperature

        • Water Temperature Sensor: This device gauges the temperature of tank water.

      1. Data Collection

        Data collection is over a 1.5-month period from May 13 to July 2, 2023, which is a critical growth phase for Tilapia fish. The system collected readings at two-minute intervals, resulting in 18,978 sensor.

      2. Data Preprocessing

        The dataset was prepared for machine learning analysis by performing he following preprocessing steps.

        • Missing values were handled by dropping entries with sensor calibration delays.

        • Special characters (e.g., \r\n in water temperature) were cleaned.

        • Categorical encoding: Mortality (Yes/No) was converted to binary (1 = Yes, 0 = No).

        • Standardization: All sensor values were scaled to zero mean and unit variance.

        • Data splitting: The dataset was split into training and testing sets using different ratios (6040, 7030, 80

          20, 9010).

          Since the number of mortality = 1 instances was significantly lower, Adaptive Synthetic Sampling (ADASYN) was applied to balance the dataset. This ensured that the minority class (fish deaths) had sufficient representation during training, avoiding biased model performance.

      3. Machine Learning Models

        Six supervised machine learning classifiers were implemented to estimate fish mortality using various water condition parameters indicators.

        1. Decision Tree

        2. Random Forest

        3. Support Vector Machine (SVM)

        4. Logistic Regression

        5. Gaussian Naïve Bayes

        6. XGBoost

        Every model underwent training through 10-fold cross-validation, utilizing various splits of the dataset. Metrics like accuracy, precision, recall, and F1- score were performance.

      4. Cloud Infrastructure

        Data was uploaded to the ThingSpeak cloud platform, which provided:

        • Free storage for up to 8,200 entries/hour

        • Public dashboard for visualizing water parameters in real-time

        • Easy integration with ESP8266 for data push

  3. RESULTS

    This evaluation trained using the processed dataset. To ensure the reliability and stability of the models, several traintest data splits were applied. The effectiveness four key metrics. F1-score, accuracy, precision, and recall.

      1. Model Performance on 6040 Train-Test Split

        Table 1 shows the results of all six machine learning classifiers trained on 60% of the data and tested on the remaining 40%.

        Classifier

        Accuracy (%)

        Precision (%)

        Recall (%)

        F1

        Score (%)

        Random Forest

        97

        95

        99

        97

        Decision Tree

        97

        95

        99

        97

        Support Vector Machine

        94

        89

        99

        94

        Logistic Regression

        93

        93

        89

        91

        XGBoost

        97

        95

        99

        97

        Gaussian Naïve Bayes

        91

        89

        92

        90

        combined model learning

        96

        94

        99

        96

        Table 1: Evaluation Results (6040 Split)

      2. Performance on 7030 and 8020 Splits

        Tables 2 and 3 present the performance results obtained from the 7030 and 8020 trainingtesting data splits.

        Classifier

        Accuracy (%)

        Precision (%)

        Recall (%)

        F1

        Score (%)

        a tree-

        based learning

        98

        97

        99

        98

        XG Boost

        97

        96

        99

        97

        Decision Tree

        96

        96

        96

        96

        SVM

        95

        91

        99

        95

        Logistic Regression

        94

        94

        91

        92

        Gaussian Naive Bayes

        91

        90

        92

        91

        Ensemble Learning

        97

        95

        99

        97

        Table 2: Evaluation Results (7030 Split)

        Classifier

        Accuracy (%)

        Precision (%)

        Recall (%)

        F1

        Score (%)

        Random Forest

        97

        96

        98

        97

        XGBoost

        97

        96

        98

        97

        Decision Tree

        95

        95

        95

        95

        SVM

        95

        93

        98

        95

        Logistic Regression

        93

        93

        91

        94

        Gaussian Naïve Bayes

        90

        91

        89

        90

        Ensemble learning

        97

        95

        98

        97

        Table 3: Evaluation Results (8020 Split)

      3. Correlation Analysis

        Figure 2: Correlation matrix illustrating fish mortality.

        To identify the water quality factors that have the greatest influence fish mortality, a correlation matrix was computed.

        Figure 1 (to be inserted) shows that pH and TDS had the strongest with fish mortality. Ammonia showed moderate correlation. In comparison, less significant associations were noted between CO, turbidity, and water temperature, indicating that ammonia, TDS, and pH serve as more significant control parameters.

      4. Accuracy Comparison Graph

        Figure 2 (to be inserted) illustrates a visual comparison of the classification accuracy achieved by different machine learning models across various training and testing splits. The consistent performance of Random Forest and XGBoost highlights their effectiveness across all configurations.

      5. Summary of Results

        • Random Forest and XGBoost

        • Key influencing parameters: pH, TDS, and Ammonia.

  4. DISCUSSION

The machine learning approaches. The integration of IoT-based sensor networks greatly improves monitoring and safety.

decisionmaking capabilities of biofloc fish farming. The system's ability to predict fish mortality up to 12 hours in advance is a major breakthrough for small-scale farmers in resourceconstrained environments like southern Punjab, Pakistan.

    1. Interpretation of Key Results

      Among the tested machine learning classifiers, Random Forest and XGBoost consistently achieved superior and train-test splits, with accuracy levels reaching 98%. These ensemble methods excel due to their ability to handle high- dimensional data and reduce overfitting through model averaging or boosting strategies.

      Precision and recall values above 95% suggest that these moels are reliable in both correctly identifying actual mortality risks and avoiding false positives, which is essential for real-time alert systems in fish farming. On the contrary, models like Naïve Bayes underperformed, likely due to the assumption of feature independence, which is not suitable for multivariate and correlated water quality data. The correlation analysis further confirms that pH level, TDS and ammonia levels are identified as key indicators of fish mortality. These results are consistent with previous aquaculture studies, which indicate that fluctuations in these parameters can place stress on fish physiology and raise the likelihood of death.

    2. Practical Implications for Fish Farmers

      While previous studies have proposed IoT-based aquaculture systems, few have achieved the combination of:

      • Low-cost hardware integration

      • Advanced predictive capabilities using ML

      • Focused application to specific fish species and regions

        For example, Md. Rashid et al. (2021) implemented a KNN-based a framework designed to forecast water conditions, though it reported only 77.3% accuracy. Similarly, Mahmuda et al. (2021) used image processing and achieved moderate prediction success. In contrast, the current study not only achieves up to 98% prediction accuracy but also incorporates a comprehensive real- time IoT framework and a long-term dataset.

        4.4 Limitations

        Despite its success, the study has some limitations:

        • The system is calibrated specifically for Tilapia in the southern Punjab region; results may vary with other species or environmental conditions.

        • Data was collected over a limited 1.5-month period, focused on a specific growth phase.

        • There are access restrictions (8200/hour) on the Thing Speak cloud utilized for data transmission, which could impede scalability.

        • Environmental sensors (like DHT11) may provide reduced precision compared to high-end industrial systems.

        In traditional biofloc setups, water quality monitoring These limitations provide opportunities for further improvement and is manual, time-consuming, and reactive rather than proactive. development in future research.

        When values surpass mortality criteria, our IoT-based

        technology generates early warning signals and offers continuous, real-time insights into water conditions.

        The systems low cost (~$60) and use of solar power make it ideal for adoption in rural or off-grid locations. For comparison, the cost of fish seed for 500 Pangasius fish is approximately $174thus, even a single mortality event prevented can yield substantial savings and protect farmer income.

        The system also reduces dependency on skilled labor or manual vigilance, empowering local communities with minimal technical knowledge to manage fish health more effectively.

    3. Comparison with Related Work

CONCLUSION AND FUTURE WORK

This study presents a cost-effective, IoT- and machine learning-based a smart monitoring solution designed for biofloc-based fish farming, specifically addressing the requirements of small-scale aquaculture in southern Punjab, Pakistan. The system continuously monitors critical water quality parameters such as pH, total dissolved solids (TDS), ammonia, turbidity, and temperatureusing affordable, solar- powered sensors and microcontrollers.

The data collected over 1.5 months was processed and used to train multiple supervised machine learning models. Among the tested models, Random Forest and XGBoost consistently demonstrated superior performance, achieving prediction accuracies of up to 98% for fish mortality. A strong association fish deaths and several key environmental factors.

TDS, and ammonia levels validates the systems predictive capacity.

By providing 12 hours of advance warning, the system enables fish farmers to take proactive measures, reducing mortality, improving yields, and minimizing economic loss. Additionally, its low cost (~$60) and solarpowered design make it accessible and sustainable for farmers in remote or underserved areas.

  1. Ahammed, M. B., et al. (2022). GSM-based automatic feeding system integrated with pH and temperature for biofloc technology.

  2. Ogello, E. O., et al. (2021). The future in supporting sustainable aquaculture practice. Scientific African, 14, e01053.

  3. Singh, R. P., et al. (2020). in combating COVID-19.

  4. *Diabetes & Metabolic Syndrome, 14*(4), 521524.

  5. Khanna, A., & Kaur, S. (2020). A detailed review of

    Future Work

    While the current system is optimized for Tilapia fish, future

  6. technology, its applications, and

    challenges. Wireless Communications, 114, 16871762.

    associated Personal

    research will aim to:

    • Extend the solution to support multiple fish species, each with distinct environmental tolerances.

    • Collect year-round data to improve prediction reliability across different seasons.

    • Integrate edge computing for offline prediction and real-time alerts without full cloud dependency.

    • Develop mobile or SMS-based alert systems for farmers with limited internet access.

    • Implement ensemble learning techniques and deep learning models for further accuracy improvements.

      This research sets the foundation for transforming biofloc aquaculture from a manual, reactive system into a data- driven, intelligent practice, especially in low-resource contexts.

      REFERENCES

      1. McClements, D. J., & Grossmann, L. (2021). of plant- based, 20*(4), 40494100.

      2. Chu, Y., Wang, C., Park, J., & Lader, P. (2020). farming.

        *Aquaculture*, 734928.

      3. Khanjani, M. H., Sharifinia, M., & Hajirezaee, S. (2022). Recent developments in the use for tilapia culture have been discussed in Aquaculture, 552, 738021.

      4. Khanjani, M. H., & Sharifinia, M. (2020). Biofloc technology has been identified as an effective approach for enhancing productivity in aquaculture systems (Reviews in Aquaculture, 12(3), 18361850).

      5. Zabidi, A., et al. (2021). A study reported in Animals, 11(12), 3514 investigated the effects of probiotics

  7. Tun, S. Y. Y., et al. (2021). Internet of Things (IoT) applications for elderly care: A critical review. Aging Clinical and Experimental Research,33*, 855867.

  8. Landaluce, H., et al. (2020). networks. *Sensors, 20*(9), 2495.

  9. Badshah, A., et al. (2023). A detailed survey discussing the role (IoT)t of smart education systems was published in ACM Computing Surveys, 56(2), 133.

  10. Goswami, N., et al. (2022). The design and smart system for biofloc-based fish farming in Bangladesh were presented in the Proceedings of the 7th International Conference on (ICCES), (pp. 14241432).

  11. Rosaline, N., & Sathyalakshimi, S. (2019). An IoT-based system for monitoring and controlling aquaculture operations was presented in Journal of Physics: Conference Series, 1362(1).

  12. Saha, K. K., et al. (2021). An IoT-based system for monitoring and automatically controlling biofloc aquaculture operations was presented in the Proceedings of the IEEE International Conference on Internet of Things and Intelligent Systems (IoTaIS) (pp. 1521).

  13. Islam, M. M., et al. (2021) A system for predicting aquaculture outcomes using Arduino and the KNN algorithm was designed and implemented within an IoT framework. This work was published in 12616, 108118.

  14. Mahmuda, et al. (2021). Image processing-based farming. In *Emerging Technologies in Computing, Communications and Electronics (ETCCE)*.

  15. Mozumder, S. A., & Sagar, S. (2021). Decision regression trees are water management system.

    predicting water quality in biofloc aquaculture was presented in International Journal of Advanced 12(5).

  16. Blancaflor and Baccay (2021) developed a solar-powered based remote system designed to monitor and manage water quality in biofloc aquaculture.

    *Proceedings of the ACM International Conference Series* (pp. 2431).

  17. Blancaflor, E. B., & Baccay, M. (2022). Assessment of an automated IoT-biofloc water quality management system in the mortality and growth rate.

    *Automatika, 63*(2), 259274.

  18. Ahamed, I., & Ahmed, A. (2021). (pp. 298302).

  19. Prakosa, J. A., et al. (2022). 1017*.

  20. Blancaflor, E. B., & Baccay, M. (2021). Economic & operational impact. In *Proceedings of the ACM International Conference* (pp. 8186).