Next Article in Journal
Predicting the RUL of Li-Ion Batteries in UAVs Using Machine Learning Techniques
Next Article in Special Issue
Digital Twin and 3D Digital Twin: Concepts, Applications, and Challenges in Industry 4.0 for Digital Twin
Previous Article in Journal
Horizontal Learning Approach to Discover Association Rules
Previous Article in Special Issue
Exploring the Potential of Distributed Computing Continuum Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Proposed Fuzzy-Stranded-Neural Network Model That Utilizes IoT Plant-Level Sensory Monitoring and Distributed Services for the Early Detection of Downy Mildew in Viticulture

by
Sotirios Kontogiannis
1,*,
Stefanos Koundouras
2 and
Christos Pikridas
3
1
Laboratory Team of Distributed Microcomputer Systems, Department of Mathematics, University of Ioannina, University Campus, 45110 Ioannina, Greece
2
Department of Agriculture, Aristotle University of Thessaloniki, 54124 Thessaloniki, Greece
3
School of Rural and Surveying Engineering, Aristotle University of Thessaloniki, 54124 Thessaloniki, Greece
*
Author to whom correspondence should be addressed.
Computers 2024, 13(3), 63; https://doi.org/10.3390/computers13030063
Submission received: 24 January 2024 / Revised: 24 February 2024 / Accepted: 27 February 2024 / Published: 28 February 2024
(This article belongs to the Special Issue Artificial Intelligence in Industrial IoT Applications)

Abstract

:
Novel monitoring architecture approaches are required to detect viticulture diseases early. Existing micro-climate decision support systems can only cope with late detection from empirical and semi-empirical models that provide less accurate results. Such models cannot alleviate precision viticulture planning and pesticide control actions, providing early reconnaissances that may trigger interventions. This paper presents a new plant-level monitoring architecture called thingsAI. The proposed system utilizes low-cost, autonomous, easy-to-install IoT sensors for vine-level monitoring, utilizing the low-power LoRaWAN protocol for sensory measurement acquisition. Facilitated by a distributed cloud architecture and open-source user interfaces, it provides state-of-the-art deep learning inference services and decision support interfaces. This paper also presents a new deep learning detection algorithm based on supervised fuzzy annotation processes, targeting downy mildew disease detection and, therefore, planning early interventions. The authors tested their proposed system and deep learning model on the grape variety of protected designation of origin called debina, cultivated in Zitsa, Greece. From their experimental results, the authors show that their proposed model can detect vine locations and timely breakpoints of mildew occurrences, which farmers can use as input for targeted intervention efforts.

1. Introduction

Plasmopara viticola (P. viticola), commonly known as downy mildew, is a North American origin fungus [1]. It invaded Europe at the end of the 18th century [1]. Downy mildew attacks vines mostly during spring when plants are in their most stressful developing stages. As a fungus, it has a two-stage-infection cycle of primary infections and repeated secondary ones [2,3,4]. The first signs of the fungus development from oomycete occurs in spring inflorescence growth, close to the 12th E-L vine stage [5], and its results are devastating if not detected and treated early [3,4,6]. Two significant environmental parameters influence P. viticola’s fungus growth. These are temperatures between 10 °C and 32 °C and increased humidity levels [3,7,8,9]. The spring oospores’ maturity succeeds the fungus oospores’ overwintering. Then spring environmental conditions lead to sporangia germinations, which in turn incubate zoospores that form germinations during wet periods, spread by wind or rain splashes to nearby leaves or berries [2,6,8].
Downy mildew oospore maturation starts with mild and rainy days in spring, usually with prolonged rainfall (e.g., at least 3–6 mm), temperatures between 12 and 26 °C, and relative humidity above 90% [2]. Then, the oospores form sporangia that, with the help of rain splashes and wind, reach the potential host tissue, typically wet young leaves near the soil. As a primary infection cycle, sporangia releases zoospores. The germinated zoospore infects young green tissues through open stomata and produces a mycelium that, by colonizing the intercellular spaces, leads to the appearance of oil spots on the leaves [2,6]. Germination mechanisms work faster when the temperature is between 20 and 24 °C and when there is rainfall or concentration of leaf litter [8,9].
According to [2,4,6], as a secondary infection cycle, the fungus initiates asexual reproduction, producing sporangiophores. Sporangia are released from the tip of the sporangiophores’ branches, and the released zoospores will emerge as secondary infections. In this cycle, the zoospores reach the berries, giving them a whitish appearance. The initial oil spot lesions usually appear as a brownish area spreading on the infected tissue at this stage. The cycle (up to sporangiophores’ production) typically lasts 5–7 up to 18 days [3,6,8].
According to Rossi et al. [4], sporangia incubation occurs at temperatures between 9.5 °C and 32 °C, and wet conditions or relative humidity above 65% ( [10]). On American varieties, the phenomenon occurs at temperatures ranging from 10 to 30 °C, with an optimum at 18–20 °C [11]; however, on Vitis vinifera Caffi pinpointed sporulating temperatures between 10.6 and 32.9 °C. Nevertheless, the authors consider Zacho’s observations for a minimum sporulating temperature of 13 °C for Vitis vinifera [12]. Furthermore, according to Caffi et al. [6], rainfall used by the majority of downy mildew models does not seem to be a triggering factor for secondary infections because the surface wetness for zoospore release and mobility can be generated by dew.
As modern Viticulture is continuously Industrialized and its practical appliances are automated, revolutionary viticulture technologies are incorporated into the vine fields [13,14]. Such technologies refer to sensors that monitor environmental conditions near the vine plants or vine plant clusters [2,15,16,17]. These data acquisition technologies bring forth elaborated processes, supported by machine learning or deep learning models, to improve agricultural practices in a more precise manner (proximal sensing) [14]. Focusing on the downy mildew fungus and the interventions that need to be accounted for the amelioration of this disease, the paper focuses in the following subsections on existing downy mildew (P. viticola) models applicable for viticulture use as well as Decision Support Systems that host such models for downy mildew forecasts at vine-plant level [15,16,18,19,20].

1.1. Related Work on Viticulture Downy Mildew Models

Several models have been proposed over the years, either of heuristic origin (empirical) or deterministic via experimentation (mechanistic), for P. viticola predictions [9,21]. Many of them have been incorporated into existing DSS systems [21]. The following models are presented in the literature as empirical models:
  • Muller model is an empirical model based on temperature observations setting the infection occurrence when leaves are o 2 cm in diameter (E-L 9 development stage) and after heavy rain. According to this model, If the weather is dry (east wind), there is no risk of downy mildew, nor if the mean daily temperatures are below 12 °C or above 28 °C [10], the incubation period can be calculated in days. The actual daily add-ons to the sum based on the average daily temperature are provided by [22].
  • Rule 3–10 is an empirical rule set by [23]. The rule states that infections initiate when the following conditions occur: Temperature, T 10 °C, vine shoots of 10 cm long, and at least 10mm of rainfall over the last 24–48 h.
  • Goidanich model. This model assumes initiation of primary infections at E-L 12 development stage, based on Rule 3–10. After infection, the percentage of daily development of incubation is calculated as Infection Risk Cycles (IRC), using an index value (Goidanich Index-GI) based on the average daily relative humidity and temperature until it reaches 100% [24]. An appropriate table of Goidanich’s model infection percentages is used for both primary and secondary infections [19]. Above 25°, IRC is constant. Furthermore, according to Puelles et al. evaluation [25], this model on Vitis vinifera usually delivers over-prediction infection blocks with very few matches to field observations. Nevertheless, this differs from the research in northwestern Spain provided by [26].
  • EPI model. This model, developed by Stryzik et al. [27], uses an EPI index metric that represents the pathogen potential infection energy E p for primary infections and the kinetic energy E c for secondary infections. For primary infections, it utilizes a set of equations that consider monthly rainfall and temperature, the number of days with rain per month, and the rainfall during the last ten days. For secondary infections, the model takes into account inputs of temperature, relative humidity, and relative humidity at night [9,28]. Potential infection energy E p is calculated using Equation (1) from October until January [27].
    E p = 2 · [ k ( R i 0.95 R m ) ] + 0.2 · [ R i · T i ( 0.95 R m T m ) ] [ 1.5 R D m 18 l o g 10 R d R D d ]
    where the value k is 1.2 in October, 1 in November, and 0.8 for the rest of the months (until March), R i is the daily rainfall, R m is the mean monthly rainfall, T i the mean daily temperature, T m the mean monthly temperature, R d cumulative rainfall the last ten days, R D m , number of monthly rainy days and R D d number of rainy days the last ten days [27].
    Equation (2) gives the kinetic energy of the model calculated from April until September and corresponds to primary and secondary infections since the model assumes that oospore maturity is reached by the 31st of March [27].
    E c = 0.012 · 1 4 ( 5 · R H m n i g h t + 3 · R H i 10 18 h ) 2 T i R H i 10 18 h 2 T m 100
    where R H m n i g h t is the average relative humidity at night, and R H i 10 18 h is the average relative daily humidity, T i the average daily temperature, and T m the monthly average temperature. Finally, the EPI index value is calculated based on Equation (3) [27].
    E P I = O c t M a r c h E p + A p r S e p t E c
    From October until the end of March, the value of the EPI metric is an estimate of oospore maturation, where the first infection occurs when EPI > −10, while the EPI increases for three consecutive days [27].
Empirical models are easier to implement using sparse meteorological stations’ sensory data input, they require further evaluation and calibration to the applied viticulture environment. On the other hand, mechanistic models try to capture the infection mechanism in a holistic, more deterministic manner. Nevertheless, it requires the calculation of more elaborate metrics that cannot be easily inferred directly from environmental sensors. The following mechanistic models are presented in the literature.
  • Downy Mildew foreCast is a model that tries to provide primary and secondary infection predictions. It uses a probabilistic normal distribution for primary infections using Equation (4) [29]
    P ( d ) = 1 σ 2 π e ( d μ ) 2 2 σ 2 , μ = 118 0.3 R a , σ = 13.5 + 0.02 R a
    where mean and standard deviation parameters are calculated by parameter R a , which is the cumulative rainfall effect at the end of January according to Equation (5) [29].
    R a = 21 S e p t 31 J a n R m + s t d ( R m ) R D m 2 R i
    where R m is the mean monthly rainfall, s t d ( R m ) is the mean standard deviation of monthly rainfall, R D m are the total monthly rainy days and R i is the daily rainfall. Primary infections initiate when the daily probability P ( d ) outcome reaches 3%. From this day forth, secondary infections are calculated as mentioned at [29]. It is considered that infections occur when rainfall is at least 2 mm and T ≤ 11 °C, while for seven up to 22 days after the beginning of oospore germinations [29].
  • UCSC model was developed by Rossi et al. [8]. The model simulates, using a granularity time step of one hour, the entire process, starting from oospore maturation and germinations to zoospore discharge and dispersal and finally to secondary infection cycles [9]. The model uses sensory measurements of temperature, relative humidity, leaf wetness, and rainfall as inputs. Briefly, the model calculates the time when the first break of the oospore’s dormancy occurs (about the 1st of January), as well as the primary and secondary infection progress, by calculating the Relative Incidence of Infection (RII) metric value [2,4,8]. The metrics used by the model are shown in Table 1 [8].
    Furthermore, Table 1 at [9], shows the model input parameters for oospore maturation and oospore-zoospore germination stages.
  • UR model. This is a Goidanich-table-based model alternative that tries to address both primary and secondary infections [25]. According to this model, oospore maturation in winter is reached if the value of a cumulative temperatures sum reaches 140–160 °C. This sum T m is calculated using mean daily temperatures ( T m ), starting from the 1st of January, and using the following Equation (6) [30,31].
    T m = T m ¯ 8 T m ¯ < 8 T m ¯ T m ¯ 8
    If oospore maturation is reached, then oospore germination occurs, providing primary sporangia either when mean relative humidity R H 8 h > 80 and mean temperature T 8 h > 8 for an 8-h window or when mean precipitation occurs more than 5 mm ( R F m > 5) for the last 48 h. The first dispersion of zoospores is reached after oospore germination, when mean rainfall RF > 3 mm and T m > 8 for a 6 h interval (a modified 3–10 Rule). Then primary infections occur, if Degree hours Dh > 50, calculated based on Equation (7) [30,31].
    D h = i = 1 n T i ¯ , i f R H h 90
    where T i is the hourly temperature (hour i = 1 n ) and R H h is the hourly relative humidity. Secondary infections are calculated using the Goidanich table index. To achieve sporulation for secondary infections, two conditions needed to be met: R H h 90 % or temperatures between 12 °C and 29 °C for at least 4 h at night [25]. Additionally, the model considers that exposure to more than 6 h above 30 °C results in the death of oospores, both for primary and secondary infections [32].
  • Milvit Model. Developed by the French Plant Protection Service in the late 80s. It is a potato downy mildew simulated model, a pathogen with similar pathogen characteristics to P. viticola [33]. As mentioned by Magnien et al. [33], it uses temperature and relative humidity, four stages of the pathogen cycle. It is also supported by a DSS system. Nevertheless, this model is not taken into account since it is not targeting the phenological characteristics of V. vinifera and since, as mentioned by Puelles et al. experimentation [25], it has shown both over-prediction and under-prediction infection blocks compared to field observations.
  • Vitimeteo—Plasmopara is a mechanistic model based on experimental observations, created by Bleyer et al. [34]. This model tries to predict both primary and secondary infections. The main model components are three stages: (1) Maturation oospores stage, (2) primary, and (3) secondary infections. Regarding (1) and (2) the UR model is used. However, secondary infections are calculated using mean temperature T m degree hours Dh > 50, if 3 < T m < 29, and if hourly relative humidity R H m > 95% [34].
