[go: up one dir, main page]

CN114295704B - A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction - Google Patents

A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction Download PDF

Info

Publication number
CN114295704B
CN114295704B CN202111671385.0A CN202111671385A CN114295704B CN 114295704 B CN114295704 B CN 114295704B CN 202111671385 A CN202111671385 A CN 202111671385A CN 114295704 B CN114295704 B CN 114295704B
Authority
CN
China
Prior art keywords
curve
peak
reduction
potential
oxidation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111671385.0A
Other languages
Chinese (zh)
Other versions
CN114295704A (en
Inventor
徐莹
刘哲
孙乐圣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN202111671385.0A priority Critical patent/CN114295704B/en
Publication of CN114295704A publication Critical patent/CN114295704A/en
Application granted granted Critical
Publication of CN114295704B publication Critical patent/CN114295704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Investigating Or Analysing Biological Materials (AREA)

Abstract

本发明公开了一种基于特征参数提取的微浓度梯度溶液电化学测定方法。该方法如下:一、对微浓度梯度的多份被测溶液进行循环伏安法检测、计时电流法检测和差分脉冲伏安法检测,得到不同多份被测溶液的循环伏安检测数据、计时电流检测数据和差分脉冲伏安检测数据。二、对所得检测数据进行图形特征自动提取。三、利用特征值和对应的浓度标签得到输入数据集。四、构建浓度测定模型,利用步骤三得到的输入数据集对浓度测定模型进行训练。训练后的浓度测定模型用于对未知浓度的被测溶液进行浓度检测。本发明针对微浓度梯度检测物的电化学检测曲线重叠和高噪声问题,采用多种检测方法进行平行对比,实现检测信号的有效信息挖掘和浓度准确测定。

The invention discloses a micro-concentration gradient solution electrochemical determination method based on characteristic parameter extraction. The method is as follows: 1. Perform cyclic voltammetry detection, chronoamperometry detection and differential pulse voltammetry detection on multiple tested solutions with micro-concentration gradients, and obtain cyclic voltammetry detection data and timing of different multiple tested solutions. Current detection data and differential pulse voltammetry detection data. 2. Automatically extract graphic features from the obtained detection data. 3. Use the feature values and corresponding concentration labels to obtain the input data set. 4. Construct a concentration determination model and use the input data set obtained in step three to train the concentration determination model. The trained concentration determination model is used to detect the concentration of the tested solution with unknown concentration. Aiming at the problems of overlapping electrochemical detection curves and high noise of micro-concentration gradient detection substances, the present invention adopts multiple detection methods for parallel comparison to achieve effective information mining of detection signals and accurate concentration determination.

Description

一种基于特征参数提取的微浓度梯度溶液电化学测定方法A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction

技术领域Technical field

本发明专利属于微浓度梯度溶液快速检测方法,具体涉及一种基于电化学检测技术和特征参数提取一体化模型对微浓度梯度溶液的快速测定方法。The patent of this invention belongs to a rapid detection method for micro-concentration gradient solutions, and specifically relates to a rapid detection method for micro-concentration gradient solutions based on an integrated model of electrochemical detection technology and feature parameter extraction.

背景技术Background technique

近年来,化学制品、医药生产和食品安全等领域需要对各类微浓度梯度溶液,如抗生素、细菌抑制剂和食品添加剂等进行现场浓度测定。电化学检测技术凭借其操作简单和灵敏度高等优点越来越多的应用于特征物浓度测定。其是一种通过采集电化学响应信号并转变为可被识别与检测的电信号,最后对这些电信号进行分析和处理的一种技术,常用的电化学检测方法包括循环伏安法、计时电流法和差分脉冲伏安法等。在电化学检测应用过程中,便携式恒电位仪是电化学现场测试中不可或缺的仪器,其可以控制电极电位为设定值,以达到恒电位极化的目的。与传统的电化学工作站相比,基于便携式恒电位仪系统实现对微量特征物的循环伏安快速检测的同时,还需解决功能模块灵敏系数低的问题。基于现场检测的便携式恒电位仪系统的低灵敏度造成了检测信号具有高背景噪声,同时也造成在不同检测人员操作过程中出现微浓度梯度特征物溶液检测曲线重叠、峰形和峰高特征不明确等问题。以上问题为实现微量特征物溶液的快速识别带来巨大挑战。In recent years, fields such as chemicals, pharmaceutical production, and food safety require on-site concentration determination of various micro-concentration gradient solutions, such as antibiotics, bacterial inhibitors, and food additives. Electrochemical detection technology is increasingly used in the determination of characteristic substance concentrations due to its advantages of simple operation and high sensitivity. It is a technology that collects electrochemical response signals and converts them into electrical signals that can be identified and detected, and finally analyzes and processes these electrical signals. Commonly used electrochemical detection methods include cyclic voltammetry and chronoamperometry. method and differential pulse voltammetry, etc. In the application process of electrochemical detection, the portable potentiostat is an indispensable instrument in electrochemical field testing. It can control the electrode potential to a set value to achieve the purpose of constant potential polarization. Compared with traditional electrochemical workstations, while realizing rapid detection of cyclic voltammetry of trace features based on a portable potentiostat system, it also needs to solve the problem of low sensitivity coefficient of functional modules. The low sensitivity of the portable potentiostat system based on on-site detection results in high background noise in the detection signal. It also causes overlapping detection curves of micro-concentration gradient characteristic solution solutions and unclear peak shape and peak height characteristics during the operation of different detection personnel. And other issues. The above problems bring great challenges to the rapid identification of trace feature solutions.

为解决以上问题,实现微浓度梯度溶液的现场快速测定,提出一种针对电化学检测信号的特征参数提取一体化模型。该模型集数据预处理、特征提取、特征降维和浓度测定于一体,与传统的峰高和浓度拟合方法相比,该方法提高了对电化学检测信号的分析效率、获得了更多的检测信号所包含的信息,提升了浓度测定的准确度。目前针对电化学检测数据信号的浓度测定研究有很多,但是关于现场快速电化学检测信号的信息挖掘和微浓度梯度溶液中的电化学快速测定研究仍然具有很多量化分析需要完善。In order to solve the above problems and achieve on-site rapid measurement of micro-concentration gradient solutions, an integrated model for extracting characteristic parameters of electrochemical detection signals is proposed. This model integrates data preprocessing, feature extraction, feature dimensionality reduction and concentration determination. Compared with the traditional peak height and concentration fitting method, this method improves the analysis efficiency of electrochemical detection signals and obtains more detections. The information contained in the signal improves the accuracy of concentration determination. Currently, there are many studies on the concentration determination of electrochemical detection data signals, but there are still many quantitative analyzes that need to be improved on information mining of on-site rapid electrochemical detection signals and rapid electrochemical determination in micro-concentration gradient solutions.

发明内容Contents of the invention

本发明专利的主要目标是实现基于电化学检测技术和特征提取一体化模型对微浓度梯度溶液进行现场快速检测的方法。The main goal of the patent of this invention is to realize a method for on-site rapid detection of micro-concentration gradient solutions based on an integrated model of electrochemical detection technology and feature extraction.

基于特征提取一体化模型的微浓度梯度溶液测定方法,包括以下步骤:The micro-concentration gradient solution determination method based on the integrated feature extraction model includes the following steps:

步骤一、对微浓度梯度的多份被测溶液进行循环伏安法检测、计时电流法检测和差分脉冲伏安法检测,得到不同多份被测溶液的循环伏安检测数据、计时电流检测数据和差分脉冲伏安检测数据。Step 1: Perform cyclic voltammetry, chronoamperometry and differential pulse voltammetry on multiple test solutions with micro-concentration gradients to obtain cyclic voltammetry and chronoamperometry detection data for different multiple test solutions. and differential pulse voltammetry detection data.

步骤二、对步骤一中获得的循环伏安检测数据、计时电流检测数据和差分脉冲伏安检测数据进行图形特征提取。其中循环伏安法曲线中提取的特征包括氧化峰电流Iop、还原峰电流Irp、氧化峰电位Eop、还原峰电位Erp、氧化曲线基线斜率Ko、还原曲线基线斜率Kr、氧化峰面积So、还原峰面积Sr、起始还原电位Vir和起始氧化电位Vio。计时电流法曲线中提取的特征包括初始稳态电流时间tm和稳态电流Is。差分脉冲伏安曲线中提取的特征包括峰电位Ep和峰电流IpStep 2: Extract graphic features from the cyclic voltammetry detection data, chronoamperometric detection data and differential pulse voltammetry detection data obtained in step one. The features extracted from the cyclic voltammetry curve include oxidation peak current I op , reduction peak current I rp , oxidation peak potential E op , reduction peak potential E rp , oxidation curve baseline slope K o , reduction curve baseline slope K r , oxidation peak potential E op , reduction peak potential E rp Peak area S o , reduction peak area S r , initial reduction potential V ir and initial oxidation potential V io . The features extracted from the chronoamperometry curve include the initial steady-state current time t m and the steady-state current I s . Features extracted from the differential pulse voltammetry curve include peak potential E p and peak current I p .

步骤三、利用步骤二提取的特征值和对应的浓度标签整理成初始数据集;对所得初始数据集进行降维后,得到输入数据集。Step 3: Use the feature values and corresponding concentration labels extracted in step 2 to organize into an initial data set; after dimensionality reduction of the obtained initial data set, the input data set is obtained.

步骤四、构建浓度测定模型,利用步骤三得到的输入数据集对浓度测定模型进行训练。训练后的浓度测定模型用于对未知浓度的被测溶液进行浓度检测。Step 4: Construct a concentration measurement model, and use the input data set obtained in step 3 to train the concentration measurement model. The trained concentration determination model is used to detect the concentration of the tested solution with unknown concentration.

作为优选,循环伏安法曲线中提取的特征中,氧化峰电流Iop为循环伏安法I-V曲线上的阳极电流峰值到氧化曲线基线的高度;还原峰电流Irp为阴极电流峰值到还原曲线基线的高度;氧化峰电位Eop为的阳极电流峰值位置;还原峰电位Erp为阴极电流峰值位置;氧化曲线基线斜率Ko为氧化的基线的斜率;还原曲线基线斜率Kr为还原曲线的基线的斜率;氧化峰面积So为氧化曲线、基线和氧化峰到基线的距离三者所围面积;还原峰面积Sr为还原曲线、基线和还原峰到基线的距离三者所围面积;起始还原电位Vir为反应物发生还原反应的起始电位;起始氧化电位Vio为反应物发生氧化反应的起始电位。Preferably, among the features extracted from the cyclic voltammetry curve, the oxidation peak current I op is the height from the anode current peak on the cyclic voltammetry IV curve to the oxidation curve baseline; the reduction peak current I rp is the height from the cathode current peak to the reduction curve. The height of the baseline; the oxidation peak potential E op is the peak position of the anode current; the reduction peak potential E rp is the peak position of the cathode current; the baseline slope of the oxidation curve K o is the slope of the oxidized baseline; the baseline slope of the reduction curve K r is the reduction curve The slope of the baseline; the oxidation peak area S o is the area enclosed by the oxidation curve, the baseline and the distance from the oxidation peak to the baseline; the reduction peak area S r is the area enclosed by the reduction curve, the baseline and the distance from the reduction peak to the baseline; The initial reduction potential V ir is the starting potential of the reduction reaction of the reactant; the starting oxidation potential V io is the starting potential of the oxidation reaction of the reactant.

计时电流法曲线中提取的特征中,初始稳态电流时间tm为计时电流法I-t曲线上到达稳态电流的初始时间;稳态电流Is为I-t曲线上初始稳态电流后的中位数。Among the features extracted from the chronoamperometry curve, the initial steady-state current time t m is the initial time to reach the steady-state current on the chronoamperometry It curve; the steady-state current I s is the median after the initial steady-state current on the It curve. .

差分脉冲伏安曲线中提取的特征中,峰电位Ep为差分脉冲伏安法I-V曲线上的阳极电流峰值位置;峰电流Ip为阳极电流峰值到曲线基线的高度。Among the features extracted from the differential pulse voltammetry curve, the peak potential E p is the peak position of the anode current on the IV curve of the differential pulse voltammetry; the peak current I p is the height from the peak value of the anode current to the baseline of the curve.

作为优选,步骤二中,对循环伏安数据进行特征自动提取的过程如下:As an option, in step 2, the process of automatically extracting features from the cyclic voltammetry data is as follows:

第一步:将循环伏安检测数据等分为上下两部分,其中上半部分为氧化过程数据,下半部分为还原过程数据。Step 1: Divide the cyclic voltammetry detection data into upper and lower parts, where the upper part is the oxidation process data and the lower half is the reduction process data.

第二步:对氧化过程数据和还原过程数据分别求取拟合函数fo(x)和fr(x),得到氧化曲线和还原曲线;分别在氧化曲线和还原曲线取预设范围内的最大值和最小值,氧化曲线最大值电位为氧化峰电位Iop,还原曲线的最小值电位为还原峰电位IrpStep 2: Calculate the fitting functions f o (x) and f r (x) for the oxidation process data and reduction process data respectively to obtain the oxidation curve and reduction curve; take the oxidation curve and reduction curve respectively within the preset range. Maximum and minimum values, the maximum potential of the oxidation curve is the oxidation peak potential I op , and the minimum potential of the reduction curve is the reduction peak potential I rp .

第三步:分别在氧化曲线和还原曲线求峰电位前的拟合函数的一阶导数,取两个一阶导数的中位数点为基线斜率,分别为氧化曲线基线斜率Ko和还原曲线基线斜率Kr。同时,两个中位数点的原始电位为起始响应电位,分别为起始氧化电位Vio和起始还原电位VirStep 3: Find the first-order derivative of the fitting function before the peak potential in the oxidation curve and the reduction curve respectively. Take the median point of the two first-order derivatives as the baseline slope, which are the baseline slope K o of the oxidation curve and the reduction curve respectively. Baseline slope K r . At the same time, the original potentials of the two median points are the initial response potentials, which are the initial oxidation potential V io and the initial reduction potential V ir respectively.

第四步:以起始响应电位为切点,再加上第三步求取的基线斜率分别在平滑曲线内确定氧化曲线基线Lo(x)和还原曲线基线Lr(x)。Step 4: Taking the initial response potential as the tangent point, plus the baseline slope obtained in the third step, determine the oxidation curve baseline L o (x) and the reduction curve baseline L r (x) within the smooth curve.

第五步:分别取峰位置点到基线的高度为峰电流,分别作为氧化峰电流Iop和还原峰电流IrpStep 5: Take the height from the peak position point to the baseline as the peak current, respectively, as the oxidation peak current I op and the reduction peak current I rp .

第六步:取起始响应电位到峰位置范围内,拟合函数和基线的差值积分为峰面积,分别为氧化峰面积So和还原峰面积SrStep 6: Take the range from the initial response potential to the peak position, and integrate the difference between the fitting function and the baseline as the peak area, which are the oxidation peak area S o and the reduction peak area S r respectively.

作为优选,步骤二中,对计时电流数据进行特征自动提取的过程如下:As a preference, in step 2, the process of automatically extracting features from the chronoamperometric data is as follows:

第一步:对计时电流检测数据求取拟合函数f(x)。The first step: Find the fitting function f(x) for the chronocurrent detection data.

第二步:求取拟合函数的一阶导数,获得微分数组。Step 2: Find the first derivative of the fitting function and obtain the differential array.

第三步:利用后一个数据点的微分值减去前一个,形成微分差值数组。Step 3: Use the differential value of the next data point to subtract the previous one to form a differential difference array.

第四步:获取微分差值数组中的第一个负值,该点表明检测数据增速变缓,同时说明电流值开始达到稳态,判定该数据点的位置为初始稳态电流时间。Step 4: Obtain the first negative value in the differential difference array. This point indicates that the growth rate of the detection data has slowed down and that the current value has begun to reach a steady state. The position of this data point is determined to be the initial steady-state current time.

第五步:取从初始稳态电流时间到响应结束这段范围内的电流值中位数为稳态电流。Step 5: Take the median current value in the range from the initial steady-state current time to the end of the response as the steady-state current.

作为优选,步骤二中,对差分脉冲伏安数据进行特征自动提取的过程如下:As an option, in step 2, the process of automatically extracting features from differential pulse voltammetry data is as follows:

第一步:对差分脉冲伏安检测数据求取拟合函数f(x)。The first step: Find the fitting function f(x) for the differential pulse voltammetry detection data.

第二步:取预设范围内的电流最大值的相应位置为峰电位。Step 2: Take the corresponding position of the maximum current value within the preset range as the peak potential.

第三步:求取峰电位前拟合函数的一阶导数,取一阶导数的中位数点为基线斜率,原始点位置为基线与拟合函数间的切点。Step 3: Find the first-order derivative of the fitting function before the peak potential, take the median point of the first-order derivative as the baseline slope, and the original point position as the tangent point between the baseline and the fitting function.

第四步:在平滑曲线内确定基线,取峰位置点到基线的高度为峰电流。Step 4: Determine the baseline within the smooth curve, and take the height from the peak position point to the baseline as the peak current.

作为优选,所述的被测溶液为铁氰化钾/亚铁氰化钾溶液。Preferably, the tested solution is potassium ferricyanide/potassium ferrocyanide solution.

作为优选,步骤一中,在被测溶液中构建三电极系统;三电极系统以纳米金修饰电极为工作电极,Ag/AgCl电极为参比电极,铂丝电极为辅助电极,配合便携式恒电位仪构成现场快速电化学检测平台,实现循环伏安法检测、计时电流法检测和差分脉冲伏安法检测。As a preferred method, in step 1, a three-electrode system is constructed in the solution to be measured; the three-electrode system uses a nanogold modified electrode as the working electrode, an Ag/AgCl electrode as the reference electrode, and a platinum wire electrode as the auxiliary electrode, in conjunction with a portable potentiostat. It constitutes an on-site rapid electrochemical detection platform to realize cyclic voltammetry detection, chronoamperometry detection and differential pulse voltammetry detection.

作为优选,针对步骤一中所得的循环伏安法I-V曲线、计时电流法I-t曲线和差分脉冲伏安法I-V曲线,均利用递推平均滤波方法进行平滑去噪处理,提高原始数据的信噪比,便于后续特征提取操作。As a preferred method, the cyclic voltammetry I-V curve, chronoamperometry I-t curve and differential pulse voltammetry I-V curve obtained in step 1 are all smoothed and denoised using the recursive average filtering method to improve the signal-to-noise ratio of the original data. , to facilitate subsequent feature extraction operations.

作为优选,步骤三中的降维方法具体采用非线性降维算法t-SNE。As a preference, the dimensionality reduction method in step three specifically uses the nonlinear dimensionality reduction algorithm t-SNE.

作为优选,步骤四中所述的浓度测定模型通过XGBoost算法构建。Preferably, the concentration determination model described in step 4 is constructed through the XGBoost algorithm.

本发明的有益效果是:The beneficial effects of the present invention are:

本发明提出了一种基于电化学检测技术的特征提取一体化模型,针对微浓度梯度检测物的电化学检测曲线重叠和高噪声问题,采用多种检测方法进行平行对比,实现检测信号的有效信息挖掘和浓度准确测定。基于现场便携式电化学工作站的电化学检测信号具有高背景噪声,降低了检测灵敏度,因此采用递推平均滤波法对原始检测信号进行平滑去噪处理以提高信号的信噪比,利于后续的检测数据分析。针对平滑处理后原始信号的图形特征进行自动提取,在先前的研究基础上挖掘更多有用的检测信号数据信息。利用t-SNE对特征集进行降维操作,最后将降维后的数据集输入预测模型中进行,对微浓度梯度溶液的浓度进行准确测定。相较于传统电化学分析方法,该方法创新性地将多种电化学方法测试过程下的数据定量化,对信号检测、信号预处理、信号特征提取、特征降维和浓度测定集成一体化,通过多电化学方法下的特征提取和可视化分析工具等提高了对电化学检测信号的分析效率,获得了更多检测信号所包含的有用信息,实现了微浓度梯度溶液的快速准确测定。The present invention proposes an integrated feature extraction model based on electrochemical detection technology. Aiming at the problems of overlapping electrochemical detection curves and high noise of micro-concentration gradient detection substances, multiple detection methods are used for parallel comparison to achieve effective information of detection signals. Excavation and concentration are accurately determined. The electrochemical detection signal based on the on-site portable electrochemical workstation has high background noise, which reduces the detection sensitivity. Therefore, the recursive average filtering method is used to smooth and denoise the original detection signal to improve the signal-to-noise ratio of the signal, which is beneficial to subsequent detection data. analyze. Automatically extract the graphic features of the smoothed original signal and mine more useful detection signal data information based on previous research. Use t-SNE to perform a dimensionality reduction operation on the feature set, and finally input the dimensionally reduced data set into the prediction model to accurately measure the concentration of the micro-concentration gradient solution. Compared with traditional electrochemical analysis methods, this method innovatively quantifies data from the testing process of multiple electrochemical methods and integrates signal detection, signal preprocessing, signal feature extraction, feature dimensionality reduction and concentration determination. Feature extraction and visual analysis tools under multi-electrochemical methods improve the analysis efficiency of electrochemical detection signals, obtain more useful information contained in detection signals, and achieve rapid and accurate determination of micro-concentration gradient solutions.

附图说明Description of the drawings

图1为本发明整体框架图;Figure 1 is an overall framework diagram of the present invention;

图2a为循环伏安法(CV)算法流程图;Figure 2a is the flow chart of the cyclic voltammetry (CV) algorithm;

图2b为计时电流法(CA)算法流程图;Figure 2b is the flow chart of the chronoamperometry (CA) algorithm;

图2c为差分脉冲伏安法(DPV)算法流程图;Figure 2c is a flow chart of the differential pulse voltammetry (DPV) algorithm;

图3为递推平均滤波算法流程图;Figure 3 is the flow chart of the recursive average filtering algorithm;

图4a为循环伏安曲线特征参数表示图;Figure 4a is a diagram showing the characteristic parameters of the cyclic voltammetry curve;

图4b为计时电流曲线特征参数表示图;Figure 4b is a diagram showing the characteristic parameters of the chronocurrent curve;

图4c为差分脉冲伏安曲线特征参数表示图;Figure 4c is a diagram showing the characteristic parameters of the differential pulse voltammetry curve;

图5为电化学信号特征自动提取算法流程图;Figure 5 is a flow chart of the automatic extraction algorithm for electrochemical signal features;

图6为微浓度梯度铁氰化钾/亚铁氰化钾溶液CV曲线示意图;Figure 6 is a schematic diagram of the CV curve of a micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution;

图7a为平滑处理前示意图;Figure 7a is a schematic diagram before smoothing processing;

图7b为平滑处理后示意图;Figure 7b is a schematic diagram after smoothing processing;

图8为t-SNE降维可视化效果图;Figure 8 shows the visualization effect of t-SNE dimensionality reduction;

图9为XGBoost模型对微浓度梯度溶液浓度的预测结果图;Figure 9 shows the prediction results of the XGBoost model on the concentration of micro-concentration gradient solutions;

具体实施方式Detailed ways

以下结合附图对本发明进行进一步说明:The present invention will be further described below in conjunction with the accompanying drawings:

本发明提出基于电化学检测技术和特征提取一体化模型对微浓度梯度溶液进行现场快速检测的方法。The present invention proposes a method for on-site rapid detection of micro-concentration gradient solutions based on an integrated model of electrochemical detection technology and feature extraction.

如图1所示,该特征提取一体化模型对微浓度梯度溶液进行快速测定方法,包括以下步骤:As shown in Figure 1, this integrated feature extraction model performs a rapid determination method for micro-concentration gradient solutions, including the following steps:

步骤一:以纳米金修饰电极为工作电极,Ag/AgCl电极为参比电极,铂丝电极为辅助电极,三者构成三电极系统,配合便携式恒电位仪构成现场快速电化学检测平台。Step 1: Use the nano-gold modified electrode as the working electrode, the Ag/AgCl electrode as the reference electrode, and the platinum wire electrode as the auxiliary electrode. The three constitute a three-electrode system, and cooperate with a portable potentiostat to form an on-site rapid electrochemical detection platform.

步骤二:以0.1M PBS缓冲液为支持电解质,对微浓度梯度的铁氰化钾/亚铁氰化钾溶液进行重复性交叉循环伏安法检测、计时电流法检测和差分脉冲伏安法检测以获取实验数据。Step 2: Using 0.1M PBS buffer as the supporting electrolyte, perform repeated cross-cyclic voltammetry detection, chronoamperometry detection and differential pulse voltammetry detection on the micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution. to obtain experimental data.

步骤三:针对检测信号,利用递推平均滤波(MAF)方法进行平滑去噪处理,提高原始数据的信噪比,便于后续特征提取操作。Step 3: For the detection signal, use the recursive average filtering (MAF) method to perform smoothing and denoising to improve the signal-to-noise ratio of the original data and facilitate subsequent feature extraction operations.

步骤四:对平滑处理后的原始数据进行图形特征自动提取,在保证特征之间具有相对独立性的同时,尽可能地囊括更多的数据信息。Step 4: Automatically extract graphic features from the smoothed original data to include as much data information as possible while ensuring relative independence between features.

步骤五:将提取的特征值和对应浓度整理成数据集,利用非线性降维算法t-SNE降低特征维度,整理成模型输入数据集。Step 5: Organize the extracted feature values and corresponding concentrations into a data set, use the nonlinear dimensionality reduction algorithm t-SNE to reduce the feature dimension, and organize it into a model input data set.

步骤六:利用步骤五处理后的数据集训练浓度测定模型,基于训练好的模型进行浓度准确测定。Step 6: Use the data set processed in Step 5 to train the concentration measurement model, and conduct accurate concentration measurement based on the trained model.

本发明的具体过程:The specific process of the present invention:

步骤一:洗净的玻碳电极(GCE)浸入含0.1%HAuCl4的0.1MH2SO4电解质溶液中,在-200mV(vs.Ag/AgCl)单电位模式下进行电化学沉积,沉积时间为30s。取出后用水冲洗,晾干备用,即得纳米金修饰电极(AuNPs/GCE)。Step 1: The cleaned glassy carbon electrode (GCE) is immersed in 0.1MH 2 SO 4 electrolyte solution containing 0.1% HAuCl 4 , and electrochemical deposition is performed in -200mV (vs.Ag/AgCl) single potential mode. The deposition time is 30s. After taking it out, rinse it with water and dry it for later use to obtain the gold nanoparticle modified electrode (AuNPs/GCE).

步骤二:以0.1M PBS缓冲液为支持电解质,配制微浓度梯度铁氰化钾/亚铁氰化钾溶液,梯度间隔为1mM。以纳米金修饰电极为工作电极,Ag/AgCl电极为参比电极,铂丝电极为辅助电极,三者构成三电极系统,基于便携式恒电位仪电化学检测平台上对微浓度梯度铁氰化钾/亚铁氰化钾溶液进行重复性循环伏安、计时电流法和差分脉冲伏安检测,每个浓度在同一条件下进行重复性50次三种方法的测定。Step 2: Use 0.1M PBS buffer as the supporting electrolyte to prepare a micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution with a gradient interval of 1mM. Using nano-gold modified electrode as the working electrode, Ag/AgCl electrode as the reference electrode, and platinum wire electrode as the auxiliary electrode, the three constitute a three-electrode system. Based on the portable potentiostat electrochemical detection platform, micro-concentration gradient potassium ferricyanide is detected. /Potassium ferrocyanide solution was subjected to repeated cyclic voltammetry, chronoamperometry and differential pulse voltammetry. Each concentration was measured repeatedly 50 times under the same conditions.

如图2所示,为循环伏安法、计时电流法和差分脉冲伏安法算法流程图。利用该便携式恒电位仪系统进行循环伏安响应的具体算法步骤为:As shown in Figure 2, it is the algorithm flow chart of cyclic voltammetry, chronoamperometry and differential pulse voltammetry. The specific algorithm steps for using this portable potentiostat system to perform cyclic voltammetry response are:

1)在PC上位机界面选择循环伏安法,输入相关参数包括:初始电位Init E、上限电位High E、下限电位Low E、扫描速度Scan Rate、扫描段数Sweep Segments、采样间隔Sample Interval等;1) Select the cyclic voltammetry method on the PC host computer interface, and input relevant parameters including: initial potential Init E, upper limit potential High E, lower limit potential Low E, scanning speed Scan Rate, number of scanning segments Sweep Segments, sampling interval Sample Interval, etc.;

