Implementation of a microcontroller-based neural network for prediction of pH and EC levels in hydroponics
Keywords:
EC, hydroponic, microcontroller, NARX, pHAbstract
The production of crops using hydroponic methods are becoming popular due to their high yield and ability to overcome the challenges facing soil farming including soil degradation, limitation of water access, reduction of farmland and climate change. These systems rely on the quality of the nutrient solution which is directly made accessible at the plant roots. Farmers often lack the information to prevent nutrient deficiencies, until they are visible signs on plants, for example, the yellowing of leaves. Monitoring nutrient solution parameters is one way to prevent nutrient deficiencies before they affect plants negatively. However, obtaining relevant information involves complicated analytical test, whose equipment is not available at the farm level. This article presents the implementation of a neural network based in the Arduino Mega microcontroller to predict pH and EC in a Nutrient Film Technique (NFT) hydroponic system. These predictions of pH and EC levels based on environmental parameters that affect growing plants, such as greenhouse air temperature and humidity, enable farmers to take preventive actions to prevent nutrient deficiencies. Data collection was carried out in a NFT hydroponic system specially designed to reduce energy consumption. The Nonlinear AutoRegressive with eXogenous inputs (NARX) model was developed and trained using Levenberg-Marquardt on MATLAB. The linear regression R showing the relationship between inputs and outputs was 99%. The Mean Square Error (MSE) was 0.0026828 and there were no signs of over or under fitting. The developed neural network model was implemented in the Arduino controller and tested in the field to predict pH and EC values. The results showed that EC values were well predicted compared to pH values. However, the pH values predicted showed small deviations of 0.1 compared to the actual values measure by the sensor.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2023 Abdoulaye SIDIBE, Rehema Ndeda, Evan Murimi, Urbanus N. Mutwiwa
This work is licensed under a Creative Commons Attribution 4.0 International License.
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges.