Chromatographic peak abnormity detection method and device and computer equipment

By combining the image characteristics of the chromatogram and the chromatogram peak information, encoding and sparse representation methods are solved, and the identification deviation problem of the prior art when dealing with complex chromatogram peaks is improved, and the accuracy and reliability of the analysis are improved.

CN118961979APending Publication Date: 2024-11-15GUANGDONG PUMEN BIOMEDICAL TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411276003.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When existing chromatographic analysis techniques deal with chromatographic peaks with irregular shapes or complex profiles, it is difficult to accurately identify and measure resolution, resulting in deviations and inaccuracies of the analysis results.

Method used

By obtaining the superposition of the image feature vector of the chromatogram and the chromatogram peak information vector, encoding and sparse representation are performed, and classification recognition is improved to improve the accuracy of recognition of chromatogram peak anomalies.

Benefits of technology

It enriches the data dimensions of the chromatogram, improves the credibility and accuracy of the classification and identification of chromatogram peak characteristics, and enhances the ability to identify abnormal chromatogram peaks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118961979A_ABST
    Figure CN118961979A_ABST
Patent Text Reader

Abstract

The invention provides a chromatographic peak abnormity detection method and device and computer equipment, and relates to the technical field of chromatographic analysis, and the method of one embodiment comprises the following steps: obtaining an image feature vector of a to-be-identified chromatogram; identifying chromatographic peak information of the to-be-identified chromatogram, and obtaining a chromatographic peak information vector of the to-be-identified chromatogram; superposing the image feature vector and the chromatographic peak information vector to obtain a target feature vector of the to-be-identified chromatogram; encoding the target feature vector to obtain an image encoding feature; performing sparse representation on the image coding features to obtain sparse representation features; and carrying out classification identification on the sparse representation features to obtain an identification result of whether the to-be-identified chromatogram has an abnormal chromatographic peak or not. According to the scheme of the embodiment, the credibility and the accuracy of identifying whether the chromatogram has the abnormal chromatographic peak or not are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of chromatographic analysis, and in particular to a method for detecting chromatographic peak anomalies, a device for detecting chromatographic peak anomalies, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] In the field of chromatographic analysis, chromatographic analysis can be used to quantify or qualitate the components in a mixture. In the process of chromatographic analysis, it is usually necessary to analyze the chromatographic peak separation of the chromatogram. The chromatographic peak separation characterizes the degree of separation between the peaks of the chromatogram. By analyzing whether there is an abnormality in the chromatographic peak separation, it can be determined whether the test results of the components in the mixture are abnormal.

[0003] The existing analysis of chromatographic peak separation usually directly calculates the peak separation and then determines whether it is abnormal. However, it is found in practical applications that this method faces certain limitations. When dealing with chromatographic peaks with regular shapes and clear contours, it is usually possible to determine the abnormality of chromatographic separation. However, when encountering chromatographic peaks with irregular shapes or complex contours, their applicability is greatly reduced, causing significant deviations in the measurement results of separation, thereby reducing the accuracy and reliability of the analysis. Summary of the invention

[0004] Based on this, it is necessary to provide a chromatographic peak anomaly detection method, a chromatographic peak anomaly detection device, a computer device, a computer-readable storage medium and a computer program product that can improve the analysis accuracy in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for detecting abnormal chromatographic peaks, the method comprising:

[0006] Obtaining an image feature vector of the chromatogram to be identified;

[0007] Identify the chromatographic peak information of the chromatogram to be identified, and obtain the chromatographic peak information vector of the chromatogram to be identified;

[0008] Superimposing the image feature vector and the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified;

[0009] Encoding the target feature vector to obtain image coding features;

[0010] Performing sparse representation on the image coding features to obtain sparse representation features;

[0011] The sparse representation features are classified and identified to obtain an identification result of whether the chromatogram to be identified has abnormal chromatographic peaks.

[0012] In a second aspect, the present application further provides a device for detecting abnormal chromatographic peaks, the device comprising:

[0013] A feature vector acquisition module, used for acquiring the image feature vector of the chromatogram to be identified;

[0014] A peak recognition module, used to recognize the chromatographic peak information of the chromatogram to be recognized, and obtain the chromatographic peak information vector of the chromatogram to be recognized;

[0015] A vector superposition module, used for superimposing the image feature vector and the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified;

[0016] An encoding module, used for encoding the target feature vector to obtain an image encoding feature;

[0017] A sparse processing module, used for performing sparse representation on the image coding features to obtain sparse representation features;

[0018] The classification and recognition module is used to classify and recognize the sparse representation features to obtain a recognition result of whether there are abnormal chromatographic peaks in the chromatogram to be recognized.

[0019] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any of the above embodiments are implemented.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.

[0021] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.

[0022] Based on the chromatographic peak anomaly detection method, chromatographic peak anomaly detection device, computer equipment, computer-readable storage medium and computer program product of the embodiments described above, while obtaining the image feature vector of the chromatogram to be identified, the chromatographic peak information of the chromatogram to be identified is also identified, and the chromatographic peak information vector of the chromatogram to be identified is obtained accordingly, and the image feature vector and the chromatographic peak information vector are superimposed to obtain the target feature vector, and the target feature vector is encoded and sparsely represented in sequence to obtain the sparse representation feature, and the sparse representation feature is classified and identified to obtain the identification result of whether there is an abnormal chromatographic peak in the chromatogram to be identified; in the process of processing the chromatogram, the image feature vector of the chromatogram and the identified chromatographic peak information are combined to superimpose the target feature vector of the chromatogram to be identified, thereby greatly enriching the data dimension of the chromatogram, so that the characteristics of the chromatographic peaks of the chromatogram can be more accurately classified and identified, thereby improving the credibility and accuracy of the identification of whether there are abnormal chromatographic peaks in the chromatogram. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a schematic diagram of an application scenario of a method for detecting abnormal chromatographic peaks in one embodiment;

