Next Article in Journal
Dynamic Thermal Voltage Adaptation for LED Branches in Automotive Applications
Previous Article in Journal
Classroom Behavior Detection Method Based on PLA-YOLO11n
Previous Article in Special Issue
Development of Autonomous Electric USV for Water Quality Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel ML-Powered Nanomembrane Sensor for Smart Monitoring of Pollutants in Industrial Wastewater

1
Department of Information and Electrical Engineering and Applied Mathematics, University of Salerno, 84084 Fisciano, Italy
2
Department of Electrical and Information Engineering, University of Cassino and Southern Lazio, 03043 Cassino, Italy
3
EUT+ Institute of Nanomaterials and Nanotechnologies-EUTINN, European University of Technology, European Union, 03043 Cassino, Italy
4
Department of Physics and Mathematics, Center for Photonics Sciences, University of Eastern Finland, 80100 Joensuu, Finland
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(17), 5390; https://doi.org/10.3390/s25175390
Submission received: 4 August 2025 / Revised: 27 August 2025 / Accepted: 29 August 2025 / Published: 1 September 2025
(This article belongs to the Special Issue Sensors for Water Quality Monitoring and Assessment)

Abstract

This study presents a comprehensive analysis aimed at validating the use of an innovative nanosensor based on graphitic nanomembranes for the smart monitoring of industrial wastewater. The validation of the potential of the nanosensor was carried out through the development of advanced analytical methodologies, a direct experimental comparison with commercially available electrode sensors commonly used for the detection of chemical species, and the evaluation of performance under conditions very similar to real-world field applications. The investigation involved a series of controlled experiments using an organic pollutant—benzoquinone—at varying concentrations. Initially, data analysis was performed using classical linear regression models, representing a conventional approach in chemical analysis. Subsequently, a more advanced methodology was implemented, incorporating machine-learning techniques to train a classifier capable of detecting the presence of pollutants in water samples. The study builds upon an experimental protocol previously developed by the authors for the nanomembranes, based on electrochemical impedance spectroscopy. The results clearly demonstrate that integrating the nanosensor with machine-learning algorithms yields significant performance. The intrinsic properties of the nanosensor make it well-suited for potential integration into field-deployable platforms, offering a real-time, cost-effective, and high-performance solution for the detection and quantification of contaminants in wastewater. These features position the nanomembrane-based sensor as a promising alternative to overcome current technological limitations in this domain.

1. Introduction

Industrial wastewaters are water streams contaminated during manufacturing or processing activities. Commonly identified contaminants in such effluents include heavy metals (e.g., lead, mercury), organic compounds, suspended particulate matter such as oils and greases, and various synthetic chemical agents [1,2,3,4].
In the absence of adequate treatment, industrial wastewater discharge can pose serious risks to human health and ecosystems [5].
Consequently, the proper treatment and management of industrial effluents before environmental release is paramount to safeguarding public health and maintaining ecological integrity. To this end, industrial facilities are typically equipped with WWTPs [6,7] which, through purification processes, enable the partial or complete removal of contaminants in the wastewater before discharge or reuse.
Regulatory frameworks mandate that industrial operators conduct systematic wastewater monitoring, both before and after treatment, to verify compliance with permissible pollutant levels. These legal requirements, which vary depending on jurisdiction and the nature of the industrial process, are enforced through an intricate set of international, national, and regional environmental protection policies [8].
Monitoring waterborne pollutants is strategically critical for industries for two primary reasons:
  • To secure and maintain discharge permits by evidencing adherence to environmental standards;
  • To proactively assess effluent quality, reducing the risk of non-compliance penalties during unannounced regulatory inspections.
A wide variety of technological solutions have been explored in the field of pollutant monitoring and industrial applications. For instance, novel image-based monitoring approaches have been developed to detect and analyze air pollution originating from industrial emissions [9]. In parallel, nanomaterial- and membrane-based strategies have been investigated for industrial separation processes and water treatment. For example, MXene-based composite membranes incorporating Na-Bentonite have demonstrated excellent separation performance in purification processes [10]. In contrast, covalent organic framework membranes fabricated through scalable and environmentally friendly techniques such as scraping-assisted interfacial polymerization have emerged as promising candidates for large-scale water purification [11]. Furthermore, studies on adsorption and mass transfer in porous carbon-based nanomaterials have opened new pathways for CO2 capture and environmental remediation [12].
In the industrial domain, the development of advanced sensing technologies based on AI has also played a crucial role. For instance, self-supervised deep-learning frameworks, such as the multi-head attention self-supervised model, have been proposed for intelligent feature extraction from sensor data in manufacturing maintenance [13]. Vision-based inspection techniques have similarly advanced, with multi-label defect classification methods designed to enhance the reliability of sewer inspection systems [14]. In the context of water quality, other monitoring systems have been reported, including aptamer-based colorimetric assays integrated with centrifugal microfluidic chips for the simultaneous detection of Pb2+, Hg2+, and As3+ in water [15].
Despite these significant advances, intrinsic limitations remain that hinder large-scale or long-term deployment. Specifically, challenges persist in achieving continuous monitoring, direct in situ pollutant detection, and cost-effectiveness. This underscores the urgent demand for innovative and reliable technological solutions simultaneously satisfying three essential requirements: real-time water quality assessment, direct in situ pollutant detection, and low-cost instrumentation. According to [16] Table 1 summarizes the performance of each sensor family in terms of real-time capability, portability and limitations.
Beyond this review, several other studies have introduced alternative sensor technologies for water quality monitoring. While these approaches have provided significant scientific advances and novel applications, they also exhibit intrinsic limitations restricting their large-scale or long-term deployment. A comparative overview, proposed by the authors, of these technologies and their main constraints is reported in Table 2.
The present study is framed on these regulatory and technological imperatives, building upon the work presented in [49] by the authors. Specifically, it thoroughly examines the application of an innovative single-use nanosensor, previously described in [49], to detect waterborne pollutants.
The nanosensor, a graphitic nanomembrane, operates by evaluating response variations upon interaction with the target chemical species, applying EIS. This sensing approach, leveraged alongside the intrinsic properties of the nanomembrane, facilitates the development of innovative smart monitoring systems. In particular, these nanosensors demonstrate significant potential for implementing real-time analysis with low-cost hardware platforms and directly in situ, potentially addressing the described limitations in existing technologies.
The main contribution of this work lies in the introduction of a disposable graphitic nanomembrane sensor combined with ML-powered analytical methods which, unlike existing monitoring technologies, has the potential to simultaneously fulfil the three critical requirements for wastewater pollutant monitoring—real-time responsiveness, in situ applicability, and cost-effective implementation—while ensuring reliable performance. At the present stage, the authors focus on exploring the potential of nanomembranes for the future development of real-time and in situ smart monitoring systems, evaluating their performance as a foundational step. Accordingly, the objective of this study is to validate the feasibility of the nanomembrane sensor for smart water monitoring in industrial contexts, through three distinct phases:
  • Establish a new analysis methodology by exploiting the nanomembrane electrochemical properties;
  • Evaluate performance in terms of sensitivity and selectivity via experimental comparison with commercial electrode sensors and conventional chemical analysis techniques;
  • Evaluate performance in terms of sensitivity and selectivity under varying operational conditions for real-world field applications.
Regarding the first step, a comprehensive analysis of the physicochemical properties of the nanomembranes was conducted. This investigation enabled the identification of novel figures of merit to support the development of an analytical framework for water quality monitoring.
Concerning the second step, a series of experimental tests was carried out using water samples containing varying concentrations of an industrial organic contaminant, benzoquinone. These tests were performed on both nanomembrane-based sensors and commercial sensor platforms. Performance was evaluated before by assessing the contaminant concentration estimation capability (selectivity), and in a second stage, by evaluating detection capability—namely, the ability to discriminate between contaminated and uncontaminated samples (sensitivity). Given that the experimental comparison involves both hardware (i.e., different instruments and sensors) and software (i.e., distinct analysis methodologies), an initial assessment was conducted using conventional analytical techniques. In particular, linear regression models were employed for both sensors’ outputs. The results indicated that the application of linear models did not enhance the properties of nanomembranes, nor did it produce satisfactory performance. These results highlight the need to adopt alternative and more advanced analytical approaches better suited to the nanosensor outputs. Consequently, the analysis was extended by integrating ML algorithms to determine whether advanced data-driven methods could enhance performance with respect to linear models, demonstrating accuracies above 94% for concentration estimation and 100% for detection capability—values comparable to those achieved with established traditional electrochemical techniques (99.7% and 99.9%, respectively). The ML techniques applied included Support Vector Machines, k-Nearest Neighbors, Logistic Regression, and Naive Bayes classifiers. The comparative use of different models was necessary to develop an analysis protocol for nanomembrane-based sensing, as not all models lend themselves well to nanosensor output. It is important to note that this stage aims not to assert the superiority of the nanomembrane sensor over existing commercial solutions. Instead, it is to demonstrate that, despite the prototypal stage, the sensor achieves performance levels comparable to established technologies. This positions it as a credible and innovative alternative for real-time, in situ environmental monitoring applications.
Finally, in alignment with the third step, an in-depth analysis was performed to assess the optimal test time and robustness under noisy conditions, introducing Gaussian noise at varying intensities to the raw nanosensor data and analyzing the resulting impact on performance. These aspects were evaluated to gauge the feasibility of deploying the nanosensor in real-time and in situ operational contexts.
Based on these considerations, the structure of the paper is organized as follows: Section 2 provides a detailed description of both sensor typologies and the analytical methodologies employed; Section 3 outlines the experimental protocols and preliminary findings; Section 4 and Section 5 present a comparative performance evaluation and a deeper technical analysis of the nanomembrane-based sensor; and finally, Section 6 concludes the study with key insights and future research directions.

2. Sensors and Methods

This section comprehensively describes the innovative single-use nanosensor developed within the research framework presented in [49,50,51] and the conventional sensor based on commercial electrode-based sensors. We detail the electrochemical techniques used to characterize contaminated water samples for each sensor type and the related analytical approaches. All described methods are suitable for evaluating the electrochemical properties of dissolved chemical species and are directly applicable to the analysis of industrial wastewater.

2.1. Electrode Sensors and Conventional Methods

