Next Article in Journal
Investigation of Color and Bioactive Compounds of Different Colors from Pansy (Viola × wittrockiana Gams.) Dried in Hot Air Dryer
Next Article in Special Issue
Usage of Machine Learning Algorithms for Establishing an Effective Protocol for the In Vitro Micropropagation Ability of Black Chokeberry (Aronia melanocarpa (Michx.) Elliott)
Previous Article in Journal
Do Rootstocks Influence Global Fruit Quality, Postharvest Performance and Metabolite Profiles of Persea americana cv. Hass?
Previous Article in Special Issue
Using Optimized Three-Band Spectral Indices and a Machine Learning Model to Assess Squash Characteristics under Moisture and Potassium Deficiency Stress
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development and Testing of an IoT Spectroscopic Nutrient Monitoring System for Use in Micro Indoor Smart Hydroponics

1
School of Information Technology, Murdoch University, Dubai Campus, Block 18 Dubai Knowledge Park, Dubai P.O. Box 500700, United Arab Emirates
2
School of Information Technology, Murdoch University, Murdoch, WA 6150, Australia
3
College of Science, Health, Engineering and Education, Murdoch University, Murdoch, WA 6150, Australia
4
Department of Primary Industries and Regional Development, South Perth, WA 6151, Australia
5
School of Management and Marketing, Curtin University, Perth, WA 6845, Australia
*
Author to whom correspondence should be addressed.
Horticulturae 2023, 9(2), 185; https://doi.org/10.3390/horticulturae9020185
Submission received: 9 December 2022 / Revised: 7 January 2023 / Accepted: 24 January 2023 / Published: 1 February 2023
(This article belongs to the Special Issue Smart Horticulture: Latest Advances and Prospects)

Abstract

:
Nutrient monitoring in Micro Indoor Smart Hydroponics (MISH) relies on measuring electrical conductivity or total dissolved solids to determine the amount of nutrients in a hydroponic solution. Neither method can distinguish concentrations of individual nutrients. This study presents the development and testing of a novel spectroscopic sensor system to monitor nitrogen changes in nutrient solutions for MISH systems. The design phase determined that using an inexpensive AS7265x Internet of Thing (IoT) sensor in a transflective spectroscopic application could effectively detect small fluctuations in nitrogen concentraation. Next, a novel transflective sensor apparatus was designed and constructed for use in a MISH system experiment, growing lettuce over 30 days. Two solution tanks of different sizes, 80 L and 40 L, were used in the deployment of the system. Samples from each tank were analyzed for nitrogen concentration in a laboratory, and multilinear regression was used to predict the nitrogen concentrations using the AS7265x 18 spectral channels recorded in the sensor system. Significant results were found for both tanks with an R2 of 0.904 and 0.911 for the 80 and 40 L tanks, respectively. However, while the use of all wavelengths produced an accurate model, none of the individual wavelengths were indicative on their own. These findings indicate that the novel system presented in this study successfully and accurately monitors changes in nitrogen concentrations for MISH systems, using low cost IoT sensors.

1. Introduction

The adoption of hydroponics in urban applications has been proposed to assist in alleviating pressure on global food security, enabling urban residents to grow food at home [1,2,3,4]. The COVID-19 pandemic and extreme weather caused by climate change have exposed the vulnerability of the global food supply chain, emphasizing the need for alternative solutions, such as hydroponics [5,6,7,8,9,10]. The system complexity and expertise required for the adoption of hydroponics are a barrier to its wider adoption and use in an appliance-like manner [1,2,3,4]. To simplify the management of the system complexities, micro indoor smart hydroponics (MISH) systems use Internet of Things (IoT) technologies [4,11,12]. IoT technologies enable sensors and actuators to connect to a networked computing system, allowing software systems to monitor and assist with hydroponic management.
One of the most complex aspects of hydroponics is managing the nutrient content in the hydroponic solution. Thirteen common elements are needed in hydroponic solutions; the macronutrients nitrogen, potassium, phosphate, calcium, magnesium, and sulfur are added in larger amounts than the other elements, with nitrogen being applied in the greatest quantity. Balancing and managing the quantity of the nutrients in the solution is a difficult task requiring expertise. The complexity and need for expertise have slowed the adoption of hydroponics [13].
In addition to the difficulty of managing the nutrients, there is also the wastewater that hydroponics generate [14]. Because there is no simple inexpensive method for home gardeners to determine the individual nutrients in the solution, after or during the growing process, the water is often discarded and a new solution is mixed. This has the potential to negatively impact the environment, wasting resources and causing problems for water treatment [15] and possibly creating a major hurdle for the wider adoption of MISH systems, especially in urban settings where disposal options are limited [16]. Accurate nutrient solution management is important for resource conservation and efficient use [14]. Currently MISH systems are managed using electrical conductivity (EC) meters [17,18]. EC meters use the potentiometric effect of an electrical current between electrical probes to measure the amount of mineral salt in the water. These meters are inexpensive and a have been shown to be useful for monitoring the overall amount of fertilizer in the water [19,20]. However, EC meters cannot determine the amount of individual minerals, only the total combined amount.
Ion-selective electrodes (ISEs) have emerged recently as a solution preferred to the opaque EC meter [14,15,17,20,21,22,23]. ISEs work like EC meters but use an ion-selective membrane to only measure individual nutrients. Although ISEs are accurate, they are not feasible for use in MISH systems. Each nutrient needs a separate ISE probe [13,23,24], making the approach cost-prohibitive in the context of home hydroponics. Additionally, at the time of writing, consumer-grade ISE probes or commodity-grade IoT ISE sensors are not widely available. ISE sensors have durability issues, the probes are delicate, and the membrane has a limited lifespan while submerged in water [13,23]. They are also prone to electrical, chemical, and biological interference in water, causing issues with accuracy and calibration; this limits their application in certain environments [25].
Spectroscopy techniques, a form of optical sensors, are currently the most promising alternative to ISEs in MISH systems for several reasons. Firstly, optical sensors are less prone to chemical, electrical, and biofouling interference [26,27,28,29]. Secondly, only one sensor is needed to measure multiple nutrients [27,30]. Thirdly, ISE sensors are more delicate and have a limited lifespan compared to optical sensors [31]. Finally, the developments in commodity IoT optical sensors are advancing the application of optical sensor systems for simple, practical, and easy-to-deploy spectroscopy [27].
The purpose of this study was to demonstrate a proof of concept of an inline optical nutrient monitoring system that can be applied in a MISH system for home use. The proposed system, hereby referred to as NutriSpec, was built with a commodity IoT spectroscopic sensor and hardware. The NutriSpec system uses IoT hardware and software architectures that are well-established for MISH systems [4,12,32,33]. The system was demonstrated in a real-world setting via a 28-day lettuce-growing experiment. The lettuce acted as a nutrient sink, creating dynamics in the nutrient solution that were monitored by the NutriSpec system.
This paper first presents the literature that was used to identify the gap in the research and served as the basis for the system design. Next, in the Materials and Methods section, the system design, materials selection, and experimental methodology are presented. Finally, the results of the experiment, the system performance, and a discussion of their implications are presented.

2. Literature Review