[0024] FIG2 is a schematic flow diagram of a method for detecting abnormal chromatographic peaks in one embodiment;

[0025] Figure 3 A schematic diagram of a process for obtaining chromatographic peak information in one embodiment;

[0026] Figure 4 is a schematic flow chart of a method for detecting abnormal chromatographic peaks in another embodiment;

[0027] Figure 5 is a schematic flow chart of a method for detecting abnormal chromatographic peaks in another embodiment;

[0028] Figure 6 It is a schematic diagram of the principle of splitting a two-dimensional matrix corresponding to an image by columns and then reorganizing it into a one-dimensional row vector in one embodiment;

[0029] Figure 7 A schematic diagram of the principle of traversing a one-dimensional row vector in one embodiment;

[0030] Figure 8 A schematic diagram of a process for training and obtaining a chromatogram recognition model in one embodiment;

[0031] Fig. 9 A schematic diagram of a model structure of a chromatogram recognition model to be trained in an embodiment;

[0032] Fig.10 is a schematic diagram of a module structure of an image encoder in one embodiment;

[0033] Fig.11 is a schematic diagram of the module structure of an image decoder in one embodiment;

[0034] Fig.12 A schematic diagram of the module structure of a chromatogram recognition model obtained by training in one embodiment;

[0035] Fig.13 is a structural block diagram of a device for detecting abnormal chromatographic peaks in one embodiment;

[0036] Fig.14 is an internal structure diagram of a computer device in one embodiment;

[0037] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0041] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0042] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0044] At present, in the field of chromatography, the traditional peak separation analysis faces certain limitations. They perform well when dealing with chromatographic peaks with regular shapes and clear outlines, but their applicability is greatly reduced when encountering chromatographic peaks with irregular shapes or complex outlines. These complex outline peaks may include unclear shoulder peaks, bifurcated peaks, front peaks and tailing peaks, etc. Their existence makes it difficult for traditional methods to accurately identify and measure. Moreover, the analysis of traditional separation is also easily affected by many factors, such as slight fluctuations in retention time, instability of troughs and peaks, changes in peak width, interference from background noise, and instability of baselines. These factors may cause significant deviations in the analysis results of separation, thereby reducing the accuracy and reliability of the analysis.

[0045] Based on this, it was found through research that the image vector features of the chromatogram can be combined with the chromatographic peak information obtained by identifying the chromatogram, and on this basis, encoding and sparse representation can be performed for classification and identification, thereby improving the recognition quality and efficiency of chromatograms with abnormal chromatographic peaks.

[0046] Accordingly, an embodiment of the present application provides a method for detecting abnormal chromatographic peaks. The method for detecting abnormal chromatographic peaks provided by the present application can be applied in an application environment as shown in FIG. 1. The terminal 102 communicates with the server 104 via a network. In some embodiments, the terminal 102 obtains a chromatogram to be identified and identifies whether the chromatogram to be identified contains an abnormal chromatographic peak. In other embodiments, the server 104 may obtain the chromatogram to be identified and identify whether the chromatogram to be identified contains an abnormal chromatographic peak. In other embodiments, the identification result of whether the chromatogram to be identified contains an abnormal chromatographic peak can be identified through the interaction between the terminal 102 and the server 104. For example, after the terminal 102 obtains the chromatogram to be identified, the chromatogram to be identified is transmitted to the server 104. The server 104 identifies whether the chromatogram to be identified contains an abnormal chromatographic peak, and feeds back the obtained identification result to the terminal 102.

[0047] In which, when the chromatogram to be identified is identified by a chromatogram recognition model, the chromatogram recognition model can be trained by the server 104 and then deployed to a device that needs to identify whether there are abnormal chromatographic peaks in the chromatogram to be identified, such as deployed to the terminal 102 or other servers.

[0048] The terminal 102 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0049] The application scenario may also involve a data storage system, which may store data related to abnormal identification of the chromatogram to be identified, or data that needs to be applied or processed in the process of abnormal identification of the chromatogram to be identified, such as sample chromatograms, sample labels of sample chromatograms, chromatogram identification models, etc. The data storage system may be integrated on a server, or placed on a cloud or other network server, or may be set in other storage devices, as long as the terminal 102 or the server 104 can obtain these data from it.

[0050] Referring to FIG. 2 , an embodiment of the present application provides a method for detecting abnormal chromatographic peaks, which is described by taking the application in the terminal 102 or the server 104 as described above as an example, wherein the method includes the following steps:

[0051] Step S201: obtaining an image feature vector of a chromatogram to be identified.

[0052] The chromatogram to be identified is an image that needs to be identified to see whether it contains abnormal chromatographic peaks. The chromatogram to be identified can be obtained in various possible ways, such as obtaining an image input by a user through an image input interface, or it can be a chromatogram to be identified that is automatically selected from stored chromatograms. In the case where there are multiple stored chromatograms, the chromatogram to be identified can be selected from them in sequence, randomly, or by other selection rules. In the case where the method is executed by the server 104, the server can also receive a chromatogram sent by a terminal or other server as the chromatogram to be identified.

[0053] The image feature vector refers to a feature determined based on the chromatogram to be identified, which reflects the image characteristics of the chromatogram to be identified.

[0054] There is no limitation on the method of obtaining the image feature vector of the chromatogram to be identified. In some embodiments, the pixel values ​​of each pixel point of the chromatogram to be identified can be arranged into a one-dimensional vector in a certain order to obtain the image feature vector of the chromatogram to be identified. For example, after the chromatogram to be identified is divided into columns, the pixel values ​​of the pixel points of each column are arranged into a one-dimensional row vector. In other embodiments, the image feature vector of the chromatogram to be identified can also be obtained by other methods.

