Next Article in Journal
Airflow Modeling for Citrus under Protective Screens
Next Article in Special Issue
Lure Monitoring for Mediterranean Fruit Fly Traps Using Air Quality Sensors
Previous Article in Journal
A Highly Sensitive, Low Creep Hydrogel Sensor for Plant Growth Monitoring
Previous Article in Special Issue
An Integrated Smart Pond Water Quality Monitoring and Fish Farming Recommendation Aquabot System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Versatile, Machine-Learning-Enhanced RF Spectral Sensor for Developing a Trunk Hydration Monitoring System in Smart Agriculture

by
Oumaima Afif
1,*,
Leonardo Franceschelli
1,
Eleonora Iaccheri
2,3,
Simone Trovarello
1,
Alessandra Di Florio Di Renzo
1,
Luigi Ragni
2,3,
Alessandra Costanzo
1 and
Marco Tartagni
1
1
Department of Electrical, Electronic and Information Engineering, Guglielmo Marconi-University of Bologna, Via Dell’Università, 50, 47521 Cesena, Italy
2
Department of Agricultural and Food Sciences, Alma Mater Studiorum, University of Bologna, Piazza Goidanich 60, 47521 Cesena, Italy
3
Interdepartmental Center for Industrial Agri-Food Research, University of Bologna, Via Q. Bucci 336, 47521 Cesena, Italy
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(19), 6199; https://doi.org/10.3390/s24196199
Submission received: 26 July 2024 / Revised: 19 September 2024 / Accepted: 23 September 2024 / Published: 25 September 2024
(This article belongs to the Special Issue AI, IoT and Smart Sensors for Precision Agriculture)

Abstract

:
This paper comprehensively explores the development of a standalone and compact microwave sensing system tailored for automated radio frequency (RF) scattered parameter acquisitions. Coupled with an emitting RF device (antenna, resonator, open waveguide), the system could be used for non-invasive monitoring of external matter or latent environmental variables. Central to this design is the integration of a NanoVNA and a Raspberry Pi Zero W platform, allowing easy recording of S-parameters (scattering parameters) in the range of the 50 kHz– 4.4 GHz frequency band. Noteworthy features include dual recording modes, manual for on-demand acquisitions and automatic for scheduled data collection, powered seamlessly by a single battery source. Thanks to the flexibility of the system’s architecture, which embeds a Linux operating system, we can easily embed machine learning (ML) algorithms and predictive models for information detection. As a case study, the potential application of the integrated sensor system with an RF patch antenna is explored in the context of greenwood hydration detection within the field of smart agriculture. This innovative system enables non-invasive monitoring of wood hydration levels by analyzing scattering parameters (S-parameters). These S-parameters are then processed using ML techniques to automate the monitoring process, enabling real-time and predictive analysis of moisture levels.

1. Introduction

1.1. State of the Art

The advancement of radio frequency (RF) integrated circuits (ICs) is the primary driving force behind the current rapid progress in portable and low-cost vector network analyzer (VNA) technology [1]. Since the inception of the first devices in the 1950s, VNAs have undergone continuous enhancement in terms of accuracy, speed, miniaturization, and functionality. These advancements have solidified their status as indispensable instruments for research, development, manufacturing, and testing purposes [2]. Notably, VNAs serve as the primary measurement tools utilized for characterizing circuits and devices across radio, microwave, millimeter-wave, and submillimeter-wave frequencies [3,4]. Indeed, VNAs have become highly sought-after instruments that extend beyond the domain of electronic and telecommunications engineering. Emerging applications of VNAs encompass the measurement of various materials, biological samples, plants, and soils [5,6,7,8,9,10,11,12,13]. In fields like dielectric spectroscopy, when coupled with appropriate sensors, the VNA offers invaluable capabilities [14,15]. When coupled with one or more antennas, it transforms into a radar system, capable of detecting material flaws imperceptible to the naked eye, even without the use of X-rays [16]. However, the utilization of VNAs typically remains limited to stationary scenarios because of their size, weight, and high cost [17]. Consequently, there exists a growing demand for a compact, affordable, and portable VNA with sufficient accuracy and functionality. Such a device is regarded as a promising noninvasive measurement technique applicable across a wide range of fields [18]. However, the initial efforts to develop cost-effective functional VNAs were primarily targeted at the amateur radio market, focusing on the HF and VHF portions of the spectrum [19]. Another well-known series of devices is the nanoVNA series, which has given rise to numerous variants [20]. A separate VNA, named nanoVNA v2, has recently emerged and developed independently from the original one. The latter represents a portable yet high-performance tool. This compact handheld device operates as a battery-powered, self-contained LCD gadget [21]. In its initial development stages, the NanoVNA was designed to function within the 50 kHz–300 MHz frequency range. The operation of this nano-analyzer’s mixer SA612A necessitates a 5 V power supply, which cannot be directly sourced from the battery. Therefore, an initial version of the NanoVNA required a USB power supply for operation. For this reason, Hugen redesigned the NanoVNA based on the edy555 schematic and incorporated a DC-DC circuit, enabling it to operate independently [22]. A new version of the NanoVNA called NanoVNA V2 (S-A-A-2) has been released, which can operate within a frequency range of 50 kHz– 4.4 GHz [23]. Like [24], one of the few studies that have proposed a method that utilizes a Raspberry Pi to act as an interface between a VNA and a universal arm robot to perform automated measurements, the focus of this study is on robotics. The system considered in that study, consisting of a VNA, an antenna horn, and a Raspberry Pi, is not portable. Nevertheless, there is always a need for improvement of the NanoVNA by employing solutions for data-acquisition-managed local processing, and miniaturizing it by removing its LCD screen to make it fully wearable [25].
As far as the application chosen in this paper is concerned, assessing wood’s physical attributes without causing damage is crucial in contemporary orchard production procedures [26]. The amount of water transpired by a plant is an important factor for irrigation management and the study of plant–water relations. Measuring the volumetric sap flow rate in plant stems provides a method for estimating transpiration, which is essential in precision agriculture. It is known that water stress and sap flow measurements are the most sought feature in irrigation management; however, they are complex to implement in the field. Therefore, the evaluation of trunk moisture content (MC), even if it misses some information, could be a faster and more reliable technique to fulfill the main requirements. Two primary methods for determining the MC of wood can be identified. The dielectric characteristics of wood are influenced by factors such as density, MC, temperature, and frequency [27]. The first involves direct measurements, in which the MC is assessed through oven drying, which is considered to be the most accurate method for determining the MC of materials according to standardized processes (see EN ISO 12570 [28]). However, in commercial woodworking practice as well as in the field, there is a pressing need for immediate and highly accurate determination of the MC of materials [29]. Indirect measurement techniques are indeed quick in determining the MC [30]. These technologies encompass multiple methods, such as electrical resistance measurements [31], acoustics [32], thermal [33,34], near-infrared spectroscopy (NIR) [35], and RF [36]. The latter method fulfills all the desirable criteria of being non-destructive, non-contact, accurate, robust, and rapid simultaneously. It is typically useful for monitoring purposes, but its current application might be hindered by the relatively high cost of the measurement equipment it requires, and it seems that there is still a need for more affordable, low-cost, and stand-alone techniques for monitoring wood MC. Sap flow evaluation by thermal methods seems to be the most accurate and relies on detecting temperature changes in the sap using thermocouples placed at locations distant from a heat source. However, even if very useful in agricultural research, it is time consuming in the field, as it requires drilling into the trunk or the precise attachment of sensors and actuators. For these reasons, the proposed approach is promising since it is non-invasive and does not require trunk modification. It is easy to install in a shorter timeframe in a working field scenario, allowing for the monitoring of many trees for irrigation purposes.