Hydroponics has a well-established history of using spectroscopic techniques to quantify the individual nutrients of a solution [28,34,35]. This is traditionally conducted offline in a laboratory using lab-grade equipment. Samples are individually prepared and processed, with considerable delay between the sampling and the result. While the results are accurate and useful, the lab approach makes it difficult to monitor the solution in real time. Four survey papers that covered 544 studies on automated aquaponics [17], smart hydroponics [36], smart farming with IoT [18], and IoT smart irrigation systems [37] found no inline spectroscopic application of nutrient monitoring for hydroponics. The studies shown in Table 1 and discussed below cover the body of literature on the applied spectral measurement of hydroponic nutrient solutions.
D. Jung et al. [25] combined the use of an array of cobalt ion sensors and penetrative spectroscopy equipment to estimate phosphate quantities in hydroponic solutions. By adding spectroscopy to their model, they were able to achieve a 20% improvement in accuracy. However, the spectroscopy was not applied inline [25]. Critical work for the advancement of spectroscopy in hydroponics by Bamsey et al. [38,39] presented two transflectance spectroscopy optodes for measuring calcium and potassium. Optodes use a transflective spectroscopic technique, a form of reflective spectroscopy that relies on a mirror to reflect light; this was combined with an ion-filtering membrane on the mirror, to measure specific nutrients in a solution. The probe design allowed them to be submerged in a solution and take readings. Like ISEs, the mirror was coated with an ion-selective membrane and also suffered from a short lifespan [38,39]. Additionally, Bamsey et al. [38,39] only tested the optode sensors in a lab setting.
Recent studies in spectrophotometry have demonstrated the progress toward developing a simple homemade spectrophotometer [40,41,42,43,44]. These sensor systems use a 3D printed or cardboard housing with a place to put a sample and pass light through a cuvette to measure the spectral readings. Han et al. [44] provided an example of the application of these sensor systems in hydroponics. Their study developed a homemade spectrophotometer to measure phosphorus in a hydroponic solution. While Han et al.’s [44] approach produced accurate phosphorous concentration predictions, the application technique made it difficult to translate to inline nutrient monitoring.
Monteiro-Silva, Jorge, and Martins [31] presented an inline spectroscopic system sensor design for measuring nitrogen, phosphorus, and potassium (NPK) in nutrient solutions. A rectangular flow chamber was placed between a lab-grade deuterium light source and an ultraviolet–visible (UV–Vis) wavelength spectrometer; hydroponic solution circulated through the chamber, and spectral transmission readings were taken [31]. Their sensor system was able to accurately predict NPK concentrations in a lab setting with samples taken from local commercial hydroponic farms, with an error rate of <3%. A. F. Silva et al. [31] extended this work by testing the same sensor application using a different spectrometer and light source and were able to obtain accurate predictions of nitrogen content with an error rate of <6% and potassium content with an error rate of <3%. These results show the real potential of measuring nutrient solutions using optical approaches in place of EC for MISH systems.
MISH systems aim to increase the of spread urban agriculture [4]. This area of research can be accelerated with citizen science contributions to the advancement of MISH. Low-cost technology and robust practical design are crucial for facilitating citizen science [45]. Five of the proposed systems in Table 1 utilize expensive spectrometers, costing hundreds or thousands of USD [25,30,31,39,40]. The only system with inexpensive commodity electronics uses a fragile paper housing in a plywood box and requires impractical sample preparation for analysis [38]. Additionally, all the studies in Table 1 examine the sensor systems in a lab setting. None of the systems examined were built with low-cost IoT sensors and applied in situ for inline monitoring in a real-world setting. There is a clear need for a sensor system that uses inexpensive commodity IoT optical sensors in a housing that can be applied inline and tested in a real-world application. This study presents a proof of concept and feasibility study of a low-cost, novel submergible spectroscopic sensor system for monitoring hydroponic nutrients in a real-world application for MISH systems.

3. Materials and Methods

Three subsections are presented below: first, the NutriSpec sensor housing design and the spectrophotometry technique determination; next, the NutriSpec system hardware and software architecture configurations; and finally, the experimental methodology used to test the NutriSpec system.

3.1. NutriSpec Sensor System Design

The sensor selected was the SparkFun Triad Spectroscopy Sensor-AS7265x costing USD 70. The sensor uses three AMS pre-calibrated photodiodes that cover 18 spectral channels, 30 nm wide, ranging from 410 nm to 940 nm. The sensor has three onboard LED lights next to the photodiodes, an ultraviolet light (UV), a 3300 k white LED for the visible spectrum (VIS), and an infrared (IR) light. These lights are used in reflective spectrophotometry applications. The light photons reflect off the test material upon flashing, and the photodiode measures their intensity. The suitability of the sensor for the NutriSpec system was determined based on similar applications. A smart buoy prototype successfully used a submerged AS7265x to measure the quality of seawater [46]. Another study used the AS7265x in a 3D printed spectrophotometer with accurate results for measuring soft drink concentrations [47]. Finally, two studies used the AS7265x to measure the quantity of photosynthetic active radiation (PAR) [4,48]. Both studies demonstrated the sensor’s high accuracy, surpassing that of a lab-grade Li-Cor 190R quantum sensor [48] and thus supporting the selection of the sensor for accuracy and applicability.
Prior to the sensor housing design, the sensor was evaluated for consistency. Consistency rather than accuracy was used to evaluate the quality of the sensor to align with the citizen science approach. A typical home user would generally need access to a lab or commercial-grade equipment to calibrate for accuracy. The sensor’s ability to produce consistent results enables the establishment of a baseline from which changes can be observed. To test for consistency, the sensor was placed in a dark chamber face up with an empty glass beaker placed atop. The onboard LED lights flashed every 10 s for five minutes. Next, a glass beaker filled with 500 mL tap water was placed atop the sensor, and the process was repeated. Finally, a glass beaker filled with 500 mL distilled water was set atop the sensor, repeating the same process. The results are shown for stable consistent readings.
Table 2 presents the data from the consistency tests. The spectral channels are labeled by color: blue, which includes the UV channels; green; red; and IR. The results demonstrated the sensor’s ability to produce consistent readings across all channels and all treatments. The standard deviation (SD) for all treatments was less than 1.5 raw spectral intensity units. Additionally, the largest difference in the max and min was just under five units. These results demonstrated the AS7265x’s consistent stability and strongly supported the choice of the sensor for the NutriSpec system. After sensor selection the waterproof housing was designed.
First, the AS7265x with no box was connected to an Arduino Uno and placed facing up at the bottom of a black lightproof chamber. The onboard LED lights flashed every 10 s, and readings were taken. The sensor readings were collected for six minutes. Next, the AS7265x was placed in each of the boxes, and the process was repeated. The results were analyzed using MANOVA (Pillai’s trace = 2.402, F (12, 714) = 238.979, p = 0.000), showing that there was a difference between no box and all thicknesses of boxes for all spectral channels. The thickness was chosen based on the mean closest to the sensor reading with no box. As shown in Table 3 and Figure 1, the 2 mm acrylic was the closest to the sensor with no box. Based on this analysis, the 2 mm acrylic was used to waterproof the AS7265x for the experiment.
Next, the sensor was sealed in the 2 mm acrylic box and waterproofed with epoxy resin, as shown in Figure 2. A series of tests were conducted to determine if the sensor could detect any changes in the water contents using reflective spectrophotometry, as per Bruzzese et al. [46]. The sensor was fixed to the bottom of a 1200 mL beaker facing up in a lightproof chamber, as shown in Figure 3. One liter of distilled water was added to the beaker, and readings were taken every 10 s for six minutes. Next, 1 mL of a locally produced consumer-grade hydroponic nutrient A solution was added every six minutes, up to 3 ml, and EC readings were taken. An analysis was performed on the four series of readings using MANOVA (Pillai’s trace = 2.823, F(13, 132) = 32.82, p < 0.001), showing that there were significant differences in the concentration changes. However, 5 of the 18 spectral variables (940 nm, 860 nm, 810 nm, 705 nm, and 760 nm) showed no significant changes between the concentrations.
A multiple linear regression (MLR) model was used to examine the sensor’s ability to predict the concentration of nutrients based on the EC. A significant model was created (F(13, 134) = 521.92), p < 0.001) with an R2 of 0.981. While this model was promising, five channels in the red and IR range were not responsive; thus, transflection was also examined. Transflection can be considered when low concentrations cause only slight light attenuation [47,48].
A mirror was placed 5 mm [47] opposite the sensor, as shown in Figure 3. A low-cost aluminum-backed mirror was used, as it performed sufficiently across all the wavelengths being examined (410 nm to 940 nm) [49]. The light was reflected off the mirror into the photodiode. This method has been proven to work well for agricultural applications, specifically for measuring fertilizer content in water [47,48]. The same methods and data collection techniques were used, and the same tests were performed for the reflective application. MANOVA (Pillai’s trace = 2.827, F(54, 396) = 119.85, p < 0.001) found that all 18 spectral channels had an observable significant difference in the concentrations of the solutions, producing a significant MLR model (F(18, 1009) = 858.807, p < 0.001) with an R2 of 0.992.
Based on this analysis of spectrophotometry using the AS7265x, it was clear that transflection produced a better model than reflection to measure nutrient concentrations in hydroponic solutions. The next step was to apply these findings by deploying the sensor in an IoT sensor system using the submerged AS7265x for inline nutrient monitoring in an MISH system.
The housing was designed and 3D printed for the transflective application of the waterproofed AS7265x. It was printed with an Ender 2 fused deposition modeling (FDM) printer, using eSUN polylactic acid (PLA) filament. This printer and filament type are commonly used in hydroponics and spectroscopy prototyping. For example, Takeuchi [50] created an innovative hydroponic NFT system using a 3D FDM printer with PLA filament. Cecil, Guijt, Henderson, Macka, and Breadmore [51] created a flow chamber for liquid spectroscopy using the same. The housing shown in Figure 4 was 73 mm × 40 mm × 71 mm. It was designed to minimize interference from outside light while still allowing space for circulation through the sensing zone. The front and back walls featured 1 mm × 8 mm slots, 2 mm apart. A solid lid fit over the top of the housing, as seen in Figure 4. A 12 mm base was created with a slot for the mirror and sensor. The mirror was 5 mm from the sensor; while Feng et al. [48] showed that 1 mm was the optimal distance, they found that 5 mm was also effective. Based on the constraints of the acrylic box being 2 mm thick, 5 mm was used. Perforations of 1 mm, 2 mm apart, ran through the entire base section of the housing.

