Abstract
An unscented Kalman filter can be applied for the experimental learning of the solar dryer for oranges drying and the greenhouse for crop growth to know better the processes and to improve their performances. The contributions of this document are: a) an unscented Kalman filter is designed for the learning of nonlinear functions, b) the unscented Kalman filter is applied for the experimental learning of the two mentioned processes.
Introduction
Due to the population growth and the decrease of available spaces to treat food, it is raising the necessity to carry out research to improve some processes related to food: a solar dryer for oranges drying and a greenhouse for crop growth. Many agricultural products require a post-harvest drying process to properly preserve the products until they reach the consumer centers [1]. The use of greenhouses has become a measure taken for the controlled harvest of various vegetables [2]. Agricultural products offer the alternative to farmers when the price grows caused by overpopulation, and the learning is an important method in the current research of this issue.
The use of solar dryers, where products are directly exposed to the sun on the ground is one of oldest uses of solar energy and is still one of the agricultural processes most commonly used in many countries worldwide. Product quality is affected by the dust and insect contamination. In industrialized regions, the low cost of fuel allowed for several decades, the development of artificial drying processes on a large scale based on the use of fuels. In recent years, the shortage and price increase of fuel has sparked a new interest in the use of solar dryers, which tries to develop various techniques to solve the mentioned problems. Knowledge of solar radiation is essential to calculate various performance levels associated with solar power processes like solar dryers, solar water heaters and photovoltaic processes [3].
The employment of solar dryers through which dry air flows as an effect of natural convection can be an option for solving the problems of agricultural drying in small rural locations. These dryers can be constructed with simple materials and low skilled work, where the air flows by the pressure variations without an electric fan, and pressure variations in the air are caused by differences in temperature and humidity of the drying air and ambient air.
Several solar devices for drying food have been built and tested. In [4], a solar dryer is developed for vegetables by using natural convection to study the performance of drying in tomato and carrot, where a 50% saving in drying time is reported using a solar dryer at an average temperature of 60 o C. In [5], the behavior of dried slices of lemon by using a solar dryer combining a photovoltaic module and a dehumidifier process is studied to remove moisture in the fresh lemon slices; nevertheless, the photovoltaic module increases the total cost of drying by increasing the drying speed, results are compared to a hot air drying at 60°C.
For the control implementation of the main variables related to a greenhouse, it is necessary to have a model to represent the dynamics of the process. The model of [2, 6] is employed because it considers the most significant environmental aspects of a greenhouse.
There is some research about algorithms for the learning of nonlinear processes. In [7, 8], the deep learning method is studied. Machine learning approaches are discussed in [9–12]. In [13, 14], unsupervised learning techniques are addressed. Even than there are several algorithms for the learning of nonlinear processes, it should be interesting to study filters as one alternative for the learning in nonlinear processes because the filters could learn faster than other algorithms.
There is some research about filters for the learning of nonlinear processes. The extended Kalman filter is considered in [15–17]. In [18–20] the unscented Kalman filter is focused. It shows that the filters also have been highly studied for the learning of nonlinear processes. Consequently, a filter could be a good option for the learning of nonlinear processes.
The main difference between the extended Kalman filter and unscented Kalman filter is that the unscented Kalman filter can be designed by a deterministic procedure while the extended Kalman filter can be designed by a stochastic procedure. Hence, the unscented Kalman filter could be well applied to deterministic nonlinear processes while the extended Kalman filter could be well applied to stochastic nonlinear processes. Since this study is focused in deterministic nonlinear processes, the unscented Kalman filter is the best option.
In this document, the unscented Kalman filter is employed for the experimental learning of two processes by the next steps: The unscented Kalman filter is applied for the experimental learning of nonlinear processes. The unscented Kalman filter as the same as the extended Kalman filter represent alternatives for the minimization of a cost function which could learn faster than other algorithms [15, 16]. The unscented Kalman filter is applied for the experimental learning of the next two processes: a solar dryer for oranges drying and a greenhouse for crop growth. a) A prototype of a solar dryer with a tracking process has been built and tested. Twenty-five drying tests are conducted from July to October 2015, where those tests are performed from 10:00 hours to 16:00 hours. b) A model of a greenhouse is presented and an approximation method is applied with real data from tests to validate the model and learning.
Approximation model
We consider the nonlinear model:
The regression model proposed to approximate the nonlinear model (1) is
We define the error e
i
as:
We define the cost J as:
To reach the best approximation
We use the unscented Kalman filter to minimize the cost. We use small steps in the direction of the minimum of the cost.
To reach the unscented Kalman filter, we use the weights
Then, the unscented Kalman filter is the adapting of the weights
From the definition (8), we make operations to reach:
From (2), (3), (25), and (28), the unscented Kalman filter is [18–20]:
Model of the solar drying
The ability to approximate the behavior of food drying using solar energy can help producers to change parameters in their production methods. The orange, is a fruit rich in vitamin C and essential oils, its pulp is typically formed of eleven segments of juice filled with flavor goes from sweet to acid. One of the varieties of orange grown in Mexico is the valence. In 2014 citrus harvest was four million tons, which placed Mexico as the fourth largest producer in the world. A solar dryer with tracking process was built for this research. Several tests were conducted in July and October 2015. A model is proposed and compared with real data. A model is applied to approximate the behavior of the drying process.
The most abundant component in food is water. Determining the moisture content in food is one of the most important parts of the model which indicates the amount of water involved in the composition thereof. Values of moisture content in all samples became dimensionless, assuming the final moisture content is the equilibrium moisture content.
The moisture ratio M
R
, as dimensionless moisture content can be calculated according to:
M0, M t and M e are the initial moisture content, the moisture content, and the equilibrium moisture content, respectively. The equilibrium moisture content is extremely small compared to the moisture content, then the equilibrium moisture content can be omitted. Different models which represent this process from experimental data are shown in Table 1.
Models for the drying process
One of the models used to determine the moisture content of agricultural products during the drying process is the exponential model, which from Newton’s Law of Cooling, we have:
α is the exchange heat coefficient, A is the product area, T is the product temperature, and T
a
is the ambient temperature. Furthermore, if a small amount of heat dQ is transferred between a process with mass m and its environment, the process undergoes a small change of temperature dT, then the specific heat capacity is defined as c, the model is:
Then,
Simplifying,
In which
Consequently, there are no temperature variation. If k > 0 and T0 > T
a
then
Thus, (20) with initial conditions is rewritten as:
A solution of (21) is a function T (t) which lets its satisfaction. First, we must find a function T (t) as a solution of
Then,
We must be able to find a solution of (21) if we a find solution of
Now, it is easier to find a solution of
If we define x (t) = e
at
we have
P (t) is a solution of
To evaluate the fit of the model with the experimental data, the next statistical coefficients is used: chi-squared distribution χ2, mean squared error MSE, and root mean square error RMSE. Those are represented by:
M R exp,i represents the moisture ratio which is gotten experimentally, M R pre,i are the approximations made by models, N is the number of data, and z is the number of constants.
The solar radiation that reach the ground on a horizontal surface is formed by direct radiation and diffuse radiation which together form the global solar radiation, their units are
The prototype is built and presented in Fig. 1 where 4 are trays, 5 is the mechanical elevator, 6 are covers, 7 is the pivot base, and 8 are castors. The solar dryer with tracking process is a direct type dryers which operates by natural convection. The dimensions of the drying chamber are 300mm × 600mm × 1300mm, and it contains five trays constructed of 22 gauge galvanized sheet. On the upper surface it has two decks of clear glass with thick of 3mm, with a spacing between them of 50mm. The inclination of the drying chamber is 30 o C to the horizontal plane and is oriented south-north to capture maximum solar energy.