The aspect of incorporating deterministic epidemiology models for precision viticulture planning is significant. Therefore, Savary et al. presented the critical factors and framework to develop dynamic epidemiology models for dual process epidemics [35]. That is, by calculating the disease x rate: d x d t = c · R c p ( x ) f ( x ) · ( 1 p ( x ) ) h ( x | y ) , as part of a model that takes into account an introductory infection rate as weight R c , that compensates for the number of dispersed propagules per infectious lesion and its infectious efficiency. In contrast, p ( x ) is the probability of the regression process of infected tissues, while f ( x ) represents the disease rate x, considering disease multiplication, environmental parameters, latencies, and plant growth. h ( x ) is the healthy issues growth parameter according to either infection rate x or plant growth parameter y.
Based on the previous paragraph mentioned framework, Bove et al. [3] developed a two-stage infection P. viticola simulation model taking into account environmental metrics of temperature, humidity, and variety that affect primary and secondary infections. According to Bove et al.’s elaborated model simulation scenarios, four major parameters can be considered catalytic on the rate of secondary infections: age, temperature, moisture, and grape variety [7]. Table 2 presents the simulation results of [7], under different temperature and humidity conditions, expressed as fuzzy sets, that downy mildew infestations depend on. Table 2 has been used as a piece of base information to implement the fuzzy logic annotation process of their deep learning model proposition.
Regarding vine aging, Reuveni has experimented with vine leaf aging and vine aging, showing increased resistance of both older leaves and older vine plants [36]. Variety also plays a significant role, as mentioned by [37]. Their paper examined 16 Italian grape varieties over four years and indicated the grape variety resistance variance towards downy mildew. The authors highlight here the results from the studies [36,37] that both grapes’ age and variety are discriminant factors for downy mildew. These factors can be considered uniform if a single grape variety is studied and cultivated in a specific designated area of origin, with slight aging variations in the examined area cultivation fields.
Table 2. P. viticola dependence on environmental parameters, according to [7], based on [11,38].
Table 2. P. viticola dependence on environmental parameters, according to [7], based on [11,38].
Environmental
Description
Temperature
(T °C)
Humidity (% RH )Daily Rainfall
( RF mm )
FGI ( R c T · R c W )
warm and wet13 < T ≤ 2870 < RH ≤ 100RF ≥ 51
warm and partly wet13 < T ≤ 2870 < RH ≤ 950 < RF < 50.6
warm and dry13 < T ≤ 2870 ≤ RH ≤ 95RF = 00.4
warm and very dry13 < T ≤ 28RH < 70RF = 00.1
cold and wet0 < T ≤ 13RH < 70 < RH ≤ 100RF ≥ 50.8
cold and partly wet0 < T ≤ 1370 < RH ≤ 950 < RF < 50.48
cold and dry0 < T ≤ 1370 ≤ RH ≤ 95RF = 00.32
cold and very dry0 < T ≤ 13RH < 70RF = 00.08
Since Millardet in 1882 who discovered the effects of copper against downy mildew, by observation, the Boareaux mixture was created using copper sulfate (CuSO4) and lime (Ca(OH)2) in water with a copper sulfate analogy of 2–3% up to 4%, the most suppressing competitive towards P. viticola. Another similar mixture is the Burgundy mixture that uses sodium carbonite (Na2CO3) instead of lime [39]. Therefore, the most successful protective treatment is using pesticide products based on the Bordeaux mixture solution before fungus development. Nevertheless, its uncontrolled use can threaten human health and soil [40], and therefore, precise treatment is required, applicable only at the early development stages before flowering and during berry formation. When environmental conditions favor fungus development, more active substance FRAC group 4 [41] fungicides are used [42]. In infection germination peaks, mixtures of copper protectants and phosphate-based fungicides can arrest the infection [43]. We also have to mention the use of microorganisms for the bio-control of plants as the alternative to chemical pesticides [39].

1.2. Conclusions of Downy Mildew Models Examination

Based on Section 1.1 presentation of existing models used for downy mildew, the following remarks are reached by the authors:
  • Unlike the experimental varieties and conditions examined, all models fail to cope with the phenomenon’s evolution over attributes such as different environmental conditions, variety, and vine ages. No mechanistic model can be set as a catholic-holistic model due to the non-uniformity of the attributes described above, with the exception of some conservative empirical generic rules (for example, Rule 3–10).
  • Mechanistic models trying to time the downy mildew disease process accurately can easily lead to erroneous calculations of significant offsets if the coefficients or variable parameters used do not match the examined environmental conditions that have been experimentally calculated (miscalibration). That is why, in several cases, empirical models can outperform mechanistic ones and can provide much more safe-ground predictions.
  • Most mechanistic models target on-time evolution modeling of downy mildew and do not excerpt a decision suggestion required by Decision Support Systems. They are leaving such decisions to the non-expert’s eye. Such as precision viticulture practices (for example, vine leaves removal) or pesticide appliances and analogies (such as Bordeaux mixture products appliance).
  • All models, specifically mechanistic ones (of higher sensory measurements, high granularity dependency), utilize meteorological station measurements. Such measurements are kept at best in hourly mean intervals. Furthermore, meteorological stations located at high elevation grounds, with 5–20 km radius coverage, servicing large areas of nonuniform terrestrial fields, cannot cope with the condition extrapolates. Due to this type of exploited input, they can provide only best-effort forecasts of significant field-level disease variations, thus leading to over-pesticide field uses in many cases.
  • Downy mildew mechanistic models are trying to provide time-frames and thresholds for primary and secondary infections corresponding to large areas of different conditions. Because their inputs are in sparse hourly periods and are of single points of reference (single meteorological stations), without experimental calibrations of their coefficients, on field vine clusters, or on the monitored field areas, such models will consistently be outperformed by empirical ones.
Next-generation Agriculture 4.0 models should target mostly suggestions or phenomena evolution time-frame breakpoints. Their calculations should not be deterministically inferred by a single equation but by a machine learning process that has as input a time series of annotated measurements. To achieve better than best effort plant level forecasts, dense input real-time or close to real-time measurements of 1 min, 5 min, or at least 10 min periodic intervals are needed. Furthermore, more sensor nodes are required, installed in the viticulture fields of at least 0.5 Ha coverage areas per sensor node, providing measurements of wetness or soil moisture or evapotranspiration, vapor pressure deficit, or at least temperature and humidity. The next-generation models should consider a simplified approach regarding their data inputs, outputs, and trainable coefficients so that the training process is algorithmic and easy to program as a repetitive process that can provide a set of different trained models inferring different forecasts under different field conditions.
More data-driven machine-learning alternatives must be exploited to provide a holistic approach to cope with different environments. As mentioned by [44], ML algorithms, such as binomial LASSO regression, random forest, and gradient boosting, can infer better results and more accurate results than existing mechanistic models. Nevertheless, up to now, these models have yet to outperform mechanistic ones due to the lack of annotated measurements for model training purposes, thus degrading their accuracy and precision. Therefore, a more of a fuzzy logic annotation approach is fundamental to acquiring annotated data. Before presenting the authors’ deep learning implementation for P. viticola incident forecasting, a short subsection follows with the existing state-of-the-art Decision Support Systems implementing the described downy mildew detection models.

1.3. Downy Mildew Forecasting DSS Systems

Several Decision Support Systems that provide P. viticola predictions in the Mediterranean area have emerged over the last decade and are presented in literature [21]. One of the first DSS systems attempts for P. Viticola using meteorological station data inputs end empirical models is GrapeMilDeWS [45].
Rossi et al. [46], created a DSS system called vite.net utilizing meteorological station data inputs and from farmers’ meteorological sensors monitoring Vine Units (VUs) to provide decision support towards downy mildew using empirical models and mechanistic ones, specifically the UCSC model [4,8].
Agrometeo and Vitimeteo DSS systems also utilize weather stations to provide P. viticola primary infections and observe first oil spot alerts using a table-based Vitimeteo-Plasmopara model [47].
The authors of [26], created a custom system for dense micro-climate monitoring, collecting data from nearby meteorological stations, using average temperature, rainfall and pathogen concentration on the previous day and applying a linear regression prediction line, calculating the infection risk using the Goidanich algorithm [24]. Similarly, Decitrait DSS provides cultivation practices and forecasts using Goidanich and EPI models [48].
Finally, the authors of [49] presented a set of tools used for partitioning viticulture areas in Greece and post-processing data analysis of meteo station sensory measurements in the vicinity of these vine areas. In addition to precision viticulture treatments and DSS systems with inputs from sparsely located meteorological base stations, advancements in IoT and cloud technologies can provide new advanced Decision Support Systems (DSS) capable of better than micro-climate monitoring using dense monitoring stations for less than 2km sensory measurements acquisition [50]. Such systems can collect environmental data even at the plant-vine level using cheap IoT meteorological stations that aid farmers in making tactical and operational decisions.
Towards vine-plant sensory monitoring, Perez et al. [19] presented a DSS system (VineSens) that utilizes two types of monitoring end nodes using ARM MPUs that transmit temperature, humidity, and moisture sensory measurements. The measurements are transmitted over Wi-Fi to gateways, and then data is transmitted over 3G/4G(LTE) to the central DSS logging service using the appropriate ReST HTTP API. The system utilizes the Rule 3–10 and the Goidanich model for mildew predictions.
Furthermore, Trilles et al. [16] presented a cloud-based DSS system called SEnviro that includes edge IoT devices with temperature, humidity, and rainfall sensors. Using edge computing nodes, the Goidanich model cumulative index is calculated at the node level, and appropriate alerts are sent to the farmers via SMS. Other communication channels are also supported. SEnviro system can periodically collect measurements using GPRS transponders over long distances [16] and utilizing Wi-Fi transponders for short distances, as mentioned in [51]. The benefits of this platform are the use of open-source APIs, Non-relational sensory measurements data storage capabilities, and mainly its ability to perform end-node edge computing [16]. The authors express only a slight concern about how the selection and control tasks of different edge computational models can be performed at the SEnviro things edge nodes since relevant information is not provided in [16]; that is information regarding the control and orchestration of edge computational models or over-the-air SEnviro nodes forecasting model selections and updates via the SEnviro platform.
Mezei et al. implemented the Winet DSS, which uses NBIoT technology [52], to implement autonomous nodes spread on vine fields. Their DSS implementation transmits temperature, humidity, and soil moisture sensory measurements over UDP protocol streams to the Winet central service. For mildew predictions, a custom model that uses the 3–10 Rule for infection initiation and a polynomial equation: f ( t ) = 0.076 t 2 3.454 t + 42.925 fitted on the Muller model [10,18].
ZenAgro company [20] has implemented a DSS system using open-source ThingsBoard Application Service and sensory data acquisition SDK [53]. Their platform is capable of monitoring vine parameters of temperature, humidity, and leaf wetness via LoRa point-to-point transmissions, currently updated to LoRaWAN Dragino sensors capable of data transmissions using the LoRaWAN class A protocol [54]. Their DSS now provides only P. viticola forecasts using Rule 3–10 and a simplified Muller model [10].
Hnatiuc et al. have implemented a vine disease detection framework supported by a sensory measurement data collection service that implements clustering and classification algorithms using TensorFlow [55] and utilizing IoT devices that monitor plant level sensory parameters of temperature, leaf moisture, soil moisture, sap flow meters, solar radiation sensors and soil oxygen sensors [17].
Further technological achievements on plant-level monitoring for P. viticola in grapevines systems and services include the use of ground base LiDAR scanners for leaf area index estimations as mentioned in [56,57], as well as the use of static cameras modules that utilize deep learning Faster-RCNN, SSD and Yolo object detection models on real-time or close to real-time intervals using RGB image acquisition from grapevine fields [15,58]. Such RGB images can also be acquired for deep learning model training and inferences by mobile cameras or low-altitude flying drones (flying 3–5 m above vine clusters).
In addition, multispectral and specifically hyperspectral imaging (HSI), acquired from handheld cameras or methodologies for HSI image acquisition from drones [59], can provide more detailed color information than RGB images. The imaging spans at 400–800 nm bands are set for plant activity monitoring by calculating normalized vegetation coefficients, crucial in environmental remote sensing [60]. Reflectance differences between 470 nm and 700 nm frequency bands can easily distinguish and extract vine leaves contours [60]. Furthermore, reflectance differences combined with using Support Vector Machines (SVMs) can distinguish downy mildew spots on symptomatic leaves in the bands of 500–700 nm and 800–1000 nm, as mentioned at [61].
This paper focuses on sensory-measurement-driven DSS systems capable of issuing downy mildew forecasts and recommendations. Table 3 presents each system mentioned in the literature and its corresponding capabilities. The authors set these capabilities as Key Performance Indicators (KPIs) required for vine-level monitoring, forecasting, and decision support. DSS systems presented in Table 3 have been examined based on the following KPIs set by the authors for plant-level monitoring and support:
  • Meteo Station Data: Weather the DSS system also receives data inputs from meteorological stations via specifically designed protocols or interfaces. Meteorological stations.
  • IoT Plant level Monitoring: Whether the DSS system acquires plant-level information using IoT sensors.
  • Auto location tracking: Whether the DSS system can track its data input sources using GPS receivers (locality).
  • data acquisition: The schema form that the DSS logging service stores the sensory data measurements, that can sustain big data records of different measurements-attributes over time as mentioned at [62].
  • Low-cost data transmissions: Covers the low-power data transponder specifications of DSS systems that use nodes capable of plant-level monitoring. Such transponders are RF-based, NBIoT, LoRa, LoRaWAN, Wi-Fi, ZigBee, or BLE/Bluetooth, which maintain low energy footprints, in contrast to the power consumption of GSM GPRS/3G/4G-LTE transponders [63]. This performance characteristic also considers the required network provider costs per node, especially for technologies such as NBIoT and GSM/GPRS/3G/4G.
  • ReST API: If the DSS system includes appropriate SDK API to fetch data measurements or forecasts by clients using HTTP/UDP/CoAP/MQTT or custom protocol requests [64].
  • Interfaces: Type of accessible user interfaces offered by the DSS system (Web, Mobile App, Custom Application UI)
  • OpenSource components: If the DSS utilizes open-source components SDKs or libraries
  • Installation-Maintenance efforts: Whether the DSS system and its end vine-level nodes are easy to Install and scale, and the farmers’ minimum or no maintenance efforts are required.
As shown in Table 3, both SEnviro and ZenAgro DSS systems are the ones that fulfill all DSS system capabilities (KPIs), set as necessary DSS capabilities by the authors for vine-level monitoring. Medium installation efforts are set for SEnviro because custom User Interfaces and panels have to be made for the Open Geospatial Consortium (OGC) SensorThings API [65], or Sensor Observation Services (SOS) [66].
This paper presents a new DSS system architecture called thingsAI. The proposed system adopts ZenAgro’s DSS architecture regarding LoRaWAN sensory data transmissions and vine-level nodes for sensory measurements. ThingsAI utilizes long-range autonomous GPS-equipped devices called motes. These devices include sensors that use different profiles to monitor temperature and humidity, leaf wetness, and soil moisture [15]. ThingsAI also utilizes autonomous LoRaWAN meteorological stations. These stations include additional pressure, wind speed, direction, and rain gauge sensors.
ThingsAI measurements data storage engine utilizes the No-SQL capabilities of the Cassandra database [67,68], and ThingsBoard Web panels and alerts logic to provide messages via Twilio SMS, e-mail, and Slack interfaces [53]. ThingsAI also includes independent docker containers to implement, train, and infer deep-learning classifiers and detectors [69]. In such a dockerized container, the deep learning algorithm proposed by authors called the fuzzy-stranded-NN model is installed. The following section presents the author’s thingsAI implementation and their proposed fuzzy-stranded-NN algorithm, based on the stranded-NN implementation of [70], for detecting downy mildew.