1.2. Proposed Approach and Application

Following the needs of the application and the drawbacks of currently used techniques, we developed a patch-type antenna spectral sensor to be installed on the upper horizontal surface of greenwood samples to capture the RF spectra of the microwave signals reflected by the wood. Since the device is noninvasive, it could be easily applied, removed, and replicated in multiple devices for orchard monitoring. The approach is shown in Figure 1. To demonstrate the feasibility of the technique, thanks to the versatility of the proposed device, we performed long-term acquisitions of scattering parameter spectra of a greenwood trunk chop forced to progressively dry in a climate chamber. Then, we performed ML algorithms on the acquired spectra to understand the correlation with hydration values.
The device is based on a versatile standalone and miniature system using a NanoVNA as an RF sensor frontend working in both manual and automatic modes. To accomplish that, we used a Raspberry Pi Zero as a control system and fused the two systems using a custom printed circuit board (PCB) board. It facilitates powering both components using a singular battery source and automatically capturing spectra. Data acquisition is performed through a Python function saved in a Raspberry Pi Zero W, which is also used for storing the data and controlling all the parameters necessary for the acquisition. The features of the presented system represent a first example in the integration of a low-cost microwave-based platform for precise and automated S-parameter measurements. The MC detection in the wood sample is carried out by adopting a patch antenna, operating at 2.45 GHz, as the sensing element. Patch antennas are widely exploited in RF applications for their low profile, low cost, and ease of manufacturing. Although patch antennas are commonly used in wireless links [37,38], vehicle positioning [39], energy harvesting/WPT [40,41,42], and biomedical applications [43], they are not extensively exploited for sensing applications. In [44], a first attempt to use a patch antenna as a sensing element for MC detection is presented. Common RF-based sensors exploit near-field resonators such as split-ring resonators (SRRs) and complementary split-ring resonators (CSRRs) [45]. Although the latter offer high performance in terms of quality factors, they have low penetration thicknesses, making them unsuitable in solutions where the chemical and/or physical property to be analyzed resides in the innermost layers of the material under test. Therefore, a patch-type antenna, operating in the near-field radiative region, is used as an MC detector. However, a bare automatic VNA could hardly be considered a sensor of some physical entity because spectra raw data hide the sought information [46]. For this reason, a machine learning (ML) post-processing technique should be employed to extract sensitive variables. Therefore, the acquired spectra were collected into a dataset, and an ML predictive model was derived. The latter could then be used in operating mode to monitor, in real time and in a real scenario, the amount of water flowing in a trunk to understand watering needs.
The main contributions presented in this paper are twofold. First, from the architectural implementation viewpoint we will present: (i) a compact hardware (HW) integration between a Raspberry Pi Zero W, a single-board computer (SBC) and a NanoVNA V2 (S-A-A-2) operating in the range of 50 KHz– 4.4 GHz [23,47,48], using specific PCB and case design; (ii) a data acquisition procedure based on Python scripts for manual and automated S-parameter acquisition and data storage. Secondly, from the case study demonstration point of view, we will show (i) the coupling with a patch antenna for hydration sensing of a cut wood trunk; (ii) a long-term automation acquisition of the S-parameter spectra of fresh wood dehydrated in a drying oven; (iii) an ML predictive model (embedded in the system) for hydration quantitative evaluation. The structure of this paper is as follows: Section 2 presents the main architecture and materials. Section 3 introduces the modes of operation. Section 4 is dedicated to a case study, addressed to the agriculture field, applying the new PCB. Finally, Section 5 provides a summary of the findings and discusses the implications of the study.

2. Main Architecture and Materials

The simplified HW structure is presented in Figure 2a, where the NanoVNA is controlled by a Raspberry Pi to gather spectra from the nanoVNA connected with an external patch antenna. The controls and the power supply of the NanoVNA are delivered through an internal USB connection. The architecture has been conceived to work for two kinds of acquisitions, manual and automatic, using additional components located in a custom PCB. The Raspberry Pi is powered by a DC/DC converter through an MOS switch that is normally set to ON. In the manual mode, the NanoVNA and the Raspberry Pi are always powered, and a single acquisition is enabled by an HW interrupt. In automatic mode, a real-time clock (RTC) is enabled, which can put the Raspberry Pi in HW sleep by switching off its power supply through the MOS transistor. The acquisition timing is set by a digitally controlled resistance connected to the RTC. The data flow is shown in Figure 2b. The overall control is performed by the Raspberry Pi using Python scripts that run in its operating system. All the spectra are temporarily stored in the Raspberry’s internal memory and transferred to an external PC through a Wi-Fi link on demand to be processed offline. Alternatively, in a more advanced implementation, the predictive models could be directly implemented in the Raspberry to achieve direct hydration estimation to realize a fully autonomous sensor. In automatic mode, a script is run during the wake-up phase when the Raspberry is powered on. All the acquisition parameters are previously set in the script during the setup.

2.1. The Core HW Components

The overall system is based on the integration of the following two core components:

2.1.1. Raspberry Pi

Raspberry Pi is a series of small SBCs developed in the United Kingdom by the Raspberry Pi Foundation in association with Broadcom [47]. The presented study depends on the Raspberry Pi Zero W model. This new iteration is a further development of the Raspberry Pi Zero, an extremely affordable model that could be purchased at retail prices down to a few dollars upon its release in 2015. This version offers integrated Wi-Fi and Bluetooth low energy (BLE) functionality, which eliminates the need for external adapters and enhances flexibility. This model boasts the following key features: a 1 GHz single-core GPU, 512 MB of RAM, a Mini HDMI port, a micro USB on-the-go (OTG) port, and a HAT-compatible 40-pin header. It runs a 32b Pi OS, a Unix-like operating system based on the Debian GNU/Linux distribution on which Python 3.0 scripts can run, managing data acquisition via the NanoVNA and saving the results as text files.

2.1.2. NanoVNA

NanoVNA V2 (S-A-A-2) is a 4 GHz VNA [48]. Its wide frequency range makes it versatile for various applications, including HF radio, Wi-Fi, and cellular networks. Moreover, the NanoVNA V2 provides low noise and enhanced temperature stability, both crucial for high-precision, long-term measurements. Furthermore, the improved USB protocol and software support enable seamless integration with other systems for real-time data streaming and advanced analysis. Before conducting measurements, a thorough calibration is carried out using an open-short-load protocol following standard procedures to ensure high accuracy. The NanoVNA V2 allows the computation of the complete set of four scattering parameters (S-parameters) in the 50 KHz– 4.4 GHz range using two ports. The setup can be selected by the user through the LCD screen. The acquisitions can be conducted by linking the NanoVNA to a computer and employing the specialized software. Alternatively, it can be connected to the Raspberry Pi via a USB cable and utilize a Python function to configure the settings, execute calibration, and obtain the spectrum. When connected to external devices, power is supplied through the USB cable. The used NanoVNA model in the present paper is an unofficial clone called “ 3.2 black and gold”, but it is compatible with the official software. The primary distinction between the official version and this clone lies in the inclusion of an external battery, enabling its use as an autonomous system. Upon removing the external casing, it is revealed that the NanoVNA comprises two PCB boards. One houses circuits that are essential for the LCD screen and the battery. At the same time, the other one accommodates all components necessary for generating electromagnetic waves and acquiring the T/R waves. To make a spectral acquisition, the NanoVNA needs to be connected to another system. Usually, it is connected to a PC with a USB cable, and acquisitions are performed thanks to a software called NanoVNA-QT, downloadable from its official website.