[0055] Step S202: Identify the chromatographic peak information of the chromatogram to be identified, and obtain the chromatographic peak information vector of the chromatogram to be identified.

[0056] Chromatographic peak information is information related to the chromatographic peak obtained by identifying the chromatographic peak in the chromatogram to be identified. The type of chromatographic peak information is not limited, such as the position of the peak, the width of the peak, and the shape of the peak. Based on the identified chromatographic peak information, a chromatographic peak information vector of the chromatogram to be identified can be generated.

[0057] Step S203: superimposing the image feature vector and the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified.

[0058] Since the image feature vector reflects the image characteristics determined based on the image of the chromatogram to be identified, and the chromatogram peak information vector reflects the characteristics related to the peak of the chromatogram, the image feature vector and the chromatogram peak information vector can be combined to jointly reflect the characteristics of the chromatogram to be identified. The characteristics of the chromatogram to be identified obtained after the combination are referred to as the target feature vector in the embodiment of the present application.

[0059] There is no limitation on the way of superimposing the image feature vector and the chromatogram peak information vector. The image feature vector and the chromatogram peak information vector may be concatenated to obtain the target feature vector of the chromatogram to be identified.

[0060] Step S204: Encode the target feature vector to obtain image encoding features.

[0061] There is no limitation on the way of encoding the target feature vector. Therefore, for example, the target feature vector may be encoded by an encoder to obtain the image encoding features of the chromatogram to be identified.

[0062] Step S205: sparsely represent the image coding features to obtain sparse representation features.

[0063] Sparse representation is a technique for processing high-dimensional data. In sparse representation, a sample can be represented by a linear combination of as few basis vectors as possible, which are called dictionaries. By sparsely representing image encoding features, the dimension of image features can be reduced, which helps reduce noise interference and improves the efficiency of subsequent processing.

[0064] Step S206: classify and identify the sparse representation features to obtain an identification result of whether the chromatogram to be identified has abnormal chromatographic peaks.

[0065] After obtaining the sparse representation features, since the sparse representation features can represent the features of the chromatogram to be identified in a lower dimension, the sparse representation features can be classified and identified to obtain an identification result of whether the chromatogram to be identified has abnormal chromatographic peaks.

[0066] Based on the detection method of chromatographic peak anomalies in the embodiment described above, while obtaining the image feature vector of the chromatogram to be identified, the chromatographic peak information of the chromatogram to be identified is also identified, and the chromatographic peak information vector of the chromatogram to be identified is obtained accordingly, and the image feature vector and the chromatographic peak information vector are superimposed to obtain a target feature vector, and the target feature vector is encoded and sparsely represented in sequence to obtain sparse representation features, and then the sparse representation features are classified and identified to obtain an identification result of whether there is an abnormal chromatographic peak in the chromatogram to be identified; in the process of processing the chromatogram, the image feature vector of the chromatogram and the identified chromatographic peak information are combined to superimpose the target feature vector of the chromatogram to be identified, which greatly enriches the data dimension of the chromatogram so that the characteristics of the chromatographic peaks of the chromatogram can be more accurately classified and identified, thereby improving the credibility and accuracy of the identification of whether there are abnormal chromatographic peaks in the chromatogram.

[0067] Before obtaining the image feature vector of the chromatogram to be identified and identifying the chromatogram peak information of the chromatogram to be identified, the chromatogram to be identified may be subjected to image preprocessing. Some possible image preprocessing methods may include, for example, noise processing and normalization processing.

[0068] Chromatograms are easily affected by mechanical or electrical noise of the detector and data processing system and impurities or bubbles in the mobile phase, resulting in some noise in the chromatogram. These unstable factors will affect feature extraction and recognition classification. In order to reduce the impact of these noises, noise processing is performed on the image to be detected before feature extraction. There is no limit to the method of noise processing. For example, the chromatogram to be identified can be smoothed by least squares to remove noise. Least squares smoothing can find the best fit by minimizing the sum of squares of the error between the observed data and the model prediction. By solving the linear equations, the optimal fitting parameters are obtained, and a smooth image is generated.

[0069] The normalization method is not limited, for example, the chromatogram to be identified is mapped into a standard matrix of predetermined length and width, and the pixel value of the image is normalized to the interval of 0 to 1. By performing the normalization process, the distribution of data and information storage in the chromatogram to be identified will not be changed, and it will help to accelerate subsequent calculations. By normalization, the problem of inconsistent peak heights caused by different sample aspiration amounts can be further solved, so that each chromatographic peak has a unified standard when compared and analyzed.

[0070] The above-mentioned method of identifying the chromatographic peak information of the chromatogram to be identified is not limited. Figure 3 As shown, the above step S202 of identifying the chromatographic peak information of the chromatogram to be identified includes:

[0071] Step S2021: traverse each pixel point in the chromatogram to be identified, and for each traversed pixel point, synchronously traverse the target adjacent pixel points of the pixel point, the target adjacent pixel points include the left adjacent pixel point, the right adjacent pixel point, and a preset number of neighborhood pixel points of the pixel point, the left adjacent pixel point and the right adjacent pixel point, obtain pixel information of the pixel point and the target adjacent pixel point, and determine whether the pixel point is a potential peak point based on the changing trend of the pixel information of the pixel point and the target adjacent pixel point.

[0072] The specific value of the preset number can be set in combination with actual technical needs. In the embodiment of the present application, the preset number can be 1, and in the following embodiments, the preset number is 1 for example.

[0073] There is no limitation on the way of traversing the pixel points in the chromatogram to be identified. The chromatogram to be identified may be traversed in the order of rows or columns, or in other orders.

[0074] During the traversal process, for each traversed pixel point, the target adjacent pixel points of the pixel point are also traversed at the same time, so that based on the pixel information of the traversed pixel point and the target adjacent pixel points of the pixel point, their change trends can be determined, thereby determining whether the traversed pixel point is a potential peak point.