Grading process.
The experimental test is: the orange used for drying tests are orange-valence type, which are being slicedwith about 5mm thickness and placed in each of the five trays on the drying chamber.
Each of the tests are conducted for a period of 12.5 hours, the hours in which tests are conducted were from 7:00 hours to 19:30 hours. In this period of time the data is gotten at intervals of 5 seconds, four temperatures are gotten at the same time: the ambient temperature, inlet temperature of the drying chamber, temperature inside of the drying chamber, and outlet temperature of the drying chamber. Also, global radiation is recorded. Four temperatures are considered in the solar dryer, T1 is the inlet temperature of the drying chamber, T2 is the outlet temperature of the drying chamber, T3 is the temperature inside the drying chamber, and T a is the ambient temperature, which are shown in Figs. 2 and 3.

Temperatures in the solar dryer prototype with tracking process.

Experimental test with slices of orange inside.
The experimental test is: the orange used for drying tests are orange-valence type, which are being slicedwith about 5mm thickness and placed in each of the five trays on the drying chamber.
Each of the tests are conducted for a period of 12.5 hours, the hours in which tests are conducted were from 7:00 hours to 19:30 hours. In this period of time the data is gotten at intervals of 5 seconds, four temperatures are gotten at the same time: the ambient temperature, inlet temperature of the drying chamber, temperature inside of the drying chamber, and outlet temperature of the drying chamber. Also, global radiation is recorded. Four temperatures are considered in the solar dryer, T1 is the inlet temperature of the drying chamber, T2 is the outlet temperature of the drying chamber, T3 is the temperature inside the drying chamber, and T a is the ambient temperature, which are shown in Figs. 2 and 3.
To evaluate moisture removal, the product mass is gotten in 10 seconds intervals. The average moisture content corresponding to the tests in July is of 55.746% and tests in October is of 52.906% of moisture removal. The data and results are presented in section Results.
Model of the greenhouse
For the model of crop growth, we represent the process as a model with four state variables, based on the work of [6]: x d is the crop dry weight in [kg m-2], x c is the carbon dioxide concentration in [kg m-3], x T is the air temperature in [oC], and x h is the absolute humidity in [kg m-3].
The representation of each of these variables is shown in (27), (29), (31), and (34).
Defining C
αβ
= C
α
C
β
as the yield factor in which C
α
corresponds to a factor that converts assimilated carbon dioxide into absorbed sugar equivalent, C
β
is a performance factor that counts synthesis and respiration losses during the conversion from carbohydrates to structure and whose value is between zero and one; as well as φphot,c which is the photosynthesis rate in [kg m-2 s-1] represented in (28):
Also Cpl,d is the effective greenhouse surface in [m2 kg-1], Crad,phot is the light use efficiency in [kg J-1], ν
rad
is the solar radiation outside the greenhouse in [W m-2], C
co
2,1
in [m s-1 oC-2], C
co
2,2
in [m s-1 oC-1], and C
co
2,3
in [m s-1] represents the temperature influence on photosynthesis, c
Γ
is the carbon dioxide compensation point in [kg m-3], Cresp,d is the respiration rate expressed in terms of the amount of respired dry matter in [s-1].
Additionally, Ccap,c is the greenhouse volume in [m], Cresp,c is the respiration coefficient expressed in terms of the amount of carbon dioxide produced in [s-1], u
c
is the supply rate of carbon dioxide in [kg m-2 s-1], φvent,c is the mass exchange of carbon dioxide through the vents in [kg m-2 s-1], and is represented by (30).
In which u
v
is the ventilation rate through the vents in [m s-1], C
leak
is the leakage through the cover in [m s-1], and ν
c
is the carbon dioxide concentration outside the greenhouse in [kg m-3].
Ccap,q is the heat capacity of the greenhouse air in [J m-2 oC-1], u
q
is the energy supply by the heating process in [W m-2], Qvent,q is the energy exchange with the outdoor air due the ventilation and transmission through the cover in [W m-2] governed by (32), Qrad,q is the heat load due to the solar radiation in [W m-2], and is expressed by (33).
In which Ccap,q,v is the heat capacity per volume unit of greenhouse air in [J m-3 oC-1], Cai,ou represents the overall heat transfer through the cover in [W m-2 oC-1], and ν
T
is the outside air temperature in [oC].
Crad,q is the heat load coefficient due to solar radiation.
In which Ccap,h is the greenhouse volume in [m], φtransp,h is the transpiration in [kg m-2 s-1] represented in (35), and φvent,h is the mass exchange of water vapor through the vents in [kg m-2 s-1] .
The term
ν h is the humidity concentration outside the greenhouse in [kg m-3].
If the state variables are defined as x1 = x
c
, x2 = x
T
, x3 = x
h
, x4 = x
d
, control inputs as u1 = u
c
, u2 = u
v
, u3 = u
q
, and functions as f
a
= φphot,c, f
b
= 2(0.1x
T
-2.5), f
c
= φtransp,h, then we rewrite (27), (29), (31), (34) as:
With:
Model parameters are listed in Table 2. Parameters of Table 2 represent the best values such that the model (37) represent in the best form a greenhouse, they were validated by experiments in [2, 6].
Greenhouse parameters
The prototype of the is shown in Fig. 4. We represent the variables of the process in the past subsection.