2.2. Custom PCB Design Elements

A compact PCB has been designed, as depicted in Figure 3, whose purpose is twofold. Firstly, it connects the Raspberry Pi with the VNA and external switches/LEDs. It accommodates the Raspberry Pi using a 20 × 2 pin header. This configuration ensures that all GPIO pins utilized for our application are electrically connected to the rest of the circuit. Since the NanoVNA screen is not needed for our purposes, we opt to utilize only the second PCB. The PCB we designed will replace the first one and incorporate a new battery. This configuration allows it to be compatible with both the official version of the NanoVNA and our modified setup. The mechanical design facilitates the physical connection between the two devices: it is crafted to be mountable atop the NanoVNA, enabling the Raspberry Pi to be soldered onto it using a 40-pin header. This setup results in a compact and self-sufficient device. Additionally, leveraging the Raspberry Pi’s Wi-Fi capability, the device can be connected to the internet seamlessly. The power-on and -off cycle, combined with a one-spectrum acquisition, takes less than 1.5 min, showcasing the system’s efficient operation. Despite its single-core CPU, the prediction process is swift: experimental trials demonstrate that once a spectrum is acquired, the entire computation takes approximately 1 min. Secondly, it hosts other components that are used for governing the system, specifically:
1
A USB interface chip BQ2409 (Texas Instruments, Dallas, TX, USA): This serves to connect the system with a 3.7 V battery. It facilitates charging the battery using standard power cables (similar to the one utilized for the Raspberry Pi) via the micro USB port, even while the system is operational.
2
A step-up DC/DC converter TLV61070a (Texas Instruments, Dallas, TX, USA): It converts the 3.7 V output from the battery to 5 V for powering both the Raspberry Pi and the RTC.
3
An RTC TPL5110 (Texas Instruments, Dallas, TX, USA): It is used for the time control of the system in automatic acquisition. It is linked to a digital potentiometer (MAX5161 (Maxim Integrated Products, Sunnyvale, CA, USA) [49]. Additionally, the real time clock (RTC) is connected to a PMOS transistor (Infineon IRLML2246 (International IoR Rectifier, CA, USA)) [50], which is responsible for controlling the 5 V line. This control allows for a complete deep sleep of the Raspberry Pi when it is not in use.
4
Temperature and humidity sensors SHT40 (Sensirion, Staefa ZH, Switzerland): This sensor is used for monitoring both internal and external temperature and humidity, with humidity accuracy of ±1.8% RH and temperature accuracy of ±0.2 °C. It is directly connected to the Raspberry Pi via the I2C protocol.
As illustrated in Figure 3, there are switches included to power up the system and enable manual data acquisition. Switch 1 is specifically employed to power up the Raspberry Pi and the other associated components. Conversely, Switch 2 is designated to power only the RTC. This system enables the implementation of two modes of operation. In the manual mode, the Raspberry Pi remains powered on until it manually shuts down, allowing for single spectra acquisition by pressing Switch 3. Conversely, in the automatic mode, an RTC module, the TPL5110, is utilized [51], which drives a MOSFET that is connected to the power via the Raspberry Pi. With this, it is possible to turn on the Raspberry Pi automatically only for the time necessary to perform and save an automatic acquisition, greatly enhancing the duration of a single battery charge. A second manual Switch 2 allows one to turn on the RTC only when the automatic acquisition mode is required. The period between two acquisitions is defined by the value of the resistor connected to the RTC. The digital potentiometer MAX5161, by Maxim Integrated, is used, which can take on 31 different resistance values, ranging from 0 to 200 k Ω . This configuration empowers the user to select the period between two consecutive acquisitions via the Raspberry Pi before initiating the acquisition phase. Two level shifters [52,53] are used to facilitate communication between the Raspberry Pi, which features 3.7 V output pins, the RTC, and the digital potentiometer, which operates with 5 V.

Battery Management

This system is primarily executed by the TLV61070a. It takes the 3.7 V battery as input and provides a 5 V output for powering the Raspberry Pi and all other components. Additionally, it facilitates battery charging via a micro USB port. Lastly, four LEDs visually indicate the battery charge status. When the battery charge is above 75%, all four LEDs are illuminated, gradually decreasing to just one LED when the charge falls below 25%. The entire system is powered on/off using a manual switch, Switch 1, which is positioned between the battery connector and the TLV61070a.

2.3. External Patch Antenna

The sensing element is a patch antenna operating at 2.45 GHz, realized on a typical RF substrate Rogers RO4360G2 (Rogers corporation, Evergem, Belgium) with ϵ r = 6.15 , 0.610 mm substrate thickness, and electrodeposited copper with 35 µm thickness). A coaxial feeding is chosen for the antenna, to avoid direct contact of the feeding section with the wood sample. The antenna is firstly simulated through full-wave electromagnetic (EM) simulation, in a CST STUDIO environment. Figure 4a,b show the top and lateral views of the proposed antenna, respectively. The total dimensions of the radiating element are 50 × 50 mm2. A superstrate, when placed above a patch antenna, significantly influences the reflection coefficient by altering the impedance matching between the antenna and the surrounding medium. This happens because the superstrate modifies the effective dielectric constant around the patch, leading to changes in the resonance frequency and bandwidth of the antenna. For this reason, EM simulations are carried out to predict the behavior of the antenna in three distinct cases: unloaded antenna (free-space condition), dry wood loaded, and wet wood loaded. The electrical properties of the wood in the S-band are extracted from [54].
The antenna is firstly optimized in the free-space scenario, where a specification of a reflection coefficient lower than 20 dB is set as a requirement. The antenna is then simulated in the loaded condition by the wood sample presenting different MC levels. To reproduce the laboratory measurement conditions, the dimensions of the wood sample inserted in the EM simulations are the same as those of the real one.
Figure 4c shows the simulated reflection coefficient of the patch antenna in the unloaded, fully-dried-wood-loaded, and fully-wet-wood-loaded condition, in the 2–2.8 GHz band. As expected, the predicted S11 strongly depends on the superstrate medium and its electrical properties. From the free-space scenario, where the antenna presents a minimum peak at 2.45 GHz of 27 dB, the deviation in terms of the center frequency is 70 MHz and 110 MHz for the dry-wood-loaded and wet-wood-loaded antenna, respectively. A strong change in the minimum value of the S11 is also observed. For the dry-wood-loaded antenna, a 7.5 dB peak is observed, whereas for the wood-loaded patch, it is only 1.5 dB.
The high penetration depth of the electric field strength produced by the patch antenna is verified by monitoring the electric field along the wood sample section employing full-wave simulations. The wet wood is used as a test case. In particular, for a trunk sample of dimensions 19.0 × 20.5 × 20.7 cm 3 (longitudinal × radial × tangential, L × R × T), a 25% decrease in the electric field strength is observed after 15 mm of the patch-wood transition.

3. Modes of Operation