2)通过DAC模块向工作电极和辅助电极两端施加一个线性的交变初始电压;2) Apply a linear alternating initial voltage to both ends of the working electrode and auxiliary electrode through the DAC module;

3)以预设的扫描速度V(V/s)对大肠杆菌溶液中的氧化还原反应进行正向扫描,并通过ADC模块对氧化还原反应的电流和电位信息进行记录。3) Perform forward scanning on the redox reaction in the E. coli solution at the preset scanning speed V (V/s), and record the current and potential information of the redox reaction through the ADC module.

4)同时持续判断当前电位是否到达上限电位,如果当前电位没有到达上限电位,则继续对氧化还原反应的电流和电位信息进行记录;若检测到当前电位已达到上限电位,则以扫描速度V(V/s)的负值对检测溶液中的氧化还原反应进行反向扫描,通过ADC模块对氧化还原反应的电流和电位信息进行记录。4) At the same time, continue to judge whether the current potential has reached the upper limit potential. If the current potential has not reached the upper limit potential, continue to record the current and potential information of the redox reaction; if it is detected that the current potential has reached the upper limit potential, scan at the scanning speed V ( V/s) reversely scans the redox reaction in the detection solution, and records the current and potential information of the redox reaction through the ADC module.

5)继续判断当前电位是否到达预设下限电位,如果当前电位没有到达下限电位,则继续对氧化还原反应的电流和电位信息进行记录;若检测到当前电位已达到下限电位,则保存数据,退出检测;5) Continue to determine whether the current potential has reached the preset lower limit potential. If the current potential has not reached the lower limit potential, continue to record the current and potential information of the redox reaction; if it is detected that the current potential has reached the lower limit potential, save the data and exit. detection;