The commercial sensor selected for this study, detailed in [52], is the ItalSens Carbon SPE. It consists of a three-electrode configuration incorporating two graphite electrodes and a silver reference electrode, with a working electrode area of 0.07 cm2. Figure 1a shows an image of the employed SPEs. These sensor electrodes are well-suited for chemical analysis using strongly consolidated conventional electrochemical methods.
The techniques employed for performance evaluation included cyclic voltammetry, chronoamperometry, and electrochemical impedance spectroscopy. All measurements were conducted using a commercially available instrument specifically designed for chemical sensing applications, and the applied methodologies are fully compliant with pollutant analysis.
Conventional figures of merit were extracted for each technique to assess the sensor’s capability to detect and quantify the target analyte.
In CV [53], a triangular voltage waveform is applied, and the resulting current is acquired. The anodic and cathodic peak currents exhibit a linear correlation with analyte concentration, as governed by the Randles–Sevcik equation, provided the redox process is reversible or quasi-reversible. Furthermore, since the peak current, at parity of chemical species, is empirically related to the area of the entire curve, it is possible to observe the latter directly. Since these considerations hold true only if the redox reactions involving the pollutant–electrode sensor system are reversible or quasi-reversible, a preliminary characterization was conducted to assess the reversibility of the electrochemical processes. The results confirmed that the system exhibited no signs of irreversibility.
In CA [54], a constant potential step is applied, and the resulting transient current is monitored over time. The current decay profile conforms to the inverse square root behavior characteristic of the Cottrell equation, which describes diffusion-controlled reactions. The steady-state current plateau can be plotted against analyte concentration to construct a calibration curve, as Faradaic processes ensure a linear current-concentration relationship.
For EIS [55], an AC signal is applied across a defined frequency range, and the impedance response is recorded for different pollutant concentrations. Standard data representations include both Bode and Nyquist plots; in this study, particular emphasis is placed on the latter to evaluate the charge transfer resistance, inversely proportional to analyte concentration.

2.2. Nanosensor and Non-Conventional Method

The novel sensor investigated in this study consists of a nanostructured membrane derived from Pyrolysed Photoresist Films doped with nickel. Such an approach allows for converting several hundred nanometers-thick photoresist layers into ultrathin graphitic films with thicknesses in the order of tens of nanometers, embedded with Ni nanoparticles. This process enables scalable and reproducible fabrication of graphitic films, with an investigated relationship between synthesis conditions and resulting material properties [50]. As described in [49,50,51], the membrane is fabricated via spin-coating 300 µL of nLoF resist (AZR 1:4) at 3000 rpm for 60 s onto a SiO2 wafer pre-coated with a 10 nm nickel catalyst layer. The samples are then baked at 110 °C for 1 min and subsequently heated from 100 °C to 700 °C at 20 °C/min in an inert atmosphere, followed by a slower ramp from 700 °C to 800 °C at 10 °C/min. Finally, they are annealed at 800 °C for 30 min and cooled overnight in a static hydrogen atmosphere.
The photoresist film pyrolysed in the presence of a Ni layer was transformed into a graphitic film, while the molten Ni film broke up into an array of micro- and submicron-sized nickel particles. The resulting carbon membrane had a measured thickness of 60 nm. Carbon films were investigated by Zeiss LEO 1550 SEM (Carl Zeiss AG, Oberkochen, Germany) to check the integrity of the films. As shown in Figure 2a, the PPF exhibits a uniform surface. The embedded submicron nickel particles are revealed in the high-resolution SEM images in Figure 2b. Notably, the presence of these nickel particles may increase the surface roughness of the film compared to PPF [50].
The distinguishing feature of this sensor is its two-dimensional nanomembrane architecture, which provides a high surface-to-volume ratio, greatly enhancing its molecular adsorption capacity.
In contrast to traditional electrode sensors, which operate through redox reactions, the nanosensor’s transduction mechanism is based on permanent structural deformations within the membrane’s lattice upon interaction with external molecules. This deformation arises from minimizing the system’s total energy as atoms rearrange in response to external species, which results in a measurable change in electrical conductivity. To quantitatively describe this mechanism, a simplified model for the electron transport in nanoscale conductors is provided by the following generalized Ohm’s law that relates the current density J ^ z to the electric field E ^ z in the wavenumber, k, and frequency, ω , domains [56]:
J ^ z ( k , ω ) = σ 0 1 + j ω τ · 1 1 ψ ( ω ) k 2 · E ^ z ( k , ω )
with:
ψ ( ω ) = ξ ( ω ) v F 2 ν 2 1 + j ω ν 2
and:
σ 0 = 2 v F M ν R 0 X
Here, σ 0 is the DC conductivity given by Equation (3), where R 0 = 12.9 k Ω is the quantum resistance, M is the number of conducting channels, v F is the Fermi velocity, ν is the collision frequency, and τ = 1/ ν is the relaxation time. In addition, the quantities X and ξ ( ω ) depend on the material. For instance, for a metallic nanowire of diameter D, it is X = π (D/2)2, whereas ξ ( ω ) ( 1 + 1.8 j ω / ν ) / 3 ( 1 + j ω / ν ) [56].
Note that Equation (1) implicitly defines a complex impedance in the wavenumber domain, whose parameters can be strongly affected in the case of absorbance of external molecules, both in the case of physical and chemical interaction. A physical interaction can occur when the external substances are simply trapped in the nanomaterial lattice: in this case, the deformation of the lattice properties (for instance, the local distance between atoms) gives rise to changes in the collision frequency ν , and in the number of conducting channels M [57]. In case of chemical interaction between the nanomaterial and the external molecules, new bonds are created, so that also the describing functions ξ ( ω ) will be affected [58].
The 2D nature of the nanomembranes amplifies the sensitivity to this phenomenon, as the whole material is exposed to the absorption of external substances.
In the general case, a time-domain formulation of Equations (1) and (2) may only be evaluated by numerical inversion from the space and frequency domains. However, in the low spatial frequency limit, a time-domain formulation can be cast in the frame of the transmission line theory, linking the time and space variations of voltages and currents through the following model [59,60]:
V ( t , z ) z = R T L I ( t , z ) + L T L I ( t , z ) t
I ( t , z ) z = C T L V ( t , z ) t
where the per-unit-length parameters R T L , C T L and L T L are expressed in terms of the quantum parameters defined in Equation (2) and in terms of the classical electrical capacitance and magnetic inductance. Solving Equations (4) and (5) allows following the time evolution of the relation between voltages and currents.
In [49], a preliminary metrological characterization of the nanosensor was performed, encompassing stability, repeatability, and sensitivity assessments.
The non-conventional measurement strategy proposed in this work employs time-domain EIS, which enables continuous sensor monitoring both in the presence and absence of target pollutants. Unlike conventional EIS—where measurements commence only after sample deposition—the nanomembrane sensor allows for uninterrupted operation even without a conductive medium, due to its intrinsic, redox-independent transduction mechanism.
The interaction mechanism between the nanosensor and external substances, based on permanent deformations in the lattice of the nanomaterial, enables the development of novel analytical methodologies. One such approach involves observing the sensor’s differential response relative to a reference condition—specifically, the absence of external substances. The reference condition will hereafter be referred to as the baseline. This capability represents a key distinction from electrochemical impedance spectroscopy performed on traditional electrode sensors, where differential responses cannot be observed. In the absence of an external solution, which is essential for electron conduction between electrodes, the system behaves as an open circuit due to the lack of a conductive medium. As a result, any acquired signal would be dominated by noise and lack physical significance. The ability to register meaningful differential responses concerning the baseline conditions is therefore a distinctive and novel feature of this nanosensor, setting it apart from conventional electrode-based sensors.
For data interpretation, while conventional EIS typically considers both the magnitude and phase of the impedance—analyzing the real and imaginary components—the evaluation of the nanosensor focuses primarily on the impedance magnitude. This is because preliminary tests have shown that, in this specific context, the interaction with external molecules does not induce significant phase variations. Moreover, the impedance phase contributes minimally (approximately 1°), making the changes in impedance magnitude the most meaningful and representative aspect of the nanosensor’s differential response.
Moreover, in this work, a differential analysis strategy is proposed. Instead of absolute impedance values, sensor response is evaluated by impedance variation relative to the pre-exposure reference condition, previously defined as baseline. The following equation gives the normalization process:
M n o r m ( f i , t i ) [ % ] = M a b s ( f i , t i ) B ( f i ) B ( f i ) · 100
where:
  • M n o r m ( f i , t i ) is the normalized nanomembrane impedance module at a given frequency f i and at time t i , expressed in percentage;
  • M a b s ( f i , t i ) is the absolute nanomembrane impedance module at a given frequency f i and at time t i ;
  • B ( f i ) is the baseline nanomembrane impedance module at frequency f i , calculated as the average value in a specific time window before the drop.
Given the variability in absolute impedance across custom-fabricated membranes, these normalized responses ensure consistency across different membrane samples and analyte concentrations. The normalization ultimately allows for the observation of a trend between the nanomembrane responses and the tested concentrations that, looking only at the absolute impedance modulus, would not have been possible to obtain.
For each excitation frequency, impedance variation is computed along with a secondary figure of merit—defined in Equation (7)—which quantifies the spread of normalized impedance values after the external molecules drop.
s F ( t i ) [ % ] = max M a b s ( t i ) min M a b s ( t i ) mean M a b s ( t i ) · 100
where:
  • s F ( t i ) represents the nanomembrane Spread Factor at time t i after the drop;
  • M a b s ( t i ) is the absolute nanomembrane impedance module at time t i after drop, where maximum, minimum and average values are evaluated over all frequencies.
These figures of merit fundamentally differ from those used in classical EIS analysis and jointly define an innovative analytical feature space for quantifying pollutants.

3. Experimental Setup and Preliminary Results

This section provides a detailed account of the experimental procedures and instrumentation employed to validate the use of the nanomaterial as a water quality sensor. Preliminary test results are also presented, emphasizing key aspects relevant to the analyses discussed in the subsequent sections. In particular, this section highlights the necessity of normalizing the responses of the nanomembranes as part of the data analysis.

3.1. Test Setup