Acquisition of the spectral data with the NanoVNA using a Raspberry Pi is performed by a Python script that runs in the Raspberry operating system. As previously mentioned, the existing control system integrated into the PCB enables toggling between two acquisition methods as presented in Figure 5. The first mode is labeled as manual, while the option for automatic can be engaged using Switch 2.
Manual mode: The system is activated using Switch 1 after a wait period approximately less than one minute. A brief press of Switch 3 enables spectrum acquisition. Each spectrum acquisition takes approximately 10 s. To conclude the acquisition session, the user must press and hold Switch 3 for more than 1 s to initiate the shutdown of the Raspberry Pi. After waiting approximately 5 s, the power can be turned off using Switch 1.
Automatic mode: Upon activating the system with Switch 1, the user is required to establish a connection with the Raspberry Pi and specify the interval between acquisitions by executing a Python function from the command line. Following this setup, the user must shut down the Raspberry Pi and then activate the RTC using Switch 2. Subsequently, the system will automatically power up the Raspberry Pi, which will proceed to autonomously acquire a spectrum before shutting down. This action prompts the RTC to deactivate the 5 V power. To halt the automatic acquisition process, simply power off the entire system using Switch 1 and then toggle Switch 2 to disable automatic acquisition. In summary, spectra will be continuously acquired and stored in the Raspberry Pi’s memory until the automatic mode is halted by toggling the secondary power switch, Switch 1.

4. Case Study: Greenwood Moisture Content Detection Using a Patch RF Antenna

The application is addressed by acquiring multiple spectra in a dataset with known MC (determined by the oven-dry method). Subsequently, a predictive model would be developed offline and embedded in the proposed PCB. This embedded model could be enabled in real time for detecting the MC in wood, as the sensor acquires spectra in its operation mode. The proposed measurement system operating within the frequency range of 2.2 2.5 GHz was selected to estimate the MC of a silver fir tree trunk chop. The antenna is affixed to the central area of a flat, horizontal surface of the greenwood sample.

4.1. Experimental Setup

Measurements were conducted on silver fir (Abies alba) greenwood chops with a size of around 19.0 × 20.5 × 20.7   cm 3 (longitudinal × radial × tangential, L × R × T), as seen in Figure 6. They were freshly placed in a drying oven with a controlled temperature set at 40 °C, attached to a patch antenna, the latter connected to the PCB. The initial MC of the greenwood in this study measured by the oven-drying method is 110%. Greenwood is commonly described as recently cut timber where the cell walls are fully soaked with water, and there might be extra water within the cells. The moisture level in green wood typically varies from 30% to over 200% [55]. The target parameter (MC, on a dry basis (%)) used for the statistical inference was obtained by the traditional weighting method, in which it was weighted multiple times a day. For a given piece of wood, the MC can be calculated as [56]:
M C ( % ) = m greenwood m ovendry m ovendry × 100
m greenwood is the mass of the specimen at a given MC in kg, and m ovendry is the mass of the oven-dry specimen in kg. The specimen initially weighed 6.944 kg, but by the end of the drying period, its weight had decreased to 3.299 kg. This weight reduction took place between the 4 June and the 28 June 2024. As illustrated in Figure 7, the recorded MC values over this period closely follow a model that has been previously documented in the literature [57]. The decision to halt the drying process was based on the observation that there were changes below the resolution of the instruments in the S 11 and the weight of the specimen. We collected 33 MC experimental data points from the 4th to the 28th. Unlike spectra acquisitions, which are acquired automatically by the system, weight measurements were taken by hand. Therefore, the number of collected spectra is much greater than that of the weight measurements. Hence, to make a predictive model, we need to associate each spectrum with a weight (i.e., hydration status). To do so, we used the fitting model shown in Equation (2), from which 911 points were extrapolated to be associated with spectra. The equation is a function of the time t (expressed in hours) up to 572 h, which corresponds to the experimental duration.
f ( t ) = A ( 1 + B × t ) C
where f ( t ) is the MC percentage at time t, A = 110 , B = 5.2 × 10 3 , and C = 3.19 .

4.2. Statistical Analysis

A regression approach was chosen to construct the models from the S 11 data (the spectral variables). These spectra served as independent variables and were arranged into a matrix X ( N × K ), also referred to as a dataset matrix, containing N acquired spectra, each defined by the K frequencies variables. Furthermore, for developing predictive models, we collected MC into a Y ( N × 1 ) output vector. This was achieved using a bilinear regression technique known as partial least squares regression (PLSR) analysis. First, the dataset matrix is “well represented” by a matrix of the same size X ^ = T P T , where T is ( N × A ) , referred to as the score matrix, and P T is ( A × K ) , called the loadings matrix. In other words, X ^ is a projection of X in a subspace of A < K orthogonal variables of maximum variance directions. Then, we represent an estimate of the output along the same direction Y ^ as
Y ^ = T Q T + F = X ^ P Q T + F ,
where Q and F are the loading and error matrices of Y , respectively [58,59]. PLSR finds the A orthogonal direction to maximize the covariance between input and output in the newly defined spaces. Arranging Equation (3), we have the linear correlation expression
Y ^ = X ^ β + β 0
where β is a ( K × 1 ) coefficient array. The latter relationship embeds the predictive model. In operating mode, newly acquired spectra are treated with Equation (4) to estimate the moisture percent. The experimental plan included 911 measurements across 400 frequency points within the range of 2.2 2.5 GHz within 572 h. The independent variables in the X dataset were organized in a matrix with dimensions N = 911 (spectra measurements) × K = 400 (frequency points) for the S 11 parameter, and N = 911 (spectra numerical derivative) × K = 399 (frequency points), and the dependent variable Y (dataset MCs) was arranged as (911 × 1). Spectral sample outliers were identified before initiating the model-building process on the complete dataset. Cross-validation [60] and test set validations were subsequently conducted to assess how the models performed with unfamiliar samples to test the model’s prediction ability without needing other acquisitions, as illustrated in Figure 8.
The model’s ability to estimate wood MC was evaluated using several metrics: the coefficient of determination ( R 2 ), root mean square error (RMSE), significant PLSR components (latent variable (LVs)), and bias. The R 2 describes the correlation capability of the model, and when it is close to 1, it indicates a high correlation between the model’s input and output. However, the parameter RMSE is preferred to evaluate the efficacy of a predictive model using the cross-validation (CV) approach [61]. Finally, bias refers to the average difference between the model’s estimates and the actual measured values. It indicates whether the model consistently underestimates or overestimates the true values. Usually, preprocessed spectra are used in place of spectral raw data, and based on the RMSE parameter, we found that using the derivative of the spectra is one of the most effective and computationally simple preprocessing approaches. For the test set validation, 20% of the samples were randomly extracted from the calibration dataset, which comprised 80% of the samples, and used to validate the model. The procedure was replicated many times, each time using a different random test set, and subsequently, the results were averaged.

4.3. Results and Discussion