6)将检测得到的CV曲线在PC上位机中显示,并对检测数据进行保存。6) Display the detected CV curve on the PC host computer and save the detection data.

利用计时电流法对大肠杆菌溶液进行浓度测试和成分分析的算法步骤为:The algorithm steps for using chronoamperometry to conduct concentration testing and composition analysis of E. coli solutions are:

1)在PC上位机界面选择计时电流法,输入相关参数包括:初始电位Init E、上限电位High E、下限电位Low E、阶跃次数Stepnum、脉冲宽度Pulse Width、采样间隔SampleInterval等;1) Select the chronoamperometry method on the PC host computer interface, and input relevant parameters including: initial potential Init E, upper limit potential High E, lower limit potential Low E, number of steps Stepnum, pulse width Pulse Width, sampling interval SampleInterval, etc.;

2)通过DAC模块向工作电极上施加恒电位,也即上限电位,促使电极表面发生氧化还原反应,反应物逐渐被消耗,电极附近的扩散层厚度増加,产生较大的电流密度;2) A constant potential, that is, the upper limit potential, is applied to the working electrode through the DAC module, which promotes a redox reaction on the electrode surface, the reactants are gradually consumed, and the thickness of the diffusion layer near the electrode increases, resulting in a larger current density;

3)在氧化还原过程中,对反应电流和电位进行n次采样,采样间隔不变,并通过ADC模块对氧化还原反应的电流和电位信息进行记录;3) During the redox process, the reaction current and potential are sampled n times with the sampling interval unchanged, and the current and potential information of the redox reaction are recorded through the ADC module;