3.2. MISH IoT System Design and Architecture for Field Testing

A full MISH system was constructed to test the capability of the NutriSpec sensor. The IoT system used common commodity hardware components, arranged in a simple architecture, as shown in Figure 5. The AS7265x was connected to the inter-integrated circuit (I2C) bus of the Arduino Uno, then by USB to the Raspberry Pi 4 B (RPi 4B). The RPi 4B acted as a gateway for the sensors and was connected via general-purpose input–output (GPIO) pins to solid-state relays to actuate the grow lights and water pump. A DFRobot analog EC sensor DFR0300, DFRobot pH analog sensor V2 SEN0161-V2, analog water-level sensor, and DS1820 digital temperature sensor were added for additional water monitoring. All of these were connected to an Arduino Uno and to the RPi 4B, as shown in Figure 5.
The RPi 4B, running Raspbian 10 Buster, in addition to acting as a gateway for the IoT sensors, provided the processing, storage, and user interface services for the system. As shown in Figure 5, all the sensor data were received and processed by Node-RED 1.3.4. The data from the sensors were combined in Node-RED to form a single JavaScript objection notation (JSON) string and stored in Influx DB 1.8.5, a time-series database. Grafana 8.1.5, a user interface dashboard, was connected to Influx DB to visualize the data for easy monitoring. In addition, Node-RED was also used to schedule the timing for the lights and the water pumps.

3.3. Experiemental Materials and Methods

This section presents the experiment used to determine if the NutriSpec system could measure changes in hydroponic nutrients in a real-world application. The experiment focused on observing changes in nitrogen concentrations during a standard 28-day growing period of lettuce in a MISH system. Nitrogen was selected because it is the most important mineral for plant growth and is easily measured in the lab using spectrophotometry. However, a smaller-scale analysis was conducted to explore whether potassium and phosphorus were also impacted. As the focus of this study was nitrogen, potassium and phosphorus were not analyzed in depth. Lettuce was selected for the experiment to act as a nutrient sink for the hydroponic solution. Lettuce is a well-established tool for research in hydroponic systems, due to its ability to produce a large mass in a short amount of time; other green crops would also work, but lettuce was optimal for this study [4,12,52,53,54,55]. The changes in the solution were monitored, as well as the weight of the plants. Two sets of plants were grown simultaneously using different volume sizes of nutrient tanks. An 80 L tank and a 40 L tank were used, as shown in Figure 6, to observe and verify changes at different scales and protect internal validity.
The sensor housing design, construction, and data collection were carried out in a real-world setting for microscale home hydroponics. The experiment was carried out in a residential apartment in Dubai, UAE, during the month of May 2022. The hydroponic system used a flood and drain design [4]. Two flood trays containing two 70 cm × 19 cm grow beds Figure 6 were filled with perlite and a thin top layer of coco coir. The media were sterilized with boiling distilled water. Ten-day-old lettuce seedlings (Lollo bionda) and hydroponic nutrient solutions A and B were sourced from Greenoponics Agricultural Services, Dubai UAE. Two 300 mm × 240 mm full-spectrum LED grow lights were hung over each tray and adjusted to average 330 µmol/s/m2 and operated for 12 h a day to provide a total of 14 DLI [56,57]. At day 14, beds A and B were swapped in both flood trays.
Two nutrient tanks were used for the experiment, an 80 L tank and a 40 L tank. To block ambient light, black-colored tanks were used with tight-fitting lids. Each tank used a 25 watt Dynamax water pump that flooded the trays every 12 h for 20 min. The AS7265x sensor housing was mounted to the bottom of each tank in the front left corner, 20 cm from the front and left wall, as shown in Figure 6. A temperature sensor, pH sensor, EC meter, and water-level sensor were deployed in each tank and connected to the NutriSpec sensor system. The tanks, pumps, pipes, and fittings were rinsed with distilled water prior to commencing the experiment. After setting up, the tanks were filled with distilled water, and the system ran for 24 h prior to adding the nutrients. The nutrient solutions were locally produced, with a breakdown of their contents shown in Table 4.
Solutions A and B were added to each of the tanks according to the prescribed proportion on the bottles (125 to 100 mL). To keep the solution in the optimum nitrogen absorption band without effecting the other nutrient absorption rates, the pH was adjusted and maintained throughout the experiment between pH 5.5 and pH 6.4. After the initial adjustment of the pH, the EC of Tank S was 1322, and that of Tank L was 1366. The water level was monitored daily, and when the level reached 5 L below the desired level, distilled water was added. This process was performed for both tanks to maintain the level at 40 L and 80 L, respectively. The system was then allowed to run for another 24 h prior to transplanting the seedlings. The seedlings were transplanted then given 12 h rest from the light before commencing the lighting cycle.
Sensor readings were recorded every 10 s and averaged hourly, excluding the two hours when the trays were flooded daily. We took 50 mL samples from each tank after the completion of both flooding cycles at the end of the day for nitrogen analysis. Additionally, six 50 mL samples were taken from each tank at the beginning and end of each week and at the end of the experiment to conduct an analysis of potassium and phosphorus. The EC and pH of these samples were also recorded. Samples were analyzed at the Middle East Testing Services, Ajman, UAE, using a UV–Vis spectrophotometer. At the end of day 28, the lettuce was harvested, weighed, and then dried in an oven at 80 °C for 72 h.

4. Results