In Figure 9, the S11 and its derivative results for the greenwood sample are depicted. These components are color-coded to highlight variations in MC. The frequency range spans from 2.2 to 2.5 GHz, corresponding to the region of interest. Measurements, carried out using the nanoVNA, report a good agreement with simulations. In particular, for the dry-wood-loaded patch antenna, the resonant frequency is about 2.38 GHz, and the minimum peak corresponds to about 8 dB of the reflection coefficient at the same frequency. As noticed, fluctuations in MC result in changes in spectral characteristics, including alterations in the intensity of the peak and shifts in resonance frequencies. The dielectric properties of wood, which vary with MC, significantly impact the propagation of electromagnetic waves. Potentially wet wood has a higher dielectric constant due to its water content, leading to greater absorption and rapid attenuation of the waves, resulting in lower-intensity signal peaks [62]. Conversely, with lower MC, dry wood exhibits reduced absorption and attenuation, producing longer and higher-intensity signal peaks [63,64,65,66]. When wood is wet, the increased dielectric constant shifts the natural resonance frequency of the material. This is due to more free water molecules within the wood structure that can easily polarize in response to the electric field, changing the wood’s overall electric permittivity and resonance frequency. On the other hand, the loss tangent, which represents the ratio between the imaginary (related to energy loss) and real (related to energy storage) parts of the complex dielectric constant is also affected by moisture content. As moisture content increases, the loss tangent typically rises, indicating that the wood becomes more lossy. This higher loss tangent at elevated moisture levels corresponds to greater energy dissipation, further contributing to the attenuation of EM waves and the reduction in signal intensity. Conversely, dry wood’s reduced water content causes a different interaction with electromagnetic waves, maintaining higher frequencies longer due to lesser polarization effects and maintaining a steadier resonance frequency without a significant shift [67]. The model’s accuracy relies on using a representative calibration dataset, covering the full moisture range, from wet to dry wood. Validation, essential for ensuring the model’s future reliability, is performed through cross-validation and test set validation. These methods produce prediction RMSE to gauge model performance. Additionally, bias, another key performance measure, reflects the average difference between predicted and actual values, helping identify any systematic differences between the training and validation sets. The results, including R 2 , RMSE, LVs, and bias, for the calibrated and validated PLSR regression models derived from the S 11 and its derivative are summarized in Table 1.
Table 1 presents the regression results, focusing on the analysis of the predictive model parameters of S 11 and its derivative with respect to frequency across the different validation phases: calibration, CV, and test.
During the test phase, the RMSE for S 11 is approximately 1.9 %, while R 2 = 0.995 and the bias is 5.62 × 10 5 , indicating a strong correlation and minimal bias. For the derivative of S 11 , the test phase, the RMSE decreases to 1.8 %, while the R 2 increases to 0.996 , and the bias is 6.60 × 10 5 . These results show a good performance in predicting the MC over the range of (110–0)% for both the S 11 and its derivative. When comparing our findings to the existing literature, such as [68] on NIR spectroscopy for Korean Pine moisture content, we observe similar success in utilizing PLSR to model complex spectral data. However, where NIR techniques showed reduced accuracy for moisture content above 30%, our microwave-based approach maintains reliable predictions across a broader moisture range. This can be attributed to the deeper penetration capabilities of microwave sensing, which makes it more suitable for high-moisture-content scenarios. Figure 10 illustrates the comparison between predicted and observed MC values for the S 11 parameter and its derivative. It provides a visual representation of how well the PLSR model aligns with MC measurements under test validation and calibration conditions. The inclusion of derivative analysis serves the purpose of enhancing the prediction accuracy, as evidenced by comparing the RMSE. While these metrics provide a quantitative assessment, a clearer understanding emerges from visualizing the observed versus predicted MC. This approach rectified these nuances, leading to improved model performance and more accurate and linear predictions, as demonstrated in Figure 10. Then, regression β -coefficients are calculated to express a linear combination involving both observed and predicted values, based on the S 11 parameter and its derivative models, as illustrated in Figure 11. Therefore, it shows which segment of the spectra primarily accounts for explaining variability in the data. For both S 11 and its derivative, the maximum variation of the regression β is around 2.27– 2.45 GHz, which is the most sensitive range for the patch antenna. This analysis demonstrates that our model effectively captures the key spectral features within this critical frequency range. The substantial variation of β -coefficients in this range supports the performance of our model in explaining the variability observed in the data. Regarding model validity, the concentration of β -coefficient variation in the 2.27 2.45 GHz range aligns with theoretical expectations and the sensitivity of the patch antenna. This alignment confirms that our model is robust and accurately represents the relationships within the spectral data. After extracting the regression coefficients β ( 399 × 1 ), it can be stored in the PCB. This allows for the straightforward acquisition of spectra and direct calculation of MC through simple mathematical operations using Equation (4).
Additionally, beyond agricultural applications, this system demonstrates significant potential for adaptation to other biological and environmental monitoring tasks. For instance, the same system initially presented for wood hydration monitoring is modified for use in skin hydration monitoring with minimal changes. By replacing the patch antenna with a CSRR, the system is used to monitor hydration levels in human skin [45]. In this related work, the system, coupled with the CSRR, was used to successfully monitor skin hydration across different body regions, demonstrating its versatility and adaptability. This capability highlights the potential for the system to be employed in broader biological applications, as well as other environmental monitoring tasks, simply by swapping the sensor while retaining the core measurement and data processing components.

5. Conclusions

This paper presented a novel system for monitoring wood MC that integrates hardware and ML techniques to improve the efficiency of agricultural practices. The main contributions of this work are twofold. From an architectural standpoint, we developed a compact and affordable system that integrates a Raspberry Pi Zero W and a NanoVNA V2 (S-A-A-2) operating in the 50 KHz– 4.4 GHz range, alongside a custom-designed PCB. We also introduced a robust data acquisition procedure using Python scripts for both manual and automated S-parameter acquisition and data storage. From a case study perspective, the system was successfully coupled with a patch antenna to assess the hydration of greenwood. Monitoring the MC of wood is vital for assessing tree health and optimizing irrigation practices to enhance agricultural efficiency. Therefore, the availability of cost-effective and dependable devices is paramount. Microwave techniques offer a promising approach for accurately measuring wood moisture, particularly by analyzing the scattering parameter ( S 11 ). A stand-alone method utilizing a patch antenna coupled with a custom PCB has been developed for direct measurement of MC in fresh wood. At present, economic viability is crucial for widespread adoption, and the present device effectively meets this requirement. The S 11 spectra acquired at 2.2 2.5 GHz on greenwood and its derivative, capturing different MC from 110% to 0% (dry basis), were used to build PLSR models. Both models are accurate in predicting MC. However, the derivative spectra model offers a slight advantage, with R 2 = 0.996 and RMSE = 1.8 % , which slightly improves the model linearity. The original spectra also perform well with a R 2 = 0.995 and RMSE  = 1.9%. As expected, variations in wood temperature can affect the spectral waveforms of the S11 parameters. However, the multivariate analysis indicated that MC was the most influential variable contributing to the variance of the waveforms. The optimal operating bandwidth was identified to be between 2.27 and 2.45 GHz. This limited bandwidth contributes positively to the affordability of the device. Additionally, the integration of the new PCB played a crucial role in achieving these promising results, facilitating accurate predictions of MC.

6. Future Work

In future work, we aim to extend our validation by comparing the proposed technique with other existing techniques for measuring trunk hydration and by including a broader range of environmental conditions and wood types. This will include experiments conducted across varying temperature and humidity levels, along with different wood species, to assess the sensor system’s robustness and adaptability.
Additionally, recognizing the importance of rigorous validation, we plan to incorporate comprehensive statistical analyses in our upcoming studies to further ensure the accuracy and reliability of the model’s predictions.

Author Contributions

Conceptualization, M.T.; Methodology, O.A. and M.T.; Software, O.A. and L.F.; Formal analysis, O.A., E.I. and M.T.; Data curation, O.A., E.I. and L.R.; Writing—original draft, O.A., S.T. and A.D.F.D.R.; Writing—review & editing, E.I., L.R., A.C. and M.T.; Supervision, L.R., A.C. and M.T. All authors have read and agreed to the published version of the manuscript.

Funding

This study was funded by the European Union Next-GenerationEU (PNRR)—Missione 4 Componente 2, Investimento 1.4—(D.D. 1032 17/06/2022, CN00000022).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Dataset available on request from the authors.

Acknowledgments