4)在第一段阶跃脉冲内采样完成后,阶跃次数同时减一,若此时阶跃次数不为零,则通过DAC模块向工作电极上施加下限电位,电极表面同样会发生氧化还原反应并产生较大的电流密度,同时对反应电流和电位进行n次采样,采样间隔不变,并通过ADC模块对氧化还原反应的电流和电位信息进行记录;4) After the sampling in the first step pulse is completed, the number of steps is reduced by one at the same time. If the number of steps is not zero at this time, the lower limit potential is applied to the working electrode through the DAC module, and oxidation and reduction will also occur on the electrode surface. React and generate a large current density, sample the reaction current and potential n times at the same time, the sampling interval remains unchanged, and record the current and potential information of the redox reaction through the ADC module;

5)此时继续判断阶跃次数是否为零,若不为零则从2)重新开始继续检测,直至阶跃次数为零为止;若阶跃次数为零,则保存数据,退出检测;5) At this time, continue to judge whether the number of steps is zero. If it is not zero, restart the detection from 2) until the number of steps is zero; if the number of steps is zero, save the data and exit the detection;

6)将所测得的CA曲线在PC上位机中显示,并对CA曲线进行分析。6) Display the measured CA curve on the PC host computer and analyze the CA curve.

利用差分脉冲伏安法对大肠杆菌溶液进行浓度测试和成分分析的算法步骤为:The algorithm steps for using differential pulse voltammetry to conduct concentration testing and composition analysis of E. coli solutions are:

1)在PC上位机界面选择差分脉冲伏安法,输入相关参数包括:在PC上位机界面选择计时电流法,输入相关参数包括:初始电位Init E、终点电位Final E、电位增量Incr E、振幅Amplitude、脉冲宽度Pulse Width、采样间隔Sample Width、采样周期Pulse Period等;1) Select differential pulse voltammetry on the PC host computer interface, and input relevant parameters include: Select chronoamperometry on the PC host computer interface, and enter relevant parameters including: initial potential Init E, endpoint potential Final E, potential increment Incr E, Amplitude, pulse width Pulse Width, sampling interval Sample Width, sampling period Pulse Period, etc.;

2)在检测过程中,ADC模块会在每一段脉冲电压的后期测定氧化还原反应产生的法拉第电流。通过DAC模块向工作电极上施加一个初始电位,利用定时器延时(PulsePeriod-Pulse Width-Sample Width)s后对法拉第电流和电位进行采样,采样时长为(Sample Width)s。采样完成后DAC模块向工作电极上施加一个阶跃电位,该阶跃电位是在初始电位的基础上加上一个预设的振幅电位形成;2) During the detection process, the ADC module will measure the Faradaic current generated by the redox reaction at the end of each pulse voltage. An initial potential is applied to the working electrode through the DAC module, and the Faraday current and potential are sampled after a timer delay of (PulsePeriod-Pulse Width-Sample Width)s. The sampling time is (Sample Width)s. After the sampling is completed, the DAC module applies a step potential to the working electrode. The step potential is formed by adding a preset amplitude potential to the initial potential;

3)利用定时器以阶跃电位延时(Pulse Width-Sample Width)s后,在其后期测定法拉第反应电流并进行采样,采样时长为(Sample Width)s。采样完成后DAC模块向工作电极上施加一个新的阶跃电位,该阶跃电位是在初始电位的基础上增加一个预设的电位增量而形成新的初始电位;3) Use a timer to delay (Pulse Width-Sample Width) s with a step potential, and measure the Faradaic reaction current at a later stage and perform sampling. The sampling time is (Sample Width) s. After the sampling is completed, the DAC module applies a new step potential to the working electrode. This step potential adds a preset potential increment to the initial potential to form a new initial potential;

