Method for obtaining chromatographic peak height, oil chromatographic analysis method, terminal and medium
The detection section and baseline width were determined by the plaque method, and the chromatographic peak vertices and reference lines in the transformer oil chromatography online monitoring device were extracted, solving the problem of inaccurate gas detection caused by baseline drift and spectral distortion, and achieving accurate and rapid acquisition of gas concentration values.
Patent Information
- Application Number
- CN202510139291.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2045-02-08
AI Technical Summary
The existing transformer oil chromatography online monitoring devices are prone to baseline drift and spectral pattern deformity under external interference, resulting in inaccurate gas detection concentration and false alarms and missed reports.
The detection section of the target gas is determined by using the guidian method, and the peak vertex and reference line of the chromatographic peak are extracted based on the baseline width. The maximum peak detection is performed in the detection section by using the guidian method to obtain the chromatographic peak height of the target gas.
Accurately identify the distribution of chromatographic peaks in the chromatographic curve, accurately extract the peak peak position, improve the accuracy and rapidity of obtaining gas concentration values, avoid misjudgment under baseline drift and spectral distortion, and improve the applicability of the device in an interfering environment.
Smart Images

Figure CN119574774B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of detection, and particularly relates to a method for obtaining chromatographic peak height, an oil chromatographic analysis method, a terminal, and a computer storage medium. Background Art
[0002] With the continuous improvement of the requirements for power supply reliability, the requirements for transformer oil chromatographic monitoring devices are also continuously increasing; for example, according to the requirements of "GB / T 7252-2001 Guide for the Analysis and Judgment of Dissolved Gases in Transformer Oil", the on-line oil chromatographic monitoring system must be able to analyze 7 kinds of gases valuable for judging internal faults of electrical equipment, including hydrogen, carbon monoxide, carbon dioxide, methane, ethane, ethylene, and acetylene, and the system can complete a complete sampling analysis within 1 hour, and ensure the real-time and accuracy of data; for another example, in "Q / GDW 10536-2021 Technical Specification for On-line Monitoring Devices of Dissolved Gases in Transformer Oil", it is required that the minimum detection concentration of hydrogen in oil chromatography is 2uL / L, and that of acetylene is 0.2uL / L, etc.
[0003] Existing on-line transformer oil chromatographic monitoring devices can generally meet the above requirements under normal circumstances; however, when the detection environment is interfered by external factors, or when in the field working conditions of outdoor substations, the stability of the column oven temperature of the chromatographic column, the sensitivity of the detection sensor, the signal-to-noise ratio index of the detection circuit, the carrier gas pressure, the flow stability, etc. will be disturbed, resulting in phenomena such as baseline drift and chromatogram distortion in the chromatograms obtained by the on-line transformer oil chromatographic monitoring device, causing great difficulties in the automatic analysis of chromatograms, and in severe cases, the automatic analysis of chromatograms will go wrong, resulting in errors in the inversion of gas concentration in transformer oil, and then extremely likely to cause false warnings or missed warnings of gas content in transformer oil, that is, "false alarms and missed reports".
[0004] Therefore, when problems such as baseline drift and chromatogram distortion occur in the chromatogram, how to improve the accuracy of gas detection concentration and the accuracy of chromatogram analysis has become a technical problem to be solved in this field. Summary of the Invention
[0005] In view of the above-mentioned drawbacks in the prior art, the purpose of the present invention is to provide a method for obtaining chromatographic peak height, an oil chromatographic analysis method, a terminal, and a computer storage medium, which are used to solve the problems that when problems such as baseline drift and chromatogram distortion occur in the prior art, the gas detection concentration is inaccurate, and then "false alarms and missed reports" and other problems are caused.
[0006] To achieve the above object and other related objects, the present invention provides a method for obtaining chromatographic peak height in the first aspect, including:
[0007] Determine the detection section and baseline width corresponding to the target gas; use the gnomon method, in combination with the baseline width, to perform the maximum peak detection of chromatographic peaks within the detection section, so as to extract the peak apex and reference line of the chromatographic peak corresponding to the target gas; based on the distribution of the peak apex and the distribution of the reference line, extract the peak height of the chromatographic peak corresponding to the target gas; wherein, the gnomon method is a method of performing curved section interception on the chromatographic curve based on the gnomon section, and in the intercepted curved section, extracting the table section corresponding to the gnomon section; the gnomon section is a line segment formed by the first sampling point and the second sampling point on the chromatographic curve, and the width is the baseline width; the table section is the line segment with the largest distance between the chromatographic curve and the gnomon section.
[0008] In an embodiment of the present invention, the implementation manner of extracting the peak apex and reference line of the chromatographic peak corresponding to the target gas includes:
[0009] Based on the detection section, extract the target curved section corresponding to the target gas; in the target curved section, use the gnomon method to extract each gnomon section in the target curved section and extract the table section corresponding to the gnomon section; by comparing the lengths of each table section, determine the gnomon section corresponding to the longest table section as the reference line of the target gas; take the farthest sampling point corresponding to the gnomon section as the peak apex of the chromatographic peak corresponding to the target gas.
[0010] In an embodiment of the present invention, the extraction method of the gnomon section includes:
[0011] Among the sampling points of the target curved section, determine the current first gnomon point; among the sampling points after the first gnomon point, search for the second gnomon point so that the line segment distance between the first gnomon point and the second gnomon point is the same as the baseline width; detect whether the second gnomon point is the tail sampling point in the target curved section; if not, set the line segment between the current first gnomon point and the second gnomon point as a gnomon section; at the same time, and take the current second sampling point as the new first gnomon point to re-perform the extraction of the gnomon section based on the new first gnomon point.
[0012] In an embodiment of the present invention, for a single gnomon section, the extraction method of the corresponding table section includes:
[0013] In the target curved section, extract the search spectral section corresponding to the current gnomon section; determine each sampling point in the search spectral section, and extract the distance between each sampling point and the current gnomon section; extract the sampling point with the largest distance, and take the line segment between this sampling point and the current gnomon section in the perpendicular direction as the table section corresponding to the current gnomon section.
[0014] In an embodiment of the present invention, the determination method of the detection section corresponding to the target gas includes:
[0015] Take the starting time of the peak corresponding to the target gas as the start time; take a time period that is after the start time and has a duration greater than the peak width of the target gas as the detection section; or determine the starting time and trailing time of the peak corresponding to the target gas according to the peak width time of the target gas; set the time period with a start time earlier than the starting time of the peak and an end time later than the trailing time as the detection section.
[0016] In an embodiment of the present invention, the method for determining the baseline width corresponding to the target gas includes:
[0017] Shrink the peak width of the target gas according to a preset shrinkage factor to obtain the baseline width.
[0018] To achieve the above and other related objectives, the present invention provides an oil chromatographic analysis method in a second aspect, including:
[0019] Based on the baseline width corresponding to the target gas, extract the peak height of the chromatographic peak corresponding to each target gas from the chromatographic curve; combine the peak height of the chromatographic peak with a pre-constructed mapping relationship to obtain the gas concentration value corresponding to each target gas; wherein, the peak height is extracted by using any of the above chromatographic peak height acquisition methods.
[0020] In an embodiment of the present invention, before obtaining the gas concentration value corresponding to each target gas, the oil chromatographic analysis method further includes:
[0021] Detect whether there is an overlap between the detection sections corresponding to each target gas. When there is an overlap, adjust the baseline width to separate each detection section from each other.
[0022] In an embodiment of the present invention, before extracting the peak height of the chromatographic peak corresponding to each target gas, it further includes: performing a smoothing process on the chromatographic detection data to construct the chromatographic curve based on the processed data.
[0023] The present invention further provides a terminal, including: a processor and a memory, the memory is communicatively connected to the processor; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory so that the terminal executes any of the above chromatographic peak height acquisition methods or the oil chromatographic analysis method.
[0024] The present invention finally further provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements any of the above chromatographic peak height acquisition methods or the oil chromatographic analysis method.
[0025] As described above, the method for obtaining chromatographic peak height, the oil chromatographic analysis method, the terminal, and the computer storage medium provided by the present invention extract the peak vertex of the chromatographic peak corresponding to the target gas and the distribution between the peak vertex and the reference line by using the gnomon method to perform the maximum peak detection within the detection section, and obtain the peak height of the chromatographic peak corresponding to the target gas, so as to accurately identify the distribution of the chromatographic peaks corresponding to each target gas in the chromatographic curve and accurately extract the peak top position of the chromatographic peak. Furthermore, the concentration value corresponding to the target gas can be accurately and quickly obtained, effectively avoiding the misjudgment of the chromatographic peak position and the chromatographic peak height during the analysis of chromatograms such as baseline drift and chromatogram distortion in the existing methods, and improving the applicability of the oil chromatographic on-line monitoring device in an interference environment. Description of the Drawings
[0026] Figure 1 It shows a schematic diagram of the chromatographic peak described in the present application in an embodiment;
[0027] Figure 2 It shows a schematic diagram of the chromatographic peak described in the present application in another embodiment;
[0028] Figure 3 It shows a schematic flowchart of the method for obtaining the chromatographic peak value provided by the present application in an embodiment;
[0029] Figure 4 It shows a schematic flowchart of step S200 described in the present application in an embodiment;
[0030] Figure 5 It shows a schematic diagram of the gnomon section and the corresponding table section in the target section described in the present application;
[0031] Figure 6 It shows a schematic flowchart of the implementation manner of extracting each gnomon section in the target curve according to the preset baseline width based on each sampling point described in the present application in an embodiment;
[0032] Figure 7 It shows a schematic flowchart of the extraction manner of the table section corresponding to a single gnomon section described in the present application in an embodiment;
[0033] Figure 8 It shows a schematic flowchart of the oil chromatographic analysis method provided by the present application in an embodiment;
[0034] Figure 9 It shows a schematic flowchart of the oil chromatographic analysis method provided by the present application in another embodiment;
[0035] Figure 10 It shows a schematic flowchart of the oil chromatographic analysis method provided by the present application in yet another embodiment;
[0036] Figure 11 It shows the schematic flowchart of step S30 in an embodiment of the present application;
[0037] Figure 12 It shows the schematic structural diagram of the electronic terminal provided by the present application in an embodiment. Specific embodiments
[0038] The following uses specific specific examples to illustrate the embodiments of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0039] It should be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, thus the diagrams.
[0040] For the convenience of understanding the technical solutions and technical effects in the present application, the following is a brief description:
[0041] 1) Baseline, which represents the signal detected when only the pure carrier gas passes through the chromatographic detector, that is, the benchmark for quantitative measurement, usually a horizontal straight line;
[0042] 2) Chromatographic curve, that is, chromatogram, which refers to the relationship curve of the signal intensity recorded by the detector when the carrier gas (mixed with other substances) passes through the detector and changes with time in chromatographic analysis;
[0043] 3) Chromatographic peak, which is the relationship curve between the signal obtained when the carrier gas is mixed with a specific substance and passes through the detector together and time;
[0044] 4) Peak width, that is, the peak base, which is the line segment formed by the two tangents formed by the curves on both sides of the chromatographic peak at the inflection points and intersecting on the baseline;
[0045] 5) Peak width time, which is the time period corresponding to the peak width on the time axis, that is, the entire time period required for the chromatographic peak of a specific component to start to appear and completely leave the detector.
[0046] 5) Peak height, that is, the vertical distance between the highest point of the chromatographic peak and the peak base;
[0047] 6) Retention time, which is the time required for a specific compound to reach the highest point of the sample component peak from the start of injection;
[0048] 7) Peak start time refers to the moment when the chromatographic peak starts to rise from the baseline, that is, the moment when the detector first records a signal change;
[0049] 8) Tail time is the moment when the chromatographic peak drops from the maximum value to the baseline.
[0050] In the analysis of oil chromatogram, the peak height of the chromatographic peak is often obtained by extracting the distance between the peak top and the baseline of the chromatographic peak; based on this, before extracting the peak height, it is necessary to use the oil chromatogram analysis method to identify the peak top and the baseline corresponding to the chromatographic peak; specifically, the existing oil chromatogram analysis method mainly extracts the slope of the chromatographic curve at each curve point and detects whether the slope change of each curve point is greater than the slope threshold, that is, when the slope change at the current curve point is greater than the slope threshold, then this curve point is used as the peak start time or tail time of the chromatographic peak, so as to obtain the baseline of the chromatographic peak based on the extracted peak start time and tail time.
[0051] In an ideal state, the oil chromatogram is as Figure 1 shown without baseline drift or response peak distortion, etc. The chromatographic peak A is in a standard peak shape, that is, an approximate Gaussian curve, so the obtained peak height is the distance between the peak top and the baseline X - Y solid line (the intercept l on the M - N dotted line); however, in actual detection, when affected by factors such as the resolution of the chromatographic column, the stability of the sample gas injection pressure or injection flow rate, etc., the peak shape of the chromatographic peak will change in the collected chromatographic curve. Especially when the gas concentration is extremely low, the peak shape of the chromatographic peak corresponding to the gas becomes distorted or even submerged in the baseline noise.
[0052] As Figure 2 shown, when the oil chromatogram has baseline drift or response peak distortion, etc., the position of the peak bottom "baseline" extracted based on the existing oil chromatogram analysis method often deviates from the actual position; in the Figure 2 shown oil chromatogram, the true baseline of the chromatographic peak B should be the U - W solid line, but when extracting the baseline of the chromatographic peak B using the existing oil chromatogram analysis method, the extraction accuracy of the baseline is easily affected by the size of the slope threshold; specifically, when the slope threshold is too large, because the slope change at point W of the curve is larger than the slope change at point V of the curve; therefore, it is easy to misidentify point V of the curve as the end point (tail time) of the chromatographic peak B, and then wrongly identify the baseline of the chromatographic peak B as the U - V solid line; based on this, the peak height (the intercept l1 on the M - N dotted line) obtained based on the U - V baseline is greater than the peak height (the intercept l2 on the O' - P' dotted line) corresponding to the U - W baseline, resulting in a large deviation in the calculation result of the peak height; and when the slope threshold is too small, it is easy to extract the noise signal in the chromatographic curve as a chromatographic peak, resulting in a large deviation in the calculation result of the peak height.
[0053] To solve the technical problems existing in the prior art, the present application first provides a method for obtaining chromatographic peak height. By analyzing the collected chromatographic curve, the peak height of the chromatographic peak corresponding to each target gas in the chromatographic curve is obtained.
[0054] Please refer to Figure 3 , which shows a schematic flowchart of the chromatographic peak value obtaining method provided by the present application in an embodiment; as Figure 3 shown, the method includes the following steps:
[0055] S100, determining the detection section and baseline width corresponding to the target gas;
[0056] Among them, the detection section is the time period for performing peak detection on the target gas; in the present application, the detection section covers the peak width time corresponding to the target gas on the time axis; the baseline width is a preset width value not greater than the peak width size of the chromatographic peak corresponding to the target gas;
[0057] In the present application, both the detection section and the baseline width correspond to the target gas.
[0058] Specifically, obtain the peak start time corresponding to the target gas, and use the moment of this peak start time on the chromatogram as the start time; a time period after the start time and with a duration greater than the peak width size corresponding to the target gas is used as the detection section;
[0059] And, obtain the peak width size corresponding to the target gas, and reduce this peak width size according to a preset reduction coefficient to obtain the baseline width. Exemplarily, the reduction coefficient is any value in the range of 0.8 to 1.
[0060] In some other alternative embodiments, the obtaining method of the detection section can also be:
[0061] Obtain the peak width time corresponding to the target gas; according to this peak width time, determine the peak start time and tail time corresponding to the target gas; set a time period with a start time earlier than the peak start time and an end time later than the tail time as the detection section, so as to quickly obtain the detection section corresponding to the target gas, thereby improving the accuracy and efficiency of chromatographic peak value obtaining.
[0062] Exemplarily, when the peak start time corresponding to the target gas is the 10th second, the corresponding tail time is the 30th second, that is, the peak width time is from the 10th second to the 30th second, then the detection section is set as the time period between the 5th second and the 35th second, so that the detection time period of the target gas peak can cover the peak width time of the target gas, avoiding missing or misdetecting the chromatographic peak value of the target gas.
[0063] It should be noted that the peak start time, the tail time, or the peak width time corresponding to the target gas is obtained in advance according to previous tests, or can be obtained in advance according to experience or textbooks.
[0064] S200. Using the gnomon method, combined with the baseline width, perform the maximum peak detection of the chromatographic peak in the detection section to extract the peak vertex and the reference line of the chromatographic peak corresponding to the target gas.
[0065] Among them, the peak vertex is the sampling point corresponding to the chromatographic curve when the peak value is the largest.
[0066] The reference line is a newly constructed baseline during the maximum peak detection process, which is used to extract the peak height of the chromatographic peak.
[0067] In this application, the gnomon method is a method constructed based on the ancient gnomon measurement method; for better understanding of the technical method of this application, the gnomon measurement principle will be introduced in detail below.
[0068] The gnomon is an instrument for observing celestial phenomena in ancient China. In different seasons, the rising and setting directions and the noon height of the sun are different, and there are regular periodic changes. The gnomon is a pole or stone pillar erected on flat ground to measure the sun's shadow, called the gnomon; the engraved board placed in the due south and due north directions to measure the length of the gnomon's shadow is called the gui. When the sun shines on the gnomon, a shadow of the gnomon appears on the gui. According to the direction and length of the shadow, the time can be read.
[0069] The gnomon method provided in this application borrows the essence of the gnomon's concept. The similarity is that the gnomon uses the projection of the sun shining on the gnomon on the gui, and calculates the height of the sun through the length of the projection of the gnomon on the gui to reflect the time changes in the four seasons; while the gnomon method provided in this application uses the opposite approach, taking the gnomon of the gnomon as the measurement reference and the gui as the measurement tool.
[0070] Specifically, the gnomon method is a method for performing curved segment interception on the chromatographic curve based on the gnomon line segment (hereinafter referred to as the "gnomon segment"), and in the intercepted curved segment, extracting the table line segment (hereinafter referred to as the "table segment") corresponding to the gnomon segment.
[0071] Among them, the gnomon segment is composed of the first sampling point and the second sampling point on the chromatographic curve, and the width is the baseline width line segment, that is, the two endpoints slide along the chromatographic curve, and the line segment width is fixed at the baseline width.
[0072] The table segment is the line segment with the largest distance between the chromatographic curve and the gnomon segment along the perpendicular direction of the gnomon segment.
[0073] Specifically, for a single target gas, when step S200 is executed, as Figure 4 shown, it includes:
[0074] S201. Based on the detection section, extract the target curve segment corresponding to the target gas;
[0075] Among them, each sampling point is included in the target curve segment, and each sampling point is arranged in chronological order.
[0076] Specifically, after determining the detection section corresponding to the target gas, on the collected chromatogram, extract the spectral curve segment within this detection section as the target curve segment corresponding to the target gas.
[0077] Based on the preset sampling accuracy, divide the target curve segment according to this sampling accuracy, and use the center point or endpoint of each divided sub-segment as the sampling point, so as to obtain each sampling point in the target curve segment.
[0078] Exemplarily, when the target curve is the curve segment corresponding to 10s to 30s, and the sampling accuracy is 1s, then 10s to 11s is used as the first sampling point of this target curve, 11s to 12s is used as the second sampling point of this target curve, and so on, to obtain each sampling point on the target curve.
[0079] S202. In the target curve segment, use the gnomon method to extract each gnomon segment in this target curve segment and the table segment corresponding to the extracted gnomon segment;
[0080] Based on each sampling point, construct each gnomon segment in the target curve according to the preset baseline width, so that the length of each gnomon segment is the same as the baseline width.
[0081] After obtaining each gnomon segment, along the perpendicular direction of the gnomon segment, extract the sampling point with the farthest vertical distance as the farthest sampling point corresponding to the gnomon segment, and construct a perpendicular line segment perpendicular to the gnomon segment based on this farthest sampling point as the table segment corresponding to the gnomon segment.
[0082] Exemplarily, as Figure 5 shown, construct each gnomon segment in the target curve segment AB, including the first gnomon segment m1n1,..., the i-th gnomon segment m i n i ,..., the j-th gnomon segment m j n j etc.; after determining each gnomon segment, extract the table segments corresponding to each gnomon segment, which are respectively the first table segment P1Q1,..., the i-th table segment PiQi,..., the j-th table segment PjQj, etc.
[0083] S203. By comparing the lengths of each table segment, determine the gnomon segment corresponding to the longest table segment as the reference line of the target gas; use the farthest sampling point corresponding to this gnomon segment as the peak top of the chromatographic peak corresponding to the target gas.
[0084] Specifically, after obtaining each segment of the target curve and the corresponding table segment for each segment, extract the length corresponding to each table segment, that is, the perpendicular distance between the sampling points corresponding to the table segment and the segment.
[0085] Compare the lengths of each table segment, extract the maximum value among the length values, and use this maximum length as the maximum peak obtained during the maximum peak detection process.
[0086] Use the table segment corresponding to this maximum length as the optimal table segment of the target curve, and use the segment corresponding to this table segment as the optimal segment of the target curve. Set this optimal segment as the reference line of the target gas.
[0087] Moreover, after determining the optimal segment, use the farthest sampling point corresponding to this segment as the peak vertex of the chromatographic peak.
[0088] In a specific embodiment, the implementation manner of extracting each segment in the target curve based on each of the sampling points according to the preset baseline width is as Figure 6 shown, and includes:
[0089] S202A. Among the sampling points of the target curve, determine the current first segment point.
[0090] It should be noted that for the target curve, when this step is executed for the first time, the current first segment point is the first sampling point of the target curve, that is, the first sampling point among all sampling points.
[0091] S202B. Among the sampling points after the first segment point, search for a second segment point such that the line segment distance between the first segment point and the second segment point is the same as the baseline width.
[0092] Specifically, starting from the first segment point, check the subsequent sampling points in the chronological order of each sampling point; if the distance between the current sampling point and the first segment point does not reach the baseline width, continue to check the next sampling point, and repeat this process until a second segment point that meets the conditions is found.
[0093] S202C. Detect whether the second segment point is the last sampling point in the target curve; if so, exit the current step; if not, set the line segment between the current first segment point and the second segment point as a segment; at the same time, use the current second sampling point as the new first segment point to re - execute the segment construction process based on this new first segment point.
[0094] Repeat the above steps S202A to S202C along the target curve until the entire target curve is covered, so as to obtain each segment in the target curve.
[0095] In an optional embodiment, for a single said main segment, the extraction method of the table segment corresponding to the main segment is as Figure 7 shown, including:
[0096] S202a, in the target curve segment, extract the search spectrum segment corresponding to the current main segment;
[0097] Specifically, in the target curve segment, extract the curve segment above the current main segment (the curve segment with a signal intensity value greater than that of the current main segment) as the search spectrum segment corresponding to the current main segment.
[0098] S202b, determine each sampling point in the search spectrum segment, and extract the distance between each sampling point and the current main segment;
[0099] Specifically, for each sampling point in the current search spectrum segment, respectively obtain the spacing between each sampling point and the current main segment as the distance corresponding to the sampling point.
[0100] S202c, extract the sampling point with the maximum distance, and use the line segment between this sampling point and the current main segment in the perpendicular direction as the table segment corresponding to the current main segment.
[0101] Specifically, after obtaining the distance between each sampling point and the current main segment, compare the magnitudes of each distance value, extract the maximum distance value among them, and use the sampling point corresponding to this distance value as the farthest sampling point corresponding to the table segment; at this sampling point, construct a perpendicular line segment of the current main segment, and use this perpendicular line segment as the table segment corresponding to the current main segment.
[0102] S300, based on the distribution of the peak vertices and the distribution of the reference line, extract the peak height of the chromatographic peak corresponding to the target gas.
[0103] It should be noted that when the baseline width is smaller than the peak width of the chromatographic peak corresponding to the target gas, the reference line is parallel to the actual baseline of the target gas and is located above the actual baseline; correspondingly, the peak height obtained based on the reference line is smaller than the actual peak height; wherein, the actual peak height is the peak height value extracted based on the distribution of the peak vertices and the distribution of this actual baseline.
[0104] In some optional embodiments, when S300 is executed, it further includes:
[0105] Take the distance between the peak point and the reference line as the first distance; according to the first distance, in combination with the reduction coefficient, obtain the peak height of the chromatographic peak corresponding to the target gas.
[0106] Specifically, divide the first distance by the reduction coefficient to amplify the first distance; use the amplified distance value as the peak height of the chromatographic peak corresponding to the target gas, so that the obtained peak height value is closer to the actual peak height value.
[0107] The method for obtaining the chromatographic peak height provided in this embodiment determines the detection section corresponding to the target gas, and performs maximum peak detection within the detection section by using the gnomon method, accurately extracts the peak apex and the corresponding baseline of the chromatographic peak corresponding to the target gas, and accurately measures the chromatographic peak height of the target gas through the relative position between the peak apex and the baseline. The method of this application can not only accurately identify the distribution of the chromatographic peak of the target gas in the chromatogram curve, but also accurately extract the peak position of the chromatographic peak, so as to quickly and accurately obtain the concentration value of the target gas, effectively avoiding the misjudgment of the peak apex position and peak height of the chromatographic peak in the prior art in the case of baseline drift and chromatogram distortion.
[0108] Moreover, during multiple detections or long-time series detections of the target gas, using the method for obtaining the chromatographic peak height provided in this application can ensure the accuracy of the peak apex position of the chromatographic peak extracted during each detection process, and ensure the consistency of the peak height extraction method during each detection process, avoiding misjudgment of the detection results caused by incorrect peak apex position or inconsistent peak height extraction methods.
[0109] To solve the technical problems existing in the prior art, this application also provides an oil chromatographic analysis method for obtaining the gas concentration corresponding to each target gas in the oil chromatogram.
[0110] Please refer to Figure 8 , which shows the schematic flow chart of the oil chromatographic analysis method provided in this application in an embodiment; as Figure 8 shown, this method includes the following steps:
[0111] S20. Based on the baseline width corresponding to the target gas, extract the peak height of the chromatographic peak corresponding to each target gas from the chromatogram curve;
[0112] Wherein, the baseline width is a preset width value not greater than the peak width of the chromatographic peak corresponding to the target gas;
[0113] In this application, the detection section and the baseline width both correspond to the target gas.
[0114] Specifically, obtain the peak width of the target gas, and reduce the peak width according to a preset reduction coefficient to obtain the baseline width. Exemplarily, the reduction coefficient is any value between 0.8 and 1.
[0115] In this embodiment, the method for extracting the peak height of the chromatographic peak corresponding to each target gas is the same as the method for obtaining the chromatographic peak height described in the above embodiment, which will not be repeated here.
[0116] S40, based on the peak height of the chromatographic peak and in combination with a pre-established mapping relationship, obtaining a gas concentration value corresponding to each of the target gases.
[0117] Wherein, the mapping relationship is a linear relationship between the chromatographic peak height and the gas concentration; illustratively, the mapping relationship is a linear relationship curve between the chromatographic peak height and the gas concentration;
[0118] Specifically, after obtaining the peak height of the chromatographic peak corresponding to the target gas, the linear relationship of the mapping relationship is used to substitute the peak height data into the linear equation corresponding to the mapping relationship to calculate the corresponding gas concentration value.
[0119] In chromatographic detection, when the instrument fluctuates or the operating conditions are unstable, the chromatographic peak of the chromatographic curve may be distorted, thereby affecting the accuracy of the chromatographic peak height. Therefore, in order to reduce the influence of random noise and fluctuations in chromatographic detection data on the distribution of the chromatographic curve, in some optional embodiments, the oil chromatography analysis method, before step S100, Figure 9 As shown, it also includes:
[0120] S10, performing smoothing processing on the chromatographic detection data to construct the chromatographic curve based on the processed data;
[0121] Specifically, the chromatographic detection data is smoothed using a moving average method, including:
[0122] Based on a preset sliding window, the chromatographic detection data is subjected to averaging processing, that is, the data points in the sliding window are averaged, and then moved to the next data point, and this process is repeated until the chromatographic detection data are all subjected to this processing.
[0123] It should be noted that, in other embodiments, a filter, a response time smoothing method or other existing methods may be used to perform the smoothing process.
[0124] In some gas detection scenarios, when the distribution of the peak width time corresponding to the chromatographic peaks corresponding to several target gases is relatively close, that is, when the peak width time corresponding to the first gas is close to the peak width time corresponding to the second gas, it is easy for the chromatographic peaks to overlap, which will affect the accuracy of the extracted peaks. In order to improve the accuracy of the peaks, in some embodiments,
[0125] The chromatographic detection method, before executing step S20, is as follows Figure 10 As shown, it also includes:
[0126] S30. Detect whether there is an overlap between the detection sections corresponding to each target gas. When there is an overlap, adjust the baseline width to separate each detection section from each other.
[0127] In this embodiment, when this step S30 is executed, as Figure 11 shown, it includes:
[0128] S31. Based on the current baseline width, obtain the detection sections corresponding to each target gas;
[0129] Specifically, for each target gas, based on the current target gas at the current baseline width, determine the detection section of the chromatographic peak corresponding to this target gas, that is, include the detection start point and the detection end point of the chromatographic peak corresponding to the current target gas.
[0130] S32. For each group of adjacent detection sections, check whether there is an overlap between them;
[0131] Specifically, by comparing whether there is an overlap between the detection end point of each detection section and the detection start point of the next detection section. When it is found that there is an overlap between adjacent detection sections, reduce the baseline widths of the target gases corresponding to the two adjacent detection sections; that is, when there is an overlap between the first detection section and the second detection section, correspondingly reduce the baseline width of the target gas corresponding to the first detection section to obtain the new baseline width of the first detection section; and reduce the baseline width of the target gas corresponding to the second detection section to obtain the new baseline width of the second detection section.
[0132] It should be noted that this adjustment process can be reduced or increased based on a fixed step size, or can be dynamically adjusted based on an existing adjustment algorithm, and no specific limitation is made here.
[0133] S33A. If there is an overlap, based on the new baseline width, re-determine the detection sections corresponding to each target gas and check again whether there is an overlap;
[0134] S33B. If there is no overlap, exit this process.
[0135] The method provided in this embodiment can ensure that there is no overlap between the detection sections of each target gas by detecting whether there is an overlap between the detection sections corresponding to the target gas, and when there is an overlap, separating each detection section from each other by adjusting the baseline width. Thereby, it can improve the resolution of chromatographic analysis, enable adjacent chromatographic peaks to be more clearly distinguished, and further improve the accuracy of the gas concentration obtained based on the peak height of the chromatographic peak.
[0136] Based on the same inventive concept, the method for obtaining chromatographic peak height or the oil chromatographic analysis method provided in the above embodiments of the present invention can be implemented on the terminal side or the server side.
[0137] Please refer to Figure 12 , which is an optional hardware structure diagram of the electronic terminal 50 provided in the embodiments of the present invention. The electronic terminal 50 can be a live broadcast machine, a camera, a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory background processing device, etc. that integrates the functions of taking pictures / recording videos. The electronic terminal 50 includes: at least one processor 51, a memory 52, at least one network interface 53, and a user interface 54. Each component in the device is coupled together through a bus system 55. It can be understood that the bus system 55 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 55 also includes a power bus, a control bus, and a status signal bus.
[0138] Among them, the user interface 54 may include a display, a keyboard, a mouse, a trackball, a click gun, a button, a button, a touchpad, or a touch screen, etc.
[0139] It can be understood that the memory 52 can be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM, StaticRandom Access Memory), synchronous static random access memory (SSRAM, Synchronous StaticRandomAccess Memory). The memory described in the embodiments of the present invention is intended to include but not be limited to these and any other suitable categories of memories.
[0140] The memory 52 in the embodiments of the present invention is used to store various types of data to support the operation of the electronic terminal 50. Examples of these data include: any executable program for operation on the electronic terminal 50, such as an operating system 521 and an application program 522; the operating system 521 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 522 may include various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. The method for obtaining chromatographic peak height or the oil chromatographic analysis method of the present invention can be included in the application program 522.
[0141] The method disclosed in the embodiments of the present invention can be applied to or implemented by the processor 51. The processor 51 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method can be completed by the integrated logic circuit in hardware or instructions in software form in the processor 51. The above-mentioned processor 51 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 51 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor 51 may be a microprocessor or any conventional processor, etc. Combining the steps of the accessory optimization method provided in the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and this storage medium is located in the memory. The processor reads the information in the memory and combines its hardware to complete the steps of the foregoing method.
[0142] In an exemplary embodiment, the electronic terminal 50 may be one or more application-specific integrated circuits (ASICs, Application Specific Integrated Circuit), DSPs, programmable logic devices (PLDs, Programmable Logic Device), complex programmable logic devices (CPLDs, Complex Programmable Logic Device) for performing the foregoing method.
[0143] The embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored. When the program is called by a processor, it implements the method for obtaining the chromatographic peak height or the method for obtaining the oil chromatographic analysis method provided by the present invention.
[0144] Among them, the computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium may be, for example (but not limited to), an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memories), static random access memories (SRAM), portable compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), memory sticks, floppy disks, mechanical encoding devices.
[0145] The computer-readable programs described herein can be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network adapter or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0146] It should be noted that in various embodiments of the present application, the sequence numbers of the above steps do not represent the order of execution. The order of execution of each step should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0147] The above embodiments are only illustrative of the principles and effects of the present invention, and are not used to limit the present invention. Any person familiar with this technology can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes completed by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed by the present invention should still be covered by the claims of the present invention.
Claims
1. A method for obtaining chromatographic peak height, characterized in that, Including: Determine the detection section corresponding to the target gas, where the detection section is a time period on the time axis that covers the peak width time corresponding to the target gas; Reduce the peak width size corresponding to the target gas according to a preset reduction coefficient to obtain the baseline width; Based on the detection section, extract the target curve section corresponding to the target gas; in the target curve section, use the gnomon method to extract each gnomon section in the target curve section and the table section corresponding to the extracted gnomon section; the table section is the line segment with the largest distance between the chromatogram curve and the gnomon section; By comparing the lengths of the table sections, determine the gnomon section corresponding to the longest table section as the baseline of the target gas; Take the farthest sampling point corresponding to the gnomon section as the peak vertex of the chromatographic peak corresponding to the target gas; Among them, the construction process of the gnomon section includes: taking the first sampling point on the target curve section as the first gnomon point, searching for the second gnomon point among the sampling points after the first gnomon point, making the line segment distance between the first gnomon point and the second gnomon point the same as the baseline width, and taking the current second sampling point as the new first gnomon point, and re-executing the construction process of the gnomon section based on the new first gnomon point; repeat this construction process until the entire target curve section is covered; Take the distance between the peak vertex and the baseline as the first distance; divide the first distance by the reduction coefficient to obtain the peak height of the chromatographic peak corresponding to the target gas.
2. The method for obtaining chromatographic peak height according to claim 1, characterized in that For a single gnomon section, the extraction method of the corresponding table section includes: In the target curve section, extract the search spectrum section corresponding to the current gnomon section; Determine the sampling points in the search spectrum section and extract the distances between the sampling points and the current gnomon section; Extract the sampling point with the largest distance, and take the line segment between the sampling point and the current gnomon section in the perpendicular direction as the table section corresponding to the current gnomon section.
3. The method for obtaining chromatographic peak height according to claim 1, wherein, The determination method of the detection section corresponding to the target gas includes: Take the peak start time corresponding to the target gas as the start time; Take a time period after the start time and with a duration greater than the peak width size corresponding to the target gas as the detection section; or According to the peak width time of the target gas, determine the peak start time and the tail time corresponding to the target gas; set the time period with the start time earlier than the peak start time and the end time later than the tail time as the detection section.
4. An oil chromatographic analysis method, characterized in that, Including: Based on the baseline width corresponding to the target gas, extract the peak height of each chromatographic peak corresponding to the target gas in the chromatogram curve; Based on the peak height of the chromatographic peak, combine the pre-constructed mapping relationship to obtain the gas concentration value corresponding to each target gas; Among them, the peak height is extracted by using the chromatographic peak height acquisition method described in any one of claims 1 to 3.
5. The oil chromatographic analysis method according to claim 4, characterized in that, Before obtaining the gas concentration value corresponding to each target gas, the oil chromatographic analysis method further includes: Detect whether there is an overlap between the detection sections corresponding to the target gases. When there is an overlap, adjust the baseline width to separate the detection sections from each other.
6. The oil chromatographic analysis method according to claim 4, characterized in that, Before extracting the peak height of each chromatographic peak corresponding to the target gas, it further includes: Perform smoothing processing on the chromatographic detection data to construct the chromatogram curve based on the processed data.
7. A terminal, characterized in that, Including: A processor and a memory, the memory being communicatively connected to the processor; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the chromatographic peak height acquisition method according to any one of claims 1 to 3 or executes the oil chromatographic analysis method according to any one of claims 4 to 6.
8. A computer storage medium, on which a computer program is stored, characterized in that, When the program is executed by the processor, it implements the chromatographic peak height acquisition method according to any one of claims 1 to 3 or executes the oil chromatographic analysis method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Method for determining the content and carbon number distribution of normal paraffins and isoparaffins in wax by using gas chromatography
CN113267576A
Peak finding in low-resolution mass spectrometry by use of chromatographic integration routines
US20080073499A1