This study was carried out within the Agritech National Research Center and received funding from the European Union Next-GenerationEU (PIANO NAZIONALE DI RIPRESA E RESILIENZA (PNRR)—MISSIONE 4 COMPONENTE 2, INVESTIMENTO 1.4—D.D. 1032 17/06/2022, CN00000022). This manuscript reflects only the authors’ views and opinions; neither the European Union nor the European Commission can be considered responsible for them. We would also thank Aldo Romani for his advice in PCB design, Omar Magnani for 3D printing design, and Thomas Tassinari of az. Agricola Segheria Maurizio Tassinari of Cusercoli (IT) for providing fresh wood samples. We would also thank Luca Corelli Grappadelli for helpful insight into applications in plant water stress monitoring.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ruttan, T.G.; Grossman, B.; Ferrero, A.; Teppati, V.; Martens, J. Multiport VNA measurement. IEEE Microw. Mag. 2008, 9, 56–69. [Google Scholar] [CrossRef]
  2. Rytting, D. ARFTG 50 year network analyzer history. In Proceedings of the 71st ARFTG Microwave Measurement Conference, Atlanta, GA, USA, 20 June 2008; pp. 1–8. [Google Scholar]
  3. Pozar, D.M. Microwave and RF Design of Wireless Systems; John Wiley & Sons: Hoboken, NJ, USA, 2000. [Google Scholar]
  4. Fung, A.; Dawson, D.; Samoska, L.; Lee, K.; Gaier, T.; Kangaslahti, P.; Oleson, C.; Denning, A.; Lau, Y.; Boll, G. Two-port vector network analyzer measurements in the 218–344- and 356–500-GHz frequency bands. IEEE Trans. Microw. Theory Tech. 2006, 54, 4507–4512. [Google Scholar] [CrossRef]
  5. Bobowski, J.S.; Johnson, T. Permittivity measurements of biological samples by an open-ended coaxial line. arXiv 2020, arXiv:2007.07343. [Google Scholar] [CrossRef]
  6. Wang, Y.; Shang, X.; Ridler, N.M.; Huang, T.; Wu, W. Characterization of dielectric materials at WR-15 band (50–75 GHz) using VNA-based technique. IEEE Trans. Instrum. Meas. 2019, 69, 4930–4939. [Google Scholar] [CrossRef]
  7. Avşar Aydin, E. Low-cost Vector Network Analyzer for Biomedical Applications. Int. J. Eng. 2019, 32, 400–404. [Google Scholar]
  8. Iaccheri, E.; Berardinelli, A.; Tartagni, M.; Ragni, L. Affordable microwave soil moisture detector. IEEE Sensors J. 2024, 24, 7770–7777. [Google Scholar] [CrossRef]
  9. Luciani, G.; Berardinelli, A.; Crescentini, M.; Romani, A.; Tartagni, M.; Ragni, L. Non-invasive soil moisture sensing based on open-ended waveguide and multivariate analysis. Sens. Actuators A Phys. 2017, 265, 236–245. [Google Scholar] [CrossRef]
  10. Franceschelli, L.; Iaccheri, E.; Franzoni, E.; Berardinelli, A.; Ragni, L.; Mazzotti, C.; Tartagni, M. Non-intrusive microwave technique for direct detection of concrete compressive strength monitoring by multivariate modeling. Measurement 2023, 206, 112332. [Google Scholar] [CrossRef]
  11. Franceschelli, L.; Ciricugno, C.; Di Lorenzo, M.; Romani, A.; Berardinelli, A.; Tartagni, M.; Correale, R. Real-time gas mass spectroscopy by multivariate analysis. Sci. Rep. 2023, 13, 6059. [Google Scholar] [CrossRef]
  12. Contreras, J.; Goodnight, A.; Parker, Q.; Simon, N.; Theumer, J.; Zajić, A. A Non-Destructive Method to Estimate Leaf Water Content Using the Ka-Band. In Proceedings of the International Opportunity Research Scholars Symposium (ORSS), Atlanta, GA, USA, 23 April–2 June 2023; pp. 29–33. [Google Scholar]
  13. Zeng, J.; Li, Z.; Tang, Z.; Chen, Q.; Bi, H.; Zhao, L. The measurement and model construction of complex permittivity of corn leaves at the main frequency points of L/S/C/X-band. IOP Conf. Ser. Earth Environ. Sci. 2014, 17, 012055. [Google Scholar] [CrossRef]
  14. Kremer, F.; Schönhals, A. Broadband Dielectric Spectroscopy; Springer Science & Business Media: New York, NY, USA, 2002. [Google Scholar]
  15. Nelson, S. Dielectric Properties of Agricultural Materials and Their Applications; Academic Press: Cambridge, MA, USA, 2015. [Google Scholar]
  16. Roblin, P. Nonlinear RF Circuits and Nonlinear Vector Network Analyzers: Interactive Measurement and Design Techniques; Cambridge University Press: Cambridge, UK, 2011. [Google Scholar]
  17. Vidotto, M.I.; Veiras, F.E.; Sorichetti, P.A. Software defined radio for vector network analysis: Configuration, characterization and calibration. Measurement 2022, 189, 110468. [Google Scholar] [CrossRef]
  18. Masood, E.H.H. Accessible Broadband Network Analysis. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 2002. [Google Scholar]
  19. Pejcinovic, B. Teaching High-Frequency Circuit Design in Online Environment. In Proceedings of the 44th International Convention on Information, Communication and Electronic Technology (MIPRO), Opatija, Croatia, 27 September–1 October 2021; pp. 1559–1564. [Google Scholar]
  20. Operating HP 8407A Network Analyser. Available online: https://nanovna.com/ (accessed on 9 May 2024).
  21. Jumaa, L.F.; Mezaal, Y.S.; Al-Hilali, A. An experimental study by employing Nano VNA in microwave devices. Int. J. Nonlinear Anal. Appl. 2022, 13, 3917–3928. [Google Scholar]
  22. Derickson, D.; Jin, X.; Bland, C. The NanoVNA Vector Network Analyzer: This New Open-Source Electronic Test and Measurement Device Will Change Both Remote and In-Person Educational Delivery of Circuits, Electronics, Radio Frequency and Communication Laboratory Course Delivery. In Proceedings of the ASEE Pacific Southwest Conference–“Pushing Past Pandemic Pedagogy: Learning from Disruption”, Virtual, 23 April 2021. [Google Scholar]
  23. NanoVNA V2 Product Page. Available online: https://nanorfe.com/nanovna-v2.html (accessed on 22 May 2024).
  24. Rather, N.; Simorangkir, R.B.; O’Donnell, C.; Gawade, D.R.; Buckley, J.L.; O’Flynn, B.; Tedesco, S. A novel robot based data acquisition methodology for chipless RFID systems. In Proceedings of the 13th International Conference on RFID Technology and Applications (RFID-TA), Aveiro, Portugal, 4–6 September 2023; pp. 49–52. [Google Scholar]
  25. Cataldo, A.; De Benedetto, E.; Schiavoni, R.; Monti, G.; Tedesco, A.; Masciullo, A.; Piuzzi, E.; Tarricone, L. Portable microwave reflectometry system for skin sensing. IEEE Trans. Instrum. Meas. 2022, 71, 1–8. [Google Scholar] [CrossRef]
  26. Aichholzer, A.; Schuberth, C.; Mayer, H.; Arthaber, H. Microwave testing of moist and oven-dry wood to evaluate grain angle, density, moisture content and the dielectric constant of spruce from 8 GHz to 12 GHz. Eur. J. Wood Wood Prod. 2018, 76, 89–103. [Google Scholar] [CrossRef]
  27. Torgovnikov, G.I.; Torgovnikov, G.I. Interaction between the electromagnetic field and wood. Main features of dielectric properties of wood. In Dielectric Properties of Wood and Wood-Based Materials; Springer: Berlin/Heidelberg, Germany, 1993; pp. 1–19. [Google Scholar]
  28. Camuffo, D. Standardization activity in the evaluation of moisture content. J. Cult. Herit. 2018, 31, S10–S14. [Google Scholar] [CrossRef]
  29. Bět’ák, A.; Zach, J.; Misák, P.; Vaněrek, J. Comparison of wood moisture meters operating on different principles of measurement. Buildings 2023, 13, 531. [Google Scholar] [CrossRef]
  30. Dietsch, P.; Franke, S.; Franke, B.; Gamper, A.; Winter, S. Methods to determine wood moisture content and their applicability in monitoring concepts. J. Civ. Struct. Health Monit. 2015, 5, 115–127. [Google Scholar] [CrossRef]
  31. Tamme, V.; Muiste, P.; Tamme, H. Experimental study of resistance type wood moisture sensors for monitoring wood drying process above fibre saturation point/Takistus-tüüpi puidu niiskuse andurite eksperimentaalne uurimine puidu kuivatamise monitooringul niiskussisaldustel üle kiu küllastuspunkti. For. Stud. 2013, 59, 28–44. [Google Scholar]
  32. Brashaw, B.K.; Wang, X.; Ross, R.J.; Pellerin, R.F. Relationship between stress wave velocities of green and dry veneer. For. Prod. J. 2004, 54, 85–89. [Google Scholar]
  33. Valancogne, C.; Nasr, Z. Measuring Sap Flow in the Stem of Small Trees by a Heat Balance Method. HortScience 1989, 24, 383–385. [Google Scholar] [CrossRef]
  34. Lascano, R.J.; Goebel, T.S.; Booker, J.; Baker, J.T.; Gitz, D.C., III. The stem heat balance method to measure transpiration: Evaluation of a new sensor. Agric. Sci. 2016, 7, 604–620. [Google Scholar] [CrossRef]
  35. Schimleck, L.R.; Evans, R.; Matheson, A.C. Estimation of Pinus radiata D. Don clear wood properties by near-infrared spectroscopy. J. Wood Sci. 2002, 48, 132–137. [Google Scholar] [CrossRef]
  36. Vallejos, C.; Grote, W. Wood moisture content measurement at 2.45 GHz. In Proceedings of the SBMO/IEEE MTT-S International Microwave and Optoelectronics Conference (IMOC), Belem, Brazil, 3–6 November 2009; pp. 221–225. [Google Scholar]
  37. Chang, L.; Zhang, G.; Wang, H. Triple-band microstrip patch antenna and its four-antenna module based on half-mode patch for 5G 4× 4 MIMO operation. IEEE Trans. Antennas Propag. 2021, 70, 67–74. [Google Scholar] [CrossRef]
  38. Wu, T.; Su, H.; Gan, L.; Chen, H.; Huang, J.; Zhang, H. A compact and broadband microstrip stacked patch antenna with circular polarization for 2.45-GHz mobile RFID reader. IEEE Antennas Wirel. Propag. Lett. 2013, 12, 623–626. [Google Scholar] [CrossRef]
  39. Paolini, G.; Fazzini, E.; Trovarello, S.; Amato, D.; Masotti, D.; Costanzo, A. An Innovative Multi-Port LoRa-Based Wireless Node for Railway Signaling and Positioning. IEEE J. Radio Freq. Identif. 2024, 8, 618–626. [Google Scholar] [CrossRef]
  40. Gok, A.B.; Masotti, D.; Costanzo, A. Co-Location of PV Panel with Meshed Antenna Array for Inter-Satellite Energy Transmission. IEEE J. Radio Freq. Identif. 2024, 8, 516–525. [Google Scholar] [CrossRef]
  41. Chatzichristodoulou, D.; Paolini, G.; Quddious, A.; Masotti, D.; Costanzo, A.; Vryonides, P.; Nikolaou, S. Dual Frequency MIMO Rectenna with Two-Branch Rectifier and Common Power Storage Unit. In Proceedings of the 16th European Conference on Antennas and Propagation (EuCAP), Madrid, Spain, 27 March–1 April 2022; pp. 1–5. [Google Scholar]
  42. Trovarello, S.; Aldrigo, M.; Masotti, D.; Dragoman, M.; Costanzo, A. Design of an Integrated Rectenna on Multi-layer High-Resistivity Silicon Substrate. In Proceedings of the XXXVth General Assembly and Scientific Symposium of the International Union of Radio Science (URSI GASS), Sapporo, Japan, 19–26 August 2023; pp. 1–4. [Google Scholar]
  43. Benassi, F.; Zincarelli, N.; Masotti, D.; Costanzo, A. A wearable passive microwave fluid sensor wirelessly activated. In Proceedings of the IEEE Wireless Power Transfer Conference (WPTC), London, UK, 17–21 June 2019; pp. 236–240. [Google Scholar]
  44. Renzo, A.D.F.D.; Trovarello, S.; Afif, O.; Franceschelli, L.; Tartagni, M.; Masotti, D.; Costanzo, A. A Stand-Alone Moisture Content Sensor Based on a Loaded Self-Oscillating Antenna. In Proceedings of the IEEE/MTT-S International Microwave Symposium—IMS, Washington, DC, USA, 16–21 June 2024. [Google Scholar]
  45. Trovarello, S.; Afif, O.; Di Florio Di Renzo, A.; Masotti, D.; Tartagni, M.; Costanzo, A. A Non-Invasive, Machine Learning Assisted Skin-Hydration Microwave Sensor. In Proceedings of the 54th European Microwave Conference (EuMC), Paris, France, 23–24 September 2024. [Google Scholar]
  46. Tartagni, M. Electronic Sensor Design Principles; Cambridge University Press: Cambridge, UK, 2022. [Google Scholar]
  47. Raspberry Pi Foundation—About Us. Available online: https://www.raspberrypi.org/about/ (accessed on 9 May 2024).
  48. User Manual—Nanovna V2. NanoRFE. Available online: https://nanorfe.com/nanovna-v2-user-manual.html (accessed on 10 May 2024).
  49. Maxim Integrated MAX5161 Product Page. Available online: https://www.analog.com/en/products/max5161.html (accessed on 10 May 2024).
  50. IRLML2246 Product Page. Available online: https://www.infineon.com/cms/en/product/power/mosfet/p-channel/irlml2246/ (accessed on 14 May 2024).
  51. Texas Instruments. TPL5111 Nano-Power System Timer for Power Gating. Rev. B 2018. [Google Scholar]
  52. TXU0101-Q1 Product Page. Available online: https://www.ti.com/product/TXU0101-Q1 (accessed on 15 May 2024).
  53. TXU0304 Product Page. Available online: https://www.ti.com/product/TXU0304 (accessed on 15 May 2024).
  54. Razafindratsima, S.; Sbartaï, Z.M.; Demontoux, F. Permittivity Measurement of Wood Material Over a Wide Range of Moisture Content. Wood Sci. Technol. 2017, 51, 1421–1431. [Google Scholar] [CrossRef]
  55. Glass, S.; Zelinka, S. Moisture Relations and Physical Properties of Wood. In Wood Handbook—Wood as an Engineering Material; FPL-GTR-282; United States Department of Agriculture: Washington, DC, USA, 2021; Chapter 4; p. 4-1. [Google Scholar]
  56. McMillen, J.M. Methods of Determining the Moisture Content of Wood; Technical Report; Report no. 1649; Forest Products Laboratory (U.S.): Madison, WI, USA, 1956. [Google Scholar]
  57. Avramidis, S.; Lazarescu, C.; Rahimi, S. Basics of Wood Drying. In Handbook of Wood Science and Technology; Springer: Berlin/Heidelberg, Germany, 2023; pp. 679–706. [Google Scholar]
  58. Wold, S.; Sjöström, M.; Eriksson, L. PLS-Regression: A Basic Tool of Chemometrics. Chemom. Intell. Lab. Syst. 2001, 58, 109–130. [Google Scholar] [CrossRef]
  59. Höskuldsson, A. PLS Regression Methods. J. Chemom. 1988, 2, 211–228. [Google Scholar] [CrossRef]
  60. Wold, S. Cross-Validatory Estimation of the Number of Components in Factor and Principal Components Models. Technometrics 1978, 20, 397–405. [Google Scholar] [CrossRef]
  61. Wold, S.; Trygg, J.; Berglund, A.; Antti, H. Some Recent Developments in PLS Modeling. Chemom. Intell. Lab. Syst. 2001, 58, 131–150. [Google Scholar] [CrossRef]
  62. He, X.; Xie, J.; Xiong, X.; Li, Y.; Wei, Y.; Quan, P.; Mou, Q.; Li, X. Study on dielectric properties of poplar wood over an ultra-wide frequency range. BioResources 2017, 12, 5984–5995. [Google Scholar] [CrossRef]
  63. National Research Council; Division on Engineering and Physical Sciences; National Materials Advisory Board; Commission on Engineering and Technical Systems; Committee on Microwave Processing of Materials and an Emerging Industrial Technology. Microwave Processing of Materials; National Academies Press: Washington, DC, USA, 1994. [Google Scholar]
  64. Nelson, S.; Trabelsi, S. Factors influencing the dielectric properties of agricultural and food products. J. Microw. Power Electromagn. Energy 2012, 46, 93–107. [Google Scholar] [CrossRef]
  65. Feng, H.; Yin, Y.; Tang, J. Microwave drying of food and agricultural materials: Basics and heat and mass transfer modeling. Food Eng. Rev. 2012, 4, 89–106. [Google Scholar] [CrossRef]
  66. Qin, R.; Xu, H.; Hu, Y.; Zhao, L.; Chen, N. The effect of frequency and temperature on dielectric properties of wood with high moisture content. Holzforschung 2023, 77, 87–94. [Google Scholar] [CrossRef]
  67. Koubaa, A.; Perré, P.; Hutcheon, R.M.; Lessard, J. Complex dielectric properties of the sapwood of aspen, white birch, yellow birch, and sugar maple. Dry. Technol. 2008, 26, 568–578. [Google Scholar] [CrossRef]
  68. Yang, S.Y.; Han, Y.; Chang, Y.S.; Kim, K.M.; Choi, I.G.; Yeo, H. Moisture content prediction below and above fiber saturation point by partial least squares regression analysis on near infrared absorption spectra of Korean pine. Wood Fiber Sci. 2013, 45, 415–422. [Google Scholar]
