Cyclic voltammetry signal adaptive processing method based on direction perception and multi-feature correction

By adopting an adaptive processing method for cyclic voltammetry signals based on direction sensing and multi-feature correction, the problem of scanning direction reversal points caused by unified processing of CV curves is solved, thereby improving the signal processing accuracy and stability of portable electrochemical detection systems.

CN123166641APending Publication Date: 2026-11-27ANHUI HONGYUAN JUKANG MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297522.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies that uniformly filter and correct the entire CV curve result in problems such as cross-segment convolution at the scan direction reversal point, baseline drifting downwards following the negative peak of the reverse scan segment, and discontinuity of the baseline in the neighborhood of the reversal point. These issues severely affect detection accuracy, especially in low-concentration and weak-response scenarios.

Method used

An adaptive processing method for cyclic voltammetric signals based on direction awareness and multi-feature correction is used to determine the scanning direction through a DAC command word sequence, perform asymmetric least squares baseline estimation and Savitzky-Golay smoothing in segments, use a reversal point guard window interpolation to connect the baseline, and avoid cross-segment processing at the scanning direction reversal point, and process the signals of the forward and reverse scanning segments independently.

Benefits of technology

It improves the accuracy of peak current extraction and the stability of baseline estimation, reduces the current extraction error of reduction and oxidation peaks and the root mean square error of the baseline in the stable segment, and is suitable for portable electrochemical detection systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123166641A_ABST
    Figure CN123166641A_ABST
Patent Text Reader

Abstract

The application provides a cyclic voltammetry signal adaptive processing method based on direction perception and multi-feature correction, and belongs to the technical field of electrochemical detection and digital signal processing. The method comprises the following steps: acquiring a current sampling sequence output by a constant potential instrument and a DAC command word sequence synchronized therewith; determining a forward scanning section, a reverse scanning section and a scanning direction reversal point based on the monotonicity of the DAC command word sequence, and defining a reversal point protection window; independently performing asymmetric least squares baseline estimation on the forward scanning section and the reverse scanning section respectively to obtain a corrected signal; independently performing Savitzky-Golay smoothing on the corrected signal in sections, filling in the sections and not crossing the reversal point; and outputting the corrected and smoothed segmented cyclic voltammetry signal. The application solves the problems of cross-section convolution and baseline following negative peaks caused by unified processing, improves the peak current extraction accuracy and baseline estimation stability, and is suitable for portable electrochemical detection scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electrochemical detection and digital signal processing technology, specifically to an adaptive processing method for cyclic voltammetric signals based on direction sensing and multi-feature correction. Background Technology

[0002] Sweat, as a non-invasive and continuously collectable biological matrix, contains dopamine in the micromolar to picomolar range, making it an ideal medium for dynamically monitoring sympathetic nervous system activity and mental stress. Electrochemical detection, due to its high sensitivity, low cost, and miniaturization capabilities, has become the mainstream method for sweat dopamine detection. In an electrochemical detection system, a potentiostat applies a time-varying potential excitation to the working electrode, simultaneously acquiring the current response. The resulting current-potential curve (CV curve) serves as the raw data for subsequent concentration quantification and biochemical analysis. Portable potentiostats, due to their low power consumption, miniaturization, and wearability, are rapidly replacing commercial benchtop electrochemical workstations.

[0003] Mature solutions exist for CV signal filtering, denoising, and baseline correction. For filtering, the Savitzky-Golay (SG) smoothing method is most commonly used. It smooths the entire curve by fitting a low-order polynomial within a sliding window and taking the center value of the window as the output, sliding point by point. Typically, the entire CV curve is treated as a single continuous sequence for direct processing. For baseline correction, the asymmetric least squares (AsLS) method is widely adopted due to its strong adaptability. It constructs an objective function with fidelity and roughness penalty terms, assigning asymmetric weights to the residuals on both sides of the baseline during iteration, allowing the fitted curve to gradually approximate the true baseline. Typically, after acquiring the entire data set, the baseline is estimated and subtracted all at once as a unified object.

[0004] However, the CV curve is formed by splicing forward and reverse scan segments at the peak potential, with the two peak currents in opposite directions. When the entire curve is smoothed using a uniform SG, the sliding window crosses the inversion point, mixing the two data segments and causing waveform distortion, peak shape distortion, and peak position shift near the inversion point. This is exacerbated by faster scanning speeds and longer sliding windows. When the entire curve is smoothed using a uniform AsLS baseline estimation, because only a single set of asymmetric weights is used, the weights adapted for the forward scan segment become ineffective in the reverse scan segment due to sign structure mismatch, causing the baseline to drift following the negative peak. After subtraction, the restored peak amplitude is severely compressed. The baseline estimation in the neighborhood of the inversion point lacks protection, resulting in discontinuities between the two baseline segments and introducing spurious peaks or steps after subtraction. These problems are particularly severe in low-concentration, weak-response scenarios (such as sweat dopamine detection), where even small baseline deviations can overwhelm the target signal, leading to quantitative distortion. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides an adaptive processing method for cyclic voltammetric signals based on direction perception and multi-feature correction. This method solves the problems caused by uniformly filtering and baseline correction of the entire CV curve in existing technologies, such as cross-segment convolution at the scan direction reversal point, baseline drifting downwards following the negative peak of the reverse scan segment, and discontinuity of the baseline in the neighborhood of the reversal point.

[0006] To achieve the above objectives, this invention provides an adaptive processing method for cyclic voltammetric signals based on direction sensing and multi-feature correction, comprising the following steps: Acquire the current sampling sequence output by the potentiostat and the DAC command word sequence synchronized with the current sampling sequence; wherein, the DAC command word is mapped to a scan potential relative to the electrochemical zero potential after being mapped by a virtual ground reference potential; Based on the monotonicity of the DAC command word sequence, the forward scan segment, the reverse scan segment, and the scan direction reversal point located between them are determined, and a reversal point protection window centered on the scan direction reversal point is defined. Asymmetric least squares baseline estimation is performed independently on the forward scan segment and the reverse scan segment to obtain the forward scan baseline and the reverse scan baseline. The baseline estimation for the reverse scan segment includes: first, negating the current signal of the reverse scan segment; then, performing asymmetric least squares baseline estimation on the negated signal; finally, negating the obtained baseline to restore it. Within the reversal point protection window, the interpolation between the end value of the forward scan baseline and the beginning value of the reverse scan baseline is used as the baseline within the protection window. The obtained baseline is subtracted from the original signal to obtain the baseline-corrected signal. The forward scan segment and the reverse scan segment after baseline correction are independently smoothed using Savitzky-Golay to obtain smoothed segmented signals; wherein, the smoothing of each segment adopts an in-segment filling method at the boundary, and the smoothing operation does not cross the scan direction reversal point; Output the baseline-corrected and smoothed segmented cyclic voltammetric signal.

[0007] In one embodiment of the present invention, after independently performing Savitzky-Golay smoothing on the baseline-corrected forward scan segment and the reverse scan segment to obtain the smoothed segmented signal, the method further includes: The first derivative of the smoothed segmented signal with respect to the scanning potential is calculated. In the forward scanning segment, the zero-crossing point where the first derivative changes from positive to negative is searched to determine the oxidation peak position. In the reverse scanning segment, the zero-crossing point where the first derivative changes from negative to positive is searched to determine the reduction peak position. The search interval adopts a dynamic interval: when there is a peak position from the previous measurement, the current search interval is determined with the previous peak position as the center and the preset potential tolerance as the radius; when it is the first measurement, the default search interval is used.