Prototype of the greenhouse.
The model (37) can be expressed in matrix form according to [26, 27] as:
For the nonlinear model (39), we employ a control law as:
In this section, the unscented Kalman filter (29) is applied for the experimental learning of the next two processes: a solar dryer for oranges drying and a greenhouse for crop growth. The unscented Kalman filter of (29) called Unscented Kalman Filter is compared with the extreme machine learning of [11] called Machine Learning 1 and with the extreme learning machine of [12] called Machine Learning 2. We compare the data of y
m
with
Temperatures T1, T2, T3, T
a
are renamed as
In Fig. 5 we represent the results found for the average percentage of moisture removal on drying orange slices with dimensionless units versus the time in seconds, equivalent to each one of the five tests conducted using c = 59.243, k = 0.411, χ2 = 0.00067, MSE = 0.994, and RMSE = 0.010 for the model, in which c represents the higher percentage of moisture removal on all tests and k represents a constant offset for fitting. In the Unscented Kalman Filter, we employ the speed α = 0.01 and a total of 1000 iterations. We apply several near values of the initial conditions in the unscented Kalman filter as shown in Fig. 6.

Comparison between the unscented Kalman filter and a model for the learning of orange drying.

Unscented Kalman filter for the learning of orange drying.
The comparison of the Unscented Kalman Filter, Machine Learning 1, and Machine Learning 2 is show in the Table 3 for the R2 of equation (41).
Fig. 6 and Table 3 yield that the that the Unscented Kalman Filter reaches better learning than both Machile Learning 1 and Machile Learning 2 due to the Unscented Kalman filter obtains the biggest R2.
Comparison results
The state variables carbon dioxide concentration
Taking the data and using the Unscented Kalman Filter make possible the experimental learning of the behavior of the carbon dioxide concentration in [kg m-3], the air temperature in [oC], and the absolute humidity in [kg m-3] inside the greenhouse versus the time in seconds as shown in Figs. 7–9, respectively.