This section presents the results of the field experiment designed to determine if the NutriSpec sensor system could detect changes in the nitrogen levels in hydroponic nutrient solutions in a real-life MISH system application. Nitrogen was selected because it is the most important mineral for plant growth and is easily measured in a lab using spectrophotometry. The nutrient solution, shown in Table 4, contained calcium nitrate Ca(NO3)2; therefore, the nitrate nitrogen changes were monitored as the primary nitrogen changes for the experiment. This section first covers the analysis of the nutrient solution tanks and plant growth to demonstrate the validity of the context for testing the NutriSpec sensor system. Next, an analysis was performed of the NutriSpec sensor system’s ability to detect the changes demonstrated by the nitrogen and plant analysis.
Two NutriSpec sensor systems were constructed and deployed, one in each tank, as shown in Table 5. Once the tanks were set up and the nutrients added, issues emerged regarding the EC and pH sensor readings. The pH readings showed a negative number, and the EC readings were lower than expected. Upon investigation, the sensors were suffering interference from the analogue water-level meter. The water-level meter was a potentiometer, which conducted a small charge of electricity through the water and then estimated the water levels based on the resistance readings. This caused interference with the EC and pH sensors. Even after removing the water-level sensor, the EC and pH sensors no longer held a calibration. For the duration of the experiment, EC and pH readings were taken by hand at the end of the pump cycle. In addition, water-level marks were used to manually identify when five liters of water should be added. The water temperatures (t(58) = 0.347, p = 0.558) and pH levels (t(58) = 2.45, p = 0.123) in both tanks were stable and showed no significant difference, as demonstrated in Table 5. The thermostat of the room in the flat was set to 25 °C for the duration of the experiment.
The collected samples were analyzed in the lab with a spectrophotometer for nitrate nitrogen levels. Figure 7 shows the daily levels recorded in mg/L over 28 days. A two-sample t-test was used to compare the mean nitrogen levels between the tanks. Tank L (M = 91.5, SD = 14.15) and Tank S (M = 92.72, SD = 16.25) showed no significant difference in mg/L (t(53) = 2.00, p = 0.85). Additionally, a Pearson’s correlation was used to assess the nitrogen depletion rates between Tank S and Tank L (r(53) = 0.82, p < 0.0001). Strong similarities were established between the tanks regarding nitrogen levels over time, showing that a stable, consistent, and measurable dynamic was created in the nutrient solution, with which to compare the AS7265x spectral readings.
To further demonstrate the integrity of the test environment, the weight of the plant growth, shown in Figure 8, was analyzed. Table 6 shows the total fresh and dry weight of the plant growth for both tanks over the four weeks. The total harvested fresh mass from Tank S was 383.1 g, and that from Tank L was 683.5 g. The mean fresh weight of Tank S (M = 29.46, SD = 9.27) and Tank L (M = 52.57. SD = 9.22) showed a significant difference (t(24) = −6.36, p < 0.001). After the plants were dried for 72 h in an oven, they were weighed again. The total dry weight of Tank L (29.8 g) was almost double that of Tank S (15.2 g). The disparity remained, with Tank S (M = 1.17, SD = 0.00) and Tank L (M = 2.30, SD = 0.00) showing a significant difference in dry weight (t(24) = 1.27 × 1018, p < 0.001). Both the fresh weight and dry weight differences were in line with the expectations for stable growth and proportionate results. Tank L, which contained twice the amount of freely available nitrogen for the plants, was close to double the size of Tank S. After establishing that the environment performed as expected, the spectral results for both tanks were analyzed to evaluate the sensor system.
To assess the sensor’s ability to detect the established nitrogen depletion, the means of each day, for 28 days, were calculated for all 18 wavelength channels, excluding the two hours when the beds were being flooded. These raw spectral readings were analyzed using MLR to assess their ability to predict the nitrogen levels. The analysis was carried out on each tank separately; then, the datasets were combined and analyzed. Additionally, absorption rates were calculated for each channel; this was carried out by applying the Beer–Lambert law, i.e., log10(I0/I). The blank reading in distilled water was used as I0, and the mean intensity was used as I [48].
Tank L absorbance rates were plotted for each wavelength over 30 days, as shown in Figure 9. Tank L produced a significant model (F(15, 14) = 8.76, p < 0.001) with an R2 of 0.904. Figure 10 shows the model’s predicted nitrogen levels plotted against the actual nitrogen levels. A linear regression model using the daily EC readings to predict nitrogen was also created. The model was significant (F(1, 28) = 60.64, p < 0.001), but the fit had an R2 of 0.673, much lower than that of the NutriSpec sensor system.
While the model was significant and clearly able to predict nitrogen with a high accuracy, none of the individual coefficients, shown in Table 7, were significant. The Tank L absorbance rates, presented in Figure 10, showed variation and inconsistencies, contributing to a lack of significance. The highest standardized coefficients were 410 nm, 460 nm, 760 nm, and 585 nm, while the coefficients with the greatest influence were 435 nm, 460 nm, 705 nm, and 730 nm. For both coefficient rankings, 410 nm and 460 nm were the least significant but still had a p value greater than 0.05.
The Tank S absorbance rates were plotted for each wavelength over 30 days, as shown in Figure 11. Tank S also produced a significant model (F(18, 11) = 62.51, p = 0.002) with an R2 of 0.911. Figure 11 shows the model’s predicted nitrogen plotted against the actual levels. This model was also able to predict the nitrogen levels with a high degree of accuracy, much better than that of the EC for Tank S. The EC produced a significant model (F(1, 28) = 68.407 p < 0.001) with an R2 of 0.710.
Like Tank L, Tank S was clearly able to predict the nitrogen levels, producing a significant model (F(18, 11) = 6.251, p =0.002) with an R2 of 0.911. All wavelengths were included in the model; however, none of the coefficients shown in Table 8 are significant. The Tank S absorbance rates, presented in Figure 11, showed wide variation, with 435 nm having no movement and wide movement observed in the 600 nm range. The highest standardized coefficients were 460 nm, 410 nm, 510 nm, and 680 nm. The coefficients with the greatest effect were 610 nm, 680 nm, and 730 nm. The only coefficient close to being significant from both models was 510 nm from Tank S, with a p value of 0.08.
Finally, the two datasets were combined, again producing a significant model (F(18, 41) = 6.76 p < 0.001) with an R2 of 0.748. This also outperformed the significant EC model (F(1, 58) = 87, p < 0.001) created from the same data, with an R2 of 0.6. Table A1 and Table A2 show the correlation of potassium and phosphorus levels with the corresponding average raw spectral intensity readings for each day. Due to the limited data collected, there were no statistically significant results. However, an analysis with the limited data showed that there were potential correlations for both phosphorus and potassium, with implications for future research.

5. Discussion

The goal of this study was to demonstrate the feasibility of using an inline nutrient monitoring system with an optical sensor to measure individual nutrient changes, instead of relying on traditional EC measurements. The purpose of this proof-of-concept design was to show that it is possible to use this type of system to accurately monitor nutrient levels in real time. The results indicated that the NutriSpec sensor system was able to accurately detect changes in nitrogen levels for a hydroponic solution in a real-world MISH system setting. Figure 10 and Figure 12 demonstrate the strong prediction power of the MLR models produced from the systems. When comparing these models to those produced using EC, the spectroscopic sensors performed much better. This shows the potential of future applications of simple submerged optical sensors to replace EC in MISH systems.
The conditions of the MISH system used to test the NutriSpec sensor system were rigorously monitored and analyzed to ensure the internal validity of the experiment. The validity was well demonstrated through several findings. Firstly, the temperature and pH of both tanks, presented in Table 5, showed no significance difference throughout the experiment. Secondly, there was an observable decrease in nitrogen, as shown in Figure 7. Even though there are noticeable differences and fluctuations depicted in Figure 7, with pronounced dips in the nitrogen concentration on days 5, 10, 15, 20, and 25, there were strong significant correlations in nitrogen depletion between the tanks and no significant difference in mean nitrogen m/g per liter. Finally, the plant mass results, shown in Table 6, were proportionally consistent. Tank L, an 80 L tank, had both dry and fresh weights around double those of Tank S, a 40 L tank. Considering that Tank L had double the available nitrogen of Tank S, this growth was as expected. Taking all of this into account, the real-world setting of the apartment presented no confounding factors and provided a valid consistent environment to interpret the results of the experiment.
Despite the tanks exhibiting highly similar characteristics, the models produced for each tank were different. Both models had an R2 of more than 90%. Although both models had a goodness-of-fit higher than 90%, the difference between the models appeared very distinct. However, on closer examination, there were unmistakable similarities that have implications for the future development of simple submerged transflective spectroscopy for MISH.
Tank L, the larger tank, produced a more accurate model than Tank S, with all coefficients having a standard error of less than one. Additionally, the range of absorbance, at different wavelengths, differed greatly from that of Tank S. The absorbance range for Tank L, Figure 9, showed an over-absorbance error, spanning from −4 to 2.5. Tank S had the highest standard error rates, despite having the better goodness-of-fit and absorbance rates in the acceptable range [57]. Only six coefficients for Tank S had a standard error of less than one. The cause of these vast differences was unknown; there may have been issues related to a difference in sensitivity between the sensors depending on the manufacturer, or they could have resulted from the tank size or material anomalies. Differences in submerged applications can be addressed in future studies through local calibration prior to application, as demonstrated in Brito et al. [58] and Maribas et al. [59].
Despite these apparent differences, important similarities emerged when comparing the six most accurate wavelengths for each tank, presented in Table 9. The most accurate spectrum for both models, as shown in Table 9, was in the UV–Vis range. For both tanks, the wavelength with the lowest standard error was 410 nm. This finding was as expected and in-line with previous work using UV–Vis to detect nitrogen in hydroponic solutions via spectrophotometry [30].
Considering the extensive work carried out to measure nitrogen with the IR and near-infrared (NIR) spectrum [58,59,60,61], we expected to see the IR range among the most accurate wavelengths. Surprisingly, for both models, the IR wavelengths were not present. The IR wavelengths presented some of the highest standard error rates, as shown in Table 7 and Table 8. Additionally, the lab that tested the samples for the study used 500 nm to determine the quantity of calcium nitrate, consistent with the findings shown in Table 9. Based on these similarities, it could be concluded that the sensors performed similarly. This suggested that the technique of simple submerged transflective spectroscopy for MISH systems is effective, particularly in the UV–Vis range. It is possible that other sensors even cheaper than the AS7265x could also be used in this application.
This study faced several limitations. Firstly, as the water in the tanks was depleted by plant consumption and evaporation, distilled water had to be added. However, rather than adding large quantities at intervals, adding smaller quantities every day at the end of the readings would have provided a more stable environment. Additionally, taking readings of the nitrogen before and after adding the distilled water would have allowed a useful analysis for tracking the impact. Secondly, the EC system and pH were incompatible with the water-level sensor. While the voltage of the water-level sensor was small, it was enough to foul both meters. This exacerbated the issues noted earlier with ISEs. The sensors were so sensitive that future designs must take this sensitivity into consideration. Thirdly, the sensors should have been examined to note any differences before application. It is normal for small differences to exist in commodity sensors; however, these need to be documented to establish comparable outputs. Lastly, the acrylic boxed leaked, as shown in Figure 13, just two days after the completion of the experiment, suggesting that an alternative means of waterproofing are required.
Two notable areas for future studies are finding a common calibration and determining optimal pathlengths. Maribas et al. [58] and Brito et al. [59] established successful calibration models for target solutions, which may solve issues of irregular readings in future research. Next, future studies attempting to determine the optimal mirror distance for this application may eliminate the differences identified between the sensors and provide more accurate readings [47,48,62].