4)判断此时新的初始电位是否等于终止电位,若不相等从步2)重新开始检测;若相等则保存检测数据,退出检测。4) Determine whether the new initial potential is equal to the end potential at this time. If not, restart detection from step 2); if equal, save the detection data and exit detection.

步骤三:在获取到原始电化学检测信号数据后,由于便携式恒电位仪系统本身存在灵敏度不够高,易受环境干扰等缺点,利用递推平均滤波算法进行平滑去噪处理。在连续域下,递推平均滤波算法的表达式为:Step 3: After obtaining the original electrochemical detection signal data, since the portable potentiostat system itself has shortcomings such as insufficient sensitivity and susceptibility to environmental interference, the recursive average filtering algorithm is used for smoothing and denoising. In the continuous domain, the expression of the recursive average filtering algorithm is:

其中,Tw为滑动窗长度,该参数为影响平滑滤波性能的重要参数。Among them, T w is the length of the sliding window, which is an important parameter that affects the performance of smoothing filtering.

由上式可得递推平均滤波算法的传递函数为:From the above formula, we can get the transfer function of the recursive average filtering algorithm as:

由式(2)得递推平均滤波器的幅频表达式:From equation (2), the amplitude-frequency expression of the recursive average filter is obtained:

利用窗口将离散的电化学检测数据分为N个小的区间,在区间内进行平均计算。具体的递推平均滤波算法流程图如图3所示。Use the window to divide the discrete electrochemical detection data into N small intervals, and perform average calculations within the intervals. The specific recursive average filtering algorithm flow chart is shown in Figure 3.

平滑滤波操作会提高原始数据的信噪比,便于后续特征提取操作。The smoothing filtering operation will improve the signal-to-noise ratio of the original data and facilitate subsequent feature extraction operations.

步骤四:获取到平滑处理后的电化学检测数据进行特征自动提取,如图4为电化学测定曲线特征参数表示图。Step 4: Obtain the smoothed electrochemical detection data and automatically extract features. Figure 4 shows the characteristic parameters of the electrochemical measurement curve.

特征参数的选取遵循如下几个原则:(1)体现实验结果的信息差异性;(2)易于计算分析;(3)参数之间相互独立。依照以上要求提取循环伏安曲线中峰电流、峰电位、峰面积、基线斜率和和起始响应电位等特征,提取计时电流法中初始稳态电流时间和稳态电流,提取差分脉冲伏安法中峰电位和峰电流特征。表1为所提取特征参数及详细描述。The selection of characteristic parameters follows the following principles: (1) reflects the information difference of the experimental results; (2) is easy to calculate and analyze; (3) the parameters are independent of each other. According to the above requirements, extract features such as peak current, peak potential, peak area, baseline slope and initial response potential in the cyclic voltammetry curve, extract the initial steady-state current time and steady-state current in the chronoamperometry, and extract the differential pulse voltammetry. Mid-peak potential and peak current characteristics. Table 1 shows the extracted feature parameters and detailed description.

表1三种检测方法所提取特征参数及详细描述Table 1 Feature parameters extracted by three detection methods and detailed descriptions

依据特征表示图构建特征自动提取算法,算法流程图如图5所示。An automatic feature extraction algorithm is constructed based on the feature representation diagram. The algorithm flow chart is shown in Figure 5.

循环伏安曲线特征自动提取过程展开为以下步骤:The automatic extraction process of cyclic voltammetry curve features is expanded to the following steps:

第一步:将去噪平滑处理后的循环伏安检测数据等分为上下两部分,其中上半部分为氧化曲线,下半部分为还原曲线。Step 1: Divide the denoised and smoothed cyclic voltammetry detection data into two parts: the upper part is the oxidation curve, and the lower part is the reduction curve.

第二步:对氧化曲线和还原曲线分别求取拟合函数fo(x)和fr(x)。分别在氧化曲线和还原曲线取一定范围内的最大值和最小值,氧化曲线最大值电位为氧化峰电位(Iop),还原曲线的最小值电位为还原峰电位(Irp)。Step 2: Obtain the fitting functions f o (x) and fr (x) for the oxidation curve and reduction curve respectively. Take the maximum and minimum values within a certain range in the oxidation curve and the reduction curve respectively. The maximum potential of the oxidation curve is the oxidation peak potential (I op ), and the minimum potential of the reduction curve is the reduction peak potential (I rp ).

第三步:分别求峰位置前拟合函数的一阶导数,取一阶导数的中位数点为基线斜率,为氧化曲线基线斜率(Ko)和还原曲线基线斜率(Kr)。同时该点的原始电位为起始响应电位,分别为起始氧化电位(Vio)和起始还原电位(Vir)。Step 3: Find the first-order derivative of the fitting function before the peak position, and take the median point of the first-order derivative as the baseline slope, which is the baseline slope of the oxidation curve (K o ) and the baseline slope of the reduction curve (K r ). At the same time, the original potential at this point is the initial response potential, which are the initial oxidation potential (V io ) and the initial reduction potential (V ir ) respectively.

第四步:以起始响应电位为切点,再加上第三步求取的基线斜率分别在平滑曲线内确定氧化曲线基线Lo(x)和还原曲线基线Lr(x)。Step 4: Taking the initial response potential as the tangent point, plus the baseline slope obtained in the third step, determine the oxidation curve baseline L o (x) and the reduction curve baseline L r (x) within the smooth curve.

第五步:分别取峰位置点到基线的高度为峰电流,判定为氧化峰电流(Iop)和还原峰电流(Irp)。Step 5: Take the height from the peak position point to the baseline as the peak current, and determine it as the oxidation peak current (I op ) and reduction peak current (I rp ).

第六步:取起始响应电位到峰位置范围内,拟合函数和基线的差值积分为峰面积,分别为氧化峰面积(So)和氧化峰面积(Sr)。Step 6: Take the range from the initial response potential to the peak position, and integrate the difference between the fitting function and the baseline as the peak area, which are the oxidation peak area (S o ) and the oxidation peak area (S r ) respectively.

计时电流曲线特征自动提取过程展开为以下步骤:The automatic extraction process of chronocurrent curve features is expanded to the following steps:

第一步:对去噪平滑处理后的计时电流检测数据求取拟合函数f(x)。The first step: Obtain the fitting function f(x) for the denoised and smoothed chronocurrent detection data.

第二步:求取拟合函数的一阶导数,获得微分数组。Step 2: Find the first derivative of the fitting function and obtain the differential array.

第三步:利用后一个数据点的微分值减去前一个,形成微分差值数组。Step 3: Use the differential value of the next data point to subtract the previous one to form a differential difference array.

第四步:获取微分差值数组中的第一个负值,该点表明检测数据增速变缓,同时说明电流值开始达到稳态。判定该数据点的位置为初始稳态电流时间。Step 4: Obtain the first negative value in the differential difference array. This point indicates that the growth rate of the detection data has slowed down, and it also indicates that the current value has begun to reach a steady state. The position of this data point is determined to be the initial steady-state current time.

第五步:取从初始稳态电流时间到响应结束这段范围内的电流值中位数为稳态电流。Step 5: Take the median current value in the range from the initial steady-state current time to the end of the response as the steady-state current.

差分脉冲伏安曲线特征自动提取过程展开为以下步骤:The automatic extraction process of differential pulse voltammetry curve features is expanded to the following steps:

第一步:对去噪平滑处理后的差分脉冲伏安检测数据求取拟合函数f(x)。The first step: Obtain the fitting function f(x) for the denoised and smoothed differential pulse voltammetry detection data.

第二步:取范围内的电流最大值的相应位置为峰电位。Step 2: Take the corresponding position of the maximum current value within the range as the peak potential.

第三步:求取峰电位前拟合函数的一阶导数,取一阶导数的中位数点为基线斜率,原始点位置为基线与拟合函数间的切点。Step 3: Find the first-order derivative of the fitting function before the peak potential, take the median point of the first-order derivative as the baseline slope, and the original point position as the tangent point between the baseline and the fitting function.

第四步:在平滑曲线内确定基线,去峰位置点到基线的高度为峰电流。Step 4: Determine the baseline within the smooth curve, and the height from the peak position point to the baseline is the peak current.

根据以上步骤即可将循环伏安、计时电流和差分脉冲伏安曲线的所有重要特征自动提取出来,并生成特征集。According to the above steps, all important features of cyclic voltammetry, chronocurrent and differential pulse voltammetry curves can be automatically extracted and a feature set can be generated.

步骤五:利用t-SNE算法对步骤四生成的特征参数集进行降维操作,并进行可视化。具体降维过程可展开为以下步骤:Step 5: Use the t-SNE algorithm to perform dimensionality reduction and visualization on the feature parameter set generated in Step 4. The specific dimensionality reduction process can be expanded into the following steps:

第一步:计算不同检测样本特征之间的欧几里得距离。假设所有样本的特征集为m×n的二维矩阵,表达为:The first step: Calculate the Euclidean distance between the features of different detection samples. Assume that the feature set of all samples is an m×n two-dimensional matrix, expressed as:

其中m表示检测样本数量,n为特征数。 Where m represents the number of detection samples, and n is the number of features.