2. Materials and Methods

This section provides information regarding the proposed thingsAI high-level system architecture, motes structure, and the authors’ deep learning algorithm proposition for detecting downy mildew events.

2.1. Proposed High-Level System Architecture

This paper proposes a new high-level architecture based on open-source libraries and tools comprising a system called thingsAI. Figure 1 illustrates the core structural parts of our proposition. These components can be categorized as field components and cloud components. Field components include IoT modes and devices that collect field measurements. In contrast, cloud components include the Virtual Machines and Dockerized services [69] that provide measurements storage, Deep Learning algorithms computational tools and services, and farmers’ monitoring and management User Interfaces. In detail, the thingsAI system architecture is comprised by the following components:
  • Vine field device components: These include: 1. the IoT mote devices equipped with GPS receivers and a LoRaWAN transponder, acquiring field sensory measurements (see Figure 1, (1)), such as temperature, humidity, leaf wetness and soil moisture, and 2. the LoRaWAN meteorological stations (see Figure 1, (2)), which include a GPS receiver, LoRaWAN transponder, pressure, temperature, humidity, wind speed, direction sensors, and a rain gauge. In each viticulture field, the farmers place the IoT motes to measure plant-level sensory parameters of different mote profiles, for instance, temperature and humidity, according to our downy mildew experimentation. The suggested coverage area for an IoT mote is more of a regular hexagon with either height ( h = 2 a c o s ( 30 1.732 a ) or width ( w = 2 a ), where a = 100 m. That is, a coverage area of A = 3 s 2 2 · t a n ( 30 ) 2.598 a 2 per IoT mode device. The authors set the maximum coverage area for an IoT mode for vine-level monitoring up to 1 Ha. Usually, IoT motes are placed according to the following rules: (1) If there is a significant elevation difference between two points in a field more than 1 m, (2) If there is a slope of more than 20°, offering different soil drainage, and (3) if there is tree coverage near the field contributing to a significant reduction of at least 2 h of sun throughout the day concerning the rest of the viticulture field. LoRaWAN meteorological stations are usually installed in pinpointed locations based on the ground morphological characteristics, covering field areas of 70–80 Ha. The field components also include the LoRaWAN gateway, which acts as a sensory measurements concentration and thinsAI data forwarding point to the thingsAI LoRa Server [54].
    The sensory motes transmit measurements of temperature and humidity every T p period intervals. These intervals can be programmable over the air by the farmers via ThingsBoard panels (with a minimum value of every 1 min and a maximum value of 4 h), using Class A LoRaWAN data reception windows RX1, RX2 [71]. The motes also transmit GPS location LoRaWAN frames that can be set to every 8–48 h. The same applies to the LoRaWAN meteorological stations. The LoRaWAN meteorological station coverage area may extend more than 70–80 Ha and is used to capture meteorological measurements that accurately correspond to the included viticulture fields vine-clima. There is no need for vine-level measurements of wind speed, direction, or rain since their variations can be accurately captured using at least 1 km meteo-stations dense coverage. LoRaWAN meteorological stations are autonomous battery-operated devices with a mean power consumption of 1.8–3 W, transmitting measurements per-minute intervals via class A LoRaWAN protocol to the LoraWAN gateways. For the meteorological stations, different communication technologies can also be used, such as NBIoT UMTS(3G) or Wi-Fi, in order to transmit measurements to the thingsAI cloud infrastructure directly through the ThingsBoard container (see Figure 1, (7) ThingsBoard AS) bypassing the LoRaWAN application server (see Figure 1, (4) LoRaWAN AS).
    The thingsAI system field components utilize a dense grid of GPS-equipped IoT motes (see Figure 1, (1)) and a sparse grid of GPS-equipped LoRaWAN meteorological stations (see Figure 1, (2)) to provide sensory measurements at vine level. All motes (see Figure 1, (3)) transmit their GPS location using LoRaWAN frames via the gateway. The gateways use two communication technologies (NBIoT and LoRaWAN) deliberately made to minimize telecommunication provider costs. NBIoT transponders could have been used instead of LoRaWAN for end-device data transmissions (motes and meteorological stations). Nevertheless, such a technological alternative enforces a per mote SIM card annual communication fee for the farmers. Depending on the number of IoT motes used, the provider fees could reach up to 2–4€/device/month. Instead, the authors propose using the LoRaWAN communication as a free long-range narrow-band alternative of a single connection point with one cellular telecommunications link at the gateway bridge. Since the LoRaWAN coverage extends from 5–12 km, a single gateway may cover a significant portion of a huge cultivation area [72].
    LoRaWAN gateways (see Figure 1, (3) LoRaWAN gateways), are responsible for forwarding IoT mote measurement frames to the LoRaWAN network service and, therefore, to the application server (Figure 1, (4) LoRaWAN container) [69]. This is achieved by maintaining Internet connectivity via a cellular NBIoT network provider at the gateway level. The LoRaWAN gateways are autonomous devices of continuous operation, with a mean power consumption of 5–6 W, because they are operating simultaneously two different transponders: an NBIoT(GR-800MHz/B20) UART transponder of a 10 MHz/channel bandwidth and a LoRaWAN (EU:863–870 MHz) concentrator board of a 125 KHz/channel bandwidth. In areas where the B20 band is unavailable, the UMTS B21 band of 2100 MHz is used with higher channel bandwidths of 20 MHz/channel. All IoT motes and meteorological stations join the LoRa server using Over The Air Activation (OTAA). All IoT motes and meteorological stations have ADR LoRaWAN capabilities enabled. All motes transmit sensory data via the available LoRaWAN channels 1–8 and receive downlink windows RX1 via the data transmitting channel and RX2 at 869.5 MHz [71].
  • Cloud Components: These are mainly docker containers that reside in a single or multiple cloud Virtual Machine instances [69]. The thingsAI cloud components as shown in Figure 1, include the: 4. LoRaWAN container of the chirpstack LoRa server [73], the 5. Cassandra No-SQL clustered database [74], for storing sensory measurements, the 6. AI containers running deep learning training and classification, prediction tasks, and the 7. ThingsBoard Application Server (AS), platform container capable of providing visualization outputs, motes control, and suggestions-alerts to the end users.
    The chirpstack LoRa server [73] (see Figure 1, (4)), is an open-source network and application server capable of receiving encrypted AES-128 data transmissions from the LoRaWAN gateways. Upon data validation and decryption, the data are pushed to the Chirpstack container mosquito Message Queue Telemetry Transport (MQTT) service [75]. Then, the appropriate data logging agent using MQTT subscribe mechanism acquires the sensory measurements and submits them as HTTP post-device telemetry requests, depending on the LoRaWAN mote device ID, to the ThingsBoard Application server [76].
    The ThingsBoard AS (see Figure 1, (7) ThingsBoard AS) is responsible for controlling all thingsAI devices (motes and meteorological stations) and device attributes at the application level, as well as storing the per-device sensory measurements and GPS locations at the Cassandra distributed Database cluster [74] (see Figure 1, (5)). In the ThingsBoard AS container reside the data logging service, the geo-location module, acquiring Google Map layers information (see Figure 1, (8)), the RPC motes control service, and notification services described in detail in Section 2.3.
    Finally, the thingsAI cluster (see Figure 1, (6)), described in Section 2.3, is a set of docker containers where the Deep Learning models, models’ training agents and inference services are instantiated, providing classifications and predictions.
The following subsection reveals technical characteristics of the IoT motes and LoRaWAN meteorological stations used by the thingsAI system.

2.2. ThingsAI IoT Motes and Stations

thingsAI end-devices have been implemented to provide a dense distributed grid of monitoring sensors. The implemented sensory devices called motes design is illustrated in Figure 2a. These devices operate autonomously and can be easily attached to striped viticulture fields’ viticulture iron corner stands. The end motes can be automatically spotted by the thingsAI system via their GPS receivers and are equipped with temperature and humidity sensors. Several other sensors, such as leaf wetness and soil moisture sensors, can be attached to these end devices, providing different profiles supported by the thingsAI data transmissions LoRaWAN protocol.
ThingsAI system IoT mote installations are performed using the following criteria:
  • At least one sensory mote must exist in a rectangular area of 100 × 100 m (1 Hectare) called the maximum partitioning area
  • If required due to elevation differences >0.8–2 m, the maximum partitioning area can be clustered into two or more areas where different motes are placed (vertical partitioning)
  • If significant variances inside the maximum partitioning area occur with respect to direct hourly solar radiation measured daily at W/m due to shadowing caused by nearby tree clusters or other environmental factors, such as nearby water streams. Such calculations preferably take into account either monthly mean hourly differences of Vapor Pressure Deficit (VPD) in kPa for months May–Aug or reference evapotranspiration E T o , in mm, based on PenMan-Monteith equations [77], as a cumulative sum for months May-August. At least one monthly variance of VPD 0.4 , or a yearly evapotranspiration difference of 30 mm/y, taking into account as a full year the months of May-Aug, denote an area partitioning into two different regular hexagon areas, whose centers are the two variation points of either VPD or E T o .
The components included in the IoT plant-level motes (see Figure 2b,c, 1), are design-illustrated in Figure 2a, and are the following:
  • Either a COTS 32 bit ESP32 cortex-M3 MPU 32 MHz, of 128 KB Flash, 16 KB or RAM and 4 KB of EEPROM and LoRaWAN onboard transponder that periodically collects and transmits sensory measurements using LoRaWAN frames [78], or Seeduino LoRaWAN RHF76-052AM board with the ATSAMD 48 MHz CPU and an onboard GPS receiver [79] can be used.
  • DHT22 temperature and humidity sensor. Other sensors, such as leaf-wetness and soil moisture sensors, can also be attached.
  • LoRaWAN 14 dBm, 868 MHz transponder supporting class A LoRaWAN protocol.
  • a Ublox NEO-6M GPS on board UART receiver.
  • 3.6 V, 8000 mA Lithium replaceable battery case connected with the board using a JST2.0 cable.
  • External casing magnet for easy attachment to iron vineyard corners (see Figure 2a, 7, and Figure 2b, motes attached to iron corners). External tie wraps can be used for better grasping.
  • Plastic IP67 casing.
  • GPS antenna.
  • LoRAWAN antenna.
thingsAI motes sensory data and GPS location transmissions are controlled by the LoRaWAN Application server per mote accordingly, using downlink LoRaWAN control frames. Usually, sensory measurements are transmitted every 1–4 h so as to conserve motes energy. Motes and meteorological stations’ GPS location frames are usually sent every 24 or 48 h or more. thingsAI IoT end-nodes data transmission application protocol uses two modes: (1) binary data mode and (2) stream data mode transmissions, controlled by the LoRaWAN Application Server. Binary data transmission’s advantage is the 1–3% less battery consumption by reducing the over-the-air data transmission time compared to stream transmissions. Nevertheless, external APIs and interfaces can manipulate stream transmissions much more easily, favoring the system’s scalability.
The thingsAI meteorological stations are illustrated in Figure 2d. Their processing unit and interface board are illustrated in Figure 2c, 2. It includes a Seeduino LoRaWAN RHF76-052AM board with the ATSAMD 48 MHz CPU and an onboard GPS receiver [79]. The Seeduino has an onboard GPS receiver, which is using a UART serial port where NMEA data are accumulated. It also has an onboard SPI connected, 14 dBM 868 MHz, LoRaWAN transponder. The sensors attached to the meteorological stations using the Seeduino digital interface pins are a DHT22 humidity sensor, a BMP280 pressure-temperature sensor connected to the I2C Seeduino digital pins, and via the Seeduino analog pins, an analog wind direction, speed sensor, and an open-type analog rain gauge.
The meteorological station’s field placements (see Figure 2d) usually follow a dense micro-climate grid monitoring approach of 1–1.5 km of coverage radius [50]. LoRaWAN meteorological stations also operate autonomously. Usually, data transmissions of meteorological stations are statically performed every 1 min, and their GPS location data transmissions every 24–48 h. Due to the per-minute granularity of sensory data transmissions and the number of sensors, meteorological stations are never in sleep mode. For this reason, a 12 V Pb 60 Ah battery and a pull-down 12–5 V converter are used to power those stations, including a 10–12 W/12 V PV panel directly connected to the battery using alligator clips.
Both IoT end motes and LoRaWAN meteorological stations use the Over The Air Activation OTAA mode and class A mode for LoRaWAN frame transmissions [54]. That is, prior to each transmitted frame, a LoRaWAN join process initiates according to the LoRaWAN protocol specification. The following subsection describes in detail the thingsAI cloud distributed services and LoRaWAN data transmission protocol used both by thingsAI motes and meteorological stations. Section 2.3 provides detailed information regarding the thingsAI system offered services and interfaces.

2.3. ThingsAI LoRaWAN Application Protocols and Cloud Services

The following services have been implemented in the thingsAI system: (1) the data logging service, (2) the geo-location module, (3) the distributed database architecture and interfaces, (4) the RPC motes control service, (5) the AI containers model training agent and inference service, and (6) the ThingsBoard data visualization and notification services.
The data logging service is on the ThingsBoard container. Its main functionality is to subscribe to the MQTT service of the open-source chirpstack LoRaWAN Application server for a specific application topic names and for every mote or meteorological station device ID in that area, as registered to the ThingsBoard Application Server (AS). The data logging service can store measurements in the Cassandra database cluster by performing ThingsBoard AS HTTP POST requests using each device’s unique token ID for authentication. ThingsBoard also has an MQTT broker installed, but it is not used for publishing requests directly since token authentication knowledge per device is required to publish data. Instead, the chirpstack MQTT broker is used as a central gathering point for all messages under a single application area topic. Henceforth, the data logging service is responsible for the per-device message classification and database sensory records submissions using per-device JSON HTTP POST requests. The devices’ Universally Unique Identifiers (DEV-UUIDs) and authentication tokens are maintained separately in the ThingsBoard PostgreSQL database. The data logging service uses this UUID-authentication token tuple information to listen for MQTT messages and forward HTTP POST measurement requests to the ThingsBoard AS, which in turn stores these measurements in the database cluster.
The geo-location module is instantiated in the ThingsBoard AS. It includes a map panel User Interface that can be added to a specific farmer’s monitoring dashboard and a set of notification rule chains that may notify the farmer using external ReST APIs (via e-mail, SMS, or Slack messages). The module keeps track of specific customer-farmer device nodes and updates the per-farmer map panel with the locations of the owned mote devices. The map panel can illustrate mote and meteorological station locations in real-time using the Google Maps API and satellite layer view. The panel can also illustrate the latest telemetry sensory data, recorded date, and battery status using the JavaScript marker popup balloons. Suppose a polygon-activated area is enabled (by drawing a default polygon at the map panel). In that case, the module can issue notifications if a node moves out of the polygon of interest (geofencing), the motes’ GPS coordinates have not been received for more than 48 h, or the mote battery is low.
The Cassandra No-SQL clustered database is a decentralized concept of database nodes that have the same responsibility, and data replication is performed by cloning data from one to the next. All mote records are parts of the same database with different cluster copies. This means that the ThingsBoard AS can directly access any mote stored data, thus enhancing data availability and speed in contrast to the MongoDB hierarchical clustered alternative. Data availability is, in fact, a more crucial parameter than speed for DSS systems offering forecasts since several agents from the AI containers may try to access data over time for model training and inference processes. However, as mentioned by [68], Cassandra outperforms MongoDB for large time ranges, while they have a comparable performance for shorter ones. For example, suppose statistical analysis trends are requested to plot mean temperatures on-demand over the last 20 years or when the requested data size is above 1 M records. In that case, some minor visualization latencies may occur, at most 5–10 s. Nevertheless, its direct any-node connect architecture makes it an ideal database for minimizing data loss and corruption compared to a hierarchical clustered model such as MongoDB [67].
The Remote Procedure Call (RPC) control service is instantiated on top of the ThingsBoard AS. It includes a set of control options that can be set per device entity as server attributes. Such attributes are the time interval, which specifies the mote telemetry transmission period, and the GPS time interval, which specifies the GPS latitude-longitude coordinates acquisition and transmission intervals. Other control options that can be specified are the device-enable attribute and the device-GPS-enabled device server attributes.
End motes and meteorological stations data transmissions are performed using class-A LoRaWAN protocol. In order to cope with different types of sensory motes having different types of sensors installed, different device profiles have been implemented. Profile S1 indicates a temperature-humidity mote. Profile S2 indicates a meteorological station with installed temperature, humidity, pressure, wind speed, direction sensors, and rain gauge (meteorological station profile). Profile S3 indicates a temperature-humidity and leaf wetness sensor, and profile S4 corresponds to a temperature-humidity and soil moisture sensor. Two different types of frames concerning sensory measurements or GPS location are also being transmitted (Type 1 and Type 2 accordingly). Table 4 shows Type 1 sensory measurements payload frame encoding for both binary and stream modes of motes operation. Table 5 shows Type 2 GPS location payload frame encoding for binary and stream modes accordingly. The end motes sensory transmission process flow is illustrated in Figure 3.
LoRaWAN mote data transmission process initiates with the sensory measurements data collection and set up of the control parameters, including parameters such as periods of sensory and GPS location data transmissions, GPS timeout, and transmission mode (binary or stream). Upon successful measurements collection, the device battery status is checked and using the appropriate alarm field, as indicated in Table 4. For sensory measurement transmissions, the data frame encoding process initiates (see Figure 3), and LoRaWAN class-A data transmission occurs without the data acknowledgment flag set. Then, the end device checks whether the GPS location transmission interval is reached. If so, a time interval of 500 s to 2 min to acquire NMEA GPS data from the GPS UART port is initiated as set by the GPS timeout control parameter. A LoRaWAN frame is constructed upon a successful GPS fix, and GPS data are payload-encoded using Table 5.
GPS LoRaWAN frame transmissions are followed with appropriate ACK (acknowledgment frame) reception from the network server during the class-A receive window intervals L1 and L2. During this mote frame receiving state, the LoRaWAN AS down-links the control data updates using explicit stream encoding of comma-delimited control streams. The end devices receive these control parameters and update their EEPROM or Flash control variables. After each data transmission, the motes sleep until the next measurement interval, as shown in Figure 3. The same measurement process applies to the meteorological stations with the difference that GPS measurements may be completely disabled (GPS turn off control command). If the meteorological station devices acquire measurements per minute intervals, due to the large number of sensors that need measurements to be acquired (which requires a mean data acquisition time of 25–30 s including a 5–15 s OTAA join process), the meteorological devices are never put to sleep mode. The following Section 2.4 describes the proposed authors’ deep learning model for the downy mildew events detection implemented by the authors in their thingsAI system implementation.

2.4. ThingsAI Downy Mildew Model

There are significant implications for using deep learning models regarding precision and decision making. Nevertheless, there are limited existing annotated datasets. That is because the need to annotate the sensory datasets properly requires efforts by experts, thus still leaving space for deterministic and empirical models to be used. Towards this direction, Fuzzy logic can offer an alternative utilizing fuzzy measurement sets and fuzzy operations that, if properly supervised, can lead to automated annotation processes. Moreover, the data annotation steps can be performed by auto-encoders to provide vine-level big-data collections as trainable datasets based on human fuzzy linguistic rules. Such datasets can, therefore, be exploited to train deep learning models for precise classification and prediction purposes rather than deterministic mechanistic models that are hard to implement or generalized empirical models.
Towards this automated annotation necessity, the authors propose a new Fuzzy-stranded-Neural Network (Fuzzy-stranded-NN) model for detecting downy mildew events. That is, using sets of Neural Networks of arbitrary depths so as to detect outliers or breakpoints more accurately in contrast to empirical or deterministic models with erroneously calibrated coefficients and parameters due to environmental diversities.
The authors first presented the proposed Stranded-NN model for detecting Industrial machinery outliers [70], now used for detecting downy mildew. The Fuzzy part of this model proposition deals with the automatic annotation tasks of measurements based on fuzzy logic observations, similar to the ones mentioned in Table 3. The model input is a batch of m number of time-series measurements such as m 8 and m m o d ( a ) = = 0 , where a is the number of sensory attributes used, in our case temperature and humidity measurements ( a = 2 ) . These batches are given as input to the model with a specific order ( T , H ) . The model batch input series of: T 0 , H 0 , , T i , H i , , T m , H m measurements, represent a 1D array of ( m , 1 ) , measurements taken from a specific thingsAI sensory mote: s l , where 1 < l k . All measurements are entered in a chronological order stream of t 0 , , t i , t m a timed ( A 0 , , A n ) sensory attributes. This 1D array is called model measurements input batch and corresponds to a specific time length that equals to T p = i = 1 m a t i t i 1 .
The fuzzy-stranded-NN algorithm includes different Neural Network sub-models, each capable of accepting a specific batch size input ( m , 1 ) for training and inference processes. Our proposed model has been constructed using Python TensorFlow framework [55,80] and has been implemented in an AI container of the thingsAI system as a periodic inference service that predicts the criticality of the mildew events using three major classes: (1) Normal class that corresponds to the class when the downy mildew infections are in pause, mildew-1 when the downy mildew infections are linearly evolving or mildew-2 when the downy mildew infections are exponentially evolving. Two more classes are built in the model corresponding to extremely low and extremely high temperatures with declining infection phenomena.
The model can maintain different batch sizes of different time intervals T p . This can be achieved by partitioning a specific time interval d T using different m lengths for specific measured attributes a. The model acts as a prediction classifier presenting an output of the five classes: Cold stress, Mildew-1, Mildew-2, Normal and Hot stress. Cold and Hot stress classes correspond to the mildew decline phenomena classes due to very low and high temperatures that prevail; the normal class corresponds to the non-evolving phenomena class, while mildew-1 and mildew-2 classes correspond to the linear and exponential infections evolving classes accordingly. To provide classification vector outputs, all batch inputs need to be annotated (classified) to one of the above classes and rules based on either experimental results (taken from fungus traps) or simulation results as the ones presented in Table 2. Based on the input batch size ( m , 1 ) , the following Equation (8) determines each strand’s number of hidden layers q, where q 2 :
q = 2 9 m 32 i n t ( l o g 2 ( m ) ) 1 m > 32
If 5 > q 3 , two hidden layers instantiate for these strands of n n = 64 , 16 neurons per layer accordingly. The minimum value of batch input measurements is m = 9 . If the number of hidden layers q > 2 , then the total number of trainable parameters p per model strand as well as the number of neurons n n i per i t h hidden layer are calculated using Equations (9) and (10) accordingly.
p = 2 q + i = 0 q 4 2 i n t ( l o g 2 ( m ) ) i
n n i = 2 q i = 1 , 2 2 q i i > 2
where q is the total number of hidden layers calculated by Equation (8). For example, let us assume per-minute measurements of two attributes, temperature, and humidity ( T , H ) , acquired by a sensory mote s 1 in batches of m = 48 and m = 80 measurements. Each batch includes 24 and 40 periods T p of temperature and humidity measurements. For the input batch values of m = 48 and m = 80, the fuzzy-stranded-NN algorithm generates two fully connected neural network models of three q = 3 and q = 4 hidden layers accordingly. The neurons per hidden layer are L 1 32 L 2 32 L 3 16 for m=48 and L 1 64 L 2 64 L 3 32 L 4 16 for m = 80. If the measurements correspond to two attributes ( T , H ) , and each measurement is hourly measured, then the prediction time intervals T p = 24 h for m = 48 and T p = 40 h for m = 80. In order to eliminate degraded gradients, L1 regularization is also performed in each hidden layer, but the ability to introduce dropout layers per strand to avoid over-fitting has been disabled to improve accuracy results [70]. Table 6 presents the fuzzy-stranded-NN model hyperparameters that can be fine-tuned during the model training process.
A separate training process for each model strand must be performed for the model to provide multi-strand classification results. Therefore, an initial big annotated dataset of temperature and humidity measurements is needed. The training dataset has been acquired using a thingsAI meteorological station that the authors have placed in a viticulture field in Zitsa, Epirus, Greece. The meteorological station device could acquire temperature, pressure, humidity, wind direction, speed, and rain measurements per minute from 2018 to 2023. In order to obtain additional temperature and humidity measurements, the Open-Meteo API has been used [81], taking hourly measurements from 2010–2018. In order to expand these measurements to minute scale, a padding process has been implemented using a second-order polynomial kernel in the form of a x 2 + b x + c between two i t h interval hourly measurements, let T 1 , T 2 , T 1 T 2 and H 1 , H 2 , with H 1 H 2 . If T 1 = T 2 , or H 1 = H 2 then a random uniform padding process has been used starting from the base temperature T 1 or humidity H 1 in the ( m i n , m a x ) range of ± 0.5 for temperatures and ± 1 for humidity measurements accordingly.
Each one of these measurement T , H pairs have been annotated into the five different classes using an automated fuzzification process of semi-automated set rules. The fuzzy sets for temperature measurements include low temperatures (temp-cold set), of low temperatures up to 10 °C, where mildew infections do not occur according to the literature [12], mildew temperatures (temp-critical set) where primary and secondary infections occur (10–23 °C) [7], normal-class temperatures set (temp-normal) where secondary infections occur at a slower pace (23–32 °C) [7] and extremely hot temperatures where the infection cycle stops and diminishes over time (above 32 °C) [11]. The fuzzy sets used for humidity measurements include the dry set of humidity values up to 40%, the wet set of humidity values above 40% and up to 75% of incremental rate infections, and the moist set of humidity values above 75% of exponential rate infections [7]. Bounded sigmoid membership functions (MF) have been used for temp-cold and temp-hot sets according to the experimentally calculated using Equation (11).
f ( x ) = 1 1 + e x · 4 l o g ( 3 ) l o w h i g h · 9 e l o w · 4 l o g ( 3 ) l o w h i g h , 1 f ( x ) 0
where x corresponds to the f ( x ) = 1 membership function (MF) center value and low and high are the arbitrary bounded sigmoid minimum and maximum values, where the corresponding confidence level values are zero. The same applies to dry and moist humidity sets. For all other sets of temperature and humidity domains, triangular sigmoid functions have been used. Each membership function (MF) output value is the fuzzy probability of confidence of a specific temperature or humidity value corresponding to a specified fuzzy state-set. Figure 4a,b illustrate the membership functions of temperature and humidity sets used for the sensory data automatic annotation process.
The fuzzy inference output set uses temperature as the base measure. It has five fuzzy states that correspond to the stranded-NN classifier outputs (1–5): Class-0 of cold abiotic temperature state, class-1, is the mildew-1 state for primary infections and low secondary infections, class-2, is the mildew-2 state for low primary infections and high secondary ones, class-3 is the normal state class for minimum secondary infections, or secondary infections at decline and the class-4 corresponds to hot abiotic stress conditions of high temperatures. Figure 4c shows the membership functions of the fuzzification output results corresponding to the fuzzy-stranded-NN classes (0–5). The fuzzy outputs are calculated from the fuzzy inputs according to the fuzzy rules presented in Table 7. These fuzzy rules are the non-automatic part of the fuzzy annotation process. The agriculturist experts can set them accordingly on the area of interest in a fuzzy manner.
Table 7 lingual hedges of plus, minus, and very modify the curves of the membership function values performed at the Mamdani-based fuzzy outputs as mentioned in [82]. The linguistic term very corresponds to the square of the output ( M F v = M F v 2 ). The linguistic term plus equals M F v = 1.2 · M F v , while the minus hedge corresponds to M F v = 0.75 · M F v . With the use of the proposed fuzzy-stranded-NN model, the thingsAI platform can offer decision support regarding farmers’ intervention breakpoints starting from the 1st of May and focusing mainly on secondary infection cycles intervention events can be estimated from the model inference class outputs provided by Equation (12).
d T I N T = 1 k c p c o n f · d T , c l a s s = 0 C i p c o n f · d T , c l a s s = 1 , 2 1 k n ( 1 p c o n f ) · d T , c l a s s = 3 0 , c l a s s = 4
where d T I N T is the daily interval fraction that the disease is in progress. The C i values denote the model inference class value (For example, class 1 (mildew-1) and 2 (mildew-2)), and p c o n f is the confidence level that the predicted inference class result belongs to that specific class, as calculated by the model. Coefficients k c , k n determine the contribution percentage of the disease as a weight parameter for cold abiotic and normal classes accordingly. Suppose the model inference output denotes a class 0 (cold abiotic) or class 3 (normal); parameter values in the range of 9 k c , k n 3 can be used. d T is the corresponding periodic time interval that the model issues detections (inferences), as presented in Table 8, d T value. The d T I N T value is measured in daily intervals, using Equation (11). The total number of secondary infections progress T I N T is expressed as a cumulative sum in days by Equation (13).
T I N T = i = 1 n d T I N T i
where i is the model counted inference intervals cycles starting from the 1st of May. According to the bibliography, the initial oil spot lesions typically appear between 7 and 18 days. This means that an intervention breakpoint must be set when the T I N T reaches this value, usually set to T I N T = 7–12 days, in between the infection period intervals set by [3,6,8]. The system issues appropriate intervention alerts if such breakpoints are reached. When such a breakpoint elapses, the value of T I N T is set to zero, i is set to 1, and the calculation is repeated for the following breakpoint interval.
In the following sections the authors present their experimentation with their proposed fuzzy-stranded-NN downy mildew classifier model.

3. Experimental Scenario

The author’s experimentation took place in a 0.7 Ha viticulture field of the Debina white grape variety in Zitsa, Epirus, Greece. The experimental setup included one LoRaWAN meteorological station set up in the middle of the field and three end motes (hkt_thp1–3) whose viticulture field placements were based on the elevation and VPD mote criteria of 2021. The end motes data transmissions have been set to hourly intervals. The meteorological station data transmissions have been set to every minute. Figure 5 shows the viticulture field and the installed temperature and humidity motes (motes htk_thp1–3), as illustrated on the ThingsBoard AS map-panel, over the satellite layer of the Google Maps API [83]. The motes used in this experimental scenario include temperature and humidity sensors. The installed meteorological station includes temperature, humidity, pressure, wind speed, wind direction sensors, and an open-type rain gauge.
The authors tested and validated their end-mote proposition by collecting temperature and humidity measurements per end-mote and presenting these results using the appropriate ThingsBoard AS dashboard User Interfaces. Moreover, appropriate dashboards have also been created for the LoRaWAN meteorological station that can illustrate measurements in real-time, hourly, weekly, monthly, and yearly. Measurements have been collected from the viticulture field motes for 2021–2023 and for the months of March until September for each year accordingly. At first, the fuzzification process was executed using the MF functions and fuzzy rules described in Section 2.4. The fuzzy inference class annotation outputs for different temperature and humidity values are illustrated in Figure 6.
The fuzzy-stranded-NN model has been trained using the collected temperature and humidity measurements. In order to circumvent model erroneous prediction for years 2021–2023 due to over-fitting, additional hourly temperature and humidity measurements have been acquired from years 2011–2023 from the Zitsa meteorological station using the OpenMeteo historical API [81] (acquiring Zitsa area historical data for months March until September each year (2011–2020)). Additionally, all OpenMeteo hourly measurement intervals have been padded to a minute scale as described in Section 2.4. From this training process, the author’s meteorological station collected data from the years 2021–2023, which have been kept and used by their model evaluation scenarios. The collected data set, upon data padding, included a total of 4.8 million temperature-humidity measurement pairs. These value pairs have been annotated and fed as input to the fuzzy-stranded-NN model using 80% of the dataset for training and 20% for testing. From the fuzzy stranded model, the strands of temperature-humidity batches of size n = 16, 48, 80, 160, 480, and 960 have been trained using the fuzzy annotated dataset as input.
Before different batch size model strand training, the input measurements data have been partitioned into batches of measurements. Since the fuzzy annotation process has been performed for each measurement of T , H separately, the per batch aggregated annotated fuzzy output class and class confidence level (that expresses the probability that a set of measurements belongs to a class), have been calculated as a mean value of the class and confidence vectors per batch. According to the mentioned partitioning and batch annotation steps, different annotated batch input sets have been created for each strand to train. The per-strand training process used the default model hyperparameters as presented in Table 6. Section 3.1 presents the trained fuzzy-stranded-NN model evaluation results.

3.1. Training Model Evaluation

For the proposed fuzzy-stranded-NN model validation and evaluation, the technique that we use to minimize the loss is the Adaptive Momentum Estimation algorithm or Adam optimization, starting with an initial high learning rate parameter of 0.01 that is gradually reduced by a factor of f = 10 2 , n e w l r = l r · f . This adaptive callback monitors cross-entropy loss, and if no improvement is seen for three epochs (patience = 3), the learning rate is reduced until the value of l r = 10 4 . During epoch evaluation stages using the test dataset, both accuracy and the categorical cross-entropy loss function, which calculates loss between the actual labels and predictions for multi-class data, is used, based on Equation (14).
L t o t C E = j = 1 n i = 0 C y j ^ a c t u a l i · l o g ( y j ^ p r e d i )
where i = 0…C, the classifier classes, j = 1 n , the testing set members, and y ^ a c t u a l i , y ^ p r e d i , the actual and predicted classification vectors, expressed as a cumulative value called total loss. Similarly, the accuracy metric is calculated for each epoch during testing as the percentage of the predicted classification values ( y P r e d ) that match actual values ( y T r u e ) over the total number of testing set members.
The confidence metric C o n f j , for each j predicted class output, expresses the distance between the maximum predicted value ( p v i ) upon normalization of the classifier output vector and the actual ground truth class i (vector element position), expressed by Equation (15).
C o n f j = | m a x { p v i } | , i = 0 C
The metrics of accuracy and total loss( L t o t C E ) have been used for each one of the model strands and different epoch values of 10, 20, 30, 40, 50, 60, 70, and 80 per strand accordingly. Figure 7 illustrates the accuracy results over batch size n for different epoch values, while Figure 8 illustrates the total loss values over batch size n for different epochs.
From Figure 7 accuracy results, the accuracy starts with the highest value of 95% for n = 16, and 92–93% for stranded models of n = 160, 80 and 48 batch sizes over 10–20 epochs. However, these high accuracy scores start decreasing above 20 epochs, achieving minimum accuracy scores of 85% at 40 epochs. The model accuracy stabilizes close to 90% for 60–70 epochs and close to 90.5% at 80 epochs.
Total loss for models n = 16, 48 remains constant for all epochs, while for n = 80, 160, the loss decreases starting from 10 to 20 epochs, and above 20 epochs, it also remains constant. This means that for small batch input size strands (up to 160 measurements batch), at least a number of 20 epochs is needed for the loss to minimize. Above 20 epochs, introducing more epoch cycles can contribute to improved accuracy results of 0–5% up until 80 epochs. This improvement is mainly caused by the adaptive learning rate mechanism of the Adam optimizer used by the model. Above 80 epochs, accuracy remains constant, offering no more than 0.5–1% improved accuracy results. The proposed fuzzy-stranded-NN model manages to maintain a mean accuracy result of 90.5% for stands of batch size less than 160 measurements. and mean accuracy of 90% for strands of batch size above 480. The number of measurements per batch size is presented in Table 6.
Large batch size strands of n = 480 and n = 960 present significant losses for low training epochs (less than 50 epochs) as shown in Figure 7. This is due to the excess size of their network and the large number of parameters that need to be trained, leading to categorical losses for a low number of epochs. However, above 70 epochs, the loss slowly decreases, presenting a minimum mean loss value of 0.7 at 80 epochs. Nevertheless, the pertained loss of high batch size strands is at least 100–120% more than their small batch size counterparts. This is not the case for the accuracy. As shown in Figure 7, for n = 480 and 80 epochs the accuracy of 91% has been achieved because of the adaptive learning rate is similar to the accuracy of small batch size strands. Table 9 presents the number of hidden layers and trainable parameters for the different strands according to their input measurements batch sizes.
The same accuracy results close to 90.5% can also be achieved for n = 960 for more than 80 epochs up to 120 trainning epochs. For 80 epochs though, the n = 960 strand presents the least accuracy of 89.5%. Concluding, the maximum accuracy difference for all stranded networks at 80 epochs is more or less 1% from the mean model strands accuracy of 90.4%. This means that for 80 training epochs, all strands present almost similar accuracy results close to 90% with a window of improvement of 0.8–1.2% for training up to 120epochs. This is not the case for total loss, where the loss of lower strands is at least two times lower than that of bigger strands. This, of course, mainly affects the confidence values of the classification outputs and not the output class values. The following Section 3.2 presents the author’s model experimentation on the debina white grape variety.

3.2. Trained Model Experimentation

In order to validate their model further, the authors performed the following experimentation in their viticulture field of reference for the years 2021–2023. The authors used their meteorological station measurements and their fuzzy-stranded-NN model to provide daily model classifications for their five-model output classes. Figure 9 shows their meteorological station rainfall measurements, and Figure 10 shows the vapor pressure deficit values for the years 2021 to 2023.
For 2021, the authors performed five protective treatments starting from the 15th of May using Bordeaux mixture every 15 days until the 15th of July. The same methodology has been repeated for 2022, with the difference that the fifth fungicide intervention has been replaced with leaf removal close to the fruit, leaving it exposed to sunlight. Both of these precision viticulture cases have been characterized as normal cases that led to mean productivity results of 680 kg/1000 m2 for 2021 and 590 kg/1000 m2 for 2022. The productivity difference between the years 2021 and 2022 is mostly due to other infections, specifically white mildew and specifically for botrytis cinerea, that have been treated on a separate intervention at the beginning of August each year, while the white mildew disease has been treated along with downy mildew fungicide interventions starting from the 1st of July. The experimental vineyard is a 40-year-old debina vineyard, and during the experimentation, no irrigation or fertilization plans have been performed. The authors also confirm that their intervention planning managed to prevent and eliminate completely even early downy mildew appearances for years 2021 and 2022.
For the year 2023, the authors performed no interventions, closely monitoring the progress of the disease, which started to appear with a minimum number of sporangia at the back of some leaves on the 1st of June. What followed was a catastrophic collapse. At least one oil spot/tree appeared until 12/6, the first signs of the disease at the fruit appeared until 20/6, and until 30/6, the whole fruit has been led to necrosis, with most of the leaves/tree having oil spots. The productivity results of the year 2023 were 0 kg/1000 m2, thus characterizing this experiment as a mildew outburst case. Furthermore, the year 2023 has been characterized as a year of mildew outbursts in the area of Zitsa, where most of the nearby farmers did not manage to save their crops. A few that did were forced to perform 7–8 interventions from May until the end of August to save 70–80% of their production, while farmers that performed 5–7 interventions managed to save 30–50% of their production accordingly. Since most of the farmers in this viticulture area have in mind periodic planning of at most five interventions/year, usually applied after more than 5 mm/h of rainfall of more than 2 h, the fact that more than five interventions were needed for 2023 led to interventions misplanning and thus productivity losses.
Since the installed thingsAI meteorological station offers per-minute measurements, the strand of batch size n = 960, which offers 8 h interval predictions, has been used. Two main reasons led to the selection of this strand. First, it’s NN depth that makes it a deep learning representative concerning its similar accuracy results towards less deep strands, and second, its meteorological station measurements granularity. Table 10 summarizes the mean VPD and rainfall results for the years 2021 to 2023.
As shown in Table 10, it is obvious that for 05/2023, there was an increase in monthly rainfall 5 and 3 times more compared to 2021 and 2022. For 06/2023 and 06/2022, there was also an increase in monthly rainfall three times more than in 2021. The same pattern applies for the 8/2022 and 8/2023 concerning 2021. Significant variations in rainfall appear for July. However, due to the small mean values (≤0.3) and high mean VPD values (>1.5), they are considered similar for all years in terms of downy mildew incubation time.
Regarding the mean VPD values between 2021 and 2023, the VPD differences are of value 0.36 for May, 0.61 for June, 0.2 for July, and 0.56 for August. These differences signify that monthly mean VPD reductions of more than 0.3 kPa over the years, especially for May and June, can lead to faster downy mildew growth and, thus, more frequent interventions to ameliorate it.
The authors experimented with the n = 960 strand of their model, which corresponds to a measurement time frame of 8 h ( d T = 0.33 day). The authors calibrated their model coefficients k c = 1 4 and k n = 1 6 , derived from Equation (12), using the year 2021 as reference. Furthermore, they set a breakpoint for an imminent intervention T I N T when the metric reaches the value of 12 infection cycle days. The following sections present the author’s intervention results over normal and mildew outbursts, as the model predicted.

3.3. Scenario I: Model Experimentation under Normal Conditions

The authors model experimental results for 2021 and 2022, characterized as normal conditions cases, are illustrated in Figure 11.
As shown in Figure 11, the d T I N T infection cycle days are represented on the y-axis as a cumulative sum, calculated by Equation (12). Time of 8h intervals are shown on the x-axis, as denoted by the n = 960 model strand, starting from the 1st of May until the end of August. When the cumulative sum of d T I N T infectious days reaches the value of 12 days, then an alert is triggered by the thingsAI system, indicating an intervention breakpoint, and the value of d T I N T is set to zero for the cycle to repeat. Four intervention breakpoints have been triggered for 2021, while five breakpoints have been triggered for 2022. The first three breakpoints have been triggered almost at the same time intervals for both years, while there is a delayed offset of 10 days for the fourth breakpoint for 2021 with respect to 2022 and a fifth single breakpoint at 27/8 for 2022. From the farmer recorded interventions, only four interventions were required for the year 2021 instead of five performed and exactly five interventions for the year 2022 in order to disperse downy mildew infections.

3.4. Scenario II: Model Experimentation under Downy Mildew Outbursts

The author’s model experimental result for the year 2023, characterized as a downy mildew outburst case compared to the normal case of 2022, is illustrated in Figure 12.
The experimental results, illustrated in Figure 12 show an increase in the number of interventions required for 2023 concerning 2022 from 5 to 7 interventions and also pinpoint significant intervention offsets from 2 up to 10 days. This increased frequency and offsetting made it hard for the farmers to cope with such environmental changes compared to their previous years’ practices, thus leading to significant productivity losses or collapses due to downy mildew infections.
Additionally, the authors compared their model intervention outcomes for the year 2023 with the infection alerts provided by the Goidanich model, as adapted by [84]. The authors use a Goidanich index value of at least 100 to trigger an alert (resetting its value each time) and a cumulative rainfall RF > 10 mm for 72 h starting from the 1st of May for primary infections to occur. Figure 13 illustrates the fuzzy-stranded-NN n = 960 input batch size T I N T outputs compared to the Goidanich model alert results, using GI > 100, for imminent interventions during the 2023 mildew outburst in the Zitsa area.
The experimental results show that both the Goidanich and fuzzy-stranded-NN models detected the same number of seven seasonal interventions, as indicated by the number of triggered alerts issued by both models. Additionally, the fuzzy-stranded-NN model for May-July proposes earlier interventions with a mean offset of 5.3 days (from 1/5 until 6/8) concerning Goidanich alerts for interventions. This is indifferent for the rest of August, where the Goidanich model proposed one intervention 12 days prior to the one proposed by the fuzzy-stranded-NN model. These offsets are probably because the GI index starts increasing from the 8th of May due to the 72 h cumulative rainfall value > 10 mm threshold required for GI to start counting and the GI > 100 threshold value set. In conclusion, this validates the proposed model’s results compared to the most used model for alerts triggered by DSS systems. Nevertheless, further evaluation is required, set by the authors as future work.

4. Conclusions

This paper presents a new cloud-based Decision Support System architecture for the viticulture industry called thingsAI. It utilizes autonomous end-node devices called motes and meteorological stations to provide a dense plant-level measurement acquisition grid. Mote devices and meteorological stations use low-power, long-range LoRaWAN technology for their data transmissions. The thingsAI system includes a distributed Cassandra sensory data-collection entry-point and dockerized cloud-ready services hosting its deep learning models for classification and prediction inference tasks. Furthermore, the thingsAI system is equipped with the open-source ThingsBoard Application Server rule chains, alarms, and User Interfaces to deliver sensory measurement trends, suggestions, and decision results to the farmers.
Focusing on the downy mildew disease in viticulture and an extensive literature study on the methods used for the detection of downy mildew, the authors denote that existing ones are either too simplified or complex enough. Simplified in using measurements such as rainfall due to the lack of dense measurement grids. Complex, such as the mechanistic models of hard algorithmic processes for DSS systems to implement, rely on many parameters of extensive experimental calibration. Specifically, the mechanistic models focus mainly on the deterministic representation of the downy mildew development with minimum accountability on different varieties, environmental conditions, and climate change. That is, if applied, they do not provide useful feedback information for the farmers to use.
The authors implemented a deep learning model called fuzzy-stranded-NN to ameliorate the discrepancies between theory and application of the mechanistic models. The model utilizes an automated data annotation process based on semi-automated fuzzy rules. Using simplified lingual expressions, the farmer’s or agronomists’ experience can explicitly set these rules arbitrarily. The proposed model also utilizes several neural networks called strands, each of arbitrary layer depths based on the number of input measurements used, called input batches. This way, more precise predictions can be inferred based on the density of input measurements offering vine-level detections. Existing meteorological station grids may offer up to 15 min of sensory measurements and forecasts. The trained model strands can use these meteorological forecasts to provide 4–7 days of downy mildew forecasts and emerging and future interventions.
The authors experimented with their downy mildew model implementation on the debina white grape variety in its protected designation of origin cultivation area of Zitsa, Epirus, Greece, under normal cases and downy mildew outbursts. From their experimental scenario, the author’s fuzzy-stranded-NN model proposition trained on downy mildew fuzzy annotated datasets successfully issues accurate intervention breakpoints as indicated by the farmers, providing detection accuracies above 90% as indicated by model testing. The authors’ fuzzy-stranded-NN detection outputs have also been validated using the Goidanich model index under mildew outburst cases, where it successfully managed to provide the same number of monthly interventions as the Goidanich model.
Limitations of the presented thingsAI system are the LoRaWAN coverage required for the motes data transmissions to the cloud. This limitation can be easily surpassed with the use of a sparse grid of LoRaWAN gateways due to the 5–12 km coverage radius per gateway offered by the LoRa narrow-band chirp modulation. Another limitation is the mote’s autonomous operation. Motes transmitting measurements every hour may lead to the depletion of their included battery packs every 3–4 months. Thus, farmers’ efforts are required to monitor, replace, and recharge the mote’s battery packs. Regarding the fuzzy-stranded-NN algorithm as a generic algorithm for events classification, there are limitations on both the fuzzy and strand parts of the model. Focusing on the fuzzy part, the definition of the most accurate membership functions that represent a measurement or metric or a phenomenon and the expression of the most representative fuzzy rules for the auto-annotation process is critical and must be performed cautiously. Nevertheless, simulation and trial-and-error experimentation can easily surpass errors in this fuzzy semi-supervised process. Regarding the model NN strands, more than an adequate number of measurements due to limited input sources may lead to poorly trained narrow model strands of low accuracy results.
The authors set as future work the further experimentation of their proposed system and downy mildew model under different environments and vine varieties. The authors set future work to incorporate more models into their thingsAI system, focusing on deep learning irrigation planning models and other disease decision models specifically for botrytis cinerea and white mildew. The authors also set as future work the cross-comparison of their model proposition to existing mechanistic models for further improving their model toward the differentiation among primary and secondary downy mildew infection points, providing different valuable insights accordingly to the farmers.

Author Contributions

Conceptualization, S.K. (Sotirios Kontogiannis) and S.K. (Stefanos Koundouras); methodology, C.P.; software, S.K. (Sotirios Kontogiannis); validation, S.K. (Sotirios Kontogiannis), S.K. (Stefanos Koundouras) and C.P.; formal analysis, S.K. (Sotirios Kontogiannis); investigation, S.K. (Sotirios Kontogiannis); resources, C.P.; data curation, S.K. (Sotirios Kontogiannis); writing—original draft preparation, S.K. (Sotirios Kontogiannis); writing—review and editing, S.K. (Stefanos Koundouras) and C.P.; visualization, S.K. (Sotirios Kontogiannis); supervision, C.P.; project administration, C.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ACKAcknowledgment frame
ASApplication Server
COTSComponent Out of The Self
DSSDecision Support Systems
EEPROMElectrically Erasable Programmable Read Only Memory
GIGoidanich Index value
GPSGlobal Positioning System
HaHectars, Area Unit of measurement
I2CInter-Integrated Circuit synchronous digital communication protocol
KPIKey Performance Indicators
NBIoTNarrow Band Internet of Things
NMEANational Marine Electronics Association positioning standards
NNFully Connected Neural Networks
OGCOpen Geospatial Consortium
OTAAOver The Air Activation
SDKSoftware Development Kit
SOSSensor Observation Services
SPISynchronous Peripheral Interface, serial communication protocol
StrStremmata area Unit of measurement equal to 1000 m2 = 0.1 Ha
SVMSupport Vector Machines
UARTUniversal asynchronous Receiver-Transmitter
Vitis ViniferaCommon grape vine varieties in EU
VPDVapor Pressure Deficit metric
VUVine Units
P. viticolaPlasmopara Viticola, downy mildew

References

  1. Fontaine, M.C.; Labbé, F.; Dussert, Y.; Delière, L.; Richart-Cervera, S.; Giraud, T.; Delmotte, F. Europe as a bridgehead in the worldwide invasion history of grapevine downy mildew, Plasmopara viticola. Curr. Biol. 2021, 31, 2155–2166. [Google Scholar] [CrossRef] [PubMed]
  2. Velasquez-Camacho, L.; Otero, M.; Basile, B.; Pijuan, J.; Corrado, G. Current Trends and Perspectives on Predictive Models for Mildew Diseases in Vineyards. Microorganisms 2022, 11, 73. [Google Scholar] [CrossRef] [PubMed]
  3. Bove, F.; Savary, S.; Willocquet, L.; Rossi, V. Designing a modelling structure for the grapevine downy mildew pathosystem. Eur. J. Plant Pathol. 2020, 157, 251–268. [Google Scholar] [CrossRef]
  4. Rossi, V.; Caffi, T.; Gobbin, D. Contribution of molecular studies to botanical epidemiology and disease modelling: Grapevine downy mildew as a case-study. Eur. J. Plant Pathol. 2013, 135, 641–654. [Google Scholar] [CrossRef]
  5. Pearce, I.; Coombe, B. Grapevine Phenology Revised version of Grapevine growth stages. The modified E-L system. In Viticulture Resources, 2nd ed.; Winetitles: Broadview, SA, Australia, 2004; Volume 1. [Google Scholar]
  6. Caffi, T.; Gilardi, G.; Monchiero, M.; Rossi, V. Production and release of asexual sporangia in Plasmopara viticola. Phytopathology 2013, 103, 64–73. [Google Scholar] [CrossRef]
  7. Bove, F.; Savary, S.; Willocquet, L.; Rossi, V. Simulation of potential epidemics of downy mildew of grapevine in different scenarios of disease conduciveness. Eur. J. Plant Pathol. 2020, 158, 599–614. [Google Scholar] [CrossRef]
  8. Rossi, V.; Caffi, T.; Bugiani, R.; Spanna, F.; Valle, D.D. Estimating the germination dynamics of Plasmopara viticola oospores using hydro-thermal time. Plant Pathol. 2008, 57, 216–226. [Google Scholar] [CrossRef]
  9. Caffi, T.; Rossi, V.; Cossu, A.; Fronteddu, F. Empirical vs. mechanistic models for primary infections of Plasmopara viticola. EPPO Bull. 2007, 37, 261–271. [Google Scholar] [CrossRef]
  10. Müller, K. Die biologischen Grundlagen für die Peronosporabekämpfung nach der Inkubationskalender-Methode. Z. FüR Pflanzenkrankh. (Pflanzenpathol.) Pflanzenschutz 1936, 46, 104–108. [Google Scholar]
  11. Lalancette, N.; Ellis, M.A.; Madden, L.V. Development of an infection efficiency model for Plasmopara viticola on American grape based on temperature and duration of leaf wetness. Phytopathology 1988, 78, 794–800. [Google Scholar] [CrossRef]
  12. Zachos, D. Recherches sur la biologie et l’épidémiologie du mildiou de la vigne en Grèce. Ann. Inst. Phytopathol. Benaki 1959, 2, 193–335. [Google Scholar]
  13. Peladarinos, N.; Piromalis, D.; Cheimaras, V.; Tserepas, E.; Munteanu, R.A.; Papageorgas, P. Enhancing Smart Agriculture by Implementing Digital Twins: A Comprehensive Review. Sensors 2023, 23, 7128. [Google Scholar] [CrossRef]
  14. Ferro, M.V.; Catania, P. Technologies and Innovative Methods for Precision Viticulture: A Comprehensive Review. Horticulturae 2023, 9, 399. [Google Scholar] [CrossRef]
  15. Kontogiannis, S.; Asiminidis, C. A Proposed Low-Cost Viticulture Stress Framework for Table Grape Varieties. IoT 2020, 1, 337–359. [Google Scholar] [CrossRef]
  16. Trilles, S.; Torres-Sospedra, J.; Belmonte, O.; Zarazaga-Soria, F.J.; Gonzalez-Perez, A.; Huerta, J. Development of an open sensorized platform in a smart agriculture context: A vineyard support system for monitoring mildew disease. Sustain. Comput. Inform. Syst. 2020, 28, 100309. [Google Scholar] [CrossRef]
  17. Hnatiuc, M.; Ghita, S.; Alpetri, D.; Ranca, A.; Artem, V.; Dina, I.; Cosma, M.; Abed Mohammed, M. Intelligent Grapevine Disease Detection Using IoT Sensor Network. Bioengineering 2023, 10, 1021. [Google Scholar] [CrossRef]
  18. Mezei, I.; Lukić, M.; Berbakov, L.; Pavković, B.; Radovanović, B. Grapevine Downy Mildew Warning System Based on NB-IoT and Energy Harvesting Technology. Electronics 2022, 11, 356. [Google Scholar] [CrossRef]
  19. Pérez-Expósito, J.P.; Fernández-Caramés, T.M.; Fraga-Lamas, P.; Castedo, L. VineSens: An Eco-Smart Decision-Support Viticulture System. Sensors 2017, 17, 465. [Google Scholar] [CrossRef]
  20. Kasapakis, I. ZenAgro Company LLC. 2021. Available online: https://zenagropc.com/ (accessed on 1 February 2021).
  21. Mian, G.; Buso, E.; Tonon, M. Decision Support Systems for Downy Mildew (Plasmopara viticola) Control in Grapevine: Short Comparison Review. Asian Res. J. Agric. 2021, 14, 12–20. [Google Scholar] [CrossRef]
  22. Ostojić, Z. Priručnik Izveštajne i Prognozne službe zaštite Poljoprivrednih Kultura; Savez Drustava Za Zastitu Bilja: Belgrade, Yugoslavia, 1983. [Google Scholar]
  23. Baldacci, E. Epifitie di Plasmopara viticola (1941–46) nell’Oltrepó Pavese ed adozione del calendario di incubazione come strumento di lotta. Atti Ist. Bot. Lab. Crittogam. 1947, 8, 45–85. [Google Scholar]
  24. Goidanich, G.; Casarini, B.; Foschi, S. Lotta antiparassitaria e calendario dei trattamenti in viticoltura. Giornale di Agricoltura 1957, 13, 11–14. [Google Scholar]
  25. Puelles, M.; Arbizu-Milagro, J.; Castillo-Ruiz, F.J.; Peña, J.M. Predictive models for grape downy mildew (Plasmopara viticola) as a decision support system in Mediterranean conditions. Crop Prot. 2024, 175, 106450. [Google Scholar] [CrossRef]
  26. Fernández-González, M.; Piña-Rey, A.; González-Fernández, E.; Aira, M.J.; Rodríguez-Rajo, F.J. First assessment of Goidanich Index and aerobiological data for Plasmopara viticola infection risk management in north-west Spain. J. Agric. Sci. 2019, 157, 129–139. [Google Scholar] [CrossRef]
  27. Stryzik, S. Modéle d’état potentiel d’infection: Application a Plasmopara viticola. In Association de Coordination Technique Agricole; Maison Nationale des Eleveurs: Paris, France, 1983; pp. 1–46. [Google Scholar]
  28. Sanna, F.; Cossu, A.; Roggero, G.; Bellagarda, S.; Deboli, R.; Merlone, A. Evaluation of EPI forecasting model with inclusion of uncertainty in input value and traceable calibration. In Proceedings of the 17th Conference Convegno Nazionale di Agrometeorologia—AIAM, Rome, Italy, 10–12 June 2014; pp. 61–63. [Google Scholar]
  29. Park, E.; Seem, R.; Gadowry, D.; Pearson, R. DMCast: A prediction model for grape downy mildew development. Viticutural Enol. Sci. 1997, 52, 182–189. [Google Scholar]
  30. Gehmann, K.; Staudt, G.; Grossmann, F. Der Einfluß der Temperatur auf die Oosporenbildung von Plasmopara viticola / The influence of temperature on oospore formation of Plasmopara viticola. Z. FüR Pflanzenkrankh. Pflanzenschutz/ J. Plant Dis. Prot. 1987, 94, 230–234. [Google Scholar]
  31. Dubuis, P.H.; Viret, O.; Bloesch, B.; Fabre, A.L.; Naef, A.; Bleyer, G.; Kassemeyer, H.H.; Krause, R. Lutte contre le mildiou de la vigne avec le modèle VitiMeteo-Plasmopara. Rev. Suisse Vitic. Arboric. Hortic. 2012, 44, 192. [Google Scholar]
  32. Blaeser, M.; Weltzien, H. Epidemiologische Studien an Plasmopara viticola zur Verbesserung der Spritzterminbestimmung/Epidemiological studies to improve the control of grapevine downy mildew (Plasmopara viticola). Z. Für Pflanzenkrankh. Pflanzenschutz/J. Plant Dis. Prot. 1979, 86, 489–498. [Google Scholar]
  33. Magnien, C.; Jacquin, D.; Muckensturm, N.; Guillemard, P. MILVIT: A descriptive quantitative model for the asexual phase of grapevine downy mildew. IOBC/WPRS Bull. 1991, 21, 451–459. [Google Scholar]
  34. Bleyer, G.; Kassemeyer, H.H.; Krause, R.; Viret, O.; Siegfried, W. VitiMeteo Plasmopara—Prognosemodell zur Bekämpfung von Plasmopara viticola (Rebenperonospora) im Weinbau. Gesunde Pflanz. 2008, 60, 91–100. [Google Scholar] [CrossRef]
  35. Savary, S.; Nelson, A.D.; Djurle, A.; Esker, P.D.; Sparks, A.; Amorim, L.; Bergamin Filho, A.; Caffi, T.; Castilla, N.; Garrett, K.; et al. Concepts, approaches, and avenues for modelling crop health and crop losses. Eur. J. Agron. 2018, 100, 4–18. [Google Scholar] [CrossRef]
  36. Reuveni, M. Relationships between Leaf Age, Peroxidase and β-1,3-Glucanase Activity, and Resistance to Downy Mildew in Grapevines. J. Phytopathol. 1998, 146, 525–530. [Google Scholar] [CrossRef]
  37. Salotti, I.; Bove, F.; Ji, T.; Rossi, V. Information on disease resistance patterns of grape varieties may improve disease management. Front. Plant Sci. 2022, 13, 1017658. [Google Scholar] [CrossRef] [PubMed]
  38. Lalancette, N. Estimating Infection Efficiency of Plasmopara viticola on Grape. Plant Dis. 1987, 71, 981. [Google Scholar] [CrossRef]
  39. Gessler, C.; Pertot, I.; Perazzolli, M. Plasmopara viticola: A review of knowledge on downy mildew of grapevine and effective disease management. Phytopathol. Mediterr. 2011, 50, 3–44. [Google Scholar]
  40. Damalas, C.A.; Eleftherohorinos, I.G. Pesticide exposure, safety issues, and risk assessment indicators. Int. J. Environ. Res. Public Health 2011, 8, 1402–1419. [Google Scholar] [CrossRef] [PubMed]
  41. Fungicide Resistance Action Committee. Fungal Control Agents Sorted by Cross-Resistance Pattern Andmode of Action. 2023. Available online: https://www.frac.info/docs/default-source/publications/frac-code-list/frac-code-list-2023—final.pdf (accessed on 1 November 2023).
  42. Wyenandt, A. Understanding Phenylamide (FRAC Group 4) Fungicides. 2020. Available online: https://plant-pest-advisory.rutgers.edu/understanding-phenylamide-frac-group-4-fungicides/ (accessed on 1 September 2022).
  43. Sharma, N.; Nasrollahiazar, E.; Miles, L.; Miles, T. Michigan Grape Facts: Managing Grapevine Downy Mildew. Grapes 2023. Available online: https://www.canr.msu.edu/resources/michigan-grape-facts-managing-grapevine-downy-mildew (accessed on 1 November 2023).
  44. Chen, M.; Brun, F.; Raynal, M.; Makowski, D. Forecasting severe grape downy mildew attacks using machine learning. PLoS ONE 2020, 15, e0230254. [Google Scholar] [CrossRef] [PubMed]
  45. Léger, B.; Naud, O.; Bellon-Maurel, V.; Clerjeau, M.; Delière, L.; Cartolaro, P.; Delbac, L. GrapeMilDeWS: A Formally Designed Integrated Pest Management Decision Process Against Grapevine Powdery and Downy Mildews. In Decision Support Systems in Agriculture, Food and the Environment: Trends, Applications and Advances; IGI Global: Hershey, PA, USA, 2010; pp. 246–269. [Google Scholar] [CrossRef]
  46. Rossi, V.; Salinari, F.; Poni, S.; Caffi, T.; Bettati, T. Addressing the implementation problem in agricultural decision support systems: The example of vite.net®. Comput. Electron. Agric. 2014, 100, 88–99. [Google Scholar] [CrossRef]
  47. Dubuis, P.H.; Bleyer, G.; Krause, R.; Viret, O.; Fabre, A.L.; Werder, M.; Naef, A.; Breuer, M.; Gindro, K. VitiMeteo and Agrometeo: Two platforms for plant protection management based on an international collaboration. BIO Web Conf. 2019, 15, 01036. [Google Scholar] [CrossRef]
  48. Davy, A.; Raynal, M.; Vergnes, M.; Debord, C.; Codis, S.; Naud, O.; Delière, L.; Fermaud, M.; Roudet, J.; Metral, R.; et al. Decitrait®: Un OAD pour la protection de la vigne. Innov. Agron. 2020, 79, 89–99. [Google Scholar]
  49. Koufos, G.C.; Mavromatis, T.; Koundouras, S.; Jones, G.V. Response of viticulture-related climatic indices and zoning to historical and future climate conditions in Greece. Int. J. Climatol. 2018, 38, 2097–2111. [Google Scholar] [CrossRef]
  50. Zinas, N.; Kontogiannis, S.; Kokkonis, G.; Pikridas, C. A novel microclimate forecasting system architecture integrating GPS measurements and meteorological-sensor data. In Proceedings of the 6th Balkan Conference in Informatics, BCI’13, Thessaloniki, Greece, 19–21 September 2013; pp. 82–88. [Google Scholar] [CrossRef]
  51. Trilles, S.; Lujan, A.; Belmonte, O.; Montoliu, R.; Torres Sospedra, J.; Huerta, J. SEnviro: A Sensorized Platform Proposal Using Open Hardware and Open Standards. Sensors 2015, 15, 5555–5582. [Google Scholar] [CrossRef] [PubMed]
  52. Routray, S.K. Narrowband Internet of Things. In Encyclopedia of Information Science and Technology, 5th ed.; IGI Global: Hershey, PA, USA, 2021; pp. 913–923. [Google Scholar] [CrossRef]
  53. ThingsBoard. ThingsBoard Open-Source IoT Platform. 2019. Available online: https://thingsboard.io/ (accessed on 1 October 2020).
  54. Almuhaya, M.A.M.; Jabbar, W.A.; Sulaiman, N.; Abdulmalek, S. A Survey on LoRaWAN Technology: Recent Trends, Opportunities, Simulation Tools and Future Directions. Electronics 2022, 11, 164. [Google Scholar] [CrossRef]
  55. Google TensorFlow API. Tensorflow 2.0: A Machine Learning System for Deep Neural Networks. 2020. Available online: https://tensorflow.org (accessed on 15 October 2020).
  56. Arnó, J.; Escolà, A.; Vallès, J.M.; Llorens, J.; Sanz, R.; Masip, J.; Palacín, J.; Rosell-Polo, J.R. Leaf area index estimation in vineyards using a ground-based LiDAR scanner. Precis. Agric. 2013, 14, 290–306. [Google Scholar] [CrossRef]
  57. Balafoutis, A.T.; Koundouras, S.; Anastasiou, E.; Fountas, S.; Arvanitis, K. Life Cycle Assessment of Two Vineyards after the Application of Precision Viticulture Techniques: A Case Study. Sustainability 2017, 9, 1997. [Google Scholar] [CrossRef]
  58. Zhang, Z.; Qiao, Y.; Guo, Y.; He, D. Deep Learning Based Automatic Grape Downy Mildew Detection. Front. Plant Sci. 2022, 13, 872107. [Google Scholar] [CrossRef] [PubMed]
  59. Vanegas, F.; Bratanov, D.; Powell, K.; Weiss, J.; Gonzalez, F. A Novel Methodology for Improving Plant Pest Surveillance in Vineyards and Crops Using UAV-Based Hyperspectral and Spatial Data. Sensors 2018, 18, 260. [Google Scholar] [CrossRef]
  60. Li, Y.; Shen, F.; Hu, L.; Lang, Z.; Liu, Q.; Cai, F.; Fu, L. A Stare-Down Video-Rate High-Throughput Hyperspectral Imaging System and Its Applications in Biological Sample Sensing. IEEE Sens. J. 2023, 23, 23629–23637. [Google Scholar] [CrossRef]
  61. Lacotte, V.; Peignier, S.; Raynal, M.; Demeaux, I.; Delmotte, F.; da Silva, P. Spatial–Spectral Analysis of Hyperspectral Images Reveals Early Detection of Downy Mildew on Grapevine Leaves. Int. J. Mol. Sci. 2022, 23, 10012. [Google Scholar] [CrossRef]
  62. Asiminidis, C.; Kokkonis, G.; Kontogiannis, S. Database Systems Performance Evaluation for IoT Applications. Int. J. Database Manag. Syst. 2018, 10. [Google Scholar] [CrossRef]
  63. Tomtsis, D.; Kokkonis, G.; Kontogiannis, S. Evaluating existing wireless technologies for IoT data transferring. In Proceedings of the 2017 South Eastern European Design Automation, Computer Engineering, Computer Networks and Social Media Conference, Kastoria, Greece, 23–25 September 2017; Volume 1, pp. 1–4. [Google Scholar] [CrossRef]
  64. Kokkonis, G.; Chatzimparmpas, A.; Kontogiannis, S. Middleware IoT protocols performance evaluation for carrying out clustered data. In Proceedings of the 2018 South-Eastern European Design Automation, Computer Engineering, Computer Networks and Society Media Conference, Kastoria, Greece, 22–24 September 2018; Volume 1, pp. 1–5. [Google Scholar] [CrossRef]
  65. Open Geospatial Consortium. OGC Sensor Things API. 2024. Available online: https://www.ogc.org/standard/sensorthings/ (accessed on 1 November 2023).
  66. Trilles, S.; Belmonte, O.; Diaz, L.; Huerta, J. Mobile Access to Sensor Networks by Using GIS Standards and RESTful Services. IEEE Sens. J. 2014, 14, 4143–4153. [Google Scholar] [CrossRef]
  67. Araujo, J.M.A.; de Moura, A.C.E.; da Silva, S.L.B.; Holanda, M.; Ribeiro, E.d.O.; da Silva, G.L. Comparative Performance Analysis of NoSQL Cassandra and MongoDB Databases. In Proceedings of the 2021 16th Iberian Conference on Information Systems and Technologies (CISTI), Chaves, Portugal, 23–26 June 2021; pp. 1–6. [Google Scholar] [CrossRef]
  68. Baruffa, G.; Femminella, M.; Pergolesi, M.; Reali, G. Comparison of MongoDB and Cassandra Databases for Spectrum Monitoring As-a-Service. IEEE Trans. Netw. Serv. Manag. 2020, 17, 346–360. [Google Scholar] [CrossRef]
  69. Reis, D.; Piedade, B.; Correia, F.F.; Dias, J.P.; Aguiar, A. Developing Docker and Docker-Compose Specifications: A Developers’ Survey. IEEE Access 2022, 10, 2318–2329. [Google Scholar] [CrossRef]
  70. Kontogiannis, S.; Gkamas, T.; Pikridas, C. Deep Learning Stranded Neural Network Model for the Detection of Sensory Triggered Events. Algorithms 2023, 16, 202. [Google Scholar] [CrossRef]
  71. LoRaWAN, T. The Things Network—EU Frequency Plans. 2023. Available online: https://www.thethingsnetwork.org/docs/lorawan/frequency-plans/ (accessed on 1 December 2015).
  72. Soy, H. Coverage Analysis of LoRa and NB-IoT Technologies on LPWAN-Based Agricultural Vehicle Tracking Application. Sensors 2023, 23, 8859. [Google Scholar] [CrossRef] [PubMed]
  73. Brocaar, O. ChirpStack, Open-Source LoRaWAN Network Server. 2023. Available online: https://www.chirpstack.io/ (accessed on 1 December 2019).
  74. Apache. Cassandra, Open Source NoSQL Database. 2015. Available online: https://cassandra.apache.org/ (accessed on 1 August 2020).
  75. Bender, M.; Kirdan, E.; Pahl, M.O.; Carle, G. Open-Source MQTT Evaluation. In Proceedings of the IEEE 18th Annual Consumer Communications and Networking Conference(CCNC), Las Vegas, NV, USA, 9–12 January 2021; Volume 1, pp. 1–4. [Google Scholar] [CrossRef]
  76. ThingsBoard API. ThingsBoard API Reference. 2018. Available online: https://thingsboard.io/docs/api/ (accessed on 1 October 2020).
  77. Pereira, L.S.; Allen, R.G.; Smith, M.; Raes, D. Crop evapotranspiration estimation with FAO56: Past and future. Agric. Water Manag. 2015, 147, 4–20. [Google Scholar] [CrossRef]
  78. Hunan HKT Technology Co., Ltd. LoRaWAN Temperature and Humidity Sensor with GPS Sensor. 2022. Available online: https://www.hiotech.net/ (accessed on 1 January 2022).
  79. SeedStudio. Seeduino LoRaWAN Board. 2018. Available online: https://wiki.seeedstudio.com/Seeeduino_LoRAWAN/ (accessed on 1 December 2018).
  80. GoogleKeras. Keras: The Python Deep Learning API. 2020. Available online: https://keras.io/api/ (accessed on 22 March 2020).
  81. OpenMeteo. Open Meteo Historical Data API. Available online: https://www.open-meteo.com/en/docs/historical-weather-api (accessed on 1 November 2021).
  82. Kontogiannis, S.; Kokkonis, G. Proposed Fuzzy Real-Time HaPticS Protocol Carrying Haptic Data and Multisensory Streams. Int. J. Comput. Commun. Control 2020, 15. [Google Scholar] [CrossRef]
  83. Google Maps. Google Maps JavaScript API V3 Reference. 2024. Available online: https://developers.google.com/maps/documentation/javascript/reference (accessed on 1 March 2021).
  84. Trilles Oliver, S.; González-Pérez, A.; Huerta, J. Adapting Models to Warn Fungal Diseases in Vineyards Using In-Field Internet of Things (IoT) Nodes. Sustainability 2019, 11, 416. [Google Scholar] [CrossRef]
Figure 1. Proposed thingsAI high-level system architecture.
Figure 1. Proposed thingsAI high-level system architecture.
Computers 13 00063 g001
Figure 2. IoT plant-level monitoring LoRaWAN motes, meteorological stations and vine field placements of motes and meteorological stations. (a) IoT plant-level autonomous LoRaWAN sensory motes with GPS receivers included. (b) IoT plant-level monitoring motes placement in viticulture fields. (c) IoT plant-level (1) end motes, and (2) meteorological stations processing unit boards including onboard communication LoRaWAN transponders and GPS receivers. (d) IoT plant-level LoRaWAN meteorological station placement in viticulture fields.
Figure 2. IoT plant-level monitoring LoRaWAN motes, meteorological stations and vine field placements of motes and meteorological stations. (a) IoT plant-level autonomous LoRaWAN sensory motes with GPS receivers included. (b) IoT plant-level monitoring motes placement in viticulture fields. (c) IoT plant-level (1) end motes, and (2) meteorological stations processing unit boards including onboard communication LoRaWAN transponders and GPS receivers. (d) IoT plant-level LoRaWAN meteorological station placement in viticulture fields.
Computers 13 00063 g002
Figure 3. LoRaWAN class A data transmission process of mote devices and meteorological stations.
Figure 3. LoRaWAN class A data transmission process of mote devices and meteorological stations.
Computers 13 00063 g003
Figure 4. (a) Temperature fuzzy sets, MF and their corresponding confidence levels. (b) Humidity fuzzy sets, MF and their corresponding confidence levels. (c) Fuzzyfication output sets, MF, and their corresponding confidence levels. (a) Illustrates confidence levels of temperature sets over temperatures, (b) illustrates confidence levels of humidity sets over temperatures. In contrast, (c) illustrates both detection classes’ confidence levels and confidence levels per class of the fuzzy annotation outputs based on the fuzzy inference rules.
Figure 4. (a) Temperature fuzzy sets, MF and their corresponding confidence levels. (b) Humidity fuzzy sets, MF and their corresponding confidence levels. (c) Fuzzyfication output sets, MF, and their corresponding confidence levels. (a) Illustrates confidence levels of temperature sets over temperatures, (b) illustrates confidence levels of humidity sets over temperatures. In contrast, (c) illustrates both detection classes’ confidence levels and confidence levels per class of the fuzzy annotation outputs based on the fuzzy inference rules.
Computers 13 00063 g004
Figure 5. Experimental Debina variety viticulture field and end motes (thp1–3) placements as illustrated at the ThingsBoard motes map panel. The meteorological station has been placed in the center of the vine field.
Figure 5. Experimental Debina variety viticulture field and end motes (thp1–3) placements as illustrated at the ThingsBoard motes map panel. The meteorological station has been placed in the center of the vine field.
Computers 13 00063 g005
Figure 6. ThingAI fuzzy-stranded-NN model auto-annotation process over collected temperature and humidity values. Two classes of linear rate evolving mildew-1 and exponential rate mildew-2 are used. Mildew-1 tries to cope with oospore maturation and primary sporulation, while mildew-2 with secondary infections.
Figure 6. ThingAI fuzzy-stranded-NN model auto-annotation process over collected temperature and humidity values. Two classes of linear rate evolving mildew-1 and exponential rate mildew-2 are used. Mildew-1 tries to cope with oospore maturation and primary sporulation, while mildew-2 with secondary infections.
Computers 13 00063 g006
Figure 7. Proposed fuzzy-stranded-NN model accuracy per strand over trained epochs.
Figure 7. Proposed fuzzy-stranded-NN model accuracy per strand over trained epochs.
Computers 13 00063 g007
Figure 8. Proposed fuzzy-stranded-NN model loss per strand over trained epochs.
Figure 8. Proposed fuzzy-stranded-NN model loss per strand over trained epochs.
Computers 13 00063 g008
Figure 9. Viticulture field meteorological station 8 h rain measurements for years 2021–2023.
Figure 9. Viticulture field meteorological station 8 h rain measurements for years 2021–2023.
Computers 13 00063 g009
Figure 10. Viticulture field meteorological station 8 h mean VPD measurements for years 2021–2023.
Figure 10. Viticulture field meteorological station 8 h mean VPD measurements for years 2021–2023.
Computers 13 00063 g010
Figure 11. Viticulture field T I N T values for the years 2021 and 2022.
Figure 11. Viticulture field T I N T values for the years 2021 and 2022.
Computers 13 00063 g011
Figure 12. Viticulture field T I N T values for the years 2022 and 2023.
Figure 12. Viticulture field T I N T values for the years 2022 and 2023.
Computers 13 00063 g012
Figure 13. Viticulture field T I N T values and GI values for the year 2023.
Figure 13. Viticulture field T I N T values and GI values for the year 2023.
Computers 13 00063 g013
Table 1. UCSC model metrics and coefficients [8].
Table 1. UCSC model metrics and coefficients [8].
Metric
/Coef.
EquationDescriptionPhys.
Values
Stage
Degree
Days
D D i = i = 1 m ( T i ¯ 8 ) 100 , if T i ¯ 8 cumulative sum of daily mean temperatures from Jan 1st-primary secondary infections
Degree
Hours
D H i = i = 1 n ( T i ¯ 10 ) 1000 , if T i ¯ 10 cumulative sum ofhourly mean temperatures from Jan 1st-primary secondary infections
Thermal
Time
T T i = t = 1 n ( 1 2.6256 T i ¯ 2 116.19 T i ¯ + 1330.1 ) ) , if T i ¯ 0 cumulative hourly mean T i ¯ --
Hydro
Thermal
Time
H T i = i = 1 n ( T T i · M i ) cumulative hourly mean-oospore maturation germination
Vapor
Pressure
Deficit
V P D i = ( 1 R H 100 ) · 6.11 e ( 17.47 · T ) / ( 239 + T ) The amount of waterin the air in termsof pressure (kPa)min = 0
max = 12.5
norm = 0.6–0.8
-
Moisture
leaf litter
M i = 1 V P D i 4.5 0 R i = 0 a n d V P D i > 4.5 cumulative hourly mean (hourly rainfall R i mm)-oospore maturation germination
RII R I I = e α · e β · x Infection point of the Gompertz equationx = DD, DH, TT, HT0.1-
Coef. α α = 6.5 ( 4.8 8.2 ) f o r D D i 7.9 ( 5.4 10.4 ) f o r D H i 17.0 ( 10.1 23.8 ) f o r T T i 15.9 ( 10.7 21 ) f o r H T i Coeficient α values--
Coef. β β = 0.84 ( 0.75 0.94 ) f o r D D i 0.42 ( 0.36 0.47 ) f o r D H i 0.28 ( 0.25 0.32 ) f o r T T i 0.65 ( 0.58 0.72 ) f o r H T i Coeficient β values--
Table 3. Viticulture DSS systems capabilities.
Table 3. Viticulture DSS systems capabilities.
DSS
System
Meteo
Station
Data
IoT Plant Level MonitoringAuto Location TrackingData AcquisitionLow-Cost Data TransmissionsReST APIInterfacesOpenSource ComponentsInstallation-Maintenance Efforts
Agrometeo-VitimeteoYesNoStatic Meteo-Station location-basedcentral DB, relational schema--Web-based-Low
DecitraitYesNoStatic - Meteo-Station location-based--YesWeb Based, Mobile App-Low
vite.netYesVine Unit monitoring. Use of farmers meteo stationsVU meteo stations GPSPSQL, relational schemaAnnual Provider costs per VUNoWeb-basedYesVU stations maintenance
VineSensNoYesNoMySQL, relational schemaWi-FiNoWeb-basedYesHigh, low coverage area transponders(100m)
SEnviroNoYesYes-GPS equipped nodesPostgres-PostGISMongo Non-relational schemaYes, GPRS, Annual Provider costs per nodeYesWeb-based, Mobile AppYesMedium
WinetNoYesNo-static node locationsMysql relational schemaYes, NBIoT, Annual Provider costs per nodeNoWeb-based, Mobile AppYesLow
ZenAgroYesYesNo-static node locationsPSQLNon-relational schemaLoRa P2PYesWeb-basedYesLow
Table 4. ThingsAI LoRaWAN frame data encoding for sensory measurements—Type 1 message. For profile S1, the maximum frame size for stream mode is 30 bytes, while for profile S2, the maximum frame size for stream mode is 50 bytes.
Table 4. ThingsAI LoRaWAN frame data encoding for sensory measurements—Type 1 message. For profile S1, the maximum frame size for stream mode is 30 bytes, while for profile S2, the maximum frame size for stream mode is 50 bytes.
FieldDescriptionBinary Length (bytes)Maximum Char Length (bytes)Example Hex Value
Protocol HeaderThingsAI protocol header. 0 × 54 for binary encoding, 0 × 53 for string encoding120 × 54|S
DevEUI64 bit Device Unique ID in hex8-0 × 0095690600003796
Device ProfileS1 (0 × 31-1) | S2(0 × 32-2) | S3 (0 × 33-3) | S4(0 × 34-4)111
Frame TypeType 1(A) (sensory data) or Type 2(B) (GPS data)120 × 41|A
Sequence NumberFrame sequence number251–65,535
EventEvent Code 0: Normal, 1: Battery low, 2–7 (bit|value): sensor measurement error11indicates all sensors with errors (1 bit/sensor)
TemperatureTemperature sensor value in °C46 (−9.00–99.00)10.00
Humidity% relative air humidity44 (0.0–99.0)75.0
PressurePressure in kPa (Profile S2 only)46 (90.00–110.00)93.09
Wind speedWind speed km/h (Profile S2 only)45 (0.0–160.0)12.3
Wind directionWind direction (N|NE|E|SE|S|SW|W|NW) (Profile S2 only)420 × 02|NE
Rain Gaugemm Rain (Profile S2 only)45 (0.0–999.9)34.5
Leaf wetness0–1024 analog value (Profile S3 only)44Dry (230)
Soil moisture sensor0–1024 analog value (Profile S4 only)44Wet (980)
Battery voltageCurrent Battery Voltage (V)43 (0.0–5.0)3.5
Table 5. ThingsAI LoRaWAN frame data encoding for GPS measurements—Type 2 message. Maximum GPS measurements frame size for stream mode is 44 bytes.
Table 5. ThingsAI LoRaWAN frame data encoding for GPS measurements—Type 2 message. Maximum GPS measurements frame size for stream mode is 44 bytes.
FieldDescriptionBinary Length (bytes)Maximum Char Length (bytes)Example Hex Value
Protocol HeaderThingsAI protocol header. 0 × 54 for binary encoding, 0 × 53 for string encoding120 × 54|S
DevEUI64 bit Device Unique ID in hex8-0 × 0095690600003796
Device ProfileS1(0 × 31-1) | S2(0 × 32-2) | S3(0 × 33-3) | S4(0 × 34-4)111
Frame TypeType 1(A) (sensory data) or Type 2(B) (GPS data)120 × 42|B
Sequence NumberFrame sequence number251–65,535
EventEvent Code 0: Normal, 1: Battery low, 2: location change112
LongitudeLongitude value (double lng for binary, E0–E180/W0–W180 for stream)813 (8 decimal places)E21.03456871
LatitudeLatitude value (double lat for binary, N0–N90/S0–S90 for stream)812 (8 decimal places)N40.03556845
TimeUTC timestamp (long int for binary, none for stream- Use Lora-server time)8-timestamp
Battery voltageCurrent Battery Voltage (V)43 (0.0–5.0)3.5
Table 6. Fuzzy-stranded-NN model hyperparameters and their default tuned values.
Table 6. Fuzzy-stranded-NN model hyperparameters and their default tuned values.
HyperparameterDescriptionTuning Value RangeDefault Value
λ L1 regularization parameter0.2–0.00010.005
m m a x Maximum number of input measurements (max batch size) 2 32 1024
λ t Learning rate parameter 10 6 λ t 0.01 10 4
λ d Learning rate decrease coefficient0.00001–0.90.2
n s Number of model strands 1 n s 128 6
C m a x Maximum number of output detection classes 2 C 16 5
E p o c h s Number of trained epochs20–20080
B a t c h s i z e Train Batch size>1664
Table 7. Fuzzy inference rules for the fuzzy inferred class annotation of the stranded-NN model. keyword plus.
Table 7. Fuzzy inference rules for the fuzzy inferred class annotation of the stranded-NN model. keyword plus.
Humidity (Dry)Humidity (Wet)Humidity (Moist)
Temperature (cold)very (cold abiotic)plus (cold abiotic)cold abiotic
Temperature (critical)very (mildew-1)mildew-2very (mildew-2)
Temperature (normal)very (normal)minus (normal)mildew-1
Temperature (hot)very (hot abiotic)plus (hot abiotic)minus (normal)
Table 8. Fuzzy-stranded-NN batch measurement sizes and inference intervals over number of T , H measurements acquired by a single thingsAI mote.
Table 8. Fuzzy-stranded-NN batch measurement sizes and inference intervals over number of T , H measurements acquired by a single thingsAI mote.
Hourly (2)30 min (4)15 min (8)10 min (12)1 min (120)
Inference Period (h)-dTBatch_SizeBatch_SizeBatch_SizeBatch_SizeBatch_Size
6 h- d T = 0.25 12244872720
8 h- d T = 0.33 16326496960
12 h- d T = 0.5 2448961441440
24 h- d T = 1 48961922882880
48 h- d T = 2 961923845765760
Table 9. Fuzzy-stranded-NN model number of hidden layers and training parameters per input batch sizes.
Table 9. Fuzzy-stranded-NN model number of hidden layers and training parameters per input batch sizes.
Batch_SizeNo. Hidden LayersPer Layer Trainable Parameters
162L16, L64
484L48, L32, L32, L16
644L64, L64, L32, L16
805L80, L64, L64, L32, L16
965L96, L64, L64, L32, L16
1606L160, L128, L128, L64, L32, L16
4807L480, L256, L256, L128, L64, L32, L16
9608L960, L512, L512, L256, L128, L64, L32, L16
Table 10. Average monthly rainfall and Vapor Pressure Deficit values for years 2021–2023.
Table 10. Average monthly rainfall and Vapor Pressure Deficit values for years 2021–2023.
Month_YearMean Rainfall (mm)Mean VPD (kPa)
05_20210.850.35
05_20220.830.57
05_20230.491.9
06_20211.370.27
06_20221.380.7
06_20230.760.87
07_20211.990.07
07_20222.010.2
07_20231.790.08
08_20211.970.13
08_20221.520.39
08_20231.410.5
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