[0008] In one embodiment of the present invention, the segment filling method is segment reflection filling; the signal in the inversion point protection window does not participate in Savitzky-Golay smoothing, and median filtering or maintaining the original value is used.

[0009] In one embodiment of the present invention, the Savitzky-Golay smoothed window length W is determined according to the sampling rate. The scan rate v is determined by the following formula: Where k is the preset window coverage potential width coefficient; The asymmetric weight parameter p and the scan rate v in the asymmetric least squares baseline estimation are adaptively determined by the following formula: in, , , These are preset parameters; The smoothness parameter of the asymmetric least squares The value range is 10 9 Up to 10 10 .

[0010] In one embodiment of the present invention, after calculating the first derivative of the smoothed segmented signal with respect to the scanning potential, searching for zero-crossing points where the first derivative changes from positive to negative in the forward scanning segment to determine the oxidation peak position, and searching for zero-crossing points where the first derivative changes from negative to positive in the reverse scanning segment to determine the reduction peak position, the method further includes: For each identified peak, a feature vector is extracted. The feature vector includes: peak current, peak potential, half-maximum width, peak area, and peak symmetry factor.

[0011] In one embodiment of the present invention, after extracting feature vectors for each identified peak, an abnormal curve removal step is further included: Anomalies are determined in the current curve based on at least two of the following criteria: peak position shift, redox peak current ratio, full width at half maximum (FWHM), symmetry factor, and peak region signal-to-noise ratio. When at least two criteria are triggered simultaneously, the current curve is marked as an anomaly and removed from the subsequent processing set.

[0012] In one embodiment of the present invention, a concentration quantification step is further included: Concentration quantification is performed using the peak current of the curve that was not removed or its corresponding feature vector as input; the concentration quantification adopts a peak current-log concentration linear regression model, or a multi-feature partial least squares regression model when there is sufficient data.

[0013] This invention provides a portable electrochemical detection system, comprising: The potentiostat module includes a unipolar digital-to-analog converter and a virtual ground reference circuit. The unipolar digital-to-analog converter outputs a scanning voltage, which is mapped by the virtual ground reference circuit to form a bidirectional scanning potential relative to the electrochemical zero potential. The processing module is communicatively connected to the potentiostat module and is used to receive the current sampling sequence and DAC command word sequence output by the potentiostat module, and execute the cyclic voltammetry signal adaptive processing method as described above.

[0014] This invention provides an electronic device for processing cyclic voltammetric signals, including a processor, a memory, and a data interface connected to a potentiostat; the data interface is used to receive a current sampling sequence output by the potentiostat and a DAC command word sequence synchronized with the current sampling sequence; the memory stores a computer program, which, when executed by the processor, implements the adaptive processing method for cyclic voltammetric signals as described above.

[0015] The present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the adaptive processing method for cyclic voltammetric signals as described above.

[0016] This invention provides an adaptive processing method for cyclic voltammetry signals based on direction sensing and multi-feature correction. Compared with existing technologies, it has the following advantages: By segmenting the CV curve according to the scanning direction based on the monotonicity of the DAC command word sequence, and independently performing asymmetric least-squares baseline estimation and SG smoothing for the forward and reverse scan segments respectively, and using interpolation to connect the two baseline segments within the inversion point protection window, the filtering process does not involve convolution across the scanning direction, the baseline estimation is not contaminated by peak signals near the inversion point, and the negative reduction peak in the reverse scan segment does not cause baseline drift. This reduces the current extraction error of reduction and oxidation peaks and the root mean square error of the baseline in the stable segment; it significantly improves the accuracy of peak current extraction and the stability of baseline estimation. Furthermore, the processing steps involve low parameter computation and can be executed in real time on a low-power microcontroller or host computer, making it suitable for portable electrochemical detection systems. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A flowchart illustrating the adaptive processing method for cyclic voltammetry signals provided in this application; Figure 2 This is a schematic diagram of CV signal segmentation provided in this application; Figure 3 A schematic diagram of baseline correction for scanning orientation sensing provided in this application; Figure 4 A schematic diagram of segmented SG smoothing provided for this application; Figure 5 This is a schematic diagram of peak position identification and feature extraction provided in this application; Figure 6 A schematic diagram illustrating the decision-making process for removing abnormal curves provided in this application; Figure 7 The end-to-end processing comparison diagram provided in this application; Figure 8 The concentration-quantitative regression curve provided for this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention are described clearly and completely. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] This application provides an adaptive processing method for cyclic voltammetry signals based on direction perception and multi-feature correction. This method addresses the problems in the prior art caused by uniformly filtering and baseline correction of the entire CV curve, such as cross-segment convolution at the scan direction reversal point, baseline drifting downwards following the negative peak of the reverse scan segment, and discontinuity of the baseline in the neighborhood of the reversal point. This improves the accuracy of CV peak current extraction and the stability of baseline correction.

[0021] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.

[0022] Please see Figure 1 This invention provides an adaptive processing method for cyclic voltammetric signals based on direction sensing and multi-feature correction, comprising the following processing steps.

[0023] Step 1: Data acquisition and scan potential reconstruction.

[0024] The portable electrochemical detection system applies a triangular wave scanning potential to the working electrode and simultaneously acquires the current response of the working electrode. The potentiostat module outputs two sets of synchronized data.

[0025] The first set of data is the current sampling sequence {I} i} (i = 1, 2, …, N), which is obtained by converting the working electrode current into a voltage using a transimpedance amplifier (TIA) and then sampling it using an analog-to-digital converter (ADC); the current value is determined by the following formula: in, Let TIA be the output voltage at the i-th sampling point. This is a virtual ground reference potential. This is the feedback resistor for TIA.

[0026] The second set of data is the DAC command word sequence {D i} (i = 1, 2, …, N), which is the digital quantity driving the output scanning voltage of the unipolar DAC, and corresponds one-to-one with the current sampling sequence in the sampling timing, that is, each DAC command word D i This corresponds to the scan potential command applied to the working electrode at the same time. The DAC command word, after being mapped to a virtual ground reference potential, forms a scan potential relative to electrochemical zero potential. Where B is the bit width of the DAC (e.g., 16 bits). This is the reference voltage for the DAC. Let be the electrode potential relative to the virtual ground at the i-th sampling point. Since the DAC has a unipolar output, while CV scanning requires a bidirectional scanning potential, a virtual ground reference circuit is used to map the unipolar output to a bidirectional scanning potential with positive and negative values ​​relative to the electrochemical zero potential.

[0027] The aforementioned current sampling sequence and DAC command word sequence are transmitted via SPI / I 2 The C-bus transmits data from the potentiostat module to the processing module. The processing module simultaneously saves the current sampling sequence and the DAC command word sequence, and reconstructs the scanning potential sequence according to the above formula, outputting: This is for use in subsequent segmented processing.

[0028] Step 2: Scanning direction perception segmentation.

[0029] Since the DAC command word directly reflects the instruction to apply the scan potential, its monotonicity change corresponds to the change in the scan direction. Therefore, the sequence of DAC command words is segmented based on its monotonicity.

[0030] First, calculate the first-order difference of the DAC command word sequence: (i = 2, 3, …, N). Will The continuous interval is determined as the positive scan segment, and The continuous interval is determined as the reverse scan segment. The index position where the scan direction changes from forward to reverse is the scan direction reversal point, denoted as k*. For a single complete CV loop scan, the DAC command word sequence forms a complete monotonically increasing-monotonically decreasing process, with the reversal point located at the vertex potential.