6. Conclusions

This paper presented NutriSpec, an inexpensive spectroscopic IoT sensor system de-signed to monitor changes in nitrogen in hydroponic solutions for real-world application. The system was designed, built, and successfully demonstrated in a residential apartment in Dubai, UAE. This study established a novel spectroscopic sensor system for MISH that has the potential to advance the field and open new avenues for citizen science contributions to research in this field, pushing forward the potential for cheap, simple, and accurate nutrient monitoring techniques that improve upon the opaque estimations of traditional EC.
This study showed that an AS7265x in a simple submerged transflective spectroscopic application could be used to accurately measure the changes in nitrogen in hydroponic solutions. The experimental results showed the clear superiority of the NutriSpec sensor system’s ability to predict the nitrogen concentration compared to EC. While there were clear inconsistencies between the models produced for the different tank volumes, the results demonstrated the system’s potential for future applications.
Future research is needed to establish a calibration methodology for the NutriSpec system. In addition, there is wide scope for analyzing other commonly used sources of nitrogen for hydroponics, as well as phosphate, potassium, and magnesium. With the use of artificial intelligence and machine learning, there is potential to develop spectral signatures for different elements that would allow for a single sensor to monitor different nutrients.

Author Contributions

Conceptualization, J.D.S., D.M., D.D. and D.T.; methodology, J.D.S., D.M., D.D. and D.T.; investigation, J.D.S.; formal analysis, J.D.S.; writing—original draft preparation, J.D.S.; writing—review and editing, J.D.S., D.M. and D.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. The average spectral intensity for each channel per day according to the combined data of Tank L and Tank S and their correlation with the phosphorus concentrations.
Table A1. The average spectral intensity for each channel per day according to the combined data of Tank L and Tank S and their correlation with the phosphorus concentrations.
Spectral ChannelCorrelationCountLower C.I.Upper C.I.
410 nm−0.15112−0.6670.463
435 nm0.26312−0.3660.727
460 nm−0.36412−0.7760.266
485 nm−0.32112−0.7560.31
510 nm0.00812−0.5690.579
535 nm−0.81412−0.946−0.45
560 nm−0.43812−0.8090.181
585 nm0.12512−0.4840.652
610 nm−0.30712−0.7490.324
645 nm−0.18212−0.6840.438
680 nm0.18912−0.4310.688
705 nm−0.40112−0.7930.224
730 nm0.06912−0.5260.618
760 nm0.15912−0.4560.672
810 nm−0.42412−0.8030.198
860 nm0.615120.0630.879
900 nm0.12312−0.4860.651
940 nm0.37912−0.2490.783
Table A2. The average spectral intensity for each channel per day according to the combined data of Tank L and Tank S and their correlation with the potassium concentrations.
Table A2. The average spectral intensity for each channel per day according to the combined data of Tank L and Tank S and their correlation with the potassium concentrations.
Spectral ChannelCorrelationCountLower C.I.Upper C.I.
410 nm−0.15212−0.6670.463
435 nm0.17212−0.4460.679
460 nm−0.412−0.7920.226
485 nm−0.30712−0.7490.324
510 nm−0.08212−0.6260.516
535 nm−0.80312−0.943−0.425
560 nm−0.42512−0.8030.197
585 nm0.02112−0.560.588
610 nm−0.40512−0.7940.221
645 nm−0.17412−0.680.444
680 nm0.08512−0.5140.628
705 nm−0.38112−0.7840.247
730 nm−0.02112−0.5880.56
760 nm0.05812−0.5340.611
810 nm−0.41412−0.7980.209
860 nm0.621120.0730.881
900 nm0.212−0.4220.694
940 nm0.43912−0.180.809