The pollutant selected for the experimental investigation is benzoquinone, a hazardous organic compound commonly encountered as a by-product in various industrial processes. In this study, benzoquinone was dissolved in a 0.1 M acetate buffer solution at pH 4, supplemented with 0.1 M KCl. This chemical environment was selected to match the current development stage of the graphite-based nanomembranes, which have not yet been functionalized and are therefore not yet suitable for real wastewater samples. Functionalization—essential for real-world applications—enables selective analyte binding and minimizes interference from complex chemical species matrices. The development of selective coatings is currently the subject of ongoing research by the authors.
To the work aim, four concentration levels were investigated: 0 mM (i.e., pure water), 0.1 mM, 1 mM, and 10 mM. Although the actual occurrence levels of benzoquinone in industrial wastewater are not well documented in the literature—given that it is classified as an “emerging” organic pollutant arising from aromatic oxidation processes (e.g., phenol degradation [61,62])—the selected concentration range remains consistent with values typically explored in experimental studies [63,64,65]. The upper limit of 10 mM, while likely higher than concentrations expected in real-world scenarios, was intentionally chosen as a limit case, serving as a figure of merit for benchmarking the nanosensor’s performance (i.e., operating range). This approach ensures characterization across a broader dynamic range than what may be encountered in practice, thereby strengthening the evaluation of the nanosensor’s detection capabilities under both realistic and extreme conditions.
For each concentration, four independent sensors were tested, yielding sixteen sensors per technology, both for nanomembranes and commercial electrode-based sensors, enabling comparative analysis. For the conventional electrochemical techniques applied to commercial SPEs, the following experimental protocols were adopted:
  • CV: A potential sweep from −1 V to +1 V was applied twice using a triangular waveform. The potential increased by 0.01 V at each measurement, with a scan rate of 0.05 V/s. Voltage, anodic, and cathodic currents were extracted at the second sweep for analysis, for a total of 80 s each test.
  • CA: A potential step of −0.05 V, consistent with the CV results, was applied. The resulting current was recorded over 3 min, yielding 1800 data points per SPE.
  • EIS: A sinusoidal forcing potential of 0.01 V was applied, in “time scan” mode. Measurements were performed over a total duration of 15 min per SPE, with 20 complete frequency sweeps logarithmically spaced between 20 Hz and 1 MHz, for a total of 35 frequencies.
Each of these methods was performed after dropping a drop of pollutant with a volume of 80 μ L on the WE of the SPE.
A continuous time-domain EIS monitoring protocol was adopted for the nanostructured graphite-based membranes, lasting 20 min per test. The first 5 min were used for baseline acquisition, as detailed in Section 2, with the sensor exposed to ambient air. Subsequently, 500 μ L of benzoquinone solution at the target concentration was dispensed directly onto the membrane surface using a precision micropipette.

3.2. Experimental Setup

Electrochemical measurements on commercial electrode-based sensors were conducted using a PalmSens4TM instrument [66] (PalmSens, Houten, The Netherlands), connected to a PC via USB. The system supports all applied techniques—CV, CA, and EIS—with acquisition managed via the PSTrace (PalmSens, Houten, The Netherlands, 5.9 version) software. For the commercial electrodes used with the PalmSens, a preliminary optimization phase preceded the start of each test for each technique, following the standard protocol reported in the manual of the instrument for this type of chemical measurement. The complete configuration for these tests is shown in Figure 3a.
GW Instek LCR meter (Good Will Instrument Co., Taipei, Taiwan) was employed for time-domain EIS measurements on nanomembranes, interfaced with a computer via the GPIB-488 protocol, as illustrated in Figure 3b. Calibration (open and short) was performed according to the manufacturer’s specifications to minimize parasitic and environmental noise. The system operated in SLOW acquisition mode using a 2 V AC excitation signal, chosen to balance sensitivity with the need to avoid damaging the nanomembranes. This is thanks to previous characterization [49]. Each frequency sweep (15 logarithmically spaced points from 20 Hz to 1 MHz) was completed in ≈2 s, resulting in 600 points per sweep.
A custom-designed PCB was created with two copper contact pads for the nanomembrane surface for reliable electrical interfacing, as illustrated in Figure 1b.
All experiments were carried out under ambient laboratory conditions, without active control of temperature or humidity. This approach was justified for the nanomembranes, as previous studies [49] have shown that their electrical properties remain stable across a wide range of environmental conditions. In the case of the commercial electrode-based sensors, the decision was supported by the operational range specified in the instrumentation datasheets [66] and by the optimal working conditions reported for SPEs [67,68].

3.3. Preliminary Outputs

This subsection reports the initial findings of the measurement campaign.
For CV, the voltage-current curves obtained from one representative SPE per concentration level are shown in Figure 4a. The results reveal a clear correlation between analyte concentration and the amplitude of the anodic/cathodic peaks.
Similarly, the CA results in Figure 4b display time-domain current responses, plotted on a logarithmic scale for better visibility. Each curve corresponds to a specific concentration. As expected, the 0 mM condition exhibits higher noise due to the absence of reactive species, while steady-state currents strongly correlate with benzoquinone levels.
The EIS results for SPEs are shown in Figure 4c (Nyquist plots). A clear trend is observed between semicircle diameter (i.e., charge transfer resistance Rct) and concentration, except for the 0 mM case. This outlier highlights the limitations of classical EIS in detecting analytes at low concentrations due to minimal redox activity.
These results are consistent with expectations based on the literature [69,70], thereby confirming the anticipated behavior. It is important to emphasize once again that these techniques—albeit to varying degrees—are conventionally employed for estimating pollutant concentrations.
To qualitatively evaluate the nanomembrane response, Figure 5 shows the absolute impedance magnitude over time for four representative sensors. A sudden impedance change, with less than a few seconds of settling, occurs across all frequencies immediately following the drop at the 5-min mark, in line with the conductivity behavior described in Equation (1). It is also possible to observe a slight drift of the response over time, suggesting that it is advantageous to conduct the analyses in the first few minutes after the drop.
However, the results obtained by considering only the absolute impedance modulus of different membranes do not show a clear relationship with pollutant concentrations; this is at the expense of repeatability. By contrast, after applying the normalization strategy described in Equation (6), the results shown in Figure 6 reveal a consistent correlation between the nanomembrane’s response and different concentration levels. This normalization process increases the sensitivity of the analysis process in favor of greater repeatability of the outputs, allowing a significant relationship between the normalized impedance modulus and pollutant concentration. It has been assessed that the same behavior is observed in conventional electrode-based sensors, the results of which correlate with pollutant concentration.
Specifically, the data show a positive variation in the presence of pure water and a negative variation when pollutants are present, with the magnitude of the response increasing with concentration. Frequency analysis indicates that low frequencies yield minimal sensitivity, whereas higher frequencies produce more pronounced changes. Moreover, the separation among frequency responses following the solution drop reflects a clear dependence on pollutant quantity, justifying the introduction of the spread factor defined in Equation (7).
Overall, this normalization step not only improves reproducibility and mitigates sample variability but also highlights the diagnostic potential of nanomembranes for environmental monitoring applications.
These preliminary results confirm the feasibility of both sensor types—electrode-based sensors and nanomembranes—for pollutant concentration estimation in industrial wastewater. They lay the foundation for the subsequent development of analytical models, including both linear regression and machine-learning-based approaches, which will be discussed in the following sections.

4. Linear Model and Machine-Learning Approach

This section presents a detailed comparative analysis of the performance of conventional electrode-based sensors and nanomembranes. Specifically, two models will be tested: the first based on linear regression and the second employing machine-learning techniques. The models will be evaluated by comparing the error for each sensor type and assessing the accuracy of the machine-learning approach. The final part of the analysis will focus on the detection capabilities of conventional techniques and the nanomembrane-based system for identifying pollutants.

4.1. Linear Model Approach

This subsection aims to derive a synthetic parameter from each measurement technique from all acquisitions and establish a linear regression model between the parameter and the tested concentration.

4.1.1. Model Configuration

The data collected during the monitoring campaign were used to configure a linear model, as defined in Equation (8). All these analyses were conducted in the MATLAB (R2024b version) environment.
c c = a 0 + a 1 · P x
where:
  • c c is the unknown concentration;
  • a 0 and a 1 are the linear model coefficients;
  • P x is the synthetic parameter.
Data from 12 SPEs/nanostructured membranes were used, ensuring even distribution with 3 sensors per tested concentration for model configuration and 4 for model testing. A cross-validation approach was adopted to assess the model’s ability to quantify the target pollutant and to make the model more robust.
The synthetic parameters were defined as follows:
  • For CV, the area under the current-voltage curve was used. This was calculated in MATLAB by integrating the entire curve, representing the total charge transferred during the redox reaction, which correlates directly with the analyte concentration [53].
  • For CA, the plateau current was adopted [71,72], calculated as the average of the last 30 s of each test, since this time window, as can be observed in Figure 4b, is reasonable to be able to assert that the current has reached steady state.
  • For EIS on electrode sensors, the chosen parameter was the difference between the mean values of the minimum peaks in the Nyquist diagrams for each concentration. This metric represents the charge transfer resistance ( R c t ), which is inversely proportional to analyte concentration, as widely demonstrated in previous studies [70,73,74].
  • For nanomembranes, EIS time-domain analysis, the response at 1 MHz was selected as the representative synthetic parameter. This value was computed as the average of the normalized signal over a 180-s window, starting 10 s after the initial impedance drop. The choice of this high-frequency component is justified by the observations discussed in Figure 6, which highlighted its high sensitivity to concentration changes. Additionally, the selected empirical times are entirely consistent with the considerations regarding signal drift and post-drop stabilization presented in Section 3.
However, initial analyses revealed that a linear model may not adequately capture the trends for some techniques—particularly EIS applied on electrode sensors and EIS applied on nanomembranes—prompting the need for more advanced modeling approaches.
Model parameters and type A uncertainties, therefore based on an a posteriori approach considering standard deviations, evaluated through Matlab functions “polyfit” and “polyval”, are reported in Table 3. These preliminary results highlight that EIS on electrode-based sensors and EIS on nanomembranes at 1 MHz are not well-suited to linear regression, suggesting the need for alternative strategies to capture the relationship between sensor output and analyte concentration.

4.1.2. Model Test

The performance of a linear regression model, expressed as the error between estimated and actual concentrations, is reported in Table 4, averaged across four cross-validation folds. The results indicate that CV and CA provide relatively consistent estimates, whereas electrode-based EIS and nanomembrane EIS exhibit large errors, in line with the uncertainties reported in Table 3. Moreover, the variability in the nanomembrane response across concentrations, as shown in Figure 7, reveals that the nanomembrane outputs are overlapped and therefore indistinguishable within a regression framework to determine the pollutant concentration. These findings clearly demonstrate that a conventional linear regression approach is inadequate for nanomembranes due to their non-linear response and their poor reproducibility.
Given these limitations, a different analytical paradigm was required. Rather than enforcing a regression model, the problem was reformulated as a classification task using machine-learning methods. This transition from regression to classification enables the use of models inherently better suited to handling the variability and nonlinearity of nanomembrane responses. As will be shown in the following section, this approach effectively mitigates the shortcomings of the linear model, allowing nanomembrane sensors to achieve reliable discrimination of pollutant concentrations when coupled with ML-based classifiers.