Unscented Kalman filter for the learning of carbon dioxide concentration.

Unscented Kalman filter for the learning of air temperature.

Unscented Kalman filter for the learning of absolute humidity.
The comparison of the Unscented Kalman Filter, Machine Learning 1, and Machine Learning 2 is show in the Table 4 for the R2 of equation (41).
Comparison results
Figures 7–9, and Table 4 yield that the that the Unscented Kalman Filter reaches better learning than both Machile Learning 1 and Machile Learning 2 due to the Unscented Kalman filter obtains the biggest R2.
The results gotten in this document show that it is possible to dry orange slices using a direct type solar dryer through natural convection, earning up to 59.243% moisture removal of the product in a time of six hours. A model represented accurately the drying process with a success of 84%. The unscented Kalman filter was programmed for the experimental learning of the behavior during the drying process of orange slices with a success of 0.93. Furthermore, the unscented Kalman filter was programmed for the experimental learning of the behavior during the crop growth with a success of 0.94. In the forthcoming work, other alternative algorithms for the experimental learning will be designed, and other physical processes will be studied.
Footnotes
Acknowledgment
The authors are grateful to the editors and reviewers for their valuable comments and insightful suggestions, which helped to improve this research significantly. The authors thank the Instituto Politécnico Nacional, the Secretaría de Investigación y Posgrado, Comisión de Operación y Fomento de Actividades Académicas, and Consejo Nacional de Ciencia y Tecnología for their help in this study.