Figure 1. Overview of the proposed system and application.
Figure 1. Overview of the proposed system and application.
Sensors 24 06199 g001
Figure 2. (a) Hardware structure of the proposed PCB; (b) data flow scheme.
Figure 2. (a) Hardware structure of the proposed PCB; (b) data flow scheme.
Sensors 24 06199 g002
Figure 3. PCB and case implementation: (a) front view; (b) back view; (c) side front view; (d) side back view; and (e) case made using 3D printing.
Figure 3. PCB and case implementation: (a) front view; (b) back view; (c) side front view; (d) side back view; and (e) case made using 3D printing.
Sensors 24 06199 g003
Figure 4. (a) Top view; (b) lateral view of the proposed antenna with its dimensions ( W = L = 50 mm, W p = L p = 24.4 mm, and H s = 0.61 mm); and (c) simulated reflection coefficient in three different loading conditions: free-space scenario, dry wood loaded, and wet wood loaded.
Figure 4. (a) Top view; (b) lateral view of the proposed antenna with its dimensions ( W = L = 50 mm, W p = L p = 24.4 mm, and H s = 0.61 mm); and (c) simulated reflection coefficient in three different loading conditions: free-space scenario, dry wood loaded, and wet wood loaded.
Sensors 24 06199 g004
Figure 5. Mode of acquisitions: (a) manual; (b) automatic.
Figure 5. Mode of acquisitions: (a) manual; (b) automatic.
Sensors 24 06199 g005
Figure 6. Experimental setup comprising a patch antenna, a drying oven, a greenwood sample, and the customized PCB.
Figure 6. Experimental setup comprising a patch antenna, a drying oven, a greenwood sample, and the customized PCB.
Sensors 24 06199 g006
Figure 7. Drying curve of the greenwood on a dry basis vs. time.
Figure 7. Drying curve of the greenwood on a dry basis vs. time.
Sensors 24 06199 g007
Figure 8. PLSR scheme for calibration, CV, and test validation.
Figure 8. PLSR scheme for calibration, CV, and test validation.
Sensors 24 06199 g008
Figure 9. (a) Magnitude of S 11 ; (b) its derivative highlights differences in spectra due to MC change.
Figure 9. (a) Magnitude of S 11 ; (b) its derivative highlights differences in spectra due to MC change.
Sensors 24 06199 g009
Figure 10. Predicted versus observed MC (in %) for test and calibration of PLSR
Figure 10. Predicted versus observed MC (in %) for test and calibration of PLSR
Sensors 24 06199 g010
Figure 11. Regression coefficient β for S 11 and its derivative.
Figure 11. Regression coefficient β for S 11 and its derivative.
Sensors 24 06199 g011
Table 1. Results of PLSR parameters for S 11 and its derivative across various validation processes.
Table 1. Results of PLSR parameters for S 11 and its derivative across various validation processes.
ProcessRMSE (%) R 2 LVsBias
Calibration 1.7 5.51 × 10 17
S11CV 1.8 0.995 6 5.62 × 10 5
Test 1.9 5.62 × 10 5
Calibration 1.8 0
S 11 / ( Frequency ) CV 2.0 0.996 60
Test 1.8 6.60 × 10 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