Kontogiannis, S.; Koundouras, S.; Pikridas, C. Proposed Fuzzy-Stranded-Neural Network Model That Utilizes IoT Plant-Level Sensory Monitoring and Distributed Services for the Early Detection of Downy Mildew in Viticulture. Computers 2024, 13, 63. https://doi.org/10.3390/computers13030063

AMA Style

Kontogiannis S, Koundouras S, Pikridas C. Proposed Fuzzy-Stranded-Neural Network Model That Utilizes IoT Plant-Level Sensory Monitoring and Distributed Services for the Early Detection of Downy Mildew in Viticulture. Computers. 2024; 13(3):63. https://doi.org/10.3390/computers13030063

Chicago/Turabian Style

Kontogiannis, Sotirios, Stefanos Koundouras, and Christos Pikridas. 2024. "Proposed Fuzzy-Stranded-Neural Network Model That Utilizes IoT Plant-Level Sensory Monitoring and Distributed Services for the Early Detection of Downy Mildew in Viticulture" Computers 13, no. 3: 63. https://doi.org/10.3390/computers13030063

APA Style

Kontogiannis, S., Koundouras, S., & Pikridas, C. (2024). Proposed Fuzzy-Stranded-Neural Network Model That Utilizes IoT Plant-Level Sensory Monitoring and Distributed Services for the Early Detection of Downy Mildew in Viticulture. Computers, 13(3), 63. https://doi.org/10.3390/computers13030063

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