[0031] Then, define a reversal point protection window centered on the scan direction reversal point. Let the window length of the reversal point protection window be W. r (W) r (For a preset odd number, such as 11 sampling points), the index range covered by the inversion point protection window is: .

[0032] End point of forward scan segment Starting point of the reverse scan segment Although located at the edge of the protective window, it belongs to the forward and reverse scan segments respectively, serving as anchor points for baseline interpolation at both ends and participating in baseline estimation for their respective segments; inside the protective window (i.e. +1 to 1) No independent baseline estimation is performed.

[0033] In this embodiment, the significance of the guard window lies in the fact that the signal in the neighborhood of the reversal point is simultaneously affected by the sudden change and discontinuity of the polarity of the double-layer charging current when the scanning direction reverses. If cross-segment filtering or baseline estimation is performed in this neighborhood, the responses of the forward and reverse scans will inevitably be mixed. Therefore, cross-segment filtering or baseline estimation is not performed within the guard window.

[0034] After segmentation, the forward scan segment index set is obtained. With reverse scan segment index set The index set within the protected window is marked separately.

[0035] The key to this step is that the segmentation criterion comes from the hardware excitation signal (DAC command word) rather than inferring the scanning direction from the post-hoc characteristics of the current data (such as the location of current extreme values). Therefore, the segmentation result is strictly consistent with the scanning process applied by the hardware and is not affected by abnormal current response (such as noise or peak distortion), thus having high reliability.

[0036] Please see Figure 2 It shows a schematic diagram of CV signal segmentation based on DAC command words. Figure 2 The above sub-image shows the triangular wave scan potential obtained by mapping the DAC command word. The green background area represents the forward scan segment, the blue background area represents the reverse scan segment, the red dashed line marks the scan direction reversal point k*, and the orange shaded area (located at the red dashed line) marks the reversal point protection window W. r; the lower subplot shows the corresponding current response, where an oxidation peak appears in the forward scan segment, a reduction peak appears in the reverse scan segment, and the reversal neighborhood does not participate in cross-segment processing. This figure intuitively verifies the feasibility of determining the scan direction and locating the reversal point based on the monotonicity of DAC command words.

[0037] Step 3: Segmented baseline correction with scan direction awareness.

[0038] In this step, AsLS baseline estimation is performed independently for the forward scan segment and the reverse scan segment, as follows.

[0039] For the forward scan segment signal , solve the following optimization problem to obtain the forward scan baseline : where is the second-order difference operator, is the smoothness parameter (the preset value range may be 10 9 to 10 10 , in this embodiment, take = 10 10 ); represents the set of valid indices used for baseline estimation in the forward scan segment, that is, the part of the forward scan segment after removing the reversal point protection window ( is the set of indices used to calculate the second-order difference penalty term after excluding the boundary points of the protection window on the basis of ; while the fidelity term is still calculated for all indices of , so that the forward scan baseline obtains a reliable anchor value at the left boundary of the protection window). The weight is iteratively updated according to the following rules: where p is an asymmetric weight parameter (0<p<0.5), whose function is to make the fitting curve tend to cling to the baseline located below the data instead of following the forward peak. After multiple iterations (for example, 10 to 20 times, or until the preset convergence criterion is met), the forward scan baseline is obtained .