4.2. Machine-Learning Approach

Based on the experimental campaign, the acquired dataset for each technique was organized for training and testing. The training set included data from 12 SPEs/nanostructured membranes (3 per concentration), as reported in Table 5. A 5% subset of this training data was set aside for validation using a 5-fold cross-validation scheme. The test set comprised measurements from the 4 remaining sensors, each corresponding to a different concentration level, as shown in Table 6. Each concentration was treated as a distinct class, resulting in a total of four classes.
The data points considered and the final dataset dimensions for each technique are, respectively, reported in Table 7 and Table 8. Feature extraction was tailored to the nature of each technique:
  • CV features consisted of both voltage and current at each excitation level;
  • CA included the full current–time profile;
  • EIS from electrode-based sensors comprised magnitude, phase, and the real and imaginary impedance components across all 35 measured frequencies, given that real and imaginary parts are not directly correlated to magnitude and phase in the equivalent circuit model [70,75];
  • EIS for nanomembranes in the time domain included 15 normalized frequency responses and a spread factor (see Equations (6) and (7)), extracted from the first 180 s following pollutant addition (excluding the initial 10 s to ensure a minimum settling time). The baseline was defined as the average of the first 5 min to guarantee sensor stability. The choice of the 3-min window reflects the fact that the most informative signal dynamics occur immediately after pollutant addition. At the same time, longer acquisition periods may introduce drift caused by external disturbances (e.g., evaporation or environmental contaminants) not directly related to the interaction with the target molecules. If one had trained the model with all available data, including the drift, it would have been trained on potentially erroneous data, so 3 min is an optimal balance between volume and stability of data.
At this stage, no feature selection was applied.
Machine-learning classification was conducted using the MATLAB Classification Learner toolbox [76], which provides a standardized and reproducible environment for model training, automatic hyperparameter optimization, and cross-validation. The study considered four supervised algorithms, selected to represent different families of classifiers after preliminary evaluations available in the toolbox:
  • Cubic SVM. A support vector machine with a third-degree polynomial kernel. The normalization of the data was enabled, and the kernel scaling together with the box constraint from which the support vectors derive were automatically optimized by the toolbox (the software uses a heuristic procedure to select the parameters).
  • Subspace k-NN. An ensemble of k-nearest neighbors learners trained on selected feature subspaces. The number of learners and the subspace dimensions were determined by the toolbox optimization procedure, while Euclidean distance was used as the similarity metric.
  • Efficient Logistic Regression. The regularization strength was adjusted automatically, ensuring an appropriate trade-off between bias and variance. The Auto setting sets lambda equal to 1/n, where n is the number of observations in the training sample. The solver used was SGD for efficient logistic regression. While the regularization strength (lambda) (or the number of in-fold observations, if using cross-validation).
  • Kernel Naive Bayes. A probabilistic classifier using Gaussian kernel density estimation. Bandwidth parameters for the kernel were optimized through the toolbox’s built-in procedure.
Each method is briefly summarized below:
  • SVM is a supervised max-margin model with associated learning algorithms that analyze data by finding the optimal hyperplane that maximizes the margin between classes;
  • KNN assigns classes based on the closest training samples, using different metrics;
  • Logistic Regression models class probabilities using a sigmoid function; ELR is a computationally efficient variant implemented in MATLAB;
  • KNB combines kernel density estimation with Bayes’ theorem, offering robustness in small datasets and good classification accuracy.
Classification performance was evaluated using accuracy, precision, recall, F1-score, and ROC-AUC, as reported by the toolbox [76].
To avoid potential confusion with terminology used in traditional chemical techniques, it is important to clarify that within the context of machine learning, classification of concentration is equivalent to determination of concentration.
The results were evaluated using confusion matrices whose accuracies were tabulated in Figure 8 for greater readability of the results.
The findings reveal that CA and EIS on nanomembranes outperform other techniques. In particular:
  • CV does not lend itself well to classification, as all tested algorithms yielded poor performance. Only the k-Nearest Bayesian (KNB) classifier achieved a moderate average accuracy level; however, even in this case, the classification accuracy for the 0.1 mM class remained below 50%.
  • CA clearly emerges as the most robust technique, consistently delivering outstanding results across nearly all algorithms. With the sole exception of the Support Vector Machine (SVM), all models achieved an average accuracy exceeding 99%, with class-wise accuracies surpassing 98% across all valid algorithms.
  • EIS on electrode sensors proves to be the most challenging technique, as anticipated from the preliminary analysis in Section 3. None of the tested algorithms demonstrated satisfactory performance in this context.
  • EIS on nanomembranes, by contrast, exhibited good average classification performance—above 60% accuracy—with all algorithms except SVM. Nonetheless, certain classes failed to exceed 50% accuracy when classified using KNN and ELR. However, KNB yielded exceptional results: each class was accurately identified, achieving 100% accuracy in all but the 1 mM class, which still reached over 75% accuracy. The overall average KNB accuracy exceeded 90%.
These results highlight several critical insights.
CA emerges as an exceptionally robust electrochemical technique, consistently yielding superior classification performance across both linear and machine-learning-based models. Its reliability and effectiveness are further reinforced by its long-standing status as the most established and widely adopted method for quantifying chemical species.
In addition, the integration of machine-learning models reveals that even nanomembrane-based systems—limited by the previously tested linear approaches—can achieve high levels of accuracy and reliability in pollutant detection. This demonstrates that the proposed nanosensors represent a viable and promising alternative to conventional techniques and commercial electrode-based sensors, with the potential to deliver comparable, and in some cases superior (considering CV and EIS on electrode sensors), analytical performance.

4.3. Sensitivity Performance Evaluation over Selectivity

The previous analysis reveals two key insights:
  • ML significantly improves the performance of nanomembrane-based EIS over linear modeling;
  • Only the KNB algorithm provides acceptable classification accuracy for nanomembranes.
Notably, few false positives were observed in nanomembranes in the 0 mM class, suggesting that while concentration estimation is difficult, pollutant detection is more feasible.
Based on this, the classification task has been restructured to focus on detection (pollutant sensitivity) rather than quantification (pollutant selectivity). The classes were reduced to clean water (0 mM) and polluted water (0.1, 1, and 10 mM). Since the newly defined polluted water class (aggregating all concentrations) was oversized compared to the pure water class, an equal number of points per concentration was randomly selected to match the pure water class. In this way, the dataset was organized balanced across all classes, replicating the distribution and structure of the original 4-class dataset. The considered data points are reported in Table 9 and the total size of the dataset used in this study is reported in Table 10.
Confusion matrices for the 2-class task were analyzed, and results were summarized in the same way as the previous section in Figure 9. This binary classification demonstrated excellent results for nanomembranes, achieving 100% accuracy across all algorithms (excluding KNB). CA also maintained high performance, while classical EIS remained the least effective. CV, with ML, showed acceptable results ( 70% accuracy) only when using KNB.

5. Extensive Nanomembranes Performance Analysis with ML Approach

Building upon the results discussed before, this section delves deeper into the innovation and potential of the nanosensors. In particular, performance is evaluated as two operational parameters change: test duration and noise robustness, to assess nanomembranes’ performance under conditions closely resembling real-time field scenarios.

5.1. Test Duration: Dataset Size

Datasets of varying sizes were considered to replicate conditions as closely as possible to real-time water monitoring and analysis. Starting from the initial full dataset, both the training and test sets were subdivided and used to evaluate classification accuracy for both 4-class and 2-class configurations. This approach reflects the relationship between dataset size and the observation window, directly influencing analysis time.
The previously examined 180-s interval, beginning 10 s after the solution was dropped, was divided into equal subintervals to generate different observation windows. The time windows analyzed included: 180, 150, 120, 90, 45, 30, and 15 s. The resulting datasets, corresponding to both 4-class and 2-class configurations, are reported in Table 11 and Table 12, respectively. Starting from the 180-s condition, each subsequent interval represents a reduction in observation time and, consequently, in dataset size. In this stage of work, the baseline was defined as the average of the first 30 s of the test to decrease the time considered.
Training and test sets were organized following the previously established protocol, with 5% of the training data withheld for cross-validation. The analysis employed the most effective classifiers identified in the prior section: KNN for the 2-class configuration, and KNB for the 4-class classification task.
Selecting different dataset sizes allows for identifying both the optimal training duration and the minimum required testing window for accurate classification. From an operational point of view, classifier training could typically be performed offline, where timing constraints are less stringent. Therefore, the optimal training time is defined as the duration required to achieve maximum classification accuracy. Conversely, the testing observation window should be minimized to allow rapid detection in the field. The first phase of the analysis assessed classifier accuracy as a function of the observation window. The results for the 4-classes configuration, shown in Figure 10a, indicate that the highest performance is achieved when the model is trained on longer time windows and tested on shorter ones. Specifically, the best configuration for the 4-class quantifier task involves training on 90 s and testing on 15 s. In contrast, for the 2-class pollutant detector, maximum performance is consistently achieved across all time windows, as observed in Figure 10b, including the shortest (15 s for both training and testing).
These results highlight that pollutant detection does not require extended observation time—the system responds almost instantaneously. For quantification, however, a clear trend is observed in the Figure 10a: the longer the training window, the better the system’s ability to discriminate among concentration levels.
This confirms the potential for a dual-use approach:
  • A rapid, real-time response for pollutant detection, feasible within a few seconds;
  • A more detailed, offline quantification analysis, with cloud-based training performed within minutes after detection.

5.2. Noise Analysis