[0075] The type of the changing trend is not limited, for example, it may be an increasing trend, a decreasing trend, etc., increasing followed by decreasing, etc., but is not limited thereto.

[0076] Step S2022: Based on the traversed potential peak points, the chromatographic peak information of the chromatogram to be identified is obtained.

[0077] After the traversal is completed, a plurality of potential peak points obtained through the traversal can be obtained, and the chromatographic peak information of the chromatogram to be identified can be obtained through analysis based on these potential peak points obtained through the traversal.

[0078] Based on this embodiment, by traversing each pixel point in the chromatogram to be identified, potential peak points in the chromatogram to be identified can be fully discovered, and on this basis, relatively comprehensive chromatogram peak information of the chromatogram to be identified can be obtained.

[0079] When obtaining the image feature vector of the chromatogram to be identified in the above step S201, in some embodiments, refer to Figure 4 As shown, this may include:

[0080] Step S2010: reorganizing the chromatogram to be identified into a one-dimensional feature vector to obtain an image feature vector of the chromatogram to be identified;

[0081] At this time, the above-mentioned step S202 of traversing each pixel point in the chromatogram to be identified and synchronously traversing the target adjacent pixel points of each traversed pixel point includes:

[0082] Step S400: traverse each feature point in the one-dimensional feature vector, and for each traversed feature point, synchronously traverse the associated feature points of the feature point, wherein the associated feature points are determined based on the number of rows or columns of the two-dimensional matrix corresponding to the chromatogram to be identified.

[0083] Among them, there is no limit to the way of reorganizing the chromatogram to be identified into a one-dimensional feature vector. For example, the two-dimensional matrix corresponding to the chromatogram to be identified can be split into columns and then reorganized into a one-dimensional row vector, or the two-dimensional matrix corresponding to the identification chromatogram can be split into rows and then reorganized into a one-dimensional row vector, or it can be reorganized in other ways to obtain a one-dimensional feature vector.

[0084] There is no limitation on the method of traversing each feature point in the one-dimensional feature vector and synchronously traversing the associated feature points of each traversed feature point. In some embodiments, it can be achieved by traversing with a preset sliding window. For example, a preset sliding window is used to slide and traverse each feature point in the one-dimensional feature vector, wherein the preset sliding window can be determined based on the number of rows or columns of the two-dimensional matrix corresponding to the chromatogram to be identified.

[0085] The preset sliding window can be determined based on the number of rows or columns of the two-dimensional matrix corresponding to the chromatogram to be identified, and the reorganization method when the chromatogram to be identified is reorganized into a one-dimensional feature vector, as long as it is possible to slide and traverse based on the preset sliding window, when traversing to a certain feature point, it is also possible to traverse to the associated feature points of the feature point at the same time, that is, it is possible to traverse to the target adjacent pixel points of the pixel point at the same time, that is, it is possible to traverse to the left adjacent pixel points, the right adjacent pixel points of the pixel point in the chromatogram to be identified, and the 1-neighborhood pixel points of the pixel point, the 1-neighborhood pixel points of the left adjacent pixel points of the pixel point, and the 1-neighborhood pixel points of the right adjacent pixel points of the pixel point at the same time.

[0086] The two-dimensional matrix corresponding to the chromatogram to be identified is determined based on each pixel point of the chromatogram to be identified. One pixel point of the chromatogram to be identified corresponds to one matrix element in the two-dimensional matrix.

[0087] In some specific examples, refer to Figure 5 As shown, the above step S2010 of reorganizing the chromatogram to be identified into a one-dimensional feature vector includes: step S2011: splitting the two-dimensional matrix corresponding to the chromatogram to be identified by columns and reorganizing it into a one-dimensional row vector.

[0088] By splitting the two-dimensional matrix corresponding to the chromatogram to be identified by columns and reorganizing it into a one-dimensional row vector, it is not only more efficient in the matrix stored in row-major order, but also helps to achieve high parallel processing of data. The use of row vectors reduces the jumps during data access, increases the continuity of memory access, and can further improve the processing efficiency of subsequent processing.

[0089] At this time, the above-mentioned traversing each feature point in the one-dimensional feature vector and synchronously traversing the associated feature points of each traversed feature point include:

[0090] Step S500: traverse each feature point in the one-dimensional feature vector, and for the i-th feature point traversed, synchronously traverse the ia, i+a, i-1, i+1, i-2a, ia-1, i-a+1, i+2a, i+a-1, and i+a+1 feature points, where a is the number of rows of the two-dimensional matrix corresponding to the chromatogram to be identified.

[0091] by Figure 6 Taking the two-dimensional matrix of the image shown in the figure as an example, it can be split by column first to obtain multiple one-dimensional column vectors. Figure 6 Taking the image with 7 rows and 8 columns as an example, a total of 8 one-dimensional column vectors are obtained. Figure 6 As shown in the figure, the same color indicates that these pixels are in the same row, and then these multiple column vectors are combined into a row vector, for example, the last data point of the first column is combined adjacent to the starting point of the second column, the last data point of the second column is combined adjacent to the starting point of the third column, and so on, thereby obtaining a one-dimensional row vector).

[0092] When the two-dimensional matrix corresponding to the chromatogram to be identified is split into columns and then reorganized into a one-dimensional row vector, the schematic diagram of traversing the i-th feature point in the one-dimensional feature vector is as follows: Figure 7 As shown. Figure 7 As shown, when traversing to the i-th feature point of the one-dimensional feature vector, the left adjacent pixel point (ia-th feature point), right adjacent pixel point (i+a-th feature point) and 1-neighboring pixel point of the pixel point corresponding to the i-th feature point in the chromatogram to be identified (i-1, i+1-th feature points), 1-neighboring pixel point of the left adjacent pixel point of the pixel point (ia-1, i-a+1, i-2a-th feature points), and 1-neighboring pixel point of the right adjacent pixel point of the pixel point (i+a-1, i+a+1, i+2a-th feature points) are traversed at the same time.

