1. Introduction
The Californian red worm has been examined in many regions of the world because it is a species with a high concentration of nutrients and a high reproductive rate when compared to other types of worms [
1,
2,
3]. Numerous studies have been conducted to determine the various kinds of worms used in worm farming [
4,
5], and it appears that the California red worm is the best species for this kind of activity [
6,
7,
8]. Worm farming is an activity which has been engaged in for 50 years in the United States, and it is also a very significant activity in Mexico [
9]. In addition, many of the studies that were looked at show how the worm behaves in various temperatures and levels of humidity, but few record how the pH behaves, and a wide variety of studies looked at the possibility of improving the conditions for reproduction under various types of nutrition [
10].
In the department of Norte de Santander, there are some associated production units that are dedicated to vermiculture and that present the need to increase production to cover the departmental demand and open national and international markets. Starting from an evaluation of opportunities to improve the farms, the need arises to identify optimal conditions to ensure that the Californian red worm reproduces in greater quantities over time under the current conditions of the city, which would allow the consideration of new ventures and greater competitiveness.
Numerous studies focusing on applications, experimentation, and research in the realm of applied sciences have also been conducted [
11,
12,
13]. Similarly, technological development today is one of the greatest sources of wealth for nations, as long as it is applied to the service of solutions to social, economic, and environmental problems [
14,
15,
16]. In addition, the Internet of Things (IoT) represents a potential system to collect information in agriculture situations in real time [
17,
18,
19,
20,
21]. In this sense, the IoT system continuously monitors and maintains the necessary parameters at optimal levels, reducing the need for human involvement in the process of vermicomposting [
22].
According to the literature review, there are three gaps that need to be addressed:
The motivation of this work is to find a model that is able to take into consideration data obtained directly from system sensors for vermiculture production based on the estimated model, and at the same time handle statistical information. In this regard, the contributions provided in this paper are listed as follows:
Identify through the literature review the levels of factors that affect the reproduction of the Californian red worm.
Analyze the effect of the factors (Humidity, Temperature, pH, and Type of food) and their levels on the reproduction of the Californian red worm.
Create a monitoring system for vermiculture production based on an IoT system.
Figure 1 depicts the graphical user interface of the system.
Finally, provide a validation of the monitoring system via statistical and comparative study using the TODIM method.
2. Methodology
In this section, the methodology proposed is presented.
Figure 2 depicts the flowchart explaining the steps of the methodology used.
Step 1: Ethical considerations: In accordance with Resolution 008430 of 1993—article 11 of the Ministry of Health, the risks of an investigation are classified as: without risk, minimal risk and high risk. This research is classified among the projects without risk, because it does not work on the human being, nor is any intentional intervention or modification made to the biological, physiological, psychological or social variables of the individuals participating in the study.
In accordance with article 87 of this same resolution, it is specified that the animals that will be taken into account for this project will not suffer physical alterations nor will their bodies be intervened with to obtain information. An observation will be made on variables such as temperature which are not lethal and do not cause episodes of distress to the animal.
Under Russel and Burch’s 3R principle, this research uses the reduction alternatives that refer to any strategy that results in the use of a smaller number of animals to obtain sufficient data to answer the question investigated, which in this case is the maximization of reproduction, in order to potentially limit or prevent further use by other animals without compromising animal welfare. Taking into account Law 84 of 1989, this project does not cause harm to an animal nor does it contemplate behaviors considered cruel to the worms under study, nor will animal sacrifice actions be carried out since their behavior is only observed in their natural state.
Step 2: Determine the variable of control of the experiment. In this mode, the experimental units, responses and variables need to be identified.
The experimental unit is the Californian red worm and the response variable is the weight of the beds in kg. The generic diagram of the experiment can be seen in
Figure 3.
In this mode, the mathematical expression can be documented in Equation (
1).
where
- 1.
: Represents the solutions obtained from the calculations, where an optimal solution is desired.
- 2.
: Corresponds to the humidity factor.
- 3.
: Belongs to the temperature factor of the system.
- 4.
: Represents the time factor.
- 5.
: Describes the equipment used to build the system.
- 6.
: Represents the environmental conditions.
- 7.
: Depicts the circle of life beds of the system.
Step 3: Establish a design of experiments.
The application of factorial design of experiments is used to find the best levels of the variables. The operator of the association’s worm beds will be in charge of taking the data at the times established by the work team. During data collection, the basic principles of the design of experiments will be guaranteed as follows:
Randomization: With the help of the R software 4.3.1, the order in which the configuration of the factor levels is assigned among the 36 beds is obtained, which is done randomly. This will guarantee the independence of the observations.
Replication: According to the data in the problem statement, factor
has three levels, as well as factors
, and
, which results in the calculation of the total number of observations shown in Equation (
2), where n is the number of replicas which is four; in this experiment, it is possible to find an experimental error for each sample and the sources of variability are found in each replica taken by combination. This ensures replication as a principle.
Blocking: To guarantee the blocking principle, certain aspects must be taken into account. For example, the species of the worms must be the same (California red); it is important to maintain the same supplier of worms and supplier of food for each type selected; water that is supplied to the beds must be obtained from the same place; and the use of the same supplier of the measurement equipment installed in each bed must be guaranteed.
Step 4: Implement the system of automation and control of variables:
Within the framework of the field visit to the farm where the automation of the prototype of the irrigation system is carried out to control the temperature and humidity variables of vermiculture, the electronic and communications system was implemented through the TTGO programmable card for real-time monitoring of the system.
After making adjustments, the system is implemented in the vermiculture and the corresponding electrical connections are established for the connection of automated irrigation and the reading of the variables. In this mode, the following
Figure 4 shows the installation of the system:
Finally, the Internet connection of the TTGO programmable card is verified to receive the data through the advances generated in the development of the web platform, such as system plan images. The sensor is installed 10 cm from the ground or soil where the worms are. The sensor is a DTH22 type with a −40 °C to 80 °C temperature range and a 0.5 °C precision. It has a precision of 2% RH and a humidity range of 0 to 100% RH. Therefore, the influence or impact of weather on the measurements is not taken into account. The sensor is also placed 10 cm from the test ground. The experiment location has a roof and is surrounded by trees, providing protection from rain and solar radiation.
Figure 5 depicts the diagram of the system connection.
In this mode, the explanation in detail is presented as follows:
- 1.
The TTGO development board is the main controller and communication system of the system because it contains various modules. It is responsible for reading the signals from the sensors to activate or deactivate the actuators, according to the rules defined by the user through the ESP32 module. Likewise, it is in charge of making the Internet connection through the Wi-Fi module, to send the data on temperature, humidity and status of the actuators, updating the information every 5 min in the cloud; the information is visible on the web through the platform ubidots on smartphones or computers. It is powered by a 3.7 to 4.2 VDC battery.
- 2.
The DTH22 sensor allows monitoring of temperature and relative humidity; it works with levels from 3 to 6 VDC, which allows the use of the 5 VDC power pins of the TTGO card. It can measure temperatures between −40 and 80 °C and humidity from 0 to 100%. The information about the measured variables is delivered digitally, so a communication interface with the TTGO card is not necessary.
- 3.
The two-channel relay module is used to activate the irrigation pump. It connects with the TTGO card to receive the activation control signals and power through its VCC GND, and signal terminals. It has the function of making the connection between the control stage of the TTGO card and the power stage of the water pump, since it has opto-couplers that allow the protection of the card from power voltages and handle loads with a maximum current of 10 A and up to 250 VAC.
- 4.
The water pump works as the actuator of the system to provide humidity; it works with AC current, and its power is half a horsepower. It is controlled from the TTGO card through the two-channel relay module.
- 5.
The temperature and humidity data that are measured with the DTH22 sensor are sent by Wi-Fi communication using the TTGO card. Programming with the Arduino interface is used for the tasks of communication, storage and visualization of the data. For Wi-Fi communication, the ESP32 module and the internal Wi-Fi module are programmed on the TTGO card. Likewise, through Arduino libraries, the Ubidots IoT software is used where the sensor data are stored and displayed through the Ubidots user interface on computers or smartphones.
- 6.
The DHT22 sensor has an accuracy of 0.5 °C, which allows for very accurate temperature readings, unlike commercial sensors such as the DHT11 that have an accuracy of 2 °C. On the other hand, the TTGO card has several modules to be used in different functions, such as ESP32, LORA communication, WI-FI. It incorporates GPS and multiple inputs and outputs to work with analog and digital signals, and a battery power supply; this allows the card to be deployed in any rural environment and to use the most convenient communication. The technologies that merge in this research are IoT and agriculture, since telecommunications, electronics and agriculture sciences are used to improve humus production.
- 7.
The water was sprayed in the form of a mist using plastic nebulizer sprinklers so that the moisture stayed on the surface and the worms were always at the top, eating the food and depositing the fertilizer at the bottom. If any errors are discovered, the watchdog will reset the system.
The recording of the data in reading the variables in real time through a mobile device is evidenced.
Figure 6 depicts the project, which is developed with seven worm beds; each bed has an area of 24 m
(2 m wide × 12 m long).
Figure 6 depicts how cow excrement is used as worm food. After wetting and drying the manure, it is allowed to rest for two to three weeks so that the gastric acids from the cattle can be removed before the worms use it as food. Worms typically consume 250 kg of food per month, but once the system was installed, this amount climbed to an average of 650 kg per month, which shortened the time it took to produce humus or compost.
Step 5: Defining the path of data analysis:
Construct the instrument to collect the information. For data collection, temperature and humidity sensors and weight scales will be implemented. The measurements will be carried out by the same operator daily and will be recorded in a technical sheet designed by the authors.
For the analysis of the data collected, it is intended to execute the following route, depicted in
Figure 7, which is aligned with the objectives of the project and allows the expected results to be obtained:
3. Analysis and Discussion of Results
In the bibliographic review, it was found that the factors identified by the vermiculturists have been studied separately. Many studies focus on three of them: temperature, humidity and feeding. The pH was found to be an important factor, but there are no studies that deepen knowledge of this aspect; in the same way, there was no evidence of studies where the interactions of the factors are analyzed.
In
Table 1, you can see the review of some studies and a summary of the main factors studied because they affect in some way the mortality rate of earthworms or their reproduction.
3.1. Identification of Factor Levels
The review of the literature allowed us to identify the factors that influence the mortality rate and the reproduction process of the Californian red worm. It also allows us to estimate some values of the levels of each factor.
Table 2 shows the working values of each factor (humidity and temperature) for each article reviewed.
The feeding factor in each of the articles varies; each experiment used different diets and concluded if they were satisfactory or not.
Table 3 shows the different feeding options found.
In summary,
Table 4 defines the levels to be evaluated in the experiment taking into account the results presented in each study of the bibliographic review, the experience of the animalist of the association of worm farmers and the repetition of these values.
3.2. Analysis and Discussion of Results
The analysis below will be performed taking into account the factors that were used for the design of the experiment.
Table 5 depicts a summary of the main factors. These are: Humidity: this factor contains three levels which are 70, 80 and 89. Temperature: this factor contains three levels which are 15, 20 and 25. Diet: this is a categorical type factor which has three levels: coffee, sheep and bovine averages.
To start, the averages are graphed and the sum of the differences in the mean of the treatments with the global mean is established. In this manner,
Table 6 shows the global averages of the treatments.
3.2.1. Diet Factor
Let
i be the iteration element between the levels of the
(diet factor), then we have that the difference of the averages of the grouped treatments that include each type of diet is obtained with Equation (
3):
In addition, when performing an analysis of the averages and the sum of the difference of squares with the mean, it is observed that the replicas have different levels of results in their relationship with the weight variable, being the “sheep” and “bovine” diets the ones that present a higher average, observing, the sum of squares of the difference with the global average of the data allows identifying important effects, this is visible in the result of the effect of the averages of the diet when comparing it with the global average.
Figure 8 depicts the averages of the grouped treatments.
3.2.2. Moisture Factor
Let
j be the iteration element between the levels of the “humidity” factor; then, we obtain that the difference of the averages of the grouped treatments that include each type of humidity is computed using Equation (
4), where
corresponds to the humidity factor obtained with treatments generated.
An overview of the treatment averages is presented in
Figure 9.
The sums of squares with respect to the global mean for diet are contained in
Table 7. In this mode,
and
are squared differences with the overall mean for the diet types.
The sum of squares measurements of variations or deviations from the general mean for temperature (T) are shown in
Table 8. Likewise,
and
are squared differences with the overall mean related to the temperature levels.
Interaction between factors: Diet ∼ Moisture Interaction
This is defined as the interaction component between “diet” i and “moisture” j “Sheep” diet factor—humidity.
Figure 10 allows us to infer that the level of the temperature factor that registers the greater weight of the bedding is 20 °C.
Thus, regarding the humidity factor, it can also be seen in
Figure 11 that time affects the weight of the beds because the longer the time, the higher the value of the response variable, and it can be seen that the level with the highest value of the response variable is 80% when 28 days have elapsed.
3.3. Comparative Study with Multi-Criteria Using the TODIM Method
The TODIM (an abbreviation for Interactive and Multi-Criteria Decision Making in Portuguese) application is based on a multi-criteria global value function proposed by Gomes and Lima (1991) [
36]. The TODIM method depicts a prominent tool to appraisal MCDM problem situation [
37]. In fact, this mathematic function is built in parts, with their mathematical descriptions reproducing the profit/loss function of prospect theory. The multi-attribute global value function then aggregates all win and loss measures across all criteria.
Step 1: As a first step for the implementation of TODIM, the corresponding decision matrix must be exposed.
Table 9 describes the decision matrix to be with the variable to be analyzed.
Step 2: To make this decision matrix dimensionless and all its elements comparable, we normalize.
Table 10 depicts the normalized decision matrix to capture the weighted information.
Step 3: Determine the degree of dominance of alternative
over alternative
.
Table 11 presents the dominance matrix of the alternative
where the weight vectors
which were computed using the AHP approach will be used for the case study.
Table 12 presents the dominance matrix of the alternative
.
Table 13 presents the dominance matrix of the alternative
.
Table 14 presents the dominance matrix of the alternative
.
Table 15 presents the dominance matrix of the alternative
.
Table 16 presents the dominance matrix of the alternative
.
Table 17 presents the dominance matrix of the alternative
.
Table 18 presents the dominance matrix of the alternative
.
Finally,
Table 19 presents the dominance matrix of the alternative
.
Step 4: The degree of general dominance of the alternative is determined by applying the corresponding equation.
Table 20 presents the overall dominance degrees of the alternatives (levels).
Step 5: Finally, the alternatives are ranked in descending order of their dominance scores and the alternative with the highest dominance score obviously becomes the best option.
Table 21 describes the rankings of the alternatives.
Figure 12 depicts that level N6 denoted in yellow color corresponds to the combination of levels of humidity of 80 and temperature of 25.
Level N6 is equivalent to the optimal decision-making, as shown in
Figure 13.
Finally, the validations of the results are consistent to confirm that level depicts the best solution. The findings obtained with the TODIM method and the statistical tests are significant to validate the results.
4. Conclusions
This research has an exploratory scope with an experimental approach because the state of the worm is not altered to obtain data and the variables are observed as they are generated to validate a model in real time; it has the endorsement of one of the vermiculture companies in the department of Norte de Santander, who lent some beds for the measurement of the variables. The scope is descriptive with the use of quantitative theories for the mathematical modeling of the system. It is intended to describe the optimal state of the observable variables to maximize the production of the Californian red worm.
In real experiments, variables that cannot be controlled but that directly affect the process pH must be taken into account because they must be measured and analyzed in order to generate true conclusions regarding the phenomenon under study. Please note that in our study, only the parameters of temperature, humidity and diet were considered. Monitoring the pH was omitted; in future works, it will be taken into account.
The experiment can be designed with a Box–Behnken approach, taking into account experimental conditions that are not possible to execute in the reality of the process, since this DOE excludes combinations where all factor levels are high and all are low. For this case, the low temperature level (15 °C) was difficult to control, mainly influenced by the ambient temperature (35 °C). Additionally, the design of experiments (DOE) analysis and the TODIM technique validation both significantly reported the same levels.
Finally, we consider that our findings are robust enough to provide a solution to this kind of problem. Additionally, the IoT represents a potential support to monitoring the reproductive conditions of the red worm. In future works, it can be applied to diverse MCDM methods to compare the scenarios and explore which economic factors are involved in the manufacturing process.