Abstract
Microwave sensors are principally sensitive to effective permittivity, and hence not selective to a specific material under test (MUT). In this work, a highly compact microwave planar sensor based on zeroth-order resonance is designed to operate at three distant frequencies of 3.5, 4.3, and 5 GHz, with the size of only per resonator. This resonator is deployed to characterize liquid mixtures with one desired MUT (here water) combined with an interfering material (e.g., methanol, ethanol, or acetone) with various concentrations (0%:10%:100%). To achieve a sensor with selectivity to water, a convolutional neural network (CNN) is used to recognize different concentrations of water regardless of the host medium. To obtain a high accuracy of this classification, Style-GAN is utilized to generate a reliable sensor response for concentrations between water and the host medium (methanol, ethanol, and acetone). A high accuracy of 90.7% is achieved using CNN for selectively discriminating water concentrations.
Keywords: microwave sensor, selectivity, resonators, machine learning, generative adversarial network
1. Introduction
Microwave planar sensors have recently spread in a wide range of applications including material characterization [1,2], the oil and sand industry [3,4,5], the biomedical field [6,7,8], and many others [9,10]. The main motivation behind the growing interest in these sensors is a combination of their intriguing features (such as low-cost mass production, simple design, high sensitivity) and, more importantly, non-contact mode of sensing. The latter allows for the interaction of materials in the proximity of the sensor to be interrogated without direct contact. This enables the operation of the sensor in harsh environments and inaccessible areas. This eventually prolongs the sensor life as the maintenance cost significantly decreases. However, this contact-less sensing scheme becomes problematic when the material under test (MUT) resides within an unknown background material. Similarly, when an interfering medium/material is present in the sensing range of a microwave planar sensor, the measurement results are affected. The microwave sensing principle in resonator-based sensors is attributed to the effective dielectric load on the resonator. It is clear that the mixture of several liquids modifies the dielectric properties, which can be quantified using the Maxwell–Garnett equation [11], compared with that of only a single MUT. In addition, unintended changes in the environment that impact the effective dielectric properties (e.g., relative humidity [12] or temperature [13]) may also lead to inaccuracies in the sensing outcome. As a result, planar sensing has complexities that need to be resolved in the microwave regime.
This article elaborates on a common issue among others of microwave sensors that are sensitivity to the effective medium rather than a specific MUT. It then proposes a technique to overcome this issue using machine learning. In a complex matrix consisting of two MUTs, one can determine the contribution of each material in the solution using a continuous regression model of the sensor response, e.g., using resonance frequency. The reason for the choice of resonance frequency is its robustness to the environmental thermal noise in comparison to the resonance amplitude. This regression is easily computed when the background medium is known. However, when the desired MUT is mixed with another, unknown liquid, it becomes erroneous to identify the level of desired MUT. In this work, we propose a multi-resonance sensor that is empowered with a machine learning algorithm to quantify the level of selected MUT in a binary mixture regardless of the host medium. This resonance-based process [14,15,16,17] yields a sensor that is not only sensitive, but also selective to only a single MUT, a characteristic that is not inherent to microwave sensors. The methodology used to differentiate various concentrations of the desired MUT (from ) is discretized into 11 groups using a convolutional neural network (CNN). Since CNN typically takes an image as the input, a novel approach is employed to convert the sensor measurement into an image, known as a heat map, suitable for the subsequent machine learning blocks. Deep learning has been used in various areas including biomedical [18,19,20,21] and agricultural applications [22,23], wherein self-feature extraction is exploited and learned through CNN [24,25].
It should be noted that using deep learning CNN as the classifier requires a large dataset for training. Using n extensive training set, CNN outperforms other methods such as ImageNet [26]. However, this process is intrinsically time consuming due to the need to individually label the measured samples. This results in a limited number of available training data points and, subsequently, in an overfitted trained model. At the same time, hand-crafted measurements are prone to error, especially for small concentrations of the desired MUT. To address the challenges associated with the use of CNN for material characterization, this paper introduces a technique to generate a large number of data points with high accuracy using a generative adversarial network (GAN) [27,28] called Style-GAN. It has been shown that GANs can be used for image generation [29], audio generation [30], and language processing [31]. However, the specifics of image generation are not sufficiently determined to allow controlled manipulation of the generated image. In contrast, Style-GAN as a variant of GANs, can generate realistic images because of the presence of latent vectors, which allow direct manipulation of the generated images. In this article, Style-GAN is used to generate a large number of suitable sensor responses for all intermediate concentrations between the selected MUT (here water) and undesired background material. This approach generates images with high accuracy, suitable for a CNN-based classification algorithm. In turn, it facilitates the effective evaluation of the sensor response for an arbitrary binary mixture.
The are two main novel contributions of the proposed approach as follows. First, the generation of a large number of synthetic sensor responses is of utmost importance specifically when measurement requires huge resources for high accuracy. This requirement is successfully met using Style-GAN (i.e., data augmentation). Second, the level of selected MUT is assessed by classifying the sensor response considering not just a single host medium, but several different media. Enabling this selectivity in sensing for a microwave sensor is conducted using a CNN that is trained to realize a selective microwave sensor. All in all, a significantly compact design is developed to be sensitive to only a single material of interest.
2. Sensor Design and Analysis
The unique properties of left-handed metamaterials introduced sophisticated devices with novel electromagnetic propagation properties. Reported structures include a resonant approach using SRR and metal wire [32] and a non-resonant one using an interdigital capacitor (IDC) and stubs [33]. The use of SRR and wire in the microwave regime is cumbersome due to the size limitations and narrow bandwidth. The transmission line approach, however, results in regions of operation for a positive, negative, or even zero phase constant (). A typical series IDC and parallel stub, shown in Figure 1a, is essentially comprised of a series capacitor and a parallel inductor . In addition, the inductance of the series IDC and the capacitance between the stub and the ground, known as and , respectively, are used to comprehensively represent the equivalent circuit model of the unit cell. This combination leads to a composite right-/left-handed transmission line (CRLH TL). It can be designed for balanced resonances between series and shunt tanks as follows:
| (1) |
| (2) |
Figure 1.
Composite right-/left-hand transmission line unit cell in (a) layout and (b) equivalent circuit model with series and shunt resonators. (c) A typical left-handed transmission line without considering the right-handed transmission line components. (d) Layout of the proposed sensor with three adjacent resonators sharing similar capacitors and different stubs. (e) Equivalent circuit model of the proposed multi-resonator-based sensor. (f) Simplified circuit model with blocks of CRLH cells.
The propagation constant can be computed according to:
| (3) |
In the case of a zero propagation constant () from (3), an infinite wavelength is supported.
The resonances of an open-ended CRLH TL occur when the propagation constant of each resonance is defined as:
| (4) |
where , and N represent the length of the resonator, mode number, and number of unit cells, respectively. It is apparent that with , the wavelength becomes infinite and the resonance frequency is no longer tied to the sensor size. In comparison, the resonator size for a conventional open-ended resonator is half-wavelength. This feature of zeroth-order resonators allows for significant miniaturization, which is the motivation for this choice of resonator, especially when three resonators are used for a multi-resonance application. Since the material permittivity changes across frequency, it is recommended to study the material behavior in a broadband or multi-frequency span. In this design, three frequencies are chosen to cover a relatively large frequency span. In order to implement resonators associated with this frequency, the series capacitance and shunt inductance of a zero-order resonator can be arbitrarily chosen. To have a compact and consistent sensitive region for the MUT, the architecture of the IDC is shared among all resonators, while the length of the shunt inductors determines the resonance frequencies; therefore, one can obtain the resonance frequency of interest for each resonator by tuning the length of the corresponding shunt inductor. It is noteworthy to mention that the placement order of resonators affects the amplitude of transmission specifically for the lowest resonance. Considering this fact, the shunt inductor related to the lowest resonance frequency is located in the middle followed by feedback from the simulation results.
2.1. CRLH Analysis
The CRLH unit cell for the zeroth-order resonator is depicted in Figure 1a, which is essentially comprised of a series IDC and a stub shorted with a via. This is equivalent to a composite of series and parallel resonators, where the engineered series IDC fingers contribute to both capacitance and inductance. A similar assumption holds true for the shunt stub, which possesses capacitive features between the stub and the ground, while the stub acts as an inductor due to its short length (<). The pure left-handed TL representation is given in Figure 1c as well, where only the main contributing components, i.e., the series capacitance and shunt inductance , are presented. However, the presence of the underlying copper traces acting as and is significant enough to consider the regular representation of a right-handed TL as well.
The proposed resonator sensor is depicted in Figure 1d, where three zeroth-order resonators are cascaded with shared IDCs and separate shunt inductors. This sensor is comprised of three distinct resonance frequencies differentiated by specific stub lengths. The equivalent circuit model of the whole multi-resonator sensor is shown in Figure 1e, which is indeed a combination of three CRLH TLs in Figure 1b. Each capacitor is shared between two resonators; hence, in the corresponding circuit model given in Figure 1f, each series is doubled to illustrate each CRLH TL unit cell with a symmetrical representation. The regular TL circuit model denoting the input and output of the sensor is given as a symmetric series inductance () and shunt capacitance ().
The relationship between the theoretical parameters ( and resonance frequency) and dielectric properties of the MUT can be derived through the following analysis: Accurate modeling of the sensor response is conducted through ABCD matrix analysis. Since the individual components of the sensor are cascaded, the whole design is divided into three main subsections including two transmission lines in the input and output (), three individual CRLH resonators (, i = 1, 2, 3), and two series capacitances (), as shown in Figure 1f.
2.1.1. Input/Output Transmission Line
The two transmission lines at the input and output of the sensor with the length of , propagation constant , and characterization impedance are modeled as follows:
| (5) |
2.1.2. Connecting Capacitances
The two marginal capacitances as shown in Figure 1f are modeled as follows:
| (6) |
where is impacted by the MUT () and is modified as follows:
| (7) |
2.1.3. CRLH Model
Each individual resonator is modeled with a cascade of capacitors and inductors, as shown in Figure 1f, which allows for matrix multiplication to determine the overall transfer function of each CRLH unit cell.
| (8) |
which can be summarized as follows:
| (9) |
The total transfer function is obtained by cascading all elements as follows:
| (10) |
Therefore, scattering parameter can be obtained with the following conversion equation:
| (11) |
The corresponding resonance frequency of each resonator can be obtained through the equation when = 0, as shown in Equation (2).
2.2. Sensor Topology and Field Analysis
A detailed top-view of the proposed sensor is shown in Figure 2a with the dimensions also given in Table 1. The structure is exposed to the MUT within a fluidic channel model, shown in Figure 2b, where the tubing is designed to cover the whole IDC section to exploit the fringing fields. Extending the tube to cover all IDCs engages all resonators and affects their resonance profiles simultaneously. This way, a multi-resonant sensor is structured, which is utilized to enable the characterization of a material over a wide range of frequencies.
Figure 2.
(a) Top-view of the proposed multi-resonator sensor. (b) Perspective of the sensor with the fluidic channel mounted on the top.
Table 1.
Sensor parameters’ dimensions and substrate information.
| Parameter | g | Wstub | lIDC | Istub 1 | Istub 2 | Istub 3 |
| Value [mm] | 0.4 | 0.8 | 4 | 3 | 4.5 | 2 |
| Rogers 5880 | Thickness | |||||
| 2.2 | 0.0009 | 0.5 | ||||
The multi-resonator sensor was simulated in Ansys Electronics (HFSS) considering the bare resonator without any material/tube on it. HFSS uses a numerical method called the finite element method. Finite elements refer to smaller subsections that the desired structure is divided into. A solution for the fields (electric/magnetic) within the entire finite elements (mesh) is achieved when Maxwell’s equations are satisfied across inter-element boundaries. Once the field solution is available, the scattering parameters of the design are obtained. Mathematically, considering the boundary conditions and excitations, HFSS solves for the electric field E as follows:
| (12) |
where , , , and for the magnetic field H as follows:
| (13) |
The magnitude of electric fields, shown in Figure 3a, also depicts the location of highly concentrated regions at a specific frequency that corresponds to the resonance of each resonator. For one, the shortest stub is associated with the highest resonance frequency, as shown in Figure 3a (left), with high electric fields concentrated on the left-most resonator. Please note that, in these simulations, the input port is located at the right side. Following the same inverse proportionality between the resonance frequency and the stub length, the next two resonances are also represented in the middle/right figures for the middle and lowest resonance frequencies, respectively. All resonances at 3.5, 4.3, and 4.9 GHz are also correlated with the corresponding magnitude of surface currents on the microstrip traces, as shown in Figure 3b. It is evident that the surface currents are maximally excited at each resonator with the corresponding resonance frequency, while affecting other resonators to a minimal degree. In addition, to demonstrate the depth of electric fields into the free space, is depicted in Figure 4a–c. It is also clear that with the presence of tube filled with an analyte, here water, the surrounding volume around a resonator also becomes deeply interrogated compared with the adjacent locations. This also reaffirms that the resonators are able to interact with an MUT deep inside the fluidic tube.
Figure 3.
Sensor field analysis in HFSS with (a) magnitude of electric field and (b) magnitude of surface current .
Figure 4.
Magnitude of electric field with the filled tube on the sensor at all resonances of (a) 4.9 GHz, (b) 4.3 GHz, and (c) 3.5 GHz.
2.3. Sensor Response in Simulation
In this section, the fluidic tube holding the desired MUT is placed on the IDCs and the sensor response is simulated for various dielectric properties of the MUT. This performance analysis involves both permittivity and the loss tangent . First, the permittivity of the MUT inside the tubing is varied from 10 to 70 with increments of 10, while the loss tangent is kept constant at . This allows interpreting the results and their sensitivity to only the real permittivity variation. The magnitude and phase of transmission profiles are depicted in Figure 5a,b, respectively. It is clear that the three resonances are separate enough from each other to avoid significant mutual loading. The resonance frequencies decrease while the permittivity increases, which is apparent in both the magnitude and phase profiles. In another exercise, shown in Figure 5c,d, the effect of the loss tangent was studied. It is shown that increasing the value of from 0 up to 1 with an increment of 0.2 reduces the sharpness of the resonances and their amplitude. This lowered amplitude of resonance translates to the lowered slope of the with shallower curves.
Figure 5.
Sensor performance for a filled tube on the sensor. The effect of variable permittivity and on (a) and (b) and loss tangent variation with on (c) and (d) .
It should be noted that the sensor response depends on the equivalent dielectric properties of the MUT over a wide range of frequencies. In this simulation, however, only a fixed value is used for both and , which is an averaged value at 4.5 GHz. This method not only reduces the simulation time, but also holds high accuracy with respect to the trends in the sensor response.
3. Measurement Results and Discussion
3.1. Measurement Setup
The measurement setup includes a S5065 copper mountain vector network analyzer (VNA), which is connected to the sensor with two STABILITY Microwave/RF (SC-N) cables as shown in Figure 6. Two syringe pumps, Pump 11 Elite (gray) and Cole-Parmer single syringe infusion pump (CAT No.78-9100C) (blue), were used to inject the MUT through a polytetrafluoroethylene (PTFE) fluidic channel. A plastic container was used to collect the waste material from the fluidic channel. The whole system resides inside a cubic chamber, which is covered by a foam sheet broadband microwave absorber (ECCOSORB-AN79) to protect the sensing environment from microwave inferences.
Figure 6.
Measurement setup with two syringe pumps and the fluidic PTFE tube mounted on the sensor.
3.2. Results and Discussion
The proposed multi-resonator sensor was fabricated on the Rogers 5880 substrate with the parameters given in Table 1. The sensor was etched with ammonium persulfate dissolved in water. Using Copper Mountain S5065, transmission/reflection parameters in both magnitude (red) and phase (blue) were measured, as shown in Figure 7. A polytetrafluoroethylene (PTFE) fluidic channel with outer diameter and inner diameter was mounted on the sensor surface, allowing the MUT to flow through. An initial measurement response of the sensor without any liquid inside is shown in Figure 7. The measured resonance profile matches with the simulation result and verifies the three resonances in both the frequency and magnitude of resonance for either transmission or reflection (zoomed in with grey color) scattering parameters. Some minor discrepancies go back to the fabrication errors for the in-house etching process, as well as to the implementation of vias.
Figure 7.
Comparison between measured (solid) and simulated (dashed) scattering parameters in magnitude (blue) and phase (red).
In this work, several binary mixtures were prepared with water in a secondary liquid, here including methanol, ethanol, and acetone. In order to achieve different mixtures with various concentrations of water, two syringe pumps were used. The syringe pumps were tuned to allow different flow rates for the constituting liquids of a mixture. As a result of a proper flow rate for the syringe holding water, concentrated solutions with increments of were obtained.
Since the microwave sensor is tightly linked with the effective dielectric constant of the solution, their effective permittivity was calculated through the Cole–Cole model with parameters taken from [34,35,36] as follows:
| (14) |
where is the relaxation time constant, is an empirical parameter, and and are the low-frequency and high-frequency dielectric constant, respectively.
The propagation of electromagnetic waves inside a medium is tightly linked to the constituent parameters of the medium including the permittivity () and loss tangent (tan()). Considering different concentrations of water when the permittivity increases at a given frequency, the wave speed that is determined by reduces. Similarly, the wavelength decreases according to → (). On the other hand, propagation in a lossy medium with a non-zero loss tangent affects the wave amplitude by a factor of , where .
Figure 8a depicts the bulk medium permittivity values at the wide range of frequencies covering the span of interest. Subsequently, the binary mixtures of water in methanol, ethanol, and acetone are also computed and plotted in Figure 8b–d. It is apparent that the relative permittivity decreases over frequency for all solutions; however, the trend of the loss tangent is not predictable. With this in mind, various instances at a given frequency exist wherein the relative permittivity values overlap, which results in a similar performance for the frequency of operation in all three resonances of the proposed sensor. This leads to an indecisive conclusion on the nature of the ingredients since more than one candidate can be found that result in the same effective permittivity. This suggests that the effect of the background medium is considerable on the sensor response. The impact of background material is more elaborated when the concentrated solutions of water in methanol/ethanol/acetone are tested within a PTFE tubing. Measurements were recorded using LabView with time interval of 5 s, leading to a total of 50 measured sensor responses per intermediate concentration. The corresponding resonance frequencies are down-shifted in Figure 9 as a result of increased water content (equivalent to increased effective permittivity), as shown in Figure 8b–d. The trend is more significant for ethanol compared to the other MUT due to its lower permittivity at the frequency of interest compared to methanol or acetone. It can also be inferred that the measured sensor parameters of resonance, such as frequency and amplitude, do not independently suggest the nature of the ingredients in a binary mixture. In other words, a single resonance frequency value can be attributed to more than one MUT. Therefore, the feature of the microwave sensor that is sensitive to the effective permittivity leaves the sensor non-selective to the MUT. In order to resolve this issue, in this work, a CNN-based classifier was used to distinguish different mixtures using feature extraction. Since CNNs depend on image-based data, the measured sensor response needs to be converted to a graphical representation. To address this issue, a novel representation was obtained based on the amplitude and phase of transmission , as shown in Figure 10a. To obtain an image from these results, the phase diagram vs. frequency was kept as the baseline and the magnitude of transmission was used as the color intensity between white (low ) and red (high ), which is called a heat map in this work and shown in Figure 10b. This way, the results are completely conveyed in a unified format from which the constituent parameters can also be recovered. An image representation of is fed to the network as the input data for a given transmission profile.
Figure 8.
Dielectric properties of the bulk medium including water, methanol, ethanol, and acetone (a) and of concentrated solutions of water in ethanol (b), acetone (c), and methanol (d). Please note that the arrows demonstrate the increase in the water concentrations from 0−100%.
Figure 9.
Measured sensor response for various concentrations of water in methanol/ethanol/acetone in both (a) resonance frequency and (b) amplitude of resonance.
Figure 10.
(a) Magnitude and phase of resonator sensor response. (b) Corresponding phase vs. frequency with the color intensity determined by the level.
3.3. Style-GAN
Different concentrations of water in MUTs need to be meticulously prepared with proper flow rate adjustment in the syringes. Generating a high number of input data points for CNN requires time-consuming and laborious hands-on work, which is prone to error in sample preparation/testing. This is the main motivation to use an automated response generation for the sensor in its linear mode of operation. Please note that the fluidic channel cross-section is small and loads the sensor minimally, thus helping to exploit the linear mode of the sensor. In this section, a machine learning algorithm was employed to generate images with characteristics derived from two sources linearly using Style-GAN according to the linear mode of the sensor. Style interpolation incorporates two latent source imagesof and to generate a new style , where stands for a strength parameter towards a class direction. This method was introduced by Keras et al. of Nvidia Research in 2018 [37]. Since then, Style-GAN generator has been applied in various applications including the generation of human faces and medical image synthesis [38,39]. Inspired by its wide-ranging application potential, this method was also used in the proposed microwave sensor.
A Style-GAN is characterized by two inputs of noise vectors and a randomized latent vector. The noise generated from a normal distribution creates stochastic variations, and the randomized vector sampled from a normal distribution determines global features in an image. This combination of latent vector and noise results in a variety of generated images. The architecture of Style-GAN is shown in Figure 11, which is composed of a mapping network f and a synthesis network g. The mapping network f is a multilayer perceptron with a latent code , where z is a vector sampled from a normal distribution . This network outputs a style vector with the shape of . The purpose of the mapping network is to enable w to learn the distribution of the training set. The synthesis network g uses noise and style vector w to generate new images. This network is comprised of 14 (or 16–18) layers with seven (or 8–9) blocks for the image resolution of (or 512–1024). Each block consists of six operations: upscaling (1×), noise addition (2×), AdaIN (2×), and convolution (1×). The operations of all blocks are similar except the first one, where a constant tensor is initialized. In each block, vector w and noise are used as the inputs. The affine transformation, shown with
in Figure 11, converts vector w into the style mean and the style variance . An adaptive instance normalization uses the statistical information of and to pass the properties of the adapted style to the next one as follows:
| (15) |
where stands for the standard deviation and mean of the adapted style, respectively; is the feature tensor passed from the previous operations.
Figure 11.
The style-based generator architecture.
The scaling per channel, shown with
in Figure 11, fits the shape of the noise into the propagating tensor and sums them. A final RGB convolution is applied to the output, which transforms the tensor into a desired image of sensor response.
In this work, Style-GAN Encoder was used [40] to modify the high-level attributes. Mapping network f transforms Z drawn from normal distribution to W to enable high-end attribute encoding. The new images generated by style interpolation utilize the linear relationship , which results in a smooth transition between the source and target images.
The source materials of (water) and (methanol/ethanol/acetone) are measured with LabView every 5 s to arrive at 1000 measurements per sample. These sensor responses are converted into heat maps in order to train StyleGAN. The generated images between each set of and are represented in Figure 12 with factors between 0.1 and 0.9 with increments of , which represent increases of the concentration by . This graph represents the sensor responses for each concentration assuming there is a linear variation in the sensor response, which is inferred from Figure 9a. Desired concentrations of water in all above-mentioned materials with increments are also measured with the sensor topology shown in Figure 6. These measured responses are used as true values for comparison with the generated responses by Style-GAN using the following metrics.
Figure 12.
Interpolation between heat maps of the source materials of water () and the next source from methanol, ethanol, and acetone in Rows 1, 2, and 3, respectively.
The similarity between two images is measured with the structural similarity index (SSIM) for each subimage with a side length of 11 as follows:
| (16) |
where and are the average pixel intensity of the subimages x and y, respectively. The standard deviations of the subimages x and y are, respectively, and , and the covariance of the two subimages is . In addition, the peak-to-signal ratio (PSNR) is used for quality assessments as follows:
| (17) |
where MAX is the highest scale value of the pixels and the mean of absolute error (MSE) is defined as follows:
| (18) |
Finally, to evaluate the performance of Style-GAN, the Frechet inception distance (FID) is used.
These metrics are computed and shown in Figure 13a–c versus the number of epochs. Style-GAN converges at 300 epochs with , , and . The accuracy of the generated images was verified, which ensures that the generated images can be used as the input dataset to train CNN classification.
Figure 13.
Image generation metrics using Style-GAN given as (a) PSNR, (b) SSIM, and (c) FID score.
3.4. Classification Using CNN
The images generated using Style-GAN comprise the input set to train the classifier for different concentrations of water in various host media. This way, image representations of measured sensor responses are mapped to the corresponding concentrations of water. This model has two components: feature extraction in the front end (convolutional and pooling layers) and predictive classifier in the back end. The CNN model was evaluated for various combinations of parameters including the number of layers (1, 2, 3), optimizers (Adam, Stochastic gradient decent), learning rates (0.001, 0.01, 0.1), and loss functions (binary cross-entropy, categorical cross-entropy).
Regarding the optimization of our model, our dataset has a specific format, magnitude, and phase of a frequency-based parameter, which is significantly different from well-known datasets in the literature. Other CNN-based deep networks are already pre-trained to be used for nominal objects. In order to apply those models to our dataset, one needs to train them from scratch. Besides, our dataset has a fixed pattern, which helps its recognition and training to be faster with simple networks without dealing with complex (deep) ones. Therefore, the used model in this manuscript was compared with a CNN comprised of different numbers of layers. In each case, different combinations of hyperparameters were compared to evaluate the model performance. The metrics of sensitivity, specificity, and accuracy were chosen to compare the network performance with detailed mathematical formulas as follows:
| (19) |
| (20) |
| (21) |
where , and represent true positive, true negative, false positive, and false negative, respectively. Figure 14 demonstrates the sensitivity and specificity analysis among the three different network layers of 1, 2, and 3. It is evident that the number of layers has a negligible impact on the model effectiveness as the measured sensor responses are simple with a fixed pattern. Therefore, the simplest model with only a single CNN layer was chosen to be used in this analysis.
Figure 14.
(a) Sensitivity and (b) specificity analysis for CNNs with different numbers of layers and hyperparameters including optimizers, learning rates, and loss functions. In the box plots the central line defines the median. The lower and upper hinges of the boxes correspond to the 25th and 75th percentiles, and the whiskers are the minimum and maximum values. Outliers that differ significantly from the rest of the dataset are plotted as individual points (diamond) beyond the whiskers on the box-plot.
The CNN model structure with the highest accuracy could be achieved as follows: a single convolutional layer with 32 filters with the size of is followed by a max pooling layer. In order to provide features for the classifiers, filter maps were flattened. The output layer contains 11 nodes corresponding to 11 water concentration samples. Since the problem is a multi-class classification task, it requires using the softmax activation function. A dense layer with 100 nodes is between the feature extractor and the output layer to interpret the features. All layers except the output layer use ReLu as the activation function. The stochastic gradient descent optimizer with learning rate and momentum was used to optimize the categorical cross-entropy loss (CCE) function. Here, to monitor the model performance, accuracy and loss were chosen as the evaluation metrics.
The saved Style-GAN generator model was used to create 500 heat maps per concentration from which 80% were used as the training set and 20% as the validation set to train the CNN classifier. Once the CNN was trained, 50 unseen heat maps per class obtained from measurement were used to test the CNN classifier performance as the external dataset. Figure 15a,b depicts the classifier’s convergence curves including the accuracy and loss metrics over 100 epochs. The confusion matrix depicted in Figure 15 c shows a high accuracy of over all classes. This confirms the selectivity of the sensor to the desired MUT (here water) regardless of the background material.
Figure 15.
CNN Classifier (a) accuracy and (b) loss per epoch number. Confusion matrix for classifying the samples into categories of water percentage from with increments. (c) Confusion matrix for the selective microwave sensor.
3.5. Model Uncertainty
Regarding the robustness of the model, high probabilities in classification do not guarantee the high certainty of the model. In the proposed work, the Gaussian process (GP) was applied to the features of the last layer of the CNN model, which allows for the practical evaluation of uncertainty bounds without losing the power of the deep learning model. The activations of the last hidden layer were extracted as the features that were used to train the GP. The GP comprises a Matern kernel [41] with with white noise to account for noisy data. Several different states of white noise level were increasingly introduced to the model to distort it. As a result, the model with various noise levels according to standard deviation in the last layer accounting for the noisy data was evaluated for three different layers 1, 2, and 3, and the accuracy is reported as shown in Figure 16. The test and validation set are also included for comparison. It is clear that the single-layer CNN model has comparable performance as the ones with more layers. As a result, a single-layer CNN was used to conserve resources and simulation time.
Figure 16.
Uncertainty of the model with various noise levels being increasingly introduced with the corresponding standard deviation .
3.6. Comparative Analysis
A comparative analysis is detailed in Table 2 where planar microwave sensors are examined with respect to the frequency of operation, method of operation, materials used, and proposed applications. Some sources [42] report sensors to analyze the composition of the solution using a multi-resonance approach. However, these sensors are not developed to selectively react to only a single material. In contrast, the proposed system enables the sensor to be selective only to a specific MUT in a complex matrix. For instance, in biological analysis of the body state such as the glucose level in the blood, several analytes including fructose, galactose, caffeine, etc., also undergo changes as a result of food intake. Therefore, designing a sensor to be selective to only glucose within such a complex matrix is the ultimate goal to enable sophisticated clinical applications. Hence, using the proposed sensor, the effects of single or multiple background interfering impacts can be nullified. In addition, the proposed approach introduces a novel method to increase the number of measured materials with high accuracy. Therefore, the measurement inaccuracies due to human error or setup displacements can be avoided.
Table 2.
Comparison table for various sensors studying selectivity features.
| Ref | Sensing Technique | [GHz] | Method | Material | Applications/Metrics |
|---|---|---|---|---|---|
| [42] | Planar SRR 1 | 0.5–4.5 | Multi-harmonics analysis using ANN | Water/ethanol/gasoline | Gas and oil industryMSE: 0.057% |
| [43] | Planar SRR | 1–10 | Mathematical analysis | Saline water/oil/brine | Detection of water and brine in oil—Error: 0.87% |
| [44] | Xethru Radar | 6–7.75 | Time-domain analysis | Water and fat in raw milk | Dairy industry MSE: 0.29% |
| [45] | strip SRR | 0.5–2.2 | logarithmic regression method | CaCl2, NaCl, KCl, MgCl2 and Na2CO3 | Concentrations of salts in water—error: ±1 MHz |
| [46] | CSRR 2 | 4.2–8 | Microwave interferometry | Ethanol/methanol/ butan-1-ol/propan-1-ol | Error: 1.1% |
| [47] | CBCPW | 0.5–40 | Stokes–Einstein–Debye equation | Water/Alanine | Biosensing and bioelectromagnetics |
| [48] | Multi-Slot SRR | 0.1–6.5 | Multi-resonance analyzed using AI | Water/methanolethanol/peroxide/acetoneglycerol/propanol | MSE: 0.13% |
| [4] | Single wire coil | 0.2–4.5 | Volumetric analysis of the mixtures | Water–clay/bitumen | Bitumen–water–clay analysis—MAE: 4% |
| [49] | Planar SRR | 1.1, 2.2 | Mathematical analysis of in mixture | Ethanol–water–glucose | Fermentation process in food industry—Error: 0.087% |
| This work | 0th-order resonator | 3–6 | CNN-based selective classifier | Water in methanol, ethanol, acetone | Selectivity in biomedical/CCE: 0.21%accuracy: 90.7% |
On the limitation of the proposed study, the sensitivity of the microwave sensor to the placement of the MUT, as well as the surrounding medium in the sensor’s proximity are of high importance. Typically, microwave devices need to be protected from environmental electromagnetic interference for high accuracy and repetition. Lastly, the number of measurements to be considered in the training process needs to be high for better convergence; however, too many measurements usually include higher human errors. In our study, we tried to avoid such errors with the help of StyleGAN, whose performance is tied to available resources (e.g., memory, GPU, etc.).
4. Conclusions
In this work, a multi-resonator sensor using metamaterial transmission line zeroth-order resonators was developed that covers a wide range of frequencies from 3 GHz to 5.5 GHz. The resonator was exposed to binary mixtures of water in {methanol, ethanol, and acetone} with concentrations ranging from with increments of . The sensor was developed to be selective to only water regardless of the host medium. In this process, a convolutional neural network was used as the classification algorithm. Sensor response ( and ) was converted into heat maps with the phase vs. frequency diagram colored by the magnitude of . These images were fed to the CNN as the input. A large number of images were generated using Style-GAN on the heat maps from two sources. Using Style-GAN, heat maps of intermediate concentrations were generated with a high PSNR of 27.4 dB. Finally, the classification of all samples into 11 categories (0%:10%:100% all-inclusive) confirmed a high accuracy of image generation by Style-GAN combined with the CNN classifier of 90.7%. This approach promises the development microwave sensors selective to a desired material of interest.
Acknowledgments
The authors would like to thank Rogers Corp. for their generous donations in substrates.
Author Contributions
Conceptualization, N.K., N.G., and P.M.; methodology, N.K. and N.G.; validation, N.K. and N.G.; formal analysis, N.K.; resources, P.M.; writing—original draft preparation, N.K.; writing—review and editing, P.M.; visualization, N.K.; supervision, P.M.; funding acquisition, P.M. All authors have read and agreed to the published version of the manuscript.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data are not publicly available due to data privacy restrictions.
Conflicts of Interest
The authors declare no conflict of interest.
Funding Statement
This work was supported in part by the Natural Science and Engineering Research Council (NSERC) of Canada, the Future Energy System (FES), and by CMC Microsystems.
Footnotes
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Abdolrazzaghi M., Daneshmand M. Exploiting sensitivity enhancement in micro-wave planar sensors using intermodulation products with phase noise analysis. IEEE Trans. Circuits Syst. I Reg. Papers. 2020;67:4382–4395. doi: 10.1109/TCSI.2020.3003010. [DOI] [Google Scholar]
- 2.Kazemi N., Schofield K., Musilek P. A high-resolution reflective microwave planar sensor for sensing of vanadium electrolyte. Sensors. 2021;21:3759. doi: 10.3390/s21113759. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Abdolrazzaghi M., Zarifi M.H., Floquet C.F., Daneshmand M. Contactless asphaltene detection using an active planar microwave resonator sensor. Energy Fuels. 2017;31:8784–8791. doi: 10.1021/acs.energyfuels.7b00589. [DOI] [Google Scholar]
- 4.Baghelani M. A Single-Wire Microwave Sensor for Selective Water and Clay in Bitumen Analysis at High Temperatures. IEEE Trans. Instrum. Meas. 2021;70:1–8. doi: 10.1109/TIM.2021.3107606. [DOI] [Google Scholar]
- 5.Abbasi Z., Niazi H., Abdolrazzaghi M., Chen W., Daneshmand M. Monitoring pH level using high-resolution microwave sensor for mitigation of stress corrosion cracking in steel pipelines. IEEE Sens. J. 2020;20:7033–7043. doi: 10.1109/JSEN.2020.2978086. [DOI] [Google Scholar]
- 6.Baghelani M., Abbasi Z., Daneshmand M., Light P.E. Non-invasive continuous-time glucose monitoring system using a chipless printable sensor based on split ring microwave resonators. Sci. Rep. 2020;10:12980. doi: 10.1038/s41598-020-69547-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Abdolrazzaghi M., Katchinskiy N., Elezzabi A.Y., Light P.E., Daneshmand M. Noninvasive glucose sensing in aqueous solutions using an active split-ring resonator. IEEE Sens. J. 2021;21:18742–18755. doi: 10.1109/JSEN.2021.3090050. [DOI] [Google Scholar]
- 8.Li Z., Tian X., Qiu C.W., Ho J.S. Metasurfaces for bioelectronics and healthcare. Nat. Electron. 2021;4:382–391. doi: 10.1038/s41928-021-00589-7. [DOI] [Google Scholar]
- 9.Muñoz-Enano J., Coromina J., Vélez P., Su L., Gil M., Casacuberta P., Martín F. Planar phase-variation microwave sensors for material characterization: A review and comparison of various approaches. Sensors. 2021;21:1542. doi: 10.3390/s21041542. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Martín F., Vélez P., Gil M. Microwave sensors based on resonant elements. Sensors. 2020;20:3375. doi: 10.3390/s20123375. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Markel V.A. Introduction to the Maxwell Garnett approximation: Tutorial. J. Opt. Soc. Am. A. 2016;33:1244–1256. doi: 10.1364/JOSAA.33.001244. [DOI] [PubMed] [Google Scholar]
- 12.Abdolrazzaghi M., Khan S., Daneshmand M. A dual-mode split-ring resonator to eliminate relative humidity impact. IEEE Microw. Wirel. Compon. Lett. 2018;28:939–941. doi: 10.1109/LMWC.2018.2860596. [DOI] [Google Scholar]
- 13.Kazemi N., Abdolrazzaghi M., Musilek P., Daneshmand M. A temperature-compensated high-resolution microwave sensor using artificial neural network. IEEE Microw. Wirel. Compon. Lett. 2020;30:919–922. doi: 10.1109/LMWC.2020.3012388. [DOI] [Google Scholar]
- 14.Chaparro-Ortiz D.A., Sejas-García S.C., Torres-Torres R. Relative Permittivity and Loss Tangent Determination Combining Broadband S-parameter and Single-Frequency Resonator Measurements. IEEE Trans. Electromagn. Compat. 2022:1–7. doi: 10.1109/TEMC.2022.3170532. [DOI] [Google Scholar]
- 15.Abdolrazzaghi M., Daneshmand M., Iyer A.K. Strongly enhanced sensitivity in planar microwave sensors based on metamaterial coupling. IEEE Trans. Microw. Theory Tech. 2018;66:1843–1855. doi: 10.1109/TMTT.2018.2791942. [DOI] [Google Scholar]
- 16.Abdolrazzaghi M., Kazemi N., Daneshmand M. Sensitive spectroscopy using DSRR array and Linvill negative impedance; Proceedings of the 2019 IEEE/MTT-S International Microwave Symposium (IMS); Boston, MA, USA. 2–7 June 2019; pp. 1080–1083. [Google Scholar]
- 17.Abdolrazzaghi M., Kazemi N., Daneshmand M. An SIW oscillator for microfluidic lossy medium characterization; Proceedings of the 2020 IEEE/MTT-S International Microwave Symposium (IMS); Los Angeles, CA, USA. 4–6 August 2020; pp. 221–224. [Google Scholar]
- 18.Farooq A., Anwar S., Awais M., Rehman S. A deep CNN based multi-class classification of Alzheimer’s disease using MRI; Proceedings of the 2017 IEEE International Conference on Imaging Systems and Techniques (IST); Beijing, China. 18–20 October 2017; pp. 1–6. [Google Scholar]
- 19.Badža M.M., Barjaktarović M.Č. Classification of brain tumors from MRI images using a convolutional neural network. Appl. Sci. 2020;10:1999. doi: 10.3390/app10061999. [DOI] [Google Scholar]
- 20.Le N.Q.K., Nguyen B.P. Prediction of FMN binding sites in electron transport chains based on 2-D CNN and PSSM Profiles. IEEE/ACM Trans. Comput. Biol. Bioinform. 2019;18:2189–2197. doi: 10.1109/TCBB.2019.2932416. [DOI] [PubMed] [Google Scholar]
- 21.Le N.Q.K., Ho Q.T. Deep transformers and convolutional neural network in identifying DNA N6-methyladenine sites in cross-species genomes. Methods. 2022;204:199–206. doi: 10.1016/j.ymeth.2021.12.004. [DOI] [PubMed] [Google Scholar]
- 22.Li W., Wang D., Li M., Gao Y., Wu J., Yang X. Field detection of tiny pests from sticky trap images using deep learning in agricultural greenhouse. Comput. Electron. Agric. 2021;183:106048. doi: 10.1016/j.compag.2021.106048. [DOI] [Google Scholar]
- 23.Barbedo J.G. Factors influencing the use of deep learning for plant disease recognition. Biosyst. Eng. 2018;172:84–91. doi: 10.1016/j.biosystemseng.2018.05.013. [DOI] [Google Scholar]
- 24.Raza A., Ayub H., Khan J.A., Ahmad I., Salama A.S., Daradkeh Y.I., Javeed D., Ur Rehman A., Hamam H. A Hybrid Deep Learning-Based Approach for Brain Tumor Classification. Electronics. 2022;11:1146. doi: 10.3390/electronics11071146. [DOI] [Google Scholar]
- 25.Lu C.Y., Rustia D.J.A., Lin T.T. Generative adversarial network based image augmentation for insect pest classification enhancement. IFAC-PapersOnLine. 2019;52:1–5. doi: 10.1016/j.ifacol.2019.12.406. [DOI] [Google Scholar]
- 26.Ahmad I., Ullah I., Khan W.U., Ur Rehman A., Adrees M.S., Saleem M.Q., Cheikhrouhou O., Hamam H., Shafiq M. Efficient algorithms for E-healthcare to solve multiobject fuse detection problem. J. Healthc. Eng. 2021;2021:9500304. doi: 10.1155/2021/9500304. [DOI] [Google Scholar]
- 27.Goodfellow I., Pouget-Abadie J., Mirza M., Xu B., Warde-Farley D., Ozair S., Courville A., Bengio Y. Generative adversarial nets; Proceedings of the Advances in Neural Information Processing Systems; Montreal, QC, USA. 8–13 December 2014; [Google Scholar]
- 28.Sabuhi M., Zhou M., Bezemer C.P., Musilek P. Applications of Generative Adversarial Networks in Anomaly Detection: A Systematic Literature Review. IEEE Access. 2021;9:161003–161029. doi: 10.1109/ACCESS.2021.3131949. [DOI] [Google Scholar]
- 29.Brock A., Donahue J., Simonyan K. Large scale GAN training for high fidelity natural image synthesis. arXiv. 20181809.11096 [Google Scholar]
- 30.Donahue C., McAuley J., Puckette M. Synthesizing audio with generative adversarial networks. arXiv. 20181802.04208 [Google Scholar]
- 31.Kusner M.J., Hernández-Lobato J.M. Gans for sequences of discrete elements with the gumbel-softmax distribution. arXiv. 20161611.04051 [Google Scholar]
- 32.Simovski C.R., Belov P.A., He S. Backward wave region and negative material parameters of a structure formed by lattices of wires and split-ring resonators. IEEE Trans. Antennas Propag. 2003;51:2582–2591. doi: 10.1109/TAP.2003.817554. [DOI] [Google Scholar]
- 33.Lai A., Itoh T., Caloz C. Composite right/left-handed transmission line metamaterials. IEEE Microw. Mag. 2004;5:34–50. doi: 10.1109/MMW.2004.1337766. [DOI] [Google Scholar]
- 34.Kumbharkhane A., Helambe S., Lokhande M., Doraiswamy S., Mehrotra S. Structural study of aqueous solutions of tetrahydrofuran and acetone mixtures using dielectric relaxation technique. Pramana. 1996;46:91–98. doi: 10.1007/BF02848226. [DOI] [Google Scholar]
- 35.Petong P., Pottel R., Kaatze U. Water- ethanol mixtures at different compositions and temperatures: A dieletric relaxation study. J. Phys. Chem. A. 2000;104:7420–7428. doi: 10.1021/jp001393r. [DOI] [Google Scholar]
- 36.Smith R., Jr., Lee S., Komori H., Arai K. Relative permittivity and dielectric relaxation in aqueous alcohol solutions. Fluid Phase Equilibria. 1998;144:315–322. doi: 10.1016/S0378-3812(97)00275-6. [DOI] [Google Scholar]
- 37.Karras T., Laine S., Aila T. A style-based generator architecture for generative adversarial networks; Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; Long Beach, CA, USA. 15–20 June 2019; pp. 4401–4410. [Google Scholar]
- 38.Fetty L., Bylund M., Kuess P., Heilemann G., Nyholm T., Georg D., Löfstedt T. Latent space manipulation for high-resolution medical image synthesis via the StyleGAN. Z. Med. Phys. 2020;30:305–314. doi: 10.1016/j.zemedi.2020.05.001. [DOI] [PubMed] [Google Scholar]
- 39.Schutte K., Moindrot O., Hérent P., Schiratti J.B., Jégou S. Using stylegan for visual interpretability of deep learning models on medical images. arXiv. 20212101.07563 [Google Scholar]
- 40.Nikitko D. Stylegan-Encoder. [(accessed on 29 May 2022)]. Available online: https://github.com/Puzer/stylegan-encoder.
- 41.Williams C.K., Rasmussen C.E. Gaussian Processes for Machine Learning. Volume 2 MIT Press; Cambridge, MA, USA: 2006. [Google Scholar]
- 42.Baghelani M., Hosseini N., Daneshmand M. Artificial intelligence assisted noncontact microwave sensor for multivariable biofuel analysis. IEEE Trans. Ind. Electron. 2020;68:11492–11500. doi: 10.1109/TIE.2020.3032870. [DOI] [Google Scholar]
- 43.Baghelani M., Hosseini N., Daneshmand M. Non-contact real-time water and brine concentration monitoring in crude oil based on multi-variable analysis of microwave resonators. Measurement. 2021;177:109286. doi: 10.1016/j.measurement.2021.109286. [DOI] [Google Scholar]
- 44.Saeedi S., Chamaani S. Non-contact Time Domain Ultra Wide Band Milk Spectroscopy. IEEE Sens. J. 2021;21:13849–13857. doi: 10.1109/JSEN.2021.3068778. [DOI] [Google Scholar]
- 45.Harnsoongnoen S., Wanthong A. A non-contact planar microwave sensor for detection of high-salinity water containing NaCl, KCl, CaCl2, MgCl2 and Na2CO3. Sens. Actuators B Chem. 2021;331:129355. doi: 10.1016/j.snb.2020.129355. [DOI] [Google Scholar]
- 46.Saghati A.P., Batra J.S., Kameoka J., Entesari K. A metamaterial-inspired wideband microwave interferometry sensor for dielectric spectroscopy of liquid chemicals. IEEE Trans. Microw. Theory Tech. 2017;65:2558–2571. doi: 10.1109/TMTT.2016.2645155. [DOI] [Google Scholar]
- 47.Havelka D., Krivosudský O., Průša J., Cifra M. Rational design of sensor for broadband dielectric spectroscopy of biomolecules. Sens. Actuators B Chem. 2018;273:62–69. doi: 10.1016/j.snb.2018.05.124. [DOI] [Google Scholar]
- 48.Baghelani M. Wide-Band Label-Free Selective Microwave Resonator-Based Sensors for Multi-Component Liquid Analysis. IEEE Sens. J. 2021;22:2128–2134. doi: 10.1109/JSEN.2021.3137275. [DOI] [Google Scholar]
- 49.Hosseini N., Baghelani M. Selective real-time non-contact multi-variable water-alcohol-sugar concentration analysis during fermentation process using microwave split-ring resonator based sensor. Sens. Actuators A Phys. 2021;325:112695. doi: 10.1016/j.sna.2021.112695. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The data are not publicly available due to data privacy restrictions.
