[0093] In some specific examples, at the i-th feature point, the ia-th feature point, the i+a-th feature point, the i-1-th feature point and the i+1-th feature point can be traversed synchronously according to the index, and then the i-2a-th feature point, the ia-1-th feature point and the i-a+1-th feature point can be traversed according to the index ia, and the i+2a-th feature point, the i+a-1-th feature point and the i+a+1-th feature point can be traversed according to the index i+a. By analogy, a local observation window is formed, and through this traversal method, subtle changes in the chromatographic peak can be captured.

[0094] In this case, when determining whether the pixel point is a potential peak point based on the change trend of the pixel information of the pixel point and the target adjacent pixel point, it can be determined that the current point Whether there is a progressive and continuous relationship with the iath point, the i+ath point, the i-1th point, the i+1th point and other points, that is, looking for an increasing or decreasing continuous pattern in the data. If there is an obvious increasing or decreasing relationship between the current point and its neighboring points, and this relationship is continuous and consistent, then this point can be marked as a potential peak point; then, based on this increasing or decreasing step, a preliminary estimate of the shape of the peak is made, and the width and general shape of the peak are recorded. In this way, not only the peak point and the position of the peak point are recorded, but also detailed information about the peak width and shape is collected.

[0095] In some embodiments, the chromatogram to be identified may be processed by a chromatogram recognition model obtained through training to obtain an identification result of whether the chromatogram to be identified has abnormal chromatogram peaks. That is, the image feature vector of the chromatogram to be identified is obtained through the chromatogram recognition model obtained through training; the chromatogram peak information of the chromatogram to be identified is identified to obtain the chromatogram peak information vector of the chromatogram to be identified; the image feature vector and the chromatogram peak information vector are superimposed to obtain the target feature vector of the chromatogram to be identified; the target feature vector is encoded to obtain image encoding features; the image encoding features are sparsely represented to obtain sparse representation features; the sparse representation features are classified and identified to obtain an identification result of whether the chromatogram to be identified has abnormal chromatogram peaks.

[0096] It is understandable that the above chromatogram recognition model can be obtained through training. In some embodiments, the method for obtaining the chromatogram recognition model through training is as follows: Figure 8 As shown, including:

[0097] Step S801: Acquire a sample chromatogram, wherein the sample chromatogram has a sample label.

[0098] The sample chromatogram may include multiple ones, and the specific number of sample chromatograms can be determined in combination with the requirements for the accuracy of model training and the training efficiency. Generally speaking, the more sample chromatograms there are, the higher the accuracy of the chromatogram recognition model obtained by training, and more training resources and training time are required. Therefore, it can be determined based on the balance between the accuracy of model training and the training efficiency, and the embodiments of the present application do not impose specific restrictions on this.

[0099] The sample label refers to the label of the sample chromatogram, which at least includes a label indicating whether the sample chromatogram has an abnormality, such as whether an abnormality exists or not. In the embodiment of the present application, the sample chromatogram has an abnormality, which may refer to the sample chromatogram having a chromatographic peak abnormality, that is, the sample chromatogram having an abnormal chromatographic peak. In some embodiments of the present application, the sample label of the sample chromatogram may also include chromatographic peak information of the sample chromatogram.

[0100] Sample chromatograms include chromatograms with abnormal chromatographic peaks and chromatograms without abnormalities, which can also be called normal chromatograms. The available sample chromatograms can be expressed as:

[0101]

[0102] in is the dimension of each sample, with a total of sample chromatograms, total categories, each category corresponds to a type of sample label, such as a type of chromatographic peak information label.

[0103] It is understandable that after obtaining the sample chromatogram, the sample chromatogram may be subjected to image preprocessing. The specific image preprocessing method may be the same as that in the above embodiment and will not be described in detail herein.

[0104] Step S802: The sample chromatogram is processed as follows by the chromatogram recognition model to be trained: a sample image feature vector of the sample chromatogram is obtained; sample chromatogram peak information of the sample chromatogram is identified to obtain a sample chromatogram peak information vector of the sample chromatogram; the sample image feature vector and the sample chromatogram peak information vector are superimposed to obtain a sample target feature vector of the sample chromatogram; the sample target feature vector is encoded to obtain a sample image encoding feature; the sample image encoding feature is sparsely represented to obtain a sample sparse representation feature; the sample sparse representation feature is classified and identified to obtain a sample recognition result of the sample chromatogram; an image is reconstructed based on the sample sparse representation feature to obtain a reconstructed chromatogram;

[0105] Step S803: Based on the difference between the sample identification result and the sample label, the difference between the reconstructed chromatogram and the sample chromatogram calculates the training loss, and based on the training loss, updates the chromatogram recognition model to be trained until the training end condition is met, thereby obtaining a trained chromatogram recognition model.

[0106] In some embodiments, the model structure diagram of the chromatogram recognition model to be trained is as follows: Fig. 9 As shown, it includes a feature extraction module, an image encoder, a sparse coding layer, an image decoder and a classifier, wherein:

[0107] A feature extraction module is used to obtain an image feature vector of the sample chromatogram, identify chromatographic peak information of the sample chromatogram, obtain a chromatographic peak information vector of the sample chromatogram, and superimpose the obtained image feature vector and the chromatographic peak information vector to obtain a target feature vector of the sample chromatogram;

[0108] An image encoder is used to encode the input data using the target feature vector extracted by the feature extraction module as input data to extract deep abstract features of the sample chromatogram and obtain image coding features;

[0109] The sparse coding layer is used to perform sparse linear combination on the image coding features output by the image encoder to obtain sparse representation features of the sample chromatogram;