With the optimal training duration (15 s for detection and 90 s for quantification) and testing window (15 s) based on the criteria chosen earlier, the robustness of the system to noise was assessed. To this end, Gaussian additive noise with zero mean was progressively introduced into the test set, while the training set remained unaltered. Unlike laboratory environments, this simulates field conditions, where environmental noise is inherently present and cannot be entirely eliminated. Noise levels were set at 5, 10, 25, 35, and 50 times the standard deviation of the baseline condition, calculated for each frequency and membrane. For reference, the worst-case standard deviation under baseline conditions was 0.52 Ω . Figure 11 shows the confusion matrices for both classifiers (KNN for 2 classes, KNB for 4 classes) across increasing noise levels. The noise level, according to the above, is defined as [5 σ , 10 σ , 25 σ , 35 σ , 50 σ ].
The results demonstrate strong noise resilience for both classifiers, with the 2-class system exhibiting superior robustness. Up to 5 σ of noise, classification accuracy remains unchanged for both models. At 10 σ and 25 σ , minor degradation appears in the 4-class classifier, particularly affecting the 0 mM and 10 mM classes. Beyond 35 σ , degradation becomes evident across all classes for the 4-class model. Conversely, the 2-class classifier exhibits only negligible performance loss even at the maximum noise level (50 σ ), confirming exceptional robustness. A summary of average classification accuracies at each noise level is provided in Table 13.

6. Conclusions

This study presents an innovative methodology for the detection and quantification of water pollutants in industrial wastewater using nanomembrane-based sensors in conjunction with electrochemical impedance spectroscopy. The proposed approach was validated through a comprehensive performance evaluation compared to conventional electrochemical techniques—cyclic voltammetry, chronoamperometry, and electrochemical impedance spectroscopy—using commercial electrode-based sensors.
The validation experiments were conducted using benzoquinone, a representative organic industrial pollutant, at four different concentration levels tested: 0 mM, 0.1 mM, 1 mM, and 10 mM. The study explored the most suitable modeling approaches for interpreting the nanomembrane sensor responses in pollutant quantification tasks. Initial analyses using linear models revealed superior performance of conventional techniques, particularly CV and CA. However, when applying machine-learning approaches, the nanomembrane-based sensors demonstrated significantly improved reliability, achieving performance levels comparable to, and in some cases exceeding, those of traditional methods.
In quantification tasks, nanomembranes achieved classification accuracies of up to 94%, approaching the 99% accuracy achieved by CA with commercial sensors. Nanomembranes performed even more impressively in detection (binary classification) tasks, reaching up to 100% accuracy, confirming their high potential as selective detectors.
A key objective of the study was also to assess the real-time and in situ applicability of the proposed system. This was achieved by examining different dataset sizes and introducing various noise levels, respectively. The nanomembrane-based system maintained robust performance: in 4-class classification tasks, accuracy remained above 85% even with 15 σ added noise, while in the 2-class detection scenario, 100% accuracy was preserved up to 25 σ noise (standard deviation), and 96% accuracy was retained even under the highest noise conditions tested.
From a system design perspective, critical insights emerged regarding time constraints. For quantification, longer training time windows (optimal at 90 s) increased accuracy while maintaining a fixed test duration of 15 s. For detection tasks, only 15 s of signal acquisition were required for training, enabling real-time alerting and rapid response capabilities. This dual-mode functionality supports a scalable deployment strategy: fast on-site detection, followed by more detailed quantification either in the cloud or offline.
The study also highlighted a key trade-off: detection tasks are inherently more robust, while quantification—particularly under high noise or limited acquisition time—is more sensitive. Nonetheless, the overall performance remains satisfactory and aligned with the requirements of early-stage field deployment.
For future work, several promising directions will be pursued to develop further and consolidate the proposed methodology:
  • Validation on real-world water samples, including complex industrial and environmental matrices;
  • Chemical functionalization of nanomembranes to enhance selectivity toward specific analytes;
  • Extension of the study to additional pollutants and concentration ranges, with a more refined investigation between 0.1–1 mM and 1–10 mM;
  • Adoption of ML-based regression algorithms, rather than classifiers, to evaluate intermediate values within the newly tested concentration ranges;
  • Cost estimation and a large-scale integration plan.
Finally, future work will particularly focus on the design of a low-cost and portable hardware platform for wastewater pollutant monitoring, integrating the investigated nanomembranes. Currently, the technology remains at a prototype level, tested only under simplified laboratory conditions. The planned hardware development aims to transform this proof-of-concept into a robust, field-deployable system capable of operating within complex industrial wastewater matrices, thereby enabling reliable real-time in situ monitoring. In conclusion, this study establishes a solid first step toward nanomembrane-based pollutant sensing. At this prototype stage, the approach demonstrates promising performance when coupled with ML, achieving accuracy levels comparable to those of traditional electrochemical methods. These findings represent a significant advancement toward real-time, innovative wastewater quality monitoring systems with strong potential for scalable industrial deployment.

Author Contributions

Conceptualization, G.C. and L.T.; methodology, G.C. and L.T.; software, G.C. and F.S.; validation, G.C., L.T. and F.S.; formal analysis, G.C., L.T., F.S., H.R. and P.K.; investigation, G.C., L.T., F.S., H.R., P.K., A.M. and L.F.; resources, F.S., H.R., P.K., A.M. and L.F.; data curation, G.C., L.T. and F.S.; writing—original draft preparation, G.C., L.T., F.S., A.M. and L.F.; writing—review and editing, L.T., A.M. and L.F.; supervision, L.T., A.M. and L.F.; project administration, A.M. and L.F.; funding acquisition, A.M. and L.F. All authors have read and agreed to the published version of the manuscript.

Funding

The research leading to these results has been partially funded by the Project “SENS-AI, Environmental Sensing with Artificial Intelligence” CUP H53D23000520006, financed by EU in NextGenerationEU plan through the Italian “Bando Prin 2022—D.D. 104, 02-02-2022” by MUR (2023–2025). P.K. acknowledges financial support from Research Council of Finland, decision PREIN no. 368653.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
WWTPWastewater Treatment Plant
EISElectrochemical Impedance Spectroscopy
MLMachine Learning
SVMSupport Vector Machine
KNNk-Nearest Neighbors
LRLogistic Regression
BQBenzoquinone
CVCyclic Voltammetry
CAChronoamperometry
SPEScreen Printed Electrode
PPFPyrolysed Photoresist Films
SEMScanning Electron Microscopy