References

  1. Despommier, D. The Vertical Farm: Feeding the World in the 21st Century; St. Martin’s Press: New York, NY, USA, 2010. [Google Scholar]
  2. Duan, Y.E. Research on IOT Technology and IOT’s Application in Urban Agriculture. Adv. Mater. Res. 2012, 457–458, 785–791. [Google Scholar]
  3. Takagaki, M.; Hara, H.; Kozai, T. Micro- and Mini-PFALs for Improving the Quality of Life in Urban Areas; Elsevier Inc.: Amsterdam, The Netherlands, 2020; ISBN 9780128166918. [Google Scholar]
  4. Stevens, J.D.; Murray, D.; Diepeveen, D.; Toohey, D. Adaptalight: An Inexpensive PAR Sensor System for Daylight Harvesting in a Micro Indoor Smart Hydroponic System. Horticulturae 2022, 8, 105. [Google Scholar] [CrossRef]
  5. Nicola, S.; Ferrante, A.; Cocetta, G.; Bulgari, R.; Nicoletto, C.; Sambo, P.; Ertani, A. Food Supply and Urban Gardening in the Time of COVID-19. Bull. Univ. Agric. Sci. Vet. Med. Cluj-Napoca Hortic. 2020, 77, 141. [Google Scholar] [CrossRef]
  6. Mullins, L.; Charlebois, S.; Finch, E.; Music, J. Home food gardening in Canada in response to the COVID-19 pandemic. Sustainability 2021, 13, 3056. [Google Scholar] [CrossRef]
  7. Lal, R. Home gardening and urban agriculture for advancing food and nutritional security in response to the COVID-19 pandemic. Food Secur. 2020, 12, 871–876. [Google Scholar] [CrossRef]
  8. Katz, H. Crisis Gardening: Addressing Barriers to Home Gardening during the COVID-19 Pandemic; The Austrailan Food Network: Melbourne, Australia, 2020; pp. 1–47. [Google Scholar]
  9. Pulighe, G.; Lupia, F. Food First: COVID-19 Outbreak and Cities Lockdown a Booster for a Wider Vision on Urban Agriculture. Sustainability 2020, 12, 5012. [Google Scholar] [CrossRef]
  10. Chenarides, L.; Grebitus, C.; Lusk, J.L.; Printezis, I. Who practices urban agriculture? An empirical analysis of participation before and during the COVID-19 pandemic. Agribusiness 2021, 37, 142–159. [Google Scholar] [CrossRef]
  11. Ferrer, E.C.; Rye, J.; Brander, G.; Savas, T.; Chambers, D.; England, H.; Harper, C. Personal Food Computer: A new device for controlled-environment agriculture. In Proceedings of the Future Technologies Conference (FTC 2018), Vancouver, Canada, 15–16 November 2018; Arai, K., Bhaitia, R., Kapoor, S., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 1077–1096. [Google Scholar]
  12. Stevens, J.D.; Shaikh, T. MicroCEA: Developing a Personal Urban Smart Farming Device. In Proceedings of the 2018 2nd International Conference on Smart Grid and Smart Cities (ICSGSC), Kuala Lumpur, Malaysia, 12–14 August 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 49–56. [Google Scholar]
  13. Sambo, P.; Nicoletto, C.; Giro, A.; Pii, Y.; Valentinuzzi, F.; Mimmo, T.; Lugli, P.; Orzes, G.; Mazzetto, F.; Astolfi, S.; et al. Hydroponic Solutions for Soilless Production Systems: Issues and Opportunities in a Smart Agriculture Perspective. Front. Plant Sci. 2019, 10, 923. [Google Scholar] [CrossRef]
  14. Asaduzzaman, M.; Niu, G.; Asao, T. Editorial: Nutrients Recycling in Hydroponics: Opportunities and Challenges toward Sustainable Crop Production under Controlled Environment Agriculture. Front. Plant Sci. 2022, 13, 403. [Google Scholar] [CrossRef]
  15. Jung, D.H.; Kim, H.J.; Choi, G.L.; Ahn, T.I.; Son, J.E.; Sudduth, K.A. Automated Lettuce Nutrient Solution Management Using an Array of Ion-Selective Electrodes. Trans. ASABE 2015, 58, 1309–1319. [Google Scholar] [CrossRef]
  16. Song, L.; Larkin, M. MIT Media Lab Dumped Chemicals in Excess of Legal Limit, Keeping Regulators In The Dark Edify. Available online: https://www.wbur.org/edify/2019/09/20/open-agriculture-initiative-middleton-harper (accessed on 17 July 2020).
  17. Yanes, A.R.; Martinez, P.; Ahmad, R. Towards automated aquaponics: A review on monitoring, IoT, and smart systems. J. Clean. Prod. 2020, 263, 121571. [Google Scholar] [CrossRef]
  18. Terence, S.; Purushothaman, G. Systematic review of Internet of Things in smart farming. Trans. Emerg. Telecommun. Technol. 2020, 31, e3958. [Google Scholar] [CrossRef]
  19. Resh, H.M. Hydroponics for the Home Grower; CRC Press Taylor & Francis Group: Boca Raton, FL, USA, 2015; ISBN 9781482239263. [Google Scholar]
  20. Gutiérrez, M.; Alegret, S.; Cáceres, R.; Casadesús, J.; Marfà, O.; del Valle, M. Application of a potentiometric electronic tongue to fertigation strategy in greenhouse cultivation. Comput. Electron. Agric. 2007, 57, 12–22. [Google Scholar] [CrossRef]
  21. Rius-Ruiz, F.X.; Andrade, F.J.; Riu, J.; Rius, F.X. Computer-operated analytical platform for the determination of nutrients in hydroponic systems. Food Chem. 2014, 147, 92–97. [Google Scholar] [CrossRef]
  22. Cho, W.J.; Kim, H.; Jung, D.H.; Kang, C.I.; Choi, G.; Son, J. An Embedded System for Automated Hydroponic Nutrient Solution Management. Trans. ASABE 2017, 60, 1083–1096. [Google Scholar] [CrossRef]
  23. Richa, A.; Fizir, M.; Touil, S. Advanced monitoring of hydroponic solutions using ion-selective electrodes and the internet of things: A review. Environ. Chem. Lett. 2021, 19, 3445–3463. [Google Scholar] [CrossRef]
  24. Yousuf, M.F.; Mahmud, M.S. Review on Detection Methods of Nitrogen Species in Air, Soil and Water. Nitrogen 2022, 3, 8. [Google Scholar] [CrossRef]
  25. Jung, D.; Kim, H.-J.; Kim, H.; Choi, J.; Kim, J.; Park, S. Fusion of Spectroscopy and Cobalt Electrochemistry Data for Estimating Phosphate Concentration in Hydroponic Solution. Sensors 2019, 19, 2596. [Google Scholar] [CrossRef]
  26. Silva, G.M.E.; Campos, D.F.; Brasil, J.A.T.; Tremblay, M.; Mendiondo, E.M.; Ghiglieno, F. Advances in Technological Research for Online and In Situ Water Quality Monitoring—A Review. Sustainability 2022, 14, 5059. [Google Scholar] [CrossRef]
  27. Thakur, A.; Devi, P. A Comprehensive Review on Water Quality Monitoring Devices: Materials Advances, Current Status, and Future Perspective. Crit. Rev. Anal. Chem. 2022, 1–26. [Google Scholar] [CrossRef]
  28. Tabacco, M.B.; DiGiuseppe, T.G. Optical chemical sensors for environmental control and system management. Adv. Space Res. 1996, 18, 125–134. [Google Scholar] [CrossRef] [PubMed]
  29. Tuan, V.N.; Dinh, T.D.; Khattak, A.M.; Zheng, L.; Chu, X.; Gao, W.; Wang, M. Multivariate Standard Addition Cobalt Electrochemistry Data Fusion for Determining Phosphate Concentration in Hydroponic Solution. IEEE Access 2020, 8, 28289–28300. [Google Scholar] [CrossRef]
  30. Silva, A.F.; Löfkvist, K.; Gilbertsson, M.; Van Os, E.; Franken, G.; Balendonck, J.; Pinho, T.M.; Boaventura-Cunha, J.; Coelho, L.; Jorge, P.; et al. Hydroponics Monitoring through UV-Vis Spectroscopy and Artificial Intelligence: Quantification of Nitrogen, Phosphorous and Potassium. In Proceedings of the 1st International Electronic Conference on Chemical Sensors and Analytical Chemistry, online, 1–15 July 2021; MDPI: Basel, Switzerland, 2021; p. 88. [Google Scholar]
  31. Monteiro-Silva, F.; Jorge, P.A.S.; Martins, R.C. Optical Sensing of Nitrogen, Phosphorus and Potassium: A Spectrophotometrical Approach toward Smart Nutrient Deployment. Chemosensors 2019, 7, 51. [Google Scholar] [CrossRef]
  32. Harper, C.; Siller, M. OpenAG: A Globally Distributed Network of Food Computing. IEEE Pervasive Comput. 2015, 14, 24–27. [Google Scholar] [CrossRef]
  33. Johnson, A.; Meyerson, E.; de la Parra, J.; Savas, T.; Miikkulainen, R.; Harper, C. Flavor-Cyber-Agriculture: Optimization of plant metabolites in an open-source control environment through surrogate modeling. bioRxiv 2018. [Google Scholar] [CrossRef]
  34. Collette, T.W.; Williams, T.L.; Urbansky, E.T.; Magnuson, M.L.; Hebert, G.N.; Strauss, S.H. Analysis of hydroponic fertilizer matrixes for perchlorate: Comparison of analytical techniques. Analyst 2003, 128, 88–97. [Google Scholar] [CrossRef]
  35. Fan, R.; Yang, X.; Xie, H.; Reeb, M.-A. Determination of nutrients in hydroponic solutions using mid-infrared spectroscopy. Sci. Hortic. 2012, 144, 48–54. [Google Scholar] [CrossRef]
  36. Modu, F.; Aliyu, F.; Mabu, A. A Survey of Smart Hydroponic Systems. Adv. Sci. Technol. Eng. Syst. J. 2020, 5, 233–248. [Google Scholar] [CrossRef]
  37. García, L.; Parra, L.; Jimenez, J.M.; Lloret, J.; Lorenz, P. IoT-based smart irrigation systems: An overview on the recent trends on sensors and iot systems for irrigation in precision agriculture. Sensors 2020, 20, 1042. [Google Scholar] [CrossRef]
  38. Bamsey, M.; Berinstain, A.; Dixon, M. Development of a potassium-selective optode for hydroponic nutrient solution monitoring. Anal. Chim. Acta 2012, 737, 72–82. [Google Scholar] [CrossRef]
  39. Bamsey, M.T.; Berinstain, A.; Dixon, M.A. Calcium-selective optodes for the management of plant nutrient solutions. Sens. Actuators B Chem. 2014, 190, 61–69. [Google Scholar] [CrossRef]
  40. Pap, L.G. An Inexpensive 3D-Printable Do-It-Yourself Visible Spectrophotometer for Online, Hybrid, and Classroom-Based Learning. J. Chem. Educ. 2021, 98, 2584–2591. [Google Scholar] [CrossRef]
  41. Alhamdi, N.A.; Aboudiah, M.J. Implementation of LED Based Spectrophotometer using SoC_FPGA. In Proceedings of the 2021 IEEE 1st International Maghreb Meeting of the Conference on Sciences and Techniques of Automatic Control and Computer Engineering MI-STA, Tripoli, Libya, 25–27 May 2021; IEEE: Piscataway, NJ, USA, 2021; pp. 166–170. [Google Scholar]
  42. Díaz-Vázquez, L.M.; Ortiz-Andrade, B.M.; Kovarik, M.L.; Morris, M.L. Active Learning Exercises Involving Building and Design. ACS Symp. Ser. 2022, 1409, 181–204. [Google Scholar] [CrossRef]
  43. Emmanuel, N.; Nair, R.B.; Abraham, B.; Yoosaf, K. Fabricating a Low-Cost Raman Spectrometer to Introduce Students to Spectroscopy Basics and Applied Instrument Design. J. Chem. Educ. 2021, 98, 2109–2116. [Google Scholar] [CrossRef]
  44. Han, H.; Jung, D.-H.; Kim, H.-J.; Lee, T.S.; Kim, H.S.; Kim, H.-Y.; Park, S.H. Application of a Spectroscopic Analysis-Based Portable Sensor for Phosphate Quantitation in Hydroponic Solutions. J. Sens. 2020, 2020, 9251416. [Google Scholar] [CrossRef]
  45. Corbari, C.; Paciolla, N.; Ben Charfi, I.; Skokovic, D.; Sobrino, J.A.; Woods, M. Citizen science supporting agricultural monitoring with hundreds of low-cost sensors in comparison to remote sensing data. Eur. J. Remote Sens. 2022, 55, 388–408. [Google Scholar] [CrossRef]
  46. Bruzzese, R.; Chatzigiannakis, I.; Vitaletti, A. Monitoring Water Quality with a Spectrophotometer: A Proof of Concept of a Smart Buoy. In Proceedings of the 2022 IEEE International Conference on Pervasive Computing and Communications Workshops and Other Affiliated Events (PerCom Workshops), Pisa, Italy, 21–25 March 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 457–462. [Google Scholar]
  47. Saeys, W.; Xing, J.; De Baerdemaeker, J.; Ramon, H. Comparison of Transflectance and Reflectance to Analyse Hog Manures. J. Near Infrared Spectrosc. 2005, 13, 99–107. [Google Scholar] [CrossRef]
  48. Feng, X.; Larson, R.A.; Digman, M.F. Evaluation of Near-Infrared Reflectance and Transflectance Sensing System for Predicting Manure Nutrients. Remote Sens. 2022, 14, 963. [Google Scholar] [CrossRef]
  49. Grosjean, A.; Soum-Glaude, A.; Thomas, L. Replacing silver by aluminum in solar mirrors by improving solar reflectance with dielectric top layers. Sustain. Mater. Technol. 2021, 29, e00307. [Google Scholar] [CrossRef]
  50. Takeuchi, Y. 3D Printable Hydroponics: A Digital Fabrication Pipeline for Soilless Plant Cultivation. IEEE Access 2019, 7, 35863–35873. [Google Scholar] [CrossRef]
  51. Cecil, F.; Guijt, R.M.; Henderson, A.D.; Macka, M.; Breadmore, M.C. One step multi-material 3D printing for the fabrication of a photometric detector flow cell. Anal. Chim. Acta 2020, 1097, 127–134. [Google Scholar] [CrossRef] [PubMed]
  52. Brechner, M.; Both, A.; Cornell CEA Staff. Hydroponic Lettuce Handbook. Cornell Control. Environ. Agric. 1996, 834, 504–509. [Google Scholar]
  53. Kozai, T.; Niu, G.; Takagaki, M. Plant Factory: An Indoor Vertical Farming System for Efficient Quality Food Production, 2nd ed.; Academic Press: Cambridge, MA, USA, 2019; ISBN 9780128017753. [Google Scholar]
  54. Paz, M.; Fisher, P.R.; Gómez, C. Minimum Light Requirements for Indoor Gardening of Lettuce. Urban Agric. Reg. Food Syst. 2019, 4, 1–10. [Google Scholar] [CrossRef]
  55. Pantanella, E.; Cardarelli, M.; Colla, G.; Rea, E.; Marcucci, A. Aquaponics vs. Hydroponics: Production and Quality of Lettuce Crop. Acta Hortic. 2012, 927, 887–894. [Google Scholar] [CrossRef]
  56. Kozai, T. (Ed.) Smart Plant Factory; Springer: Singapore, 2018; ISBN 978-981-13-1064-5. [Google Scholar]
  57. Gore, M. Spectrophotometry and Spectrofluorimetry a Practical Approach; Oxford University Press: Oxford, UK, 2000. [Google Scholar]
  58. Brito, R.S.; Pinheiro, H.M.; Ferreira, F.; Matos, J.S.; Pinheiro, A.; Lourenço, N.D. Calibration Transfer between a Bench Scanning and a Submersible Diode Array Spectrophotometer for In Situ Wastewater Quality Monitoring in Sewer Systems. Appl. Spectrosc. 2016, 70, 443–454. [Google Scholar] [CrossRef]
  59. Maribas, A.; Da Silva, M.D.C.L.; Laurent, N.; Loison, B.; Battaglia, P.; Pons, M.N. Monitoring of rain events with a submersible UV/VIS spectrophotometer. Water Sci. Technol. 2008, 57, 1587–1593. [Google Scholar] [CrossRef]
  60. Yan, H.; Siesler, H.W. Hand-held near-infrared spectrometers: State-of-the-art instrumentation and practical applications. NIR News 2018, 29, 8–12. [Google Scholar] [CrossRef]
  61. Beć, K.B.; Grabska, J.; Siesler, H.W.; Huck, C.W. Handheld near-infrared spectrometers: Where are we heading? NIR News 2020, 31, 28–35. [Google Scholar] [CrossRef] [Green Version]
  62. Chimenti, R.V. The new technologies shaping near-infrared spectroscopy. Photonics Spectra 2020, 54, 56–60. [Google Scholar]