[0110] An image decoder, used for reconstructing the image based on the sparse representation features output by the sparse encoder to obtain a reconstructed chromatogram;

[0111] The classifier is used to perform classification based on the sparse representation features output by the sparse encoder to obtain the recognition result of the sample chromatogram, wherein the recognition result of the chromatographic peak information of the sample chromatogram can also be output through the classifier.

[0112] In the process of training the chromatogram recognition model to be trained, multiple rounds of training are performed. In each round of training, for each sample chromatogram, after the sample chromatogram is input into the chromatogram recognition model to be trained, the following processing is performed:

[0113] The feature extraction module obtains a sample image feature vector of the sample chromatogram, identifies chromatographic peak information of the sample chromatogram, obtains a sample chromatographic peak information vector of the sample chromatogram, and superimposes the obtained sample image feature vector and the sample chromatographic peak information vector to obtain a sample target feature vector of the sample chromatogram;

[0114] The image encoder uses the sample target feature vector extracted by the feature extraction module as input data, encodes the input data to extract the deep abstract features of the sample chromatogram, and obtains the sample image encoding features;

[0115] The sparse coding layer performs sparse linear combination on the sample image encoding features output by the image encoder to obtain the sample sparse representation features of the sample chromatogram;

[0116] The image decoder reconstructs the image based on the sample sparse representation features output by the sparse encoder to obtain a reconstructed chromatogram;

[0117] The classifier performs classification based on the sparse representation features output by the sparse encoder to obtain an identification result of whether there are abnormal chromatographic peaks in the sample chromatogram. The classifier can also output an identification result of the chromatographic peak information of the sample chromatogram.

[0118] In each round of training, after obtaining the identification result of whether there are abnormal chromatographic peaks in the sample chromatogram and reconstructing the chromatogram, the training loss is calculated. Based on the calculated training loss, the chromatogram recognition model to be trained is updated, and then the next round of training process is entered until the training end condition is reached.

[0119] The training loss includes a first loss between the recognition result based on the sample chromatogram and the sample label of the sample chromatogram, and a second loss between the sample chromatogram and the corresponding reconstructed chromatogram. In some embodiments, the sum of the first loss and the second loss may be used as the calculated training loss, or the first loss and the second loss may be weighted summed or otherwise processed to obtain the calculated training loss.

[0120] In the above training process, multiple sample chromatograms can be divided into a training set and a test set, wherein the sample chromatograms in the training set can be called training data, and the sample chromatograms in the test set can be called test data.

[0121] The input data of the input feature extraction module is recorded as , the deep features (i.e., target feature vectors) extracted by the graph encoder are recorded as , the sparse representation features output by the sparse coding layer are recorded as , the reconstructed chromatogram of the decoder based on the sparse representation output can be recorded as .

[0122] in, , , respectively, are the training data and test data after data preprocessing. Send to the image encoder to output the corresponding deep features ,in is the deep feature dimension of the sample. Therefore, the optimization problem of each test sample can be reflected by the following optimization method:

[0123]

[0124] in is the coefficient matrix of sparse coding, is a regularization parameter. Expressed as the residual sum of squares of the data, Expressed as the one-norm of the coefficient matrix, Expressed as the two-norm of the coefficient matrix.

[0125] The model structure of the image encoder is not limited. The structure of the image encoder in some examples can be as follows: Fig.10 As shown, it includes stacked convolutional layers and ReLU activation layers. Fig.10 The example shown here includes 4 convolutional layers and 4 ReLU activation layers.

[0126] The sparse coding layer receives deep features from the image encoder. , which is used to reconstruct the sparse representation of the deep features. Pass it to the image decoder and pass it to the test set Reconstruction features Passed to the decoder, the output of the sparse coding layer can be expressed as:

[0127]

[0128]

[0129] in, It is an identity matrix, indicating that the training set features have not changed after the sparse coding layer, and the test set is only sparsely represented by the training set, which is the approximate reconstruction process of the test set.

[0130] Through the processing of the sparse coding layer, the important morphological information features of the chromatographic peak are retained in the sparse coding layer, such as the peak point position, peak shape information, peak width and other information are retained, and the unimportant feature information will be discarded, thus obtaining a sparse representation of the image. .

[0131] The model structure of the image decoder is not limited. The structure of the image decoder in some examples can be as follows: Fig.11 As shown, it includes a stack of deconvolution layers and ReLU activation layers. Fig.11 The example shown includes 3 deconvolution layers and 3 ReLU activation layers.

[0132] There is no limit to the specific setting method of the training end condition, for example, it can be that the number of training iterations (or training rounds) reaches a preset number, or the model reaches convergence. There is no limit to the method for determining convergence, for example, when the training loss calculated for a certain number of consecutive times is within an acceptable loss range, it is determined that the model has reached convergence.

[0133] After the training end condition is reached, the final trained chromatogram recognition model can be obtained based on the last updated chromatogram recognition model to be trained. The chromatogram recognition model can be saved as a model file and deployed to a device that needs to identify whether there are abnormal chromatographic peaks in the chromatogram, such as a terminal or a server. It can be understood that the saved model file mainly includes the parameters of the convolution layer, pooling layer, and fully connected layer, the weight matrix and bias vector of each layer, sparse matrix data, the activation function type of each layer, the loss function used in the training process, the optimizer type and parameters, and the configuration information of the training process, etc.

[0134] based on Fig. 9 The chromatogram recognition model to be trained is shown in the schematic diagram of the chromatogram recognition model finally obtained by training. Fig.12 As shown, it includes a feature extraction module, an image encoder, a sparse coding layer and a classifier, wherein: for the chromatogram to be identified, the feature extraction module obtains the image feature vector of the chromatogram to be identified; identifies the chromatogram peak information of the chromatogram to be identified, and obtains the chromatogram peak information vector of the chromatogram to be identified; superimposes the image feature vector and the chromatogram peak information vector to obtain the target feature vector of the chromatogram to be identified, the image encoder encodes the target feature vector to obtain the image encoding feature, the sparse coding layer performs sparse representation on the image encoding feature to obtain the sparse representation feature; the classifier classifies and identifies the sparse representation feature to obtain the recognition result of whether the chromatogram to be identified has abnormal chromatogram peaks. The obtained recognition result can include two categories, one is a normal chromatogram, and the other is a chromatogram containing chromatogram peaks with abnormal separation.