References

  1. Shrestha, R.; Ban, S.; Devkota, S.; Sharma, S.; Joshi, R.; Tiwari, A.P.; Kim, H.Y.; Joshi, M.K. Technological trends in heavy metals removal from industrial wastewater: A review. J. Environ. Chem. Eng. 2021, 9, 105688. [Google Scholar] [CrossRef]
  2. Qasem, N.A.; Mohammed, R.H.; Lawal, D.U. Removal of heavy metal ions from wastewater: A comprehensive and critical review. npj Clean Water 2021, 4, 36. [Google Scholar] [CrossRef]
  3. Adetunji, A.I.; Olaniran, A.O. Treatment of industrial oily wastewater by advanced technologies: A review. Appl. Water Sci. 2021, 11, 98. [Google Scholar] [CrossRef]
  4. Ghasemi, N.; Zare, F.; Hosano, H. A review of pulsed power systems for degrading water pollutants ranging from microorganisms to organic compounds. IEEE Access 2019, 7, 150863–150891. [Google Scholar] [CrossRef]
  5. Blaisdell, J.; Turyk, M.E.; Almberg, K.S.; Jones, R.M.; Stayner, L.T. Prenatal exposure to nitrate in drinking water and the risk of congenital anomalies. Environ. Res. 2019, 176, 108553. [Google Scholar] [CrossRef]
  6. Shankar, R.; Kumar, S.; Prasad, A.K.; Khare, P.; Varma, A.K.; Yadav, V.K. Biological wastewater treatment plants (WWTPs) for industrial wastewater. In Microbial Ecology of Wastewater Treatment Plants; Elsevier: Amsterdam, The Netherlands, 2021; pp. 193–216. [Google Scholar]
  7. Pisa, I.; Santin, I.; Morell, A.; Vicario, J.L.; Vilanova, R. LSTM-based wastewater treatment plants operation strategies for effluent quality improvement. IEEE Access 2019, 7, 159773–159786. [Google Scholar] [CrossRef]
  8. Systems, L. Industrial Wastewater Discharge Limits and Requirements. 2024. Available online: https://liqtech.com/systems/industrial-wastewater/industrial-wastewater-discharge-limits-and-requirements/ (accessed on 28 March 2025).
  9. Gu, K.; Liu, Y.; Liu, H.; Liu, B.; Qiao, J.; Lin, W.; Zhang, W. Air pollution monitoring by integrating local and global information in self-adaptive multiscale transform domain. IEEE Trans. Multimed. 2025, 27, 3716–3728. [Google Scholar] [CrossRef]
  10. Zhang, L.; Liu, Y.; Zeng, G.; Yang, Z.; Lin, Q.; Wang, Y.; Wang, X.; Pu, S. Two-dimensional Na-Bentonite@ MXene composite membrane with switchable wettability for selective oil/water separation. Sep. Purif. Technol. 2023, 306, 122677. [Google Scholar] [CrossRef]
  11. Pan, Y.; Liu, H.; Huang, Z.; Zhang, W.; Gao, H.; Liang, L.; Dong, L.; Meng, H. Membranes based on covalent organic frameworks through green and scalable interfacial polymerization using ionic liquids for antibiotic desalination. Angew. Chem. 2024, 136, e202316315. [Google Scholar] [CrossRef]
  12. Fan, W.; Xin, Q.; Dai, Y.; Chen, Y.; Liu, S.; Zhang, X.; Yang, Y.; Gao, X. Competitive transport and adsorption of CO2/H2O in the graphene nano-slit pore: A molecular dynamics simulation study. Sep. Purif. Technol. 2025, 353, 128394. [Google Scholar] [CrossRef]
  13. Qiao, Y.; Lü, J.; Wang, T.; Liu, K.; Zhang, B.; Snoussi, H. A multihead attention self-supervised representation model for industrial sensors anomaly detection. IEEE Trans. Ind. Inform. 2023, 20, 2190–2199. [Google Scholar] [CrossRef]
  14. Hu, C.; Zhao, C.; Shao, H.; Deng, J.; Wang, Y. TMFF: Trustworthy multi-focus fusion framework for multi-label sewer defect classification in sewer inspection videos. IEEE Trans. Circuits Syst. Video Technol. 2024, 34, 12274–12287. [Google Scholar] [CrossRef]
  15. Zhou, M.; Li, J.; Yuan, S.; Yang, X.; Lu, J.; Jiang, B. A centrifugal microfluidic system for automated detection of multiple heavy metal ions by aptamer-based colorimetric assay. Sens. Actuators B Chem. 2024, 403, 135210. [Google Scholar] [CrossRef]
  16. La Cognata, R.; Piazza, S.; Freni, G. Pollutant Monitoring Solutions in Water and Sewerage Networks: A Scoping Review. Water 2025, 17, 1423. [Google Scholar] [CrossRef]
  17. Ibarlucea Cantón, B. Monolithically Integrated Polymeric Lab-on-(Bio) Chips with Photonic/Electrochemical Detection. Ph.D. Thesis, Universitat Autònoma de Barcelona, Barcelona, Spain, 2014. [Google Scholar]
  18. Bonyar, A.; Nagy, P.; Mayer, V.; Vitéz, A.; Gerecs, A.; Sántha, H.; Harsányi, G. A colorimetry based, semi-automated portable sensor device for the detection of arsenic in drinking water. Sens. Actuators B Chem. 2017, 251, 1042–1049. [Google Scholar] [CrossRef]
  19. Sajed, S.; Arefi, F.; Kolahdouz, M.; Sadeghi, M. Improving sensitivity of mercury detection using learning based smartphone colorimetry. Sens. Actuators B Chem. 2019, 298, 126942. [Google Scholar] [CrossRef]
  20. da Silva, V.A.O.P.; de Freitas, R.C.; de Oliveira, P.R.; Moreira, R.C.; Marcolino-Junior, L.H.; Bergamini, M.F.; Coltro, W.K.; Janegitz, B.C. Microfluidic paper-based device integrated with smartphone for point-of-use colorimetric monitoring of water quality index. Measurement 2020, 164, 108085. [Google Scholar] [CrossRef]
  21. Nguyen, H.; Misbah, I.; Shih, W.C. Smartphone nano-colorimetry for on-demand multiplex lead and mercury detection and quantitation in drinking water. IEEE Sens. J. 2020, 20, 6685–6691. [Google Scholar] [CrossRef]
  22. Khanfar, M.F.; Al-Faqheri, W.; Al-Halhouli, A. Low cost lab on chip for the colorimetric detection of nitrate in mineral water products. Sensors 2017, 17, 2345. [Google Scholar] [CrossRef] [PubMed]
  23. Hong, M.; Kim, K.; Hwang, Y. Arduino and IoT-based direct filter observation method monitoring the color change of water filter for safe drinking water. J. Water Process Eng. 2022, 49, 103158. [Google Scholar] [CrossRef]
  24. Kaviya, K.; Rajamanikandan, R.; Santhamoorthy, M.; Farah, M.A.; Mani, K.S. A rhodamine-conjugated fluorescent and colorimetric receptor for the detection of Cu2+ ions: Environmental utility and smartphone integration. Anal. Methods 2025, 17, 1389–1400. [Google Scholar] [CrossRef]
  25. Chen, L.; Yuan, A.; Zhang, D.; Xie, W.; Peng, H. Fluorescence and colorimetric analysis of β-estradiol based on aptamer assembled spherical nucleic acids. Anal. Methods 2024, 16, 6356–6363. [Google Scholar] [CrossRef]
  26. Goyal, C.; Malkurthi, S.; Yellakonda, K.V.R.; Hussain, A.M. Machine Learning Based Low-Cost Colorimetric Sensor for Ph and Free-Chlorine Measurement. IEEE Sens. Lett. 2024, 8, 4503904. [Google Scholar] [CrossRef]
  27. Shang, Z.; Tian, S.; Wang, Y.; Zhang, C.; Meng, Q.; Zhang, R.; Zhang, Z. 1,8-naphthalimide-triphenylamine-based red-emitting fluorescence probes for the detection of hydrazine in real water samples and applications in bioimaging in vivo. Sens. Actuators B Chem. 2024, 398, 134725. [Google Scholar] [CrossRef]
  28. Fan, X.; Lv, J.; Li, R.; Chen, Y.; Zhang, S.; Liu, T.; Zhou, S.; Shao, X.; Wang, S.; Hu, G.; et al. Paper test strip for silver ions detection in drinking water samples based on combined fluorometric and colorimetric methods. Arab. J. Chem. 2023, 16, 104492. [Google Scholar] [CrossRef]
  29. Doǧan, V.; Isık, T.; Kılıç, V.; Horzum, N. A field-deployable water quality monitoring with machine learning-based smartphone colorimetry. Anal. Methods 2022, 14, 3458–3466. [Google Scholar] [CrossRef] [PubMed]
  30. Zeng, R.; Mannaerts, C.M.; Shang, Z. A low-cost digital colorimetry setup to investigate the relationship between water color and its chemical composition. Sensors 2021, 21, 6699. [Google Scholar] [CrossRef]
  31. Zhao, X.; Dong, T.; Yang, Z.; Pires, N.; Høivik, N. Compatible immuno-NASBA LOC device for quantitative detection of waterborne pathogens: Design and validation. Lab Chip 2012, 12, 602–612. [Google Scholar] [CrossRef]
  32. Zhao, X.; Dong, T. A household LOC device for online monitoring bacterial pathogens in drinking water with green design concept. In Proceedings of the 2013 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Osaka, Japan, 3–7 July 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 1708–1711. [Google Scholar]
  33. Peng, G.; Chen, Y.; Deng, R.; He, Q.; Liu, D.; Lu, Y.; Lin, J.M. Highly sensitive and selective determination of Hg (II) based on microfluidic chip with on-line fluorescent derivatization. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2018, 204, 1–6. [Google Scholar] [CrossRef]
  34. Giménez-Gómez, P.; Baldi, A.; Ayora, C.; Fernandez-Sanchez, C. Automated determination of As (III) in waters with an electrochemical sensor integrated into a modular microfluidic system. ACS Sens. 2019, 4, 3156–3165. [Google Scholar] [CrossRef]
  35. Kremers, T.; Thelen, S.; Bosbach, N.; Schnakenberg, U. PortaDrop: A portable digital microfluidic platform providing versatile opportunities for Lab-On-A-Chip applications. PLoS ONE 2020, 15, e0238581. [Google Scholar] [CrossRef]
  36. Gagliardi, M.; Agostini, M.; Lunardelli, F.; Lamanna, L.; Miranda, A.; Bazzichi, A.; Luminare, A.G.; Cervelli, F.; Gambineri, F.; Totaro, M.; et al. Surface acoustic wave-based lab-on-a-chip for the fast detection of Legionella pneumophila in water. Sens. Actuators B Chem. 2023, 379, 133299. [Google Scholar] [CrossRef]
  37. Catini, A.; Capuano, R.; Tancredi, G.; Dionisi, G.; Di Giuseppe, D.; Filippi, J.; Martinelli, E.; Di Natale, C. A lab-on-a-chip based automatic platform for continuous nitrites sensing in aquaculture. Sensors 2022, 22, 444. [Google Scholar] [CrossRef]
  38. Zhao, C.; Chen, L.; Zhong, G.; Wu, Q.; Liu, J.; Liu, X. A portable analytical system for rapid on-site determination of total nitrogen in water. Water Res. 2021, 202, 117410. [Google Scholar] [CrossRef] [PubMed]
  39. Thio, S.K.; Bae, S.W.; Park, S.Y. Lab on a smartphone (LOS): A smartphone-integrated, plasmonic-enhanced optoelectrowetting (OEW) platform for on-chip water quality monitoring through LAMP assays. Sens. Actuators B Chem. 2022, 358, 131543. [Google Scholar] [CrossRef]
  40. Furuya, N.; Matsuyuki, A.; Higuchi, S.; Tanaka, S. Determination of nitrite ion in waste and treated waters by resonance Raman spectrometry. Water Res. 1980, 14, 747–752. [Google Scholar] [CrossRef]
  41. Guo, Y.; Li, D.; Zheng, S.; Xu, N.; Deng, W. Utilizing Ag–Au core-satellite structures for colorimetric and surface-enhanced Raman scattering dual-sensing of Cu (II). Biosens. Bioelectron. 2020, 159, 112192. [Google Scholar] [CrossRef]
  42. Franca, R.D.; Carvalho, V.C.; Fradinho, J.C.; Reis, M.A.; Lourenço, N.D. Raman spectrometry as a tool for an online control of a phototrophic biological nutrient removal process. Appl. Sci. 2021, 11, 6600. [Google Scholar] [CrossRef]
  43. Fan, Y.; Xu, Z.; Huang, Y.; Wang, T.; Zheng, S.; DePasquale, A.; Brüeckner, C.; Lei, Y.; Li, B. Long-term continuous and real-time in situ monitoring of Pb (II) toxic contaminants in wastewater using solid-state ion selective membrane (S-ISM) Pb and pH auto-correction assembly. J. Hazard. Mater. 2020, 400, 123299. [Google Scholar] [CrossRef] [PubMed]
  44. Huang, Y.; Wang, T.; Xu, Z.; Hughes, E.; Qian, F.; Lee, M.; Fan, Y.; Lei, Y.; Brückner, C.; Li, B. Real-time in situ monitoring of nitrogen dynamics in wastewater treatment processes using wireless, solid-state, and ion-selective membrane sensors. Environ. Sci. Technol. 2019, 53, 3140–3148. [Google Scholar] [CrossRef]
  45. Marino, L.; Gagliano, E.; Santoro, D.; Roccaro, P. Fluorescence sensor enabled control of contaminants of emerging concern in reclaimed wastewater using ozone-based treatment processes. Water Res. 2025, 268, 122616. [Google Scholar] [CrossRef]
  46. Behmel, S.; Damour, M.; Ludwig, R.; Rodriguez, M. Water quality monitoring strategies—A review and future perspectives. Sci. Total Environ. 2016, 571, 1312–1329. [Google Scholar] [CrossRef] [PubMed]
  47. De Camargo, E.T.; Spanhol, F.A.; Slongo, J.S.; da Silva, M.V.R.; Pazinato, J.; de Lima Lobo, A.V.; Coutinho, F.R.; Pfrimer, F.W.D.; Lindino, C.A.; Oyamada, M.S.; et al. Low-cost water quality sensors for IoT: A systematic review. Sensors 2023, 23, 4424. [Google Scholar] [CrossRef]
  48. Baghel, L.K.; Gautam, S.; Malav, V.K.; Kumar, S. TEMPSENSE: LoRa enabled integrated sensing and localization solution for water quality monitoring. IEEE Trans. Instrum. Meas. 2022, 71, 3000311. [Google Scholar] [CrossRef]
  49. Baah, M.; Rahman, A.; Sibilia, S.; Trezza, G.; Ferrigno, L.; Micheli, L.; Maffucci, A.; Soboleva, E.; Svirko, Y.; Kuzhir, P. Electrical impedance sensing of organic pollutants with ultrathin graphitic membranes. Nanotechnology 2021, 33, 075207. [Google Scholar] [CrossRef] [PubMed]
  50. Baah, M.; Obraztsov, P.; Paddubskaya, A.; Biciunas, A.; Suvanto, S.; Svirko, Y.; Kuzhir, P.; Kaplas, T. Electrical, transport, and optical properties of multifunctional graphitic films synthesized on dielectric surfaces by nickel nanolayer-assisted pyrolysis. ACS Appl. Mater. Interfaces 2020, 12, 6226–6233. [Google Scholar] [CrossRef]
  51. Kaplas, T.; Matikainen, A.; Nuutinen, T.; Suvanto, S.; Vahimaa, P.; Svirko, Y. Scalable fabrication of the graphitic substrates for graphene-enhanced Raman spectroscopy. Sci. Rep. 2017, 7, 8561. [Google Scholar] [CrossRef]
  52. PalmSens. ItalSens IS-C. 2024. Available online: https://www.palmsens.com/product/italsens-is-c/ (accessed on 22 June 2025).
  53. Yamada, H.; Yoshii, K.; Asahi, M.; Chiku, M.; Kitazumi, Y. Cyclic voltammetry part 1: Fundamentals. Electrochemistry 2022, 90, 102005. [Google Scholar] [CrossRef]
  54. Rafiee, M.; Abrams, D.J.; Cardinale, L.; Goss, Z.; Romero-Arenas, A.; Stahl, S.S. Cyclic voltammetry and chronoamperometry: Mechanistic tools for organic electrosynthesis. Chem. Soc. Rev. 2024, 53, 566–585. [Google Scholar] [CrossRef]
  55. Magar, H.S.; Hassan, R.Y.; Mulchandani, A. Electrochemical impedance spectroscopy (EIS): Principles, construction, and biosensing applications. Sensors 2021, 21, 6578. [Google Scholar] [CrossRef]
  56. Maffucci, A. Carbon interconnects. Nanopackaging: Nanotechnologies and Electronics Packaging; Springer: Cham, Switzerland, 2018; pp. 725–774. [Google Scholar]
  57. Singh, R.; Samuel, M.S.; Ravikumar, M.; Ethiraj, S.; Kumar, M. Graphene materials in pollution trace detection and environmental improvement. Environ. Res. 2024, 243, 117830. [Google Scholar] [CrossRef]
  58. Hwang, E.; Adam, S.; Das Sarma, S. Transport in chemically doped graphene in the presence of adsorbed molecules. Phys. Rev. B—Condens. Matter Mater. Phys. 2007, 76, 195421. [Google Scholar] [CrossRef]
  59. Forestiere, C.; Maffucci, A.; Maksimenko, S.A.; Miano, G.; Slepyan, G.Y. Transmission-line model for multiwall carbon nanotubes with intershell tunneling. IEEE Trans. Nanotechnol. 2012, 11, 554–564. [Google Scholar] [CrossRef]
  60. Forestiere, C.; Maffucci, A.; Miano, G. Hydrodynamic model for the signal propagation along carbon nanotubes. J. Nanophotonics 2010, 4, 041695. [Google Scholar] [CrossRef]
  61. Al-Nu’airat, J.; Dlugogorski, B.Z.; Gao, X.; Zeinali, N.; Skut, J.; Westmoreland, P.R.; Oluwoye, I.; Altarawneh, M. Reaction of phenol with singlet oxygen. Phys. Chem. Chem. Phys. 2019, 21, 171–183. [Google Scholar] [CrossRef] [PubMed]
  62. Serpone, N.; Terzian, R.; Colarusso, P.; Minero, C.; Pelizzetti, E.; Hidaka, H. Sonochemical oxidation of phenol and three of its intermediate products in aqueous media: Catechol, hydroquinone, and benzoquinone. Kinetic and mechanistic aspects. Res. Chem. Intermed. 1993, 18, 183–202. [Google Scholar] [CrossRef]
  63. Agrahari, S.; Singh, A.K.; Gautam, R.K.; Tiwari, I. Electrochemical oxidation and sensing of para benzoquinone using a novel SPE based disposable sensor. Chemosphere 2023, 342, 140078. [Google Scholar] [CrossRef]
  64. Chatzisymeon, E.; Fierro, S.; Karafyllis, I.; Mantzavinos, D.; Kalogerakis, N.; Katsaounis, A. Anodic oxidation of phenol on Ti/IrO2 electrode: Experimental studies. Catal. Today 2010, 151, 185–189. [Google Scholar] [CrossRef]
  65. Pulgarin, C.; Adler, N.; Peringer, P.; Comninellis, C. Electrochemical detoxification of a 1,4-benzoquinone solution in wastewater treatment. Water Res. 1994, 28, 887–893. [Google Scholar] [CrossRef]
  66. PalmSens. PalmSens4. 2024. Available online: https://www.palmsens.com/product/palmsens4/ (accessed on 18 July 2025).
  67. Taleat, Z.; Khoshroo, A.; Mazloum-Ardakani, M. Screen-printed electrodes for biosensing: A review (2008–2013). Microchim. Acta 2014, 181, 865–891. [Google Scholar] [CrossRef]
  68. Fletcher, S. Screen-printed carbon electrodes. In Electrochem. Carbon Electrodes; John Wiley & Sons: Hoboken, NJ, USA, 2015; pp. 425–444. [Google Scholar]
  69. Monk, P.M. Fundamentals of Electroanalytical Chemistry; John Wiley & Sons: Hoboken, NJ, USA, 2008. [Google Scholar]
  70. Bard, A.J.; Faulkner, L.R.; White, H.S. Electrochemical Methods: Fundamentals and Applications; John Wiley & Sons: Hoboken, NJ, USA, 2022. [Google Scholar]
  71. Vanhove, E.; Ben-Amor, S.; Charlot, S.; Colin, D.; Devin, A.; Rigoulet, M.; Sojic, N.; Belaïdi, F.S.; Launay, J.; Temple-Boyer, P.; et al. Development of electrochemical microsensors for the monitoring of mitochondrial activities. In Proceedings of the 2013 Transducers & Eurosensors XXVII: The 17th International Conference on Solid-State Sensors, Actuators and Microsystems (TRANSDUCERS & EUROSENSORS XXVII), Barcelona, Spain, 16–20 June 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 1135–1138. [Google Scholar]
  72. Tonello, S.; Fapanni, T.; Bonaldo, S.; Giorgi, G.; Narduzzi, C.; Paccagnella, A.; Serpelloni, M.; Sardini, E.; Carrara, S. Amperometric measurements by a novel aerosol jet printed flexible sensor for wearable applications. IEEE Trans. Instrum. Meas. 2022, 72, 7500512. [Google Scholar] [CrossRef]
  73. Alfonta, L.; Katz, E.; Willner, I. Sensing of acetylcholine by a tricomponent-enzyme layered electrode using faradaic impedance spectroscopy, cyclic voltammetry, and microgravimetric quartz crystal microbalance transduction methods. Anal. Chem. 2000, 72, 927–935. [Google Scholar] [CrossRef] [PubMed]
  74. Katz, E.; Willner, I. Probing biomolecular interactions at conductive and semiconductive surfaces by impedance spectroscopy: Routes to impedimetric immunosensors, DNA-sensors, and enzyme biosensors. Electroanal. Int. J. Devoted Fundam. Pract. Asp. Electroanal. 2003, 15, 913–947. [Google Scholar] [CrossRef]
  75. Laschuk, N.O.; Easton, E.B.; Zenkina, O.V. Reducing the resistance for the use of electrochemical impedance spectroscopy analysis in materials chemistry. RSC Adv. 2021, 11, 27925–27936. [Google Scholar] [CrossRef] [PubMed]
  76. Classification Learner—Train Models to Classify Data Using Supervised Machine Learning—MATLAB. Available online: https://www.mathworks.com/help/stats/classificationlearner-app.html (accessed on 22 August 2025).