Afif, O.; Franceschelli, L.; Iaccheri, E.; Trovarello, S.; Di Florio Di Renzo, A.; Ragni, L.; Costanzo, A.; Tartagni, M. A Versatile, Machine-Learning-Enhanced RF Spectral Sensor for Developing a Trunk Hydration Monitoring System in Smart Agriculture. Sensors 2024, 24, 6199. https://doi.org/10.3390/s24196199

AMA Style

Afif O, Franceschelli L, Iaccheri E, Trovarello S, Di Florio Di Renzo A, Ragni L, Costanzo A, Tartagni M. A Versatile, Machine-Learning-Enhanced RF Spectral Sensor for Developing a Trunk Hydration Monitoring System in Smart Agriculture. Sensors. 2024; 24(19):6199. https://doi.org/10.3390/s24196199

Chicago/Turabian Style

Afif, Oumaima, Leonardo Franceschelli, Eleonora Iaccheri, Simone Trovarello, Alessandra Di Florio Di Renzo, Luigi Ragni, Alessandra Costanzo, and Marco Tartagni. 2024. "A Versatile, Machine-Learning-Enhanced RF Spectral Sensor for Developing a Trunk Hydration Monitoring System in Smart Agriculture" Sensors 24, no. 19: 6199. https://doi.org/10.3390/s24196199

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