[0135] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0136] Based on the same inventive concept, the embodiment of the present application also provides a chromatographic peak anomaly detection device for implementing the above-mentioned chromatographic peak anomaly detection method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more chromatographic peak anomaly detection devices provided below can refer to the limitations of the chromatographic peak anomaly detection method above, and will not be repeated here.

[0137] In one embodiment, Fig.13 As shown, a device for detecting chromatographic peak anomalies is provided, comprising: a feature vector acquisition module 131, a spectrum peak identification module 132, a vector superposition module 133, an encoding module 134, a sparse processing module 135, and a classification identification module 136, wherein:

[0138] A feature vector acquisition module 131 is used to acquire an image feature vector of a chromatogram to be identified;

[0139] A peak identification module 132 is used to identify the chromatogram peak information of the chromatogram to be identified and obtain the chromatogram peak information vector of the chromatogram to be identified;

[0140] A vector superposition module 133, used for superimposing the image feature vector and the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified;

[0141] The encoding module 134 is used to encode the target feature vector to obtain an image encoding feature;

[0142] A sparse processing module 135, configured to perform sparse representation on the image coding features to obtain sparse representation features;

[0143] The classification and recognition module 136 is used to classify and recognize the sparse representation features to obtain a recognition result of whether there are abnormal chromatographic peaks in the chromatogram to be recognized.

[0144] In some embodiments, the spectral peak identification module 132 is used to traverse each pixel point in the chromatogram to be identified, and for each traversed pixel point, synchronously traverse the target adjacent pixel points of the pixel point, the target adjacent pixel points include the left adjacent pixel point, the right adjacent pixel point, and a preset number of neighborhood pixel points of the pixel point, the left adjacent pixel point and the right adjacent pixel point, obtain pixel information of the pixel point and the target adjacent pixel point, and determine whether the pixel point is a potential peak point based on the change trend of the pixel information of the pixel point and the target adjacent pixel point; based on the traversed potential peak points, obtain the chromatographic peak information of the chromatogram to be identified.

[0145] In some embodiments, the feature vector acquisition module 131 is used to reorganize the chromatogram to be identified into a one-dimensional feature vector;

[0146] The peak recognition module 132 is used to traverse each feature point in the one-dimensional feature vector, and for each traversed feature point, synchronously traverse the associated feature points of the feature point, wherein the associated feature points are determined based on the number of rows or columns of the two-dimensional matrix corresponding to the chromatogram to be identified.

[0147] In some embodiments, the feature vector acquisition module 131 is used to split the two-dimensional matrix corresponding to the chromatogram to be identified by columns and reorganize it into a one-dimensional row vector;

[0148] The peak recognition module 132 is used to traverse each feature point in the one-dimensional feature vector, and for the i-th feature point traversed, synchronously traverse the ia, i+a, i-1, i+1, i-2a, ia-1, i-a+1, i+2a, i+a-1, i+a+1 feature points, where a is the number of rows of the two-dimensional matrix corresponding to the chromatogram to be identified.

[0149] In some embodiments, the vector superposition module 133 is used to concatenate the image feature vector with the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified.

[0150] In some embodiments, the device obtains the image feature vector of the chromatogram to be identified through the chromatogram recognition model obtained through training, identifies the chromatogram peak information of the chromatogram to be identified, obtains the chromatogram peak information vector of the chromatogram to be identified, superimposes the image feature vector and the chromatogram peak information vector, and obtains the target feature vector of the chromatogram to be identified; encodes the target feature vector to obtain image encoding features; sparsely represents the image encoding features to obtain sparse representation features; and classifies and identifies the sparse representation features to obtain an identification result of whether the chromatogram to be identified has abnormal chromatogram peaks.

[0151] In some embodiments, the device also includes a model training module, which is used to obtain a sample chromatogram, wherein the sample chromatogram has a sample label; the sample chromatogram is processed as follows by the chromatogram recognition model to be trained: a sample image feature vector of the sample chromatogram is obtained; sample chromatogram peak information of the sample chromatogram is identified to obtain a sample chromatogram peak information vector of the sample chromatogram; the sample image feature vector and the sample chromatogram peak information vector are superimposed to obtain a sample target feature vector of the sample chromatogram; the sample target feature vector is encoded to obtain a sample image encoding feature; the sample image encoding feature is sparsely represented to obtain a sample sparse representation feature; the sample sparse representation feature is classified and identified to obtain a sample recognition result of the sample chromatogram; an image is reconstructed based on the sample sparse representation feature to obtain a reconstructed chromatogram; a training loss is calculated, wherein the training loss includes a first loss between a recognition result based on the sample chromatogram and a sample label of the sample chromatogram, and a second loss between the sample chromatogram and a corresponding reconstructed chromatogram, and the chromatogram recognition model to be trained is updated based on the training loss until a training end condition is reached to obtain a trained chromatogram recognition model.

[0152] Each module in the above-mentioned chromatographic peak abnormality detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0153] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data, such as sample chromatograms, sample labels of sample chromatograms, chromatogram recognition models, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for detecting chromatographic peak anomalies is implemented.

[0154] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.15As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for detecting abnormal chromatographic peaks is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse.

[0155] Those skilled in the art will understand that Fig.14 , Fig.15 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0156] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the method for detecting chromatographic peak anomalies in any of the embodiments described above are implemented.