Figure 1. Sensors used in this study: (a) commercial SPEs (image sourced from the ItalSens website [52]); and (b) nanomembranes and custom PCB interface circuit for signal acquisition.
Figure 1. Sensors used in this study: (a) commercial SPEs (image sourced from the ItalSens website [52]); and (b) nanomembranes and custom PCB interface circuit for signal acquisition.
Sensors 25 05390 g001
Figure 2. SEM images of the fabricated films: (a) with the magnification of 601; and (b) magnification 45,000.
Figure 2. SEM images of the fabricated films: (a) with the magnification of 601; and (b) magnification 45,000.
Sensors 25 05390 g002
Figure 3. Experimental setup: (a) for CV, CA, and EIS on commercial electrode-based sensors; (b) for time-domain EIS on nanomembranes.
Figure 3. Experimental setup: (a) for CV, CA, and EIS on commercial electrode-based sensors; (b) for time-domain EIS on nanomembranes.
Sensors 25 05390 g003
Figure 4. Preliminary results obtained for each technique at different concentrations: (a) CV; (b) CA; and (c) EIS. For CA, results are reported on a logarithmic scale for greater readability. The different colors used for the curves indicate the concentrations tested.
Figure 4. Preliminary results obtained for each technique at different concentrations: (a) CV; (b) CA; and (c) EIS. For CA, results are reported on a logarithmic scale for greater readability. The different colors used for the curves indicate the concentrations tested.
Sensors 25 05390 g004
Figure 5. Absolute time-domain impedance response of nanomembranes at (a) 0 mM; (b) 0.1 mM; (c) 1 mM; and (d) 10 mM. The color scale indicated refers to the different analysis frequencies tested.
Figure 5. Absolute time-domain impedance response of nanomembranes at (a) 0 mM; (b) 0.1 mM; (c) 1 mM; and (d) 10 mM. The color scale indicated refers to the different analysis frequencies tested.
Sensors 25 05390 g005
Figure 6. Normalized time-domain impedance response of nanomembranes at (a) 0 mM, (b) 0.1 mM, (c) 1 mM, and (d) 10 mM. The color scale indicated refers to the different analysis frequencies tested.
Figure 6. Normalized time-domain impedance response of nanomembranes at (a) 0 mM, (b) 0.1 mM, (c) 1 mM, and (d) 10 mM. The color scale indicated refers to the different analysis frequencies tested.
Sensors 25 05390 g006
Figure 7. Reproducibility and limitations of the linear regression model for nanomembranes: (a) average normalized response M n o r m ( 1 MHz ) at different concentrations with relative standard deviation with a confidence level of 99.7 %, used for model construction; (b) validation of the regression model with the associated uncertainty. The results highlight the strong overlap among concentration responses and the incompatibility of a linear regression framework for pollutant quantification.
Figure 7. Reproducibility and limitations of the linear regression model for nanomembranes: (a) average normalized response M n o r m ( 1 MHz ) at different concentrations with relative standard deviation with a confidence level of 99.7 %, used for model construction; (b) validation of the regression model with the associated uncertainty. The results highlight the strong overlap among concentration responses and the incompatibility of a linear regression framework for pollutant quantification.
Sensors 25 05390 g007
Figure 8. Accuracy of the classification obtained from the conducted analyses. In particular, it reports, for each measurement technique and for each algorithm tested, the percentage of accuracy for each concentration tested and the total average accuracy. A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Figure 8. Accuracy of the classification obtained from the conducted analyses. In particular, it reports, for each measurement technique and for each algorithm tested, the percentage of accuracy for each concentration tested and the total average accuracy. A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Sensors 25 05390 g008
Figure 9. Classification accuracy using a 2-class model (detection-only). In particular, it reports, for each measurement technique and algorithm tested, the accuracy percentage for each class tested and the total average accuracy. A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Figure 9. Classification accuracy using a 2-class model (detection-only). In particular, it reports, for each measurement technique and algorithm tested, the accuracy percentage for each class tested and the total average accuracy. A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Sensors 25 05390 g009
Figure 10. Classification accuracy across different observation windows: (a) 4-class quantification, and (b) 2-class detection. In particular, the average accuracy percentage obtained for each training and test time is reported. A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Figure 10. Classification accuracy across different observation windows: (a) 4-class quantification, and (b) 2-class detection. In particular, the average accuracy percentage obtained for each training and test time is reported. A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Sensors 25 05390 g010
Figure 11. Accuracy of classification with respect to different noise levels considered. Shows the confusion matrices as the noise levels increase: (a) 4-class quantification and (b) 2-class detection. Noise levels considered are [0, 5, 10, 25, 35, 50] times the standard deviation ( σ ). A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Figure 11. Accuracy of classification with respect to different noise levels considered. Shows the confusion matrices as the noise levels increase: (a) 4-class quantification and (b) 2-class detection. Noise levels considered are [0, 5, 10, 25, 35, 50] times the standard deviation ( σ ). A color map has been added to make the matrix easier to understand, with green representing maximum accuracy and red representing minimum accuracy.
Sensors 25 05390 g011
Table 1. Comparison of the analyzed sensing technologies [16].
Table 1. Comparison of the analyzed sensing technologies [16].
TechnologyReal-Time CapabilityPortabilityLimitations
Colorimetric [17,18,19,20,21,22,23,24,25,26,27,28,29,30]LimitedVery highColor, turbidity and lighting interferences; long-term stability.
Lab-on-a-Chip [31,32,33,34,35,36,37,38,39]HighHighFabrication process complexity, costs
Raman/SERS [40,41,42]ModerateModerateFluorescence interference; costly instrumentation.
Table 2. Comparison of sensing technologies from selected studies and reviews.
Table 2. Comparison of sensing technologies from selected studies and reviews.
TechnologyReal-Time CapabilityPortabilityLimitations
Electrochemical ISM [43]HighHighpH/O2 interferences, fouling
Thin-film ISM [44]HighHighT/pH corrections, limited lifetime
Tryptophan-like fluorescence probe [45]HighHighCalibration, particles interferences, cost
Optical fluorescence/UV sensors [46]ModerateModerateTurbidity, fouling
Electrochemical sensors [46]HighHighFouling
Spectroscopy & chromatography [46]LowLowCost, slow response
IoT wireless multiparameter systems [47]HighHighEnergy consumption, reliability
Enzymatic biosensors [47]HighHighBiological stability, regeneration
Integrated multisensor with LoRa transmission [48]HighHighCalibration, network dependency
Table 3. Linear model parameters and associated model uncertainty for each tested technique.
Table 3. Linear model parameters and associated model uncertainty for each tested technique.
Technique a 0 [mM] a 1 u mod [mM]
CV2.774.36 [mM/C]0.14
CA2.77−4.15 [mM/ μ A]0.30
Classical EIS3.70−1.87 [mM/ Ω ]3.16
M n o r m ( 1 MHz ) 2.75−2.09 [mM/%]2.48
Table 4. Estimation error for each tested technique across all concentrations.
Table 4. Estimation error for each tested technique across all concentrations.
Concentration [mM]CV Error [mM]CA Error [mM]EIS Error [mM] M norm  (1 MHz) Error [mM]
0−0.09−0.084.620.83
0.10.01−0.033.130.76
10.110.264.14−0.34
10−0.02−0.07−2.16−8.01
Table 5. Distribution of training data of SPEs and nanomembranes per class (each sensor is represented by index).
Table 5. Distribution of training data of SPEs and nanomembranes per class (each sensor is represented by index).
SPE IndexNanomembrane IndexClass
1, 2, 31, 2, 30 mM
4, 5, 64, 5, 60.1 mM
7, 8, 97, 8, 91 mM
10, 11, 1210, 11, 1210 mM
Table 6. Distribution of test data for SPEs and nanomembranes per class (each sensor is represented by index).
Table 6. Distribution of test data for SPEs and nanomembranes per class (each sensor is represented by index).
SPE IndexNanomembrane IndexClass
13130 mM
14140.1 mM
15151 mM
161610 mM
Table 7. Distribution of data points per SPE and per nanomembrane to build the 4 classes od dataset.
Table 7. Distribution of data points per SPE and per nanomembrane to build the 4 classes od dataset.
TechniqueData Points
CV400 × 2/SPE
CA1800 × 1/SPE
Electrode Sensors EIS20 × 140/SPE
Nanomembranes EIS90 × 16/Nanomembrane
Table 8. Dataset size (rows × features) for training and test sets considering 4 classes.
Table 8. Dataset size (rows × features) for training and test sets considering 4 classes.
DatasetCVCAElectrode Sensors EISNanomembranes EIS
Training Data4800 × 2
1200 × 2/class
21600 × 1
5400 × 1/class
240 × 140
60 × 140/class
1080 × 16
270 × 16/class
Test Data1600 × 2
400 × 2/class
7200 × 1
1800 × 1/class
80 × 140
20 × 140/class
360 × 16
90 × 16/class
Table 9. Distribution of data points per SPE and per nanomembrane considering 2 classes.
Table 9. Distribution of data points per SPE and per nanomembrane considering 2 classes.
TechniqueData Points
CV400 × 2/SPE for clean water class
133 × 2/SPE for polluted water class
CA1800 × 1/SPE for clean water class
600 × 1/SPE for polluted water class
Electrode Sensors EIS20 × 40/SPE for clean water class
7 × 40/SPE for polluted water class
Nanomembranes EIS90 × 16/SPE for clean water class
30 × 16/SPE for polluted water class
Table 10. Dataset size (rows × features) for training and test sets considering 2 classes.
Table 10. Dataset size (rows × features) for training and test sets considering 2 classes.
DatasetCVCAElectrode Sensors EISNanomembranes EIS
Training Data2400 × 2
1200 × 2/class
10800 × 1
5400 × 1/class
120 × 140
60 × 140/class
540 × 16
270 × 16/class
Test Data800 × 2
400 × 2/class
3600 × 1
1800 × 1/class
40 × 140
20 × 140/class
180 × 16
90 × 16/class
Table 11. Dataset dimensions for each observation window considering 4 classes.
Table 11. Dataset dimensions for each observation window considering 4 classes.
Dataset180 s150 s120 s90 s60 s45 s30 s15 s
Training1080 × 16900 × 16720 × 16540 × 16360 × 16270 × 16180 × 1690 × 16
Test360 × 16300 × 16240 × 16180 × 16120 × 1690 × 1660 × 1630 × 16
Table 12. Dataset dimensions for each observation window considering 2 classes.
Table 12. Dataset dimensions for each observation window considering 2 classes.
Dataset180 s150 s120 s90 s60 s45 s30 s15 s
Training540 × 16450 × 16360 × 16270 × 16180 × 16135 × 1690 × 1645 × 16
Test180 × 16150 × 16120 × 1690 × 1660 × 1645 × 1630 × 1615 × 16
Table 13. Classification accuracy across different noise levels.
Table 13. Classification accuracy across different noise levels.
Noise LevelAccuracy (4 Classes) [%]Accuracy (2 Classes) [%]
0100100
5 σ 100100
10 σ 85100
25 σ 82100
35 σ 57100
50 σ 4296
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