依据公式||xi-xj||2,计算每两组样本之间的欧几里得距离,得到新的m×n的二维矩阵,表达式为:According to the formula ||x i -x j || 2 , calculate the Euclidean distance between each two groups of samples and obtain a new m×n two-dimensional matrix. The expression is:

其中,dij表示第i个样本和第j个样本之间特征行向量的欧几里得距离。 Among them, d ij represents the Euclidean distance of the feature row vector between the i-th sample and the j-th sample.

第二步:将欧几里得距离转换为特征条件分布概率。将第一步求取的特征向量间欧几里得距离转换为表示相似性的条件概率pi|j,pi|j计算公式为:Step 2: Convert Euclidean distance to characteristic conditional distribution probability. Convert the Euclidean distance between feature vectors obtained in the first step into the conditional probability p i|j representing similarity. The calculation formula of p i|j is:

其中,λi为以xi为中心的高斯方差。Among them, λ i is the Gaussian variance centered on xi .

第三步:对条件概率pi|j进行求和并做归一化处理,得到具有对称性的联合概率pij,转换公式如下:Step 3: Sum and normalize the conditional probabilities p i|j to obtain the symmetric joint probability p ij . The conversion formula is as follows:

第四步:计算低维特征条件分布概率qij,在低维子空间中采用t分布表示对样本yi和yj之间的相似度。qij的计算公式如下:Step 4: Calculate the low-dimensional feature conditional distribution probability q ij , and use the t distribution in the low-dimensional subspace to represent the similarity between samples yi and y j . The calculation formula of q ij is as follows:

第五步:利用梯度下降法求解t-SNE的匹配代价函数,表达式为:Step 5: Use the gradient descent method to solve the matching cost function of t-SNE. The expression is:

C=∑iKL(Pi|Qi) (7)C=∑ i KL(P i |Q i ) (7)

最终得到低维子空间对应检测样本Y=(y1,y2,…,yN)。Finally, the low-dimensional subspace corresponding detection sample Y = (y 1 , y 2 ,..., y N ) is obtained.

步骤六:依据步骤五中降维处理后的数据集训练浓度测定模型,基于训练好的模型进行浓度准确测定。采用XGBoost算法训练浓度测定模型,并从中抽取部分数据集对训练好的模型进行测试,验证模型性能。Step 6: Train the concentration measurement model based on the dimensionally reduced data set in step 5, and conduct accurate concentration measurement based on the trained model. The XGBoost algorithm is used to train the concentration measurement model, and some data sets are extracted from it to test the trained model and verify the model performance.

XGBoost算法的目标函数为:The objective function of the XGBoost algorithm is:

其中,为损失函数,∑kΩ(fk)为复杂函数,且Ω(fk)=γT+1/2γ||ω||2in, is the loss function, ∑ k Ω(f k ) is a complex function, and Ω(f k )=γT+1/2γ||ω|| 2 .

利用二阶泰勒展开目标函数得:Using the second-order Taylor expansion of the objective function, we get:

其中,为前t-1棵树的预测误差,为常数。in, is the prediction error of the first t-1 trees, which is a constant.

记,则目标函数可以转换为:remember, Then the objective function can be converted into:

可得目标函数:Obtainable objective function:

其中,最终目标函数的值为一棵CART树的得分,而整个XGBoost的预测结果为所有CART的得分总和。in, The value of the final objective function is the score of a CART tree, and the prediction result of the entire XGBoost is the sum of the scores of all CARTs.

实施例:Example:

以便携式恒电位仪系统为检测平台,基于电化学检测技术和特征提取参数一体化模型实现对51~60mM的微浓度梯度铁氰化钾/亚铁氰化钾溶液现场快速测定,过程如下:Using the portable potentiostat system as the detection platform, based on the integrated model of electrochemical detection technology and feature extraction parameters, the on-site rapid measurement of 51-60mM micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution is realized. The process is as follows:

(1)首先在便携式恒电位仪系统下对51~60mM,1mM等浓度间隔的铁氰化钾/亚铁氰化钾溶液进行循环伏安法、计时电流法和差分脉冲伏安法重复性交叉检测,共获得1500组实验数据。如图6为一组微浓度梯度铁氰化钾/亚铁氰化钾溶液CV曲线示意图,插图所示为对下峰位进行十倍放大图,检测曲线具有周期性的信号干扰,因此在一定情况下造成了检测曲线混叠现象。(1) First, perform cyclic voltammetry, chronoamperometry and differential pulse voltammetry on potassium ferricyanide/potassium ferrocyanide solutions with equal concentration intervals of 51 to 60mM and 1mM under a portable potentiostat system. Detection, a total of 1500 sets of experimental data were obtained. Figure 6 is a schematic diagram of a set of CV curves of a micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution. The inset shows a ten-fold magnification of the lower peak. The detection curve has periodic signal interference, so under certain conditions In this case, the detection curve aliasing phenomenon is caused.

(2)获得的检测数据自动传输到平滑处理模块,利用递推平均滤波模块对电化学检测数据进行平滑处理,以微浓度梯度铁氰化钾/亚铁氰化钾溶液的循环伏安曲线为例,如图7所示,递推平均滤波后的检测数据更加平滑,梯度更为明显。(2) The obtained detection data are automatically transferred to the smoothing processing module, and the electrochemical detection data is smoothed using the recursive average filtering module. The cyclic voltammetry curve of the micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution is: For example, as shown in Figure 7, the detection data after recursive average filtering is smoother and the gradient is more obvious.

(3)然后采用一体化模型中的特征自动提取模块对平滑处理后的检测信号进行相应的特征提取。循环伏安曲线自动提取峰电流、峰电位、峰面积、基线斜率和和起始响应电位等特征,提取计时电流法中初始稳态电流时间和稳态电流,提取差分脉冲伏安法中峰电位和峰电流特征,并整理成特征集。(3) Then use the automatic feature extraction module in the integrated model to extract corresponding features from the smoothed detection signal. The cyclic voltammetry curve automatically extracts features such as peak current, peak potential, peak area, baseline slope and initial response potential, extracts the initial steady-state current time and steady-state current in chronoamperometry, and extracts peak potential in differential pulse voltammetry. and peak current characteristics, and organized into feature sets.

(4)为提高浓度测定的准确度,降低特征集的冗余度,对生成的特征集进行二维t-SNE降维,图8为降维后的可视化结果,可以看出,相同浓度的检测数据聚集在一起,浓度与浓度之间也具有较为清晰的分界线。(4) In order to improve the accuracy of concentration measurement and reduce the redundancy of the feature set, two-dimensional t-SNE dimensionality reduction was performed on the generated feature set. Figure 8 shows the visualization result after dimensionality reduction. It can be seen that the same concentration The detection data are gathered together, and there is a clear dividing line between concentrations.

(5)利用XGBoost算法构建浓度预测模型。将t-SNE降维处理后的特征集的80%为训练集,剩余数据集为测试集,其中将浓度为53mmol/L、56mmol/L和59mmol/L的数据集设置为不经训练的盲浓度预测集。测试集的预测结果如图9所示,各浓度下的样本预测值和实际值基本吻合,其中3组未经训练的盲浓度集也具有较好的预测效果(如箭头所指),实际浓度与预测浓度间的拟合度(R-Squared)为0.957。(5) Use the XGBoost algorithm to build a concentration prediction model. 80% of the feature set after t-SNE dimensionality reduction processing is the training set, and the remaining data set is the test set. The data sets with concentrations of 53mmol/L, 56mmol/L, and 59mmol/L are set as blind without training. Concentration prediction set. The prediction results of the test set are shown in Figure 9. The predicted values of the samples at each concentration are basically consistent with the actual values. Among them, the three untrained blind concentration sets also have good prediction effects (as pointed by the arrows). The actual concentration The degree of fit (R-Squared) to the predicted concentration was 0.957.