[0157] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for detecting chromatographic peak anomalies in any of the embodiments described above are implemented.

[0158] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method for detecting chromatographic peak anomalies in any of the embodiments described above.

[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0161] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for detecting abnormal chromatographic peaks, characterized in that: The method comprises: Obtaining an image feature vector of the chromatogram to be identified; Identify the chromatographic peak information of the chromatogram to be identified, and obtain the chromatographic peak information vector of the chromatogram to be identified; Superimposing the image feature vector and the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified; Encoding the target feature vector to obtain image coding features; Performing sparse representation on the image coding features to obtain sparse representation features; The sparse representation features are classified and identified to obtain an identification result of whether the chromatogram to be identified has abnormal chromatographic peaks.

2. The method according to claim 1, characterized in that The identifying the chromatographic peak information of the chromatogram to be identified includes: Traversing each pixel point in the chromatogram to be identified, for each traversed pixel point, synchronously traversing the target adjacent pixel points of the pixel point, obtaining the pixel information of the pixel point and the target adjacent pixel point, and determining whether the pixel point is a potential peak point based on the change trend of the pixel information of the pixel point and the target adjacent pixel point, wherein the target adjacent pixel point includes the left adjacent pixel point, the right adjacent pixel point of the pixel point, and a preset number of neighboring pixel points of the pixel point, the left adjacent pixel point and the right adjacent pixel point; Based on the traversed potential peak points, the chromatographic peak information of the chromatogram to be identified is obtained.

3. The method according to claim 2, characterized in that The step of obtaining the image feature vector of the chromatogram to be identified includes: reorganizing the chromatogram to be identified into a one-dimensional feature vector to obtain the image feature vector of the chromatogram to be identified; The traversing each pixel point in the to-be-identified chromatogram and synchronously traversing target adjacent pixel points of each traversed pixel point includes: Each feature point in the one-dimensional feature vector is traversed, and for each traversed feature point, the associated feature points of the feature point are synchronously traversed, and the associated feature points are determined based on the number of rows or columns of the two-dimensional matrix corresponding to the chromatogram to be identified.

4. The method according to claim 3, characterized in that The step of reorganizing the chromatogram to be identified into a one-dimensional feature vector comprises: splitting the two-dimensional matrix corresponding to the chromatogram to be identified into a one-dimensional row vector after splitting the matrix into columns; The traversing of each feature point in the one-dimensional feature vector and synchronously traversing the associated feature points of each traversed feature point include: traversing each feature point in the one-dimensional feature vector, and synchronously traversing the ia, i+a, i-1, i+1, i-2a, ia-1, i-a+1, i+2a, i+a-1, and i+a+1 feature points for the traversed i-th feature point, wherein a is the number of rows of the two-dimensional matrix corresponding to the chromatogram to be identified.

5. The method according to claim 1, characterized in that The superimposing the image feature vector and the chromatogram peak information vector to obtain the target feature vector of the chromatogram to be identified includes: The image feature vector is concatenated with the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified.

6. The method according to any one of claims 1 to 5, characterized in that: Through the chromatogram recognition model, the image feature vector of the chromatogram to be identified is obtained, the chromatogram peak information of the chromatogram to be identified is identified, the chromatogram peak information vector of the chromatogram to be identified is obtained, the image feature vector and the chromatogram peak information vector are superimposed to obtain the target feature vector of the chromatogram to be identified; the target feature vector is encoded to obtain image encoding features; the image encoding features are sparsely represented to obtain sparse representation features; and the sparse representation features are classified and identified to obtain the recognition result of whether the chromatogram to be identified has chromatogram peak abnormalities.

7. The method according to claim 6, characterized in that The method for training and obtaining the chromatogram recognition model comprises: Acquire a sample chromatogram, wherein the sample chromatogram has a sample label; The sample chromatogram is processed as follows by the chromatogram recognition model to be trained, including: obtaining a sample image feature vector of the sample chromatogram; identifying sample chromatogram peak information of the sample chromatogram to obtain a sample chromatogram peak information vector of the sample chromatogram; superimposing the sample image feature vector and the sample chromatogram peak information vector to obtain a sample target feature vector of the sample chromatogram; encoding the sample target feature vector to obtain a sample image encoding feature; sparsely representing the sample image encoding feature to obtain a sample sparse representation feature; classifying and identifying the sample sparse representation feature to obtain a recognition result of the sample chromatogram; reconstructing the image based on the sample sparse representation feature to obtain a reconstructed chromatogram; The training loss is calculated, wherein the training loss includes a first loss between a recognition result based on the sample chromatogram and a sample label of the sample chromatogram, and a second loss between the sample chromatogram and a corresponding reconstructed chromatogram, and the chromatogram recognition model to be trained is updated based on the training loss until a training end condition is reached to obtain a trained chromatogram recognition model.

8. A device for detecting abnormal chromatographic peaks, characterized in that: The device comprises: A feature vector acquisition module, used for acquiring the image feature vector of the chromatogram to be identified; A peak recognition module, used to recognize the chromatographic peak information of the chromatogram to be recognized, and obtain the chromatographic peak information vector of the chromatogram to be recognized; A vector superposition module, used for superimposing the image feature vector and the chromatogram peak information vector to obtain a target feature vector of the chromatogram to be identified; An encoding module, used for encoding the target feature vector to obtain an image encoding feature; A sparse processing module, used for performing sparse representation on the image coding features to obtain sparse representation features; The classification and recognition module is used to classify and recognize the sparse representation features to obtain a recognition result of whether there are abnormal chromatographic peaks in the chromatogram to be recognized.

9. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Glycolide content detection method based on liquid chromatography

    CN119936284A

  • Geochemical chromatogram-oriented biomarker peak identification and integration method

    CN122510665A

  • Geochemical chromatogram-oriented biomarker peak identification and integration method

    CN122510665B