[0040] Perform symbol-aware processing on the reverse scan segment signal. Since the target peak of the reverse scan segment is a negative reduction peak (the current value is lower than the baseline), if the above AsLS formula based on the symbol assumption of the forward scan segment is directly applied, the asymmetric weight will assign a high weight (1 p) to the data whose current is lower than the current baseline estimate (that is, the reduction peak region), causing the baseline to drift downward following the negative peak. In this embodiment, a negation operation is first performed on the reverse scan segment: At this time, the negative reduction peak becomes a positive peak after negation, and then the negated reverse scan segment signal { Solve the AsLS optimization problem in the same way as for the positive scan segment to obtain the baseline estimate z in the negative domain. (neg,R) Finally, the negative value is taken to restore the baseline of the reverse scan: This symbol-aware processing ensures that the backscan baseline is correctly pressed below the backscan segment data (i.e. below the original negative peak), avoiding the failure mode where the baseline drifts with the negative peak.

[0041] Within the reverse point protection window, the baseline is given by interpolation of the end value of the forward scan baseline and the start value of the reverse scan baseline. This embodiment uses linear interpolation; specifically, for index k within the protection window, the interpolation weight is defined as follows: The baseline value within the protection window is: in, This is the value at the left end of the guard window of the positive scan baseline. This is the starting value of the backscan baseline at the right end of the guard window. This interpolation method ensures a continuous transition of the baseline within the guard window from the forward scan baseline segment to the backscan baseline segment, avoiding baseline steps caused by independent estimation of the two baseline segments.

[0042] The obtained complete baseline { Subtracting from the original signal (the original signal referred to in this application is the current sampling sequence output by the potentiostat; all subsequent 'subtraction' and 'correction' are performed on this current sequence) yields the baseline-corrected signal: In this context (i = 1, 2, …, N), the forward and reverse scan segments use their respective segmented baselines, while the guard window uses an interpolated baseline.

[0043] Thus, by performing AsLS independently on the forward and reverse scan segments, the peak signal near the inversion point does not contaminate the baseline estimation; linear interpolation is used in the neighborhood of the inversion point to connect the two baseline segments, avoiding the introduction of false peaks due to baseline discontinuity; and asymmetric weights are linked with the scan rate to adapt to different test conditions.

[0044] Please see Figure 3 This demonstrates the comparative effect of scan orientation-aware baseline correction. Figure 3The top left subplot shows the original noisy CV signal and the true Faraday signal; the top right subplot compares the true baseline, the baseline estimated by scheme B (unified AsLS, direction-aware), and the baseline estimated by scheme C (segmented AsLS of this invention). It can be seen that the baseline of scheme B deviates significantly near the inversion point, while the baseline of scheme C closely follows the true baseline; the bottom left subplot compares the CV signals processed by the three schemes, with scheme C highly overlapping with the true Faraday signal; the bottom right subplot is a magnified view near the inversion point, clearly demonstrating the advantages of scheme B (baseline contamination across segments) and scheme C (maintaining baseline continuity through linear interpolation). This figure proves that segmented independent AsLS and the inversion point interpolation mechanism can prevent the baseline from following the negative peak.

[0045] Step 4: Segmented SG smoothing.

[0046] SG smoothing is performed independently on the forward and reverse scan segments after baseline correction, rather than smoothing the entire curve uniformly.

[0047] The SG smoothing of the forward scan segment applies only to data points within the index set F, and the SG smoothing of the reverse scan segment applies only to data points within the index set R. The window length W for SG smoothing is a preset odd number, and the polynomial order is m (e.g., m = 3). Smoothing at the boundaries of each segment uses intra-segment padding, meaning it only uses data points within the segment for padding to maintain the effective length of the sliding window. Padding of the forward scan segment cannot use data points from the reverse scan segment, and vice versa. Furthermore, the smoothing operation does not cross the scan direction reversal point. Data points within the reversal point protection window do not participate in the SG smoothing calculation; their values ​​are retained after baseline subtraction or processed using median filtering.

[0048] After segmented smoothing, a smoothed segmented cyclic voltammetric signal is obtained. The forward and reverse scan segments maintain the spatial continuity of the signal within their respective segments. The signal within the inversion point guard window serves as a transition between the two segments, retaining its original appearance or undergoing only conservative filtering without crossing segments, fundamentally eliminating the influence of cross-segment convolution on peak shape and peak position.

[0049] The segmented cyclic voltammetric signals, after baseline correction and smoothing, are output for subsequent peak identification, feature extraction, anomaly removal, and concentration quantification. Since the processing of the forward and reverse scan segments is structurally independent, each signal segment retains clear scanning direction information, which facilitates subsequent processing steps based on the directional characteristics of each segment.

[0050] Please see Figure 4 This demonstrates the contrast effect of segmented SG smoothing. Figure 4The left sub-figure shows the overall picture of segmented SG smoothing. Curve (a) is the result of cross-segment unified SG smoothing, which shows obvious distortion at the reversal point; curve (b) is the result of intra-segment reflection filling SG smoothing; curve (c) is the result of segmented SG with reversal protection window of the present invention, which has the highest degree of agreement with the real Faraday current. Figure 4 The right subplot is a magnified view of the neighborhood at the inversion point, further illustrating the differences in waveform distortion at the inversion point caused by the unified cross-segment SG and the differences in signal fidelity maintained by the segmented SG and the inversion guard window strategy. This figure verifies the effectiveness of intra-segment reflection filling and the strategy of prohibiting cross-segment filling.

[0051] Step 5: Adaptive peak position identification.

[0052] Based on the baseline-corrected and smoothed segmented cyclic voltammetry signal output in the aforementioned embodiment, peak position identification is further performed.

[0053] Calculate the first derivative d for each segment of the signal. / dV. The first derivative can be calculated using the SG first derivative convolution coefficients, which output the first derivative coefficients of the polynomial while performing SG smoothing fitting on each segment. The derivative value at each data point is obtained by weighted summation of the segmented signals within the sliding window. Alternatively, the adjacent difference method can be used for calculation.

[0054] During the forward scan segment, the oxidation peak appears as a positive peak (the current changes from rising to falling at the peak position). Therefore, the zero-crossing point where the first derivative changes from positive to negative is searched as the oxidation peak position E. pa The specific search rules are as follows: When there is a unique zero-crossing point in the forward scan segment where the first derivative changes from positive to negative, the potential corresponding to the zero-crossing point is taken as the oxidation peak position; when there are no zero-crossing points or the number is greater than 1, the potential corresponding to the maximum absolute value of the first derivative (i.e., the point where the derivative changes most drastically) is taken as the oxidation peak position.

[0055] In the reverse scan segment, the restored peak appears as a negative peak (the current changes from decreasing to increasing at the peak position), so the zero-crossing point where the first derivative changes from negative to positive is searched as the restored peak position Epc. The search rules are similar to those in the forward scan segment.

[0056] The search interval is set using a dynamic interval strategy. When a peak record from a previous measurement (such as the previous cycle or the previous test in the same batch) exists, the current search interval is determined with that previous peak as the center and a preset potential tolerance ΔE (e.g., ΔE = 0.1V) as the radius. That is, the forward scan search interval is... The search range for the backscan segment is ,in and These are the oxidation and reduction peak positions obtained from the previous measurement, respectively. For the first measurement, the default search interval is used: the default search interval for the forward scan is within 0.3 V before the peak potential, and the default search interval for the reverse scan is within 0.3 V after the peak potential.

[0057] This dynamic search strategy avoids dependence on a fixed potential window. In continuous measurement scenarios (such as multiple scans of the same electrode or calibration of multiple electrodes from the same batch), peak position drift caused by differences in electrode batches or changes in scan rate can be effectively tracked within the dynamic search range, preventing missed detections or incorrect peak locking.

[0058] Please see Figure 5 It shows a schematic diagram of peak position identification and multi-feature extraction. Figure 5 The upper subplot shows the positions of the oxidation and reduction peaks of the signal after baseline correction, with the peak areas and dynamic search intervals marked by shaded regions. The lower subplot shows the first derivative curves, where the oxidation peak corresponds to the zero-crossing point where the derivative changes from positive to negative, and the reduction peak corresponds to the zero-crossing point where the derivative changes from negative to positive. The position of the zero-crossing point is the peak position. This figure visually presents the peak position localization process based on derivative zero-crossing search.

[0059] Furthermore, as a specific implementation of the boundary processing in step four above, the segment filling method adopts segment reflection filling. "Reflection filling" refers to: for the missing filling points outside the left boundary of the forward scan segment, taking the corresponding data points within the segment with the left boundary point as the axis and increasing offset sequentially, forming a mirror sequence about the boundary; for the right boundary of the forward scan segment (i.e., the left end of the protection window, indexed as...),... For fill points outside the right boundary, mirror data is taken within the segment to the left, using the right boundary point as the axis. The boundary fill method for the reverse scan segment is the same as above, that is, at its left boundary (right end of the guard window, index is...). Intra-segment reflection extension is performed on both the right boundary and the right edge (sequence end). In this way, the data points used by each segment when the sliding window passes the boundary come from within the segment itself and do not involve data from another scan segment.

[0060] Meanwhile, data points within the inversion point protection window do not participate in SG smoothing calculations. As one preferred embodiment, the signal within the protection window retains its original value after baseline subtraction, meaning no filtering operation is applied to the data within the protection window. As another equivalent embodiment, the signal within the protection window is processed using median filtering. Median filtering is a non-linear filter that does not involve cross-segment data mixing, which can suppress impulse noise within the protection window while maintaining the continuity of the baseline at both ends of the protection window.

[0061] Furthermore, in this embodiment, an adaptive determination method for the core processing parameters in the aforementioned embodiments is provided.

[0062] The relationship between the SG smoothing window length and the sampling rate and scan rate is as follows: in, Where is the ADC sampling rate (Hz), v is the scan rate (V / s), and k is the preset window coverage potential width coefficient (e.g., k = 0.05 V, meaning the window covers a potential width of approximately 50 mV). Because the window length formula uses a rounding down factor of 2 followed by 1, the window length W is always an odd number. This formula ensures that the potential width covered by the SG sliding window remains consistent across different scan rates, preventing peak fidelity from changing with the scan rate.

[0063] The adaptive linkage between the AsLS asymmetric weighting parameter p and the scan rate v is as follows: in, , , As preset parameters, in this embodiment = 0.05, = 0.005, = 50 mV / s. and The same units are used (e.g., all in V / s, 50mV / s = 0.05V / s). The physical basis for this linkage lies in the double-layer charging current. As the scan rate increases linearly ( (For double-layer capacitance), baseline drift is more significant under slow scans, requiring adjustment of asymmetric weights to reliably keep the baseline below the signal. For a given logarithmic scan rate change, p is monotonically adjusted according to the above logarithmic relationship. When the logarithmic change exceeds a preset range (e.g., ...), ... >10 or If p < 0.1, p can be truncated to preset upper and lower limits within the range of (0, 0.5) to ensure the stability of AsLS iteration.

[0064] The default value range for the AsLS smoothness parameter λ is 10. 9 Up to 10 10 In this embodiment, λ = 10. 10 A larger λ value results in a smoother fitted baseline (closer to a linear or low-order polynomial) but a weaker ability to track low-frequency drift; a smaller λ value results in a baseline that closely follows data fluctuations but is more susceptible to contamination by peak signals. In practical configurations, the optimal interval can be determined by scanning the parameters of the calibration dataset, and the median value within the interval can be used as the default parameter.

[0065] Step 6: Multi-feature extraction.

[0066] Based on the determined peak positions, for each identified peak (oxidation peak E) pa With reduction peak E pc Extract the feature vector. The feature vector includes the following features: Peak current I p Take the value of the signal at the peak after baseline correction, i.e. It includes , For the reduction peak, the peak current is negative.

[0067] Peak potential E p That is, the E obtained by identification pa or E pc .

[0068] Half peak width The difference between the two potentials on either side of the peak potential, where the signal value equals half the peak current, i.e. , in and satisfy ( ) = ( ) = .

[0069] Peak area A p Numerical integration of the baseline-corrected signal is performed within an integration interval extending to the left and right by 1.5 times the full width at half maximum (FWHM), using a trapezoidal rule, for example. ,in .

[0070] Peak symmetry factor S: An ideal symmetrical peak has a value of S = 1. The degree to which S deviates from 1 reflects the asymmetry of the peak shape.

[0071] Each peak outputs a feature vector f = [I p E p W 1 / 2 A p , S p The oxidation peak and reduction peak respectively output their corresponding feature vectors f. pa with f pc .

[0072] The feature vector provides a structured input for subsequent outlier curve removal and concentration quantification, enabling the processing module to perform subsequent evaluation and analysis of CV signals from different sources and batches in a unified data format.

[0073] Figure 5 The peak current I was also marked. p Peak potential Ep Half-peak width W 1 / 2 Peak area A p The extraction method for parameters such as dynamic search intervals is consistent with the aforementioned definition.

[0074] Step 7: Remove abnormal curves.

[0075] In this embodiment, anomaly detection is performed on the output feature vector to identify and remove abnormal CV curves. This embodiment uses the following five criteria.

[0076] Criterion A (Peak Shift): If or If so, then criterion A is triggered, where , This serves as a reference peak position for historical curves from the same batch (e.g., the average peak position of normal curves from the same batch). Set a preset peak offset threshold (e.g., 50 mV).

[0077] Criterion B (abnormal redox peak current ratio): If Not here If the condition is within the specified range, then criterion B is triggered. In this embodiment... = 0.5, = 2.0. A significant deviation in the ratio of oxidation peak to reduction peak current usually indicates an abnormal change on the electrode surface that affects the Faraday process.

[0078] Criterion C (half-peak width expansion): If If so, criterion C is triggered, where For reference half-peak width, Set a preset expansion threshold (e.g., 0.3). Abnormal expansion of the full width at half maximum (FWHM) is usually associated with electrode surface contamination, poor contact, or abnormal electrochemical behavior.

[0079] Criterion D (symmetry factor out of bounds): If the symmetry factor S is not in bounds... If the condition is within the specified range, then criterion D is triggered. In this embodiment... = 0.5, = 2.0.

[0080] Criterion E (low signal-to-noise ratio in the peak region): Local signal-to-noise ratio in the peak region ,in This represents the standard deviation of the baseline-corrected signal in the non-peak region (i.e., the region excluding the potential range where the peak is located). If < If so, criterion E is triggered. In this embodiment... =5.

[0081] Anomaly detection employs a multi-criteria fusion rule: when at least two of the above five criteria are triggered simultaneously, the current curve is marked as an abnormal curve and removed from the set of curves to be processed subsequently (e.g., the calibration set used for concentration calibration); when no more than one criterion is triggered, the curve is retained.

[0082] The design of the multi-criteria fusion rule is based on the fact that single-criteria schemes have a high false alarm rate—for example, peak position shift triggering alone may be a genuine drift between electrode batches rather than an anomaly, and peak current ratio anomaly alone may be caused by fluctuations in test conditions. The strategy of parallel evaluation of multiple criteria and determining an anomaly only when at least two triggers are present can maintain a high recognition rate for multiple anomaly types while keeping the false rejection rate of normal curves at a low level.

[0083] Please see Figure 6 It shows a schematic diagram of multi-criteria decision-making for abnormal curve removal. Figure 6 The left sub-figure is the criterion trigger matrix. Rows represent the curves of each sample, and columns represent criteria A to E. Red dots indicate triggers, and green horizontal lines indicate no triggers. It can be seen that abnormal curves trigger at least two criteria, while normal curves trigger no more than one. The right sub-figure is the decision fusion logic flowchart. When the trigger count n≥2, the curve is removed; when n≤1, it is retained. This figure is consistent with the rule of "removal upon simultaneous triggering of at least two criteria" described in this embodiment.

[0084] Step 8: Concentration quantification.

[0085] In this embodiment, the concentration of the feature vectors of the curves that were not eliminated is quantified.

[0086] As a basic approach, a peak current-log concentration linear regression model is employed. Taking dopamine detection as an example, the oxidation peak current... The calibration relationship between the target analyte concentration C and the analyte concentration C is as follows: in, For reference concentration (e.g.) =1nM), a and b are calibration parameters. The calibration parameters are obtained by linear fitting after a series of measurements of standard solutions of known concentrations.

[0087] As an advanced solution, when there is sufficient available calibration data, the multiple feature vectors output by claim 5 (e.g., Io of oxidation peaks and reduction peaks) can be used. p E p W 1 / 2 A p S p Using a high-dimensional feature vector (composed of multiple features) as input, a multi-feature partial least squares regression (PLS) model is employed to establish a logarithmic value from the feature vector to the concentration. The PLS model, by projecting the latent structure, exhibits good predictive stability when there are correlations between features or when the amount of data is limited. When the amount of calibration data is insufficient, the processing module automatically reverts to the basic scheme to ensure the availability of concentration quantification.

[0088] As an equivalent replacement, the PLS model in the advanced solution can be replaced by a regression model such as support vector regression, ridge regression, or random forest.

[0089] This embodiment provides a portable electrochemical detection system, which includes a potentiostat module and a processing module.

[0090] The potentiostat module employs a unipolar digital-to-analog converter (DAC) architecture combined with a virtual ground reference circuit. The unipolar DAC (e.g., a 16-bit dual-channel voltage-output DAC, model DAC8562) outputs a unipolar scan voltage, and its digital input receives DAC command words. The virtual ground reference circuit provides a virtual ground reference potential V. vg (e.g., V) vg = 1.2 V (which can be provided by another channel of the same DAC). The control loop of the potentiostat module adjusts the working electrode potential relative to the virtual ground reference potential, so that the unipolar scan voltage output by the DAC, after being mapped by the virtual ground reference potential, forms a bidirectional scan potential with positive and negative values ​​relative to the electrochemical zero potential (virtual ground). For example, the DAC output range is 0.6 V to 1.8 V, after being mapped by V... vg = 1.2 V After mapping, the corresponding scanning potential range relative to the virtual ground is 0.6 V to +0.6 V. The circuit employs a non-inverting differential control architecture. The working electrode current is converted into a voltage signal by a transimpedance amplifier (TIA), and then sampled by an analog-to-digital converter (ADC, such as a 16-bit ADC, model ADS1115) to output a current sampling sequence. DAC updates and ADC sampling are triggered by a hardware timer to ensure timing synchronization. Each set of data is transmitted via SPI / I... 2 C-bus transmission.

[0091] The processing module is communicatively connected to the potentiostat module, receives the current sampling sequence and DAC command word sequence output by the potentiostat module, and executes the cyclic voltammetry signal processing method described in the embodiments of the present invention (which may further execute the steps in the dependent embodiments). The processing module can be deployed on a host computer (e.g., a computer or mobile terminal running with the detection system) or within an MCU (e.g., a low-power microcontroller STM32L432KBU6) to achieve embedded real-time processing. The processing module's handling of each step has been described in detail in the above method and dependent embodiments, and will not be repeated here. This embodiment provides an electronic device for processing cyclic voltammetric signals.

[0092] The electronic device includes a processor, memory, and a data interface for connecting to a potentiostat. The data interface can be a wired interface such as an SPI interface, I²C interface, UART interface, or USB interface, used to receive the current sampling sequence output by the potentiostat and a DAC command word sequence synchronized with the current sampling sequence, supporting the electronic device as an independent processing unit connected to a portable electrochemical detection system.

[0093] The memory stores a computer program that, when executed by a processor, enables the processor to complete the cyclic voltammetry signal processing method of the method embodiment (including all processing steps such as segmentation based on the monotonicity of the DAC command word sequence, baseline correction based on sign perception of the reverse scan segment, inversion point guard window interpolation connection, and segmented SG smoothing). Optionally, when the computer program is executed by the processor, it can also complete related processing steps in additional embodiments such as peak position identification, multi-feature extraction, abnormal curve removal, and concentration quantification. The memory may include volatile memory (such as RAM) and non-volatile memory (such as Flash). Intermediate variables required for data processing are stored in volatile memory, while program code and preset parameters are stored in non-volatile memory.

[0094] This embodiment provides a computer-readable storage medium storing computer program logic. The readable storage medium can be a non-volatile storage medium, including but not limited to: ROM (Read-Only Memory), Flash memory, SD card, USB storage device, solid-state drive, optical disk, etc. When the computer program is executed by a processor, it implements the cyclic voltammetry signal processing method of the method embodiment, as well as optional peak identification, multi-feature extraction, abnormal curve removal, concentration quantification, and other related processing steps in additional embodiments. The program code can be implemented using any applicable programming language such as C, C++, Python, and can run on embedded platforms or general-purpose computing platforms.

[0095] To further illustrate the content of this application, several embodiments are provided below.

[0096] End-to-end process verification experiment example.

[0097] This embodiment experimentally verifies the complete processing flow of the method described in this invention to evaluate its accuracy in extracting peak current from real flexible electrode CV test data.

[0098] Data source: CV test data of flexible sCMZ patches in 10 nM dopamine solution. Under these test conditions, data were obtained according to Randles–Šev. The theoretical oxidation peak current calculated from the ík relationship is 1.3000 mA, and the theoretical reduction peak current is... 1.0499 mA.

[0099] Experimental setup: Scan rate v = 50 mV / s; ADC sampling rate f s =100Hz; DAC scan voltage range is 0.6–1.8V (via V vg =1.2V virtual ground reference mapping, relative virtual ground is (0.6V to +0.6V); SG smoothing window length W=51, polynomial order m=3; AsLS parameter λ=10 10 p=0.05; Reversal point protection window W r =11 sampling points.

[0100] Comparison of processing methods: The same original noisy CV data was processed and peak current was extracted using two methods: Method 1 is to directly extract peak current from the original noisy CV curve (without any processing); Method 2 is the complete process described in this invention, namely, scan direction sensing segmented AsLS baseline correction (including reverse scan segment sign sensing processing and inversion point neighborhood linear interpolation) → segmented SG smoothing → adaptive peak finding.

[0101] The experimental results are shown in the table below: Experimental Conclusion: The method described in this invention reduces the extraction error of the oxidation peak current from 15.48% to 1.36% and the extraction error of the reduction peak current from 43.37% to 8.38% on real CV data of flexible electrodes. Although the reduction peak error is still higher than the oxidation peak error, it is significantly improved compared to the original signal. This result indicates that the segmented baseline correction and segmented smoothing processing method described in this invention does not introduce additional peak height error in the preprocessing stage and can further improve the stability of peak current extraction through adaptive peak finding.

[0102] Please see Figure 7 It shows a comparison of CV curves before and after end-to-end processing. Figure 7 The left subplot shows a complete comparison, where the thin gray line represents the original noisy CV, the solid blue line represents single-segment SG smoothing (without baseline correction), the solid red line represents the result of the complete process of this invention, and the black dashed line represents the true Faraday current. The right subplot is a magnified view near the oxidation peak, showing that the red curve after processing by this invention has the highest overlap with the black dashed line, while the single-segment SG smoothing results in a significantly higher peak current due to the lack of baseline correction. This figure visually demonstrates the improvement in peak current extraction accuracy achieved by the complete process of this invention.

[0103] Example of baseline correction comparison experiment.

[0104] This embodiment constructs a simulated CV dataset containing multiple baseline drift components to compare the performance differences between the scan direction-aware segmented baseline correction method described in this invention and the existing unified AsLS method, focusing on verifying the effectiveness of the reverse scan segment symbol-aware processing mechanism.

[0105] Data generation: based on Randles–Šev Based on the ideal symmetric redox peak pairs generated by the ík equation, the following three types of baseline drift components are superimposed to form the validation dataset: (a) double-layer charging current: The forward scan is +0.05mA, and the reverse scan is... At 0.05mA, polarity reversal occurs at the reversal point (this magnitude corresponds to the MBene enzyme flexible electrode at v=50mV / s). c / I p (a) ≈4% of typical cases); (b) Secondary low-frequency drift: ,in , ( (c) White noise: (at the midpoint of the scan) It is superimposed on the entire signal.

[0106] Parameter settings: Theoretical current I of oxidation peak pa =1.3000mA, theoretical current I of the reduction peak pc = 1.0499mA; v=50mV / s; f s =100Hz, 1600 sampling points per segment, total 3200 points; SG window length W=51, m=3; inversion protection window W r =11; AsLS parameter λ=10 10 p=0.05. Independent noise sequences were randomly generated each time, and a total of 20 independent experiments were conducted and the average was taken.

[0107] Comparison plan: Option A (No Baseline Correction): No baseline correction is performed; only segmented SG smoothing is applied to the original signal. Option B (Unified AsLS, No Direction Awareness): Perform AsLS baseline estimation uniformly on the entire CV curve (use asymmetric weights p = 0.05 for the forward scan segment, i.e. no scan direction awareness), and then perform segmented SG smoothing. Scheme C (Scheme of the present invention): Segmented AsLS baseline correction with scanning direction awareness (positive peak assumption is adopted for the forward scan segment, and negative peak is taken first for the reverse scan segment, and negative peak is taken after AsLS estimation). The two baseline segments are connected by linear interpolation of the neighborhood of the inversion point, and then segmented SG smoothing is performed.

[0108] The experimental results (mean ± standard deviation of 20 independent realizations) are shown in the table below: Results analysis: (1) Scheme B exhibits severe failure on the reduction peak side (error 64.23%). The reason is that: the unified AsLS uses an asymmetric weight p=0.05 for the positive scan segment to process the entire curve. For the positive oxidation peak in the positive scan segment, this weight can suppress the baseline to below the peak; however, for the negative reduction peak in the reverse scan segment, the asymmetric weighting mechanism of AsLS assigns high weight to points where "the data is lower than the current baseline estimate" (1 (p=0.95), causing the baseline to drift downwards following the negative reduction peak to approximately Around 1.0mA, the restored peak amplitude is severely compressed after baseline subtraction. This failure mode is independent of the charging current magnitude and is a structural defect of the AsLS algorithm on bidirectional scanning signals, which is one of the technical problems that this invention aims to solve.

[0109] (2) The scan direction-aware segmented AsLS in scheme C effectively avoids the above-mentioned failures. The reverse scan segment first converts the negative restored peak into a positive peak by taking the negative value, and then applies AsLS. The baseline is correctly pressed below the reverse scan segment data (approximately). (0.05mA), after subtraction, the peak amplitude was correctly restored, and the peak current error was reduced from 64.23% to 2.24%.

[0110] (3) The reversal point neighborhood interpolation connection is effective. The stable segment baseline RMSE of Scheme C is 22.32 µA, which is about 20 times lower than that of Scheme B (445.80 µA). This indicates that the segmented independent AsLS plus reversal point neighborhood linear interpolation can keep the baseline continuous at the reversal point and prevent it from being contaminated by peak signals.

[0111] Experimental conclusion: The segmented baseline correction method with scanning direction awareness described in this invention can fundamentally solve the structural defects of unified AsLS in bidirectional scanning CV signals, and significantly improve the accuracy of the extracted peak current and the stability of the baseline estimation.

[0112] Example of an experiment to remove abnormal curves.

[0113] This embodiment verifies the effectiveness of the multi-criteria fusion anomaly curve removal rule described in claim 6.

[0114] Data Construction: A calibration set of 30 CV curves was constructed, of which 24 were normal curves, corresponding to 6 concentration gradients (1 nM, 10 nM, 100 nM, 1 µM, 10 µM, 100 µM), with each concentration replicated 4 times. The calibration relationship is as follows: The other six are multi-defect anomaly curves, each designed to trigger at least two criteria simultaneously, as detailed below: Two peak position shift + peak width expansion curves (simulating poor contact): The offset is +80 mV, and the peak standard deviation σ is increased by 1.4 times (trigger criteria A and C). Two abnormal peak current ratio curves plus peak width expansion curves (simulating asymmetric contamination on the electrode surface): , Increase by 1.4 times (triggering criteria B and C); One strongly asymmetric curve with peak width expansion (simulating bubble intervention): standard deviation of the left and right half-widths of the positive scan segment. Symmetric mirror image of the reverse scan segment (trigger criteria C and D); A low signal-to-noise ratio (SNR) curve with peak width expansion (simulating a weak signal scenario): concentration C = 1 nM, noise = 0.30 mA, Increase by 1.4 times (triggering criteria C and E).

[0115] Removal rules: Criterion A (peak offset threshold 50mV), Criterion B (peak current ratio range [0.5, 2.0]), Criterion C (half-peak width expansion threshold δ=0.3), Criterion D (symmetry factor range [0.5, 2.0]), and Criterion E (peak region signal-to-noise ratio threshold 5) are used. When at least two of the five criteria are triggered simultaneously, the curve is marked as abnormal and removed.

[0116] The experimental results are shown in the table below: Results analysis: (1) All 6 abnormal curves triggered at least two criteria and were correctly removed; all 24 normal curves triggered no more than one criterion (mostly 0), and were removed without error. The "at least two" rule of multi-criterion fusion achieved both 100% recognition rate and 0% false rejection rate.

[0117] (2) The criteria combination covers a variety of different failure modes: A+C (peak position + peak width), B+C (peak ratio + peak width), C+D (peak width + symmetry), C+E (peak width + signal-to-noise ratio), indicating that the multi-criteria fusion rule is adaptable to a variety of abnormal types such as poor contact, surface contamination, bubble intervention, and weak signal.

[0118] (3) The coefficient of determination R of the calibration curve after removing outlier samples 2 The linearity improved significantly, increasing from 0.9841 to 0.9898. The normal samples in this dataset were relatively clean (R² after processing with scheme C). 2 The accuracy has already reached 0.984, so the improvement is limited; in real sweat testing scenarios, abnormal samples are expected to contaminate the calibration curve more significantly, and the improvement after removal will be greater.

[0119] Please see Figure 8 The figure shows a comparison of the calibration regression curves before and after the removal of outlier curves. The horizontal axis represents logarithmic concentration, and the vertical axis represents the oxidation peak current; green dots represent retained samples, and colored crosses represent removed outlier samples; the red dotted line represents the linear regression (R²) before removal. 2 =0.9841), the green dashed line represents the linear regression (R²) after removal. 2 =0.9898). This figure visually demonstrates the improvement in the linearity of the calibration curve after removing outlier samples.

[0120] The method and system described in this invention are not limited to the specific analytes and detection matrices given in the above embodiments, and can be widely applied to the following scenarios: Wearable monitoring of sweat dopamine; Monitoring of other electrochemically active neurotransmitters and metabolites (such as catecholamines, uric acid, ascorbic acid, etc.) in sweat; Electrochemical detection of biological fluids such as serum, saliva, and tears; Point-of-care testing (POCT) and home health monitoring equipment; Laboratory-grade portable electrochemical analyzer.

[0121] Furthermore, the segmentation concept and direction-aware processing method described in this invention are not only applicable to cyclic voltammetry (CV), but also to other voltammetry methods involving bidirectional scanning, such as differential pulse voltammetry (DPV) with triangular wave scanning. As long as there is a reversal of the scanning direction during the test and there are structural differences in the signal characteristics of the forward and reverse scanning segments, the segmentation strategy, segmented independent baseline correction, and segmented independent smoothing method based on hardware excitation signals proposed in this invention are all applicable.

[0122] Finally, it should be noted that the above embodiments are merely examples of specific implementations of the present invention, and the scope of protection of the present invention is not limited to the above content.

[0123] For example, the asymmetric least squares baseline estimation method of the present invention can be equivalently replaced by morphological opening operation baseline estimation, polynomial fitting baseline estimation or wavelet multi-resolution approximation baseline estimation, as long as the condition of "estimating the forward scan segment and the reverse scan segment independently and connecting the two baseline segments by interpolation within the reverse point protection window" is met, it falls within the scope of the present invention.

[0124] For example, the segmentation criterion of the DAC command word can be equivalently replaced by a direct segmentation method based on the MCU timer and the scanning stage flag (the MCU writes the segmentation flag when the scanning direction is reversed). As long as the segmentation criterion comes from hardware excitation rather than current data afterward, it falls within the scope of the present invention.

[0125] For example, the virtual ground reference potential is not limited to 1.2 V, but can be other reference potentials (such as 1.0 V, 1.5 V, etc.), and the corresponding scanning voltage range is adjusted accordingly; the data interface of the electronic device is not limited to SPI / I²C, but can be other interface forms with the same data receiving function; the flexible electrode is not limited to MBene nanozyme modified electrode, but can be replaced by other flexible three-electrode systems with dopamine electrochemical response.

[0126] In summary, through the step-by-step description of the method of the present invention in the above embodiments and the systematic comparison of experimental verification data, it can be seen that the cyclic voltammetry signal processing method and system for portable electrochemical detection systems described in this invention, based on the hardware excitation signal (DAC command word) as the segmentation basis, integrates the concept of "scanning direction sensing" throughout the complete signal processing chain of segmentation, baseline correction, filtering and smoothing, peak position identification, and even anomaly removal and concentration quantification. This overcomes the inherent structural defects of the prior art, which treats the CV curve as a single continuous sequence for unified processing. Its main beneficial effects can be summarized as follows: (1) The accuracy of peak current extraction is significantly improved.

[0127] On real CV test data of flexible electrodes, the processing flow of this invention reduces the extraction error of oxidation peak current from 15.48% of the original signal to 1.36%, and the extraction error of reduction peak current from 43.37% to 8.38%. This shows that the combination of segmented baseline correction and segmented smoothing described in this invention does not introduce additional peak height error and can effectively recover the peak signal that is masked by baseline contamination.

[0128] (2) The structural failure problem of baseline correction has been resolved.

[0129] On a simulated CV dataset containing double-layer charging current, low-frequency drift, and polarity reversal at the reversal point, compared with the unified AsLS method without scan direction awareness, this invention reduces the peak current extraction error from 64.23% to 2.24% and the root mean square error of the stable segment baseline from 445.80 µA to 22.32 µA through backscan segment symbol-aware processing and segmented independent baseline estimation, a reduction of approximately 20 times, verifying the structural adaptability of the method to bidirectional scan signals.

[0130] (3) The protection mechanism of the reversal point neighborhood avoids cross-segment contamination and baseline discontinuity.

[0131] This invention defines a reversal point protection window, within which no cross-segment filtering or baseline estimation is performed, and connects the two baseline segments by interpolation of the end value of the forward scan baseline and the beginning value of the reverse scan baseline, so that the baseline maintains a continuous transition at the point of scan direction reversal, avoiding the false peaks introduced by the baseline step, and eliminating the peak shape distortion and peak position shift caused by the cross-segment convolution of smoothing filtering.

[0132] (4) The multi-criteria fusion of anomaly removal rules improves calibration reliability.

[0133] In a set of 30 calibration curves containing 6 types of abnormal samples, the multi-criteria fusion rule of this invention achieves a 100% anomaly identification rate and a 0% false alarm rate for normal curves, and increases the coefficient of determination R² of the calibration curves from 0.9841 to 0.9898, indicating that it can effectively eliminate abnormal curves corresponding to multiple failure modes while maintaining a low false alarm rate, thereby improving the linearity and repeatability of concentration quantification.

[0134] (5) The algorithm has low complexity and strong interpretability, making it suitable for embedded implementation in portable devices.

[0135] The mathematical operations (difference, linear interpolation, SG convolution, AsLS iteration, etc.) involved in each processing step of this invention have low computational cost and clear parameter meanings. They can be executed in real time in a low-power microcontroller or host computer without relying on large-scale training data or deep learning models, thus meeting the resource consumption and real-time requirements of portable electrochemical detection systems.

[0136] (6) It is highly adaptable and can be extended to various testing scenarios.

[0137] This invention is robust to changes in measurement conditions such as scanning rate, electrode batch differences, and noise level. The segmented direction sensing processing concept is also applicable to other voltammetric methods involving bidirectional scanning (such as triangular wave scanning DPV), and can be applied to scenarios such as sweat dopamine, other neurotransmitters and metabolites, detection of various biological fluids, and POCT and home health monitoring.

[0138] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An adaptive processing method for cyclic voltammetric signals based on direction sensing and multi-feature correction, characterized in that, Includes the following steps: Acquire the current sampling sequence output by the potentiostat and the DAC command word sequence synchronized with the current sampling sequence; wherein, the DAC command word is mapped to a scan potential relative to the electrochemical zero potential after being mapped by a virtual ground reference potential; Based on the monotonicity of the DAC command word sequence, the forward scan segment, the reverse scan segment, and the scan direction reversal point located between them are determined, and a reversal point protection window centered on the scan direction reversal point is defined. Asymmetric least squares baseline estimation is performed independently on the forward scan segment and the reverse scan segment to obtain the forward scan baseline and the reverse scan baseline. The baseline estimation for the reverse scan segment includes: first, negating the current signal of the reverse scan segment; then, performing asymmetric least squares baseline estimation on the negated signal; finally, negating the obtained baseline to restore it. Within the reversal point protection window, the interpolation between the end value of the forward scan baseline and the beginning value of the reverse scan baseline is used as the baseline within the protection window. The obtained baseline is subtracted from the original signal to obtain the baseline-corrected signal. The forward scan segment and the reverse scan segment after baseline correction are independently smoothed using Savitzky-Golay to obtain smoothed segmented signals; wherein, the smoothing of each segment adopts an in-segment filling method at the boundary, and the smoothing operation does not cross the scan direction reversal point; Output the baseline-corrected and smoothed segmented cyclic voltammetric signal.

2. The method according to claim 1, characterized in that, After independently performing Savitzky-Golay smoothing on the baseline-corrected forward scan segment and the reverse scan segment to obtain the smoothed segmented signal, the process further includes: The first derivative of the smoothed segmented signal with respect to the scanning potential is calculated. In the forward scanning segment, the zero-crossing point where the first derivative changes from positive to negative is searched to determine the oxidation peak position. In the reverse scanning segment, the zero-crossing point where the first derivative changes from negative to positive is searched to determine the reduction peak position. The search interval adopts a dynamic interval: when there is a peak position from the previous measurement, the current search interval is determined with the previous peak position as the center and the preset potential tolerance as the radius; when it is the first measurement, the default search interval is used.

3. The method according to claim 1, characterized in that, The segment filling method is segment reflection filling; the signal within the inversion point protection window does not participate in Savitzky-Golay smoothing, and is either filtered by median or kept at its original value.

4. The method according to claim 1, characterized in that, The Savitzky-Golay smoothed window length W is based on the sampling rate. The scan rate v is determined by the following formula: Where k is the preset window coverage potential width coefficient; The asymmetric weight parameter p and the scan rate v in the asymmetric least squares baseline estimation are adaptively determined by the following formula: in, , , These are preset parameters; The smoothness parameter of the asymmetric least squares The value range is 10 9 Up to 10 10 .

5. The method according to claim 2, characterized in that, After calculating the first derivative of the smoothed segmented signal with respect to the scanning potential, searching for zero-crossing points where the first derivative changes from positive to negative in the forward scan segment to determine the oxidation peak position, and searching for zero-crossing points where the first derivative changes from negative to positive in the reverse scan segment to determine the reduction peak position, the process also includes: For each identified peak, a feature vector is extracted. The feature vector includes: peak current, peak potential, half-maximum width, peak area, and peak symmetry factor.

6. The method according to claim 5, characterized in that, After extracting feature vectors for each identified peak, an abnormal curve removal step is also included: Anomalies are determined in the current curve based on at least two of the following criteria: peak position shift, redox peak current ratio, full width at half maximum (FWHM), symmetry factor, and peak region signal-to-noise ratio. When at least two criteria are triggered simultaneously, the current curve is marked as an anomaly and removed from the subsequent processing set.

7. The method according to claim 6, characterized in that, It also includes a concentration quantification step: Concentration quantification is performed using the peak current of the curve that was not removed or its corresponding feature vector as input; the concentration quantification adopts a peak current-log concentration linear regression model, or a multi-feature partial least squares regression model when there is sufficient data.

8. A portable electrochemical detection system, characterized in that, include: The potentiostat module includes a unipolar digital-to-analog converter and a virtual ground reference circuit. The unipolar digital-to-analog converter outputs a scanning voltage, which is mapped by the virtual ground reference circuit to form a bidirectional scanning potential relative to the electrochemical zero potential. The processing module is communicatively connected to the potentiostat module and is used to receive the current sampling sequence and DAC command word sequence output by the potentiostat module, and execute the adaptive processing method for cyclic voltammetric signals based on direction sensing and multi-feature correction as described in any one of claims 1-7.

9. An electronic device for processing cyclic voltammetric signals, characterized in that, The device includes a processor, a memory, and a data interface connected to a potentiostat; the data interface is used to receive a current sampling sequence output by the potentiostat and a DAC command word sequence synchronized with the current sampling sequence; the memory stores a computer program, which, when executed by the processor, implements the adaptive processing method for cyclic voltammetric signals based on direction sensing and multi-feature correction as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the adaptive processing method for cyclic voltammetric signals based on direction perception and multi-feature correction as described in any one of claims 1-7.