Cavaliere, G.; Tari, L.; Siconolfi, F.; Rehman, H.; Kuzhir, P.; Maffucci, A.; Ferrigno, L. A Novel ML-Powered Nanomembrane Sensor for Smart Monitoring of Pollutants in Industrial Wastewater. Sensors 2025, 25, 5390. https://doi.org/10.3390/s25175390

AMA Style

Cavaliere G, Tari L, Siconolfi F, Rehman H, Kuzhir P, Maffucci A, Ferrigno L. A Novel ML-Powered Nanomembrane Sensor for Smart Monitoring of Pollutants in Industrial Wastewater. Sensors. 2025; 25(17):5390. https://doi.org/10.3390/s25175390

Chicago/Turabian Style

Cavaliere, Gabriele, Luca Tari, Francesco Siconolfi, Hamza Rehman, Polina Kuzhir, Antonio Maffucci, and Luigi Ferrigno. 2025. "A Novel ML-Powered Nanomembrane Sensor for Smart Monitoring of Pollutants in Industrial Wastewater" Sensors 25, no. 17: 5390. https://doi.org/10.3390/s25175390

APA Style

Cavaliere, G., Tari, L., Siconolfi, F., Rehman, H., Kuzhir, P., Maffucci, A., & Ferrigno, L. (2025). A Novel ML-Powered Nanomembrane Sensor for Smart Monitoring of Pollutants in Industrial Wastewater. Sensors, 25(17), 5390. https://doi.org/10.3390/s25175390

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