Figure 1. Unsealed acrylic boxes used for determining thickness. From left to right: 3 mm, 2.5 mm, and 2 mm. The same sensor was placed in each box and tested.
Figure 1. Unsealed acrylic boxes used for determining thickness. From left to right: 3 mm, 2.5 mm, and 2 mm. The same sensor was placed in each box and tested.
Horticulturae 09 00185 g001
Figure 2. AS7265x waterproofed in 2 mm case, sealed with acrylic adhesive and epoxy resin.
Figure 2. AS7265x waterproofed in 2 mm case, sealed with acrylic adhesive and epoxy resin.
Horticulturae 09 00185 g002
Figure 3. The experimental setup for testing the effectiveness of the reflective and transflective spectrophotometric techniques.
Figure 3. The experimental setup for testing the effectiveness of the reflective and transflective spectrophotometric techniques.
Horticulturae 09 00185 g003
Figure 4. NutriSpec sensor printed housing, cross-section, and 3D diagram. Mirror and sensor were placed in special slots 5 mm apart inside the housing.
Figure 4. NutriSpec sensor printed housing, cross-section, and 3D diagram. Mirror and sensor were placed in special slots 5 mm apart inside the housing.
Horticulturae 09 00185 g004
Figure 5. Hardware and software architecture of the NutriSpec sensor system.
Figure 5. Hardware and software architecture of the NutriSpec sensor system.
Horticulturae 09 00185 g005
Figure 6. Experimental setup; bed A and B were swapped with each other at day 15.
Figure 6. Experimental setup; bed A and B were swapped with each other at day 15.
Horticulturae 09 00185 g006
Figure 7. Nitrate nitrogen levels in mg/l for both tanks over the 28-day experiment.
Figure 7. Nitrate nitrogen levels in mg/l for both tanks over the 28-day experiment.
Horticulturae 09 00185 g007
Figure 8. Experimental setup in residential flat. Photo taken in week three.
Figure 8. Experimental setup in residential flat. Photo taken in week three.
Horticulturae 09 00185 g008
Figure 9. Tank L spectral absorbance rates over 28 days, plotted by wavelength.
Figure 9. Tank L spectral absorbance rates over 28 days, plotted by wavelength.
Horticulturae 09 00185 g009
Figure 10. Tank L actual nitrogen plotted against the predicted nitrogen using the MLR model.
Figure 10. Tank L actual nitrogen plotted against the predicted nitrogen using the MLR model.
Horticulturae 09 00185 g010
Figure 11. Tank S spectral absorbance rates over 28 days, plotted by wavelength.
Figure 11. Tank S spectral absorbance rates over 28 days, plotted by wavelength.
Horticulturae 09 00185 g011
Figure 12. Tank S actual nitrogen plotted against the predicted nitrogen using the MLR model.
Figure 12. Tank S actual nitrogen plotted against the predicted nitrogen using the MLR model.
Horticulturae 09 00185 g012
Figure 13. Leaking sensor box, two days after the completion of the experiment.
Figure 13. Leaking sensor box, two days after the completion of the experiment.
Horticulturae 09 00185 g013
Table 1. Literature on applied spectroscopy for monitoring hydroponic nutrient solutions.
Table 1. Literature on applied spectroscopy for monitoring hydroponic nutrient solutions.
StudyOptical Sensor
M. Bamsey et al., 2012 [38]Ocean Optics USB4000-FL Spectrometer
M. T. Bamsey et al., 2014 [39]Ocean Optics USB4000-FL Spectrometer
D. Jung et al., 2019 [25]Control Development NIR128L
Monteiro-Silva et al., 2019 [31]Ocean Optics HR4000 Spectrometer
A. F. Silva et al., 2021 [30]Ocean Insight STS-UV-L-50-400
Han et al., 2020 [44]Public Lab Store JDEPC-OV04 USB Camera
Table 2. Comparison of descriptive statistics of the raw spectral intensity readings grouped by color. Three conditions were examined: an empty beaker, 500 mL of drinking water, and 500 mL of distilled water.
Table 2. Comparison of descriptive statistics of the raw spectral intensity readings grouped by color. Three conditions were examined: an empty beaker, 500 mL of drinking water, and 500 mL of distilled water.
MeanStd DevMinMax
EmptyBlue410 nm to 510 nm78.700.6177.679.82
Green535 nm to 585 nm51.080.4050.1651.7
Red610 nm to 730 nm49.850.7848.5150.81
IR760 nm to 940 nm34.420.0934.4034.84
DrinkingBlue410 nm to 510 nm98.280.5095.3897.40
Green535 nm to 585 nm47.170.3446.4048.03
Red610 nm to 730 nm40.071.2238.1043.15
IR760 nm to 940 nm24.400.1823.9524.63
DistilledBlue410 nm to 510 nm90.140.7388.6491.68
Green535 nm to 585 nm48.140.5247.5349.26
Red610 nm to 730 nm40.051.1438.7843.65
IR760 nm to 940 nm24.220.1124.2024.63
Table 3. Comparison of the means of raw spectral intensity for each color group of the AS7265x. The 18 spectral channels were grouped by five colors, and the average is shown below. The 2 mm box was the closest to the raw sensor readings.
Table 3. Comparison of the means of raw spectral intensity for each color group of the AS7265x. The 18 spectral channels were grouped by five colors, and the average is shown below. The 2 mm box was the closest to the raw sensor readings.
No Box2 mm2.5 mm3 mm
Blue410 nm to 510 nm2.3360.0277.3288.65
Green535 nm to 585 nm4.2731.1438.7656.30
Red610 nm to 730 nm5.2329.2335.4455.48
IR760 nm to 940 nm4.662122.8930.45
Table 4. Nutrient break down for Greenoponics Growth XL hydroponic nutrient solutions.
Table 4. Nutrient break down for Greenoponics Growth XL hydroponic nutrient solutions.
Nutrient ANutrient B
Total Nitrogen3.78%Phosphorus (P2O5)3.5%
Nitrate3.5%Potassium (K2O)5%
Ammoniacal0.27%Magnesium (MgO)2%
Calcium (CaO)6%Copper (Cu)100 ppm
Iron (Fe)1100 ppmManganese (Mn)230 ppm
Zinc (Zn)130 ppm
Table 5. Means of the temperature and pH for Tank L and Tank S during the 28-day experiment.
Table 5. Means of the temperature and pH for Tank L and Tank S during the 28-day experiment.
MeanStd. DevMinMax
Tank LpH6.010.235.617
Temp25.060.5724.4327.5
Tank SpH6.000.295.607
Temp25.560.5024.6627.6
Table 6. Total fresh and dry weight from the 28-day experiment.
Table 6. Total fresh and dry weight from the 28-day experiment.
TrayBedFresh WeightDry Weight
Tray SA204.77.01
B178.48.19
Total Weight383.115.2
Tray LA333.313.75
B350.216.05
Total Weight683.529.8
Table 7. Tank L MLR coefficients. Three wavelengths (560 nm, 645 nm, and 810 nm) were excluded from the model due to high collinearity.
Table 7. Tank L MLR coefficients. Three wavelengths (560 nm, 645 nm, and 810 nm) were excluded from the model due to high collinearity.
80 LCoefficientStd ErrorStandardized CoefficientstSig
Intercept−66.186115.005 −0.5760.574
410 nm−0.0440.026−3.635−1.6730.116
435 nm0.2960.5412.2830.5470.593
460 nm0.3610.2255.2651.6050.131
485 nm−0.0590.036−2.06−1.6260.126
510 nm−0.0010.026−0.036−0.0290.977
535 nm−0.0560.06−1.554−0.9350.366
585 nm−0.0750.075−5.115−0.990.339
610 nm0.0540.3390.8660.1580.877
680 nm0.0250.0721.9090.3410.738
705 nm0.2470.3211.6410.770.454
730 nm−0.4090.91−2.202−0.4490.66
760 nm−0.0730.1−3.647−0.7280.479
860 nm0.2220.2782.1420.80.437
900 nm−0.0930.373−0.963−0.2490.807
940 nm0.1910.2121.5580.9010.383
Table 8. Tank S MLR coefficients. All coefficients were included in the model.
Table 8. Tank S MLR coefficients. All coefficients were included in the model.
40 LCoefficientStd ErrorStandardized CoefficientstSig
Intercept1913.2471669.282 1.1460.276
410 nm0.180.137.2241.390.192
435 nm0.02713.9760.0050.0020.998
460 nm−1.61.207−9.106−1.3250.212
485 nm0.1430.1841.4250.7750.455
510 nm1.3920.7434.6371.8730.088
535 nm−0.1420.535−0.637−0.2650.796
560 nm−0.0560.105−1.771−0.5330.605
585 nm−0.7264.882−0.309−0.1490.885
610 nm2.6016.4861.1660.4010.696
645 nm−0.280.618−0.569−0.4520.66
680 nm−7.2617.315−3.272−0.9930.342
705 nm0.6892.8520.2590.2420.813
730 nm−5.90626.028−1.097−0.2270.825
760 nm1.7792.8781.3520.6180.549
810 nm1.2261.7560.5180.6980.499
860 nm−0.2913.648−0.092−0.080.938
900 nm−1.4392.403−0.665−0.5990.561
940 nm−0.674.096−0.228−0.1640.873
Table 9. Comparison of the most accurate wavelengths for Tank S and Tank L.
Table 9. Comparison of the most accurate wavelengths for Tank S and Tank L.
Tank STank L
λInfluenceSEλInfluenceSE
560 nm−0.050.10410 nm−0.040.02
410 nm0.180.13510 nm0.000.02
485 nm0.140.18485 nm−0.060.03
535 nm−0.140.53535 nm−0.050.06
645 nm−0.280.61585 nm−0.070.07
510 nm1.390.74680 nm0.020.07
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Stevens, J.D.; Murray, D.; Diepeveen, D.; Toohey, D. Development and Testing of an IoT Spectroscopic Nutrient Monitoring System for Use in Micro Indoor Smart Hydroponics. Horticulturae 2023, 9, 185. https://doi.org/10.3390/horticulturae9020185

AMA Style

Stevens JD, Murray D, Diepeveen D, Toohey D. Development and Testing of an IoT Spectroscopic Nutrient Monitoring System for Use in Micro Indoor Smart Hydroponics. Horticulturae. 2023; 9(2):185. https://doi.org/10.3390/horticulturae9020185

Chicago/Turabian Style

Stevens, Joseph D, David Murray, Dean Diepeveen, and Danny Toohey. 2023. "Development and Testing of an IoT Spectroscopic Nutrient Monitoring System for Use in Micro Indoor Smart Hydroponics" Horticulturae 9, no. 2: 185. https://doi.org/10.3390/horticulturae9020185

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

Article Metrics

Back to TopTop