综上,本实例提供了一种基于电化学检测技术和特征提取参数一体化模型实现微浓度梯度溶液的快速测定方法。一体化模型操作步骤为:首先对微浓度梯度铁氰化钾/亚铁氰化钾溶液进行循环伏安法、计时电流法和差分脉冲伏安法重复性交叉检测,共获得1500组数据;其次,利用递推平均滤波模块对检测数据进行平滑处理;接下来,对三种电化学检测方法的检测数据进行特征自动提取操作,其中循环伏安曲线自动提取峰电流、峰电位、峰面积、基线斜率和和起始响应电位等特征,提取计时电流法中初始稳态电流时间和稳态电流,提取差分脉冲伏安法中峰电位和峰电流特征,并整理成特征集;然后,利用t-SNE降维将特征集降至二维,进行可视化分析,降低预测模型复杂度;最后将处理后的特征集输入预测模型中,实现了较好的浓度预测效果,实际浓度与预测浓度间的拟合度(R-Squared)为0.957。因此,该方法实现了电化学检测数据的快速特征分析及微浓度梯度溶液的现场快速测定。In summary, this example provides a method for rapid determination of micro-concentration gradient solutions based on an integrated model of electrochemical detection technology and feature extraction parameters. The operation steps of the integrated model are: first, perform repetitive cross-detection of cyclic voltammetry, chronoamperometry and differential pulse voltammetry on the micro-concentration gradient potassium ferricyanide/potassium ferrocyanide solution, and obtain a total of 1500 sets of data; secondly, , use the recursive average filtering module to smooth the detection data; next, perform automatic feature extraction operations on the detection data of the three electrochemical detection methods, in which the peak current, peak potential, peak area, and baseline are automatically extracted from the cyclic voltammetry curve. Characteristics such as slope and initial response potential are extracted, and the initial steady-state current time and steady-state current in chronoamperometry are extracted. Peak potential and peak current characteristics in differential pulse voltammetry are extracted and organized into feature sets; then, using t- SNE dimensionality reduction reduces the feature set to two dimensions, performs visual analysis, and reduces the complexity of the prediction model; finally, the processed feature set is input into the prediction model to achieve better concentration prediction effects, and the simulation between the actual concentration and the predicted concentration is achieved. The R-Squared degree is 0.957. Therefore, this method realizes rapid feature analysis of electrochemical detection data and on-site rapid determination of micro-concentration gradient solutions.

Claims (3)

1.一种基于特征参数提取的微浓度梯度溶液电化学测定方法,其特征在于:步骤一、对微浓度梯度的多份被测溶液进行循环伏安法检测、计时电流法检测和差分脉冲伏安法检测,得到不同多份被测溶液的循环伏安检测数据、计时电流检测数据和差分脉冲伏安检测数据;1. An electrochemical measurement method for micro-concentration gradient solutions based on feature parameter extraction, which is characterized by: Step 1. Perform cyclic voltammetry detection, chronoamperometry detection and differential pulse voltammetry on multiple measured solutions in micro-concentration gradients. Amperometric detection, obtain cyclic voltammetry detection data, chronoamperometry detection data and differential pulse voltammetry detection data of different multiple solutions to be tested; 步骤二、对步骤一中获得的循环伏安检测数据、计时电流检测数据和差分脉冲伏安检测数据进行图形特征提取;其中循环伏安曲线中提取的特征包括氧化峰电流Iop、还原峰电流Irp、氧化峰电位Eop、还原峰电位Erp、氧化曲线基线斜率Ko、还原曲线基线斜率Kr、氧化峰面积So、还原峰面积Sr、起始还原电位Vir和起始氧化电位Vio;计时电流曲线中提取的特征包括初始稳态电流时间tm和稳态电流Is;差分脉冲伏安曲线中提取的特征包括峰电位Ep和峰电流IpStep 2: Extract graphical features from the cyclic voltammetry detection data, chronoamperometry detection data and differential pulse voltammetry detection data obtained in step 1; the features extracted from the cyclic voltammetry curve include oxidation peak current I op and reduction peak current I rp , oxidation peak potential E op , reduction peak potential E rp , oxidation curve baseline slope K o , reduction curve baseline slope K r , oxidation peak area S o , reduction peak area S r , initial reduction potential V ir and starting Oxidation potential V io ; the features extracted from the chronoamperometric curve include the initial steady-state current time t m and the steady-state current I s ; the features extracted from the differential pulse voltammetry curve include the peak potential E p and the peak current I p ; 步骤三、利用步骤二提取的特征值和对应的浓度标签整理成初始数据集;对所得初始数据集进行降维后,得到输入数据集;Step 3: Use the feature values extracted in Step 2 and the corresponding concentration labels to organize into an initial data set; after dimensionality reduction of the initial data set, the input data set is obtained; 步骤四、构建浓度测定模型,利用步骤三得到的输入数据集对浓度测定模型进行训练;训练后的浓度测定模型用于对未知浓度的被测溶液进行浓度检测;Step 4: Construct a concentration determination model, and use the input data set obtained in step 3 to train the concentration determination model; the trained concentration determination model is used to detect the concentration of the measured solution of unknown concentration; 循环伏安曲线中提取的特征中,氧化峰电流Iop为循环伏安法I-V曲线上的阳极电流峰值到氧化曲线基线的高度;还原峰电流Irp为阴极电流峰值到还原曲线基线的高度;氧化峰电位Eop为的阳极电流峰值位置;还原峰电位Erp为阴极电流峰值位置;氧化曲线基线斜率Ko为氧化的基线的斜率;还原曲线基线斜率Kr为还原曲线的基线的斜率;氧化峰面积So为氧化曲线、基线和氧化峰到基线的距离三者所围面积;还原峰面积Sr为还原曲线、基线和还原峰到基线的距离三者所围面积;起始还原电位Vir为反应物发生还原反应的起始电位;起始氧化电位Vio为反应物发生氧化反应的起始电位;Among the features extracted from the cyclic voltammetry curve, the oxidation peak current I op is the height from the anode current peak on the cyclic voltammetry IV curve to the oxidation curve baseline; the reduction peak current I rp is the height from the cathode current peak to the reduction curve baseline; The oxidation peak potential E op is the peak position of the anode current; the reduction peak potential E rp is the peak position of the cathode current; the oxidation curve baseline slope K o is the slope of the oxidation baseline; the reduction curve baseline slope K r is the slope of the baseline of the reduction curve; The oxidation peak area S o is the area surrounded by the oxidation curve, the baseline and the distance from the oxidation peak to the baseline; the reduction peak area S r is the area surrounded by the reduction curve, the baseline and the distance from the reduction peak to the baseline; the initial reduction potential V ir is the starting potential of the reduction reaction of the reactant; the starting oxidation potential V io is the starting potential of the oxidation reaction of the reactant; 计时电流曲线中提取的特征中,初始稳态电流时间tm为计时电流法I-t曲线上到达稳态电流的初始时间;稳态电流Is为I-t曲线上初始稳态电流后的中位数;Among the features extracted from the chronoamperometry curve, the initial steady-state current time t m is the initial time to reach the steady-state current on the chronoamperometry It curve; the steady-state current I s is the median after the initial steady-state current on the It curve; 差分脉冲伏安曲线中提取的特征中,峰电位Ep为差分脉冲伏安法I-V曲线上的阳极电流峰值位置;峰电流Ip为阳极电流峰值到曲线基线的高度;Among the features extracted from the differential pulse voltammetry curve, the peak potential E p is the peak position of the anode current on the IV curve of the differential pulse voltammetry; the peak current I p is the height from the peak value of the anode current to the baseline of the curve; 针对步骤一中所得的循环伏安法I-V曲线、计时电流法I-t曲线和差分脉冲伏安法I-V曲线,均利用递推平均滤波方法进行平滑去噪处理,提高原始数据的信噪比,便于后续特征提取操作;For the cyclic voltammetry I-V curve, chronoamperometry I-t curve and differential pulse voltammetry I-V curve obtained in step 1, the recursive average filtering method is used for smoothing and denoising to improve the signal-to-noise ratio of the original data and facilitate follow-up. Feature extraction operations; 步骤二中,对循环伏安数据进行特征自动提取的过程如下:In step two, the process of automatic feature extraction from cyclic voltammetry data is as follows: 第一步:将循环伏安检测数据等分为上下两部分,其中上半部分为氧化过程数据,下半部分为还原过程数据;Step 1: Divide the cyclic voltammetry detection data into upper and lower parts, where the upper part is the oxidation process data and the lower half is the reduction process data; 第二步:对氧化过程数据和还原过程数据分别求取拟合函数fo(x)和fr(x),得到氧化曲线和还原曲线;分别在氧化曲线和还原曲线取预设范围内的最大值和最小值,氧化曲线最大值电位为氧化峰电位Iop,还原曲线的最小值电位为还原峰电位IrpStep 2: Calculate the fitting functions f o (x) and f r (x) for the oxidation process data and reduction process data respectively to obtain the oxidation curve and reduction curve; take the oxidation curve and reduction curve respectively within the preset range. Maximum and minimum values, the maximum potential of the oxidation curve is the oxidation peak potential I op , and the minimum potential of the reduction curve is the reduction peak potential I rp ; 第三步:分别在氧化曲线和还原曲线求峰电位前的拟合函数的一阶导数,取两个一阶导数的中位数点为基线斜率,分别为氧化曲线基线斜率Ko和还原曲线基线斜率Kr;同时,两个中位数点的原始电位为起始响应电位,分别为起始氧化电位Vio和起始还原电位VirStep 3: Find the first-order derivative of the fitting function before the peak potential in the oxidation curve and the reduction curve respectively. Take the median point of the two first-order derivatives as the baseline slope, which are the baseline slope K o of the oxidation curve and the reduction curve respectively. Baseline slope K r ; at the same time, the original potentials of the two median points are the initial response potentials, which are the initial oxidation potential V io and the initial reduction potential V ir respectively; 第四步:以起始响应电位为切点,再加上第三步求取的基线斜率分别在平滑曲线内确定氧化曲线基线Lo(x)和还原曲线基线Lr(x);Step 4: Taking the initial response potential as the tangent point, plus the baseline slope obtained in the third step, determine the oxidation curve baseline L o (x) and the reduction curve baseline L r (x) within the smooth curve respectively; 第五步:分别取峰位置点到基线的高度为峰电流,分别作为氧化峰电流Iop和还原峰电流IrpStep 5: Take the height from the peak position point to the baseline as the peak current, respectively, as the oxidation peak current I op and the reduction peak current I rp ; 第六步:取起始响应电位到峰位置范围内,拟合函数和基线的差值积分为峰面积,分别为氧化峰面积So和还原峰面积SrStep 6: Take the range from the initial response potential to the peak position, and integrate the difference between the fitting function and the baseline as the peak area, which are the oxidation peak area S o and the reduction peak area S r respectively; 步骤二中,对计时电流数据进行特征自动提取的过程如下:In step two, the process of automatically extracting features from the chronocurrent data is as follows: 第一步:对计时电流检测数据求取拟合函数f(x);Step 1: Find the fitting function f(x) for the chronocurrent detection data; 第二步:求取拟合函数的一阶导数,获得微分数组;Step 2: Find the first derivative of the fitting function and obtain the differential array; 第三步:利用后一个数据点的微分值减去前一个,形成微分差值数组;Step 3: Use the differential value of the next data point to subtract the previous one to form a differential difference array; 第四步:获取微分差值数组中的第一个负值,其表明检测数据增速变缓,同时说明电流值开始达到稳态,判定该数据点的位置为初始稳态电流时间;Step 4: Obtain the first negative value in the differential difference array, which indicates that the growth rate of the detection data has slowed down, and also indicates that the current value has begun to reach a steady state, and the position of this data point is determined to be the initial steady-state current time; 第五步:取从初始稳态电流时间到响应结束这段范围内的电流值中位数为稳态电流;Step 5: Take the median current value in the range from the initial steady-state current time to the end of the response as the steady-state current; 步骤二中,对差分脉冲伏安数据进行特征自动提取的过程如下:In step two, the process of automatic feature extraction from differential pulse voltammetry data is as follows: 第一步:对差分脉冲伏安检测数据求取拟合函数f(x);Step 1: Find the fitting function f(x) for the differential pulse voltammetry detection data; 第二步:取预设范围内的电流最大值的相应位置为峰电位;Step 2: Take the corresponding position of the maximum current value within the preset range as the peak potential; 第三步:求取峰电位前拟合函数的一阶导数,取一阶导数的中位数点为基线斜率,原始点位置为基线与拟合函数间的切点;Step 3: Find the first-order derivative of the fitting function before the peak potential, take the median point of the first-order derivative as the baseline slope, and the original point position as the tangent point between the baseline and the fitting function; 第四步:在平滑曲线内确定基线,取峰位置点到基线的高度为峰电流;Step 4: Determine the baseline within the smooth curve, and take the height from the peak position point to the baseline as the peak current; 步骤三中的降维方法具体采用非线性降维算法t-SNE;步骤四中所述的浓度测定模型通过XGBoost算法构建。The dimensionality reduction method in step three specifically uses the nonlinear dimensionality reduction algorithm t-SNE; the concentration measurement model described in step four is constructed through the XGBoost algorithm. 2.根据权利要求1所述的一种基于特征参数提取的微浓度梯度溶液电化学测定方法,其特征在于:所述的被测溶液为铁氰化钾/亚铁氰化钾溶液。2. A micro-concentration gradient solution electrochemical determination method based on characteristic parameter extraction according to claim 1, characterized in that: the measured solution is potassium ferricyanide/potassium ferrocyanide solution. 3.根据权利要求1所述的一种基于特征参数提取的微浓度梯度溶液电化学测定方法,其特征在于:步骤一中,在被测溶液中构建三电极系统;三电极系统以纳米金修饰电极为工作电极,Ag/AgCl电极为参比电极,铂丝电极为辅助电极,配合便携式恒电位仪构成现场快速电化学检测平台,实现循环伏安法检测、计时电流法检测和差分脉冲伏安法检测。3. A micro-concentration gradient solution electrochemical determination method based on characteristic parameter extraction according to claim 1, characterized in that: in step one, a three-electrode system is constructed in the measured solution; the three-electrode system is modified with nano-gold The electrode is the working electrode, the Ag/AgCl electrode is the reference electrode, and the platinum wire electrode is the auxiliary electrode. Together with the portable potentiostat, it forms an on-site rapid electrochemical detection platform to realize cyclic voltammetry detection, chronoamperometry detection and differential pulse voltammetry. Legal testing.
CN202111671385.0A 2021-12-31 2021-12-31 A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction Active CN114295704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111671385.0A CN114295704B (en) 2021-12-31 2021-12-31 A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111671385.0A CN114295704B (en) 2021-12-31 2021-12-31 A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction

Publications (2)

Publication Number Publication Date
CN114295704A CN114295704A (en) 2022-04-08
CN114295704B true CN114295704B (en) 2023-11-14

Family

ID=80974053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111671385.0A Active CN114295704B (en) 2021-12-31 2021-12-31 A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction

Country Status (1)

Country Link
CN (1) CN114295704B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004053476A1 (en) * 2002-12-09 2004-06-24 Otre Ab Simplified signal processing method for voltammetry
CN101614690A (en) * 2009-07-27 2009-12-30 中国科学院长春应用化学研究所 A multi-channel electrochemical analyzer
CN111537576A (en) * 2020-04-16 2020-08-14 中国科学院化学研究所 Methods for the detection of neurochemical substances in the brain
CN111563558A (en) * 2020-05-13 2020-08-21 宿州学院 Rapid identification method for producing area and brand of wine
WO2021237974A1 (en) * 2020-05-26 2021-12-02 江苏大学 Volt-ampere electronic tongue-based device and method for rapid testing of physical and chemical indicators of soybean sauce

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004053476A1 (en) * 2002-12-09 2004-06-24 Otre Ab Simplified signal processing method for voltammetry
CN101614690A (en) * 2009-07-27 2009-12-30 中国科学院长春应用化学研究所 A multi-channel electrochemical analyzer
CN111537576A (en) * 2020-04-16 2020-08-14 中国科学院化学研究所 Methods for the detection of neurochemical substances in the brain
CN111563558A (en) * 2020-05-13 2020-08-21 宿州学院 Rapid identification method for producing area and brand of wine
WO2021237974A1 (en) * 2020-05-26 2021-12-02 江苏大学 Volt-ampere electronic tongue-based device and method for rapid testing of physical and chemical indicators of soybean sauce

Also Published As

Publication number Publication date
CN114295704A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
JP7090184B2 (en) Biometric concentration measurement method using artificial intelligence deep learning learning
CN108088885B (en) A kind of soil heavy metal electrochemical in-situ detection system and detection method
CN105388201A (en) Three-electrode integrated electrochemical sensor based on microelectrode array
Ye et al. Analyzing the anodic stripping square wave voltammetry of heavy metal ions via machine learning: Information beyond a single voltammetric peak
CN1952645B (en) Binode polarization curve method for measuring electrochemical characteristic and corrosion resistance of metal
CN107422014B (en) Modified electrode and preparation method and detection method for detection of alkaline phosphatase
Uchida et al. Linear sweep voltammetry with non-triangular waveforms: New opportunities in electroanalysis
CN101021518A (en) Method for detecting plant electric signal in green house and special equipment thereof
CN103558374B (en) Quick pesticide residue detector with current-mode immunosensor
CN118038981A (en) Method and measuring instrument for extracting Cq value based on curvature change of qPCR amplification curve
CN114295704B (en) A micro-concentration gradient solution electrochemical determination method based on feature parameter extraction
CN110084420B (en) Method for detecting total sugar, total acid and alcoholic strength of yellow water in strong aromatic Chinese spirit fermentation
CN110044993A (en) A kind of mercury ion fax sense analyzing detecting method based on III auxiliary mark object of excision enzyme circulation and Host-guest Recognition
CN109884146B (en) Method for rapidly identifying vintage by electrochemical impedance spectroscopy
CN102901759A (en) Thin layer detection pool for detecting serotonins and metabolites in urine sample, and its manufacturing method
CN110618176A (en) Method for electrochemically detecting selenium (IV) by using dendritic nano-gold modified glassy carbon electrode
WO2000020855A1 (en) Analysis of mixtures
CN116165280A (en) A method and system for real-time monitoring of internal defects in laser cladding process
CN105466979B (en) Plant organic molecule on-line measuring device and method
CN111982992B (en) Method and system for automatic detection of glucose with wide range and high precision
CN111537576A (en) Methods for the detection of neurochemical substances in the brain
CN109614954B (en) A Qualitative Classification Method for Hyperspectral Migration of Heavy Metal Pollution in Soil
CN101654651A (en) Device and method for detecting state of anchorage-dependent cell in culture dish
CN115096968A (en) A biological substance detection system, method, device, equipment and storage medium
CN115824997B (en) Method for realizing kerogen functional group identification of deposition environment based on FTIR

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant