An optical system consistency judgment method and related device
By calculating the gain difference and histogram centroid of the scattered light in the optical system, and combining this with hardware linear detection, the accuracy and efficiency issues of consistency judgment in the optical system are solved, enabling efficient multi-device detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN COMEN MEDICAL INSTR
- Filing Date
- 2023-05-24
- Publication Date
- 2026-05-22
AI Technical Summary
The consistency judgment of existing optical systems relies on visual observation, which lacks data confirmation, resulting in large errors and low detection efficiency, especially when testing optical systems with multiple devices.
By calculating the gain difference between low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light generated by a substance containing two particles in an optical system, the consistency of the optical system is determined using the histogram centroid calculation method, and hardware linear detection is combined to improve accuracy.
This enables the confirmation of optical system consistency through substantial data, improving the effectiveness and efficiency of judgment, reducing errors, and ensuring the normal operation of the equipment.
Smart Images

Figure CN116678809B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical system technology, and in particular to a method and related apparatus for judging the consistency of optical systems. Background Technology
[0002] Currently, optical system consistency testing relies on visual inspection of the light spot shape to confirm the system's correctness, lacking substantial data to confirm consistency. This can lead to potential errors in consistency assessment. Optical system consistency can be understood as the alignment of the optical axis. Optical axis alignment refers to the alignment of the line connecting the centers of the optical surfaces (optical axis) with the reference axis (lens barrel centerline). As crucial for the interoperability of subsystems, optical system consistency is a vital performance indicator ensuring normal equipment operation; therefore, its testing is essential.
[0003] Secondly, existing technologies primarily perform consistency testing on individual optical systems. When it is necessary to test multiple optical systems corresponding to multiple devices, each system must be tested individually, which results in low testing efficiency.
[0004] Therefore, in order to improve the effectiveness of optical system consistency judgment, there is an urgent need for a method to confirm the consistency of optical systems through substantial data and to enable the simultaneous testing of multiple optical systems. Summary of the Invention
[0005] The main objective of this invention is to provide a method and related apparatus for determining the consistency of optical systems, which can solve the problem of low accuracy in the determination of optical system consistency in the prior art. The related apparatus includes an optical system consistency determination device and a computer-readable storage medium.
[0006] To achieve the above objectives, the first aspect of the present invention provides a method for determining the consistency of an optical system, the method comprising:
[0007] Determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, calculate the gain corresponding to different particle clusters contained in the substance under test under a preset gain. The substance under test is a substance containing two particle clusters.
[0008] The difference between the gains corresponding to different particles contained in the substance under test is calculated, and the difference is compared with a difference threshold. If the difference is less than the difference threshold, the optical system is determined to be consistent. If the difference is not less than the difference threshold, the optical system is determined to be inconsistent.
[0009] In conjunction with the first aspect, in one possible implementation, the above-mentioned calculation of the gain corresponding to different particle clusters contained in the test substance under a preset gain includes: under the preset gain, acquiring the scattered light generated by the test substance being irradiated by the laser beam when passing through the laser detection area of the optical system, the scattered light including low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light; generating first data based on the low-angle value of the particles in the low-angle scattered light, generating second data based on the medium-angle value of the particles in the medium-angle scattered light, and generating third data based on the high-angle value of the particles in the high-angle forward scattered light, wherein the first data, the second data, and the third data all include the correspondence between the particle volume and the total number of particles in the volume; and calculating the gain corresponding to different particle clusters contained in the test substance based on the first data, the second data, and the third data.
[0010] In conjunction with the first aspect, in one possible implementation, the calculation of the gain corresponding to different particle clusters contained in the analyte based on the first data, the second data, and the third data includes: generating a histogram based on the first data to obtain a low-angle histogram, calculating the centroid of the low-angle histogram to obtain a first centroid; generating a histogram based on the second data to obtain a mid-angle histogram, calculating the centroid of the mid-angle histogram to obtain a second centroid; generating a histogram based on the third data to obtain a high-angle histogram, calculating the centroid of the high-angle histogram to obtain a third centroid; wherein the horizontal axis of the histogram represents the particle volume, and the vertical axis of the histogram represents the total number of particles corresponding to the particle volume; and calculating the gain corresponding to different particle clusters contained in the analyte based on the first centroid, the second centroid, and the third centroid.
[0011] In conjunction with the first aspect, in one possible implementation, the calculation of the centroid of the low-angle histogram to obtain the first centroid includes: determining the peak value of the low-angle histogram, obtaining the first peak value and the second peak value; obtaining the abscissa corresponding to the first target value, obtaining the first abscissa and the second abscissa; calculating the first centroid corresponding to the first peak value based on the first target value, the first abscissa, and the second abscissa; wherein the first target value is the product of the first peak value and a preset multiple, the preset multiple being greater than 0 and less than 1; obtaining the abscissa corresponding to the second target value, obtaining the third abscissa and the fourth abscissa; calculating the first centroid corresponding to the second peak value based on the second target value, the third abscissa, and the fourth abscissa; wherein the second target value is the product of the second peak value and the preset multiple.
[0012] In conjunction with the first aspect, in one possible implementation, the calculation of the centroid of the median angle histogram to obtain the second centroid includes: determining the peak value of the median angle histogram, obtaining the third peak value and the fourth peak value; obtaining the abscissa corresponding to the third target value, obtaining the fifth abscissa and the sixth abscissa; and calculating the second centroid corresponding to the third peak value based on the third target value, the fifth abscissa, and the sixth abscissa; wherein the third target value is the product of the third peak value and a preset multiple, the preset multiple being greater than 0 and less than 1; obtaining the abscissa corresponding to the fourth target value, obtaining the seventh abscissa and the eighth abscissa; and calculating the second centroid corresponding to the fourth peak value based on the fourth target value, the seventh abscissa, and the eighth abscissa; wherein the fourth target value is the product of the fourth peak value and the preset multiple.
[0013] In conjunction with the first aspect, in one possible implementation, the calculation of the centroid of the high-angle histogram to obtain the third centroid includes: determining the peak value of the high-angle histogram to obtain the fifth peak value and the sixth peak value; obtaining the abscissa corresponding to the fifth target value to obtain the ninth abscissa and the tenth abscissa; and calculating the third centroid corresponding to the fifth peak value based on the fifth target value, the ninth abscissa, and the tenth abscissa; wherein the fifth target value is the product of the fifth peak value and a preset multiple; the preset multiple is greater than 0 and less than 1; obtaining the abscissa corresponding to the sixth target value to obtain the eleventh abscissa and the twelfth abscissa; and calculating the third centroid corresponding to the sixth peak value based on the sixth target value, the eleventh abscissa, and the twelfth abscissa; wherein the sixth target value is the product of the sixth peak value and the preset multiple.
[0014] In conjunction with the first aspect, in one possible implementation, the aforementioned preset gain includes a first gain and a second gain, the gain including a first target gain, a second target gain, and a third target gain, the particle cluster including a first particle cluster and a second particle cluster, and the step of calculating the gain corresponding to different particle clusters contained in the analyte based on the first centroid, the second centroid, and the third centroid includes: calculating the first target gain corresponding to the first particle cluster based on the first centroid corresponding to the first peak value under the first gain, the first centroid corresponding to the first peak value under the second gain, the first gain, and the second gain; and calculating the first target gain corresponding to the second particle cluster based on the first centroid corresponding to the second peak value under the first gain, the second centroid corresponding to the second peak value under the second gain, the first gain, and the second gain. The second target gain corresponding to the first particle cluster is calculated based on the second centroid corresponding to the third wave peak under the first gain, the second centroid corresponding to the third wave peak under the second gain, the first gain, and the second gain. The second target gain corresponding to the second particle cluster is calculated based on the second centroid corresponding to the fourth wave peak under the first gain, the second centroid corresponding to the fourth wave peak under the second gain, the first gain, and the second gain. The third target gain corresponding to the first particle cluster is calculated based on the third centroid corresponding to the fifth wave peak under the first gain, the third centroid corresponding to the fifth wave peak under the second gain, the first gain, and the second gain. The third target gain corresponding to the second particle cluster is calculated based on the third centroid corresponding to the sixth wave peak under the first gain, the third centroid corresponding to the sixth wave peak under the second gain, the first gain, and the second gain.
[0015] In conjunction with the first aspect, in one possible implementation, the aforementioned difference includes a first difference, a second difference, and a third difference. The calculation of the difference between the gains corresponding to different particles contained in the analyte includes: calculating the difference between the first target gain corresponding to the first particle cluster and the first target gain corresponding to the second particle cluster to obtain a first difference; calculating the difference between the second target gain corresponding to the first particle cluster and the second target gain corresponding to the second particle cluster to obtain a second difference; and calculating the difference between the third target gain corresponding to the first particle cluster and the third target gain corresponding to the second particle cluster to obtain a third difference.
[0016] To achieve the above objectives, a second aspect of the present invention provides an optical system consistency judgment device, the device comprising:
[0017] Calculation module: used to determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, the gain corresponding to different particle clusters contained in the substance under test is calculated under a preset gain. The substance under test is a substance containing two particle clusters.
[0018] Judgment module: used to calculate the difference between the gains corresponding to different particles contained in the substance under test, compare the difference with the difference threshold, if the difference is less than the difference threshold, then the optical system is determined to have consistency, if the difference is not less than the difference threshold, then the optical system is determined to have inconsistency.
[0019] To achieve the above objectives, a third aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0020] Determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, calculate the gain corresponding to different particle clusters contained in the substance under test under a preset gain. The substance under test is a substance containing two particle clusters.
[0021] The difference between the gains corresponding to different particles contained in the substance under test is calculated, and the difference is compared with a difference threshold. If the difference is less than the difference threshold, the optical system is determined to be consistent. If the difference is not less than the difference threshold, the optical system is determined to be inconsistent.
[0022] To achieve the above objectives, a fourth aspect of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor causes the processor to perform the following steps:
[0023] Determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, calculate the gain corresponding to different particle clusters contained in the substance under test under a preset gain. The substance under test is a substance containing two particle clusters.
[0024] The difference between the gains corresponding to different particles contained in the substance under test is calculated, and the difference is compared with a difference threshold. If the difference is less than the difference threshold, the optical system is determined to be consistent. If the difference is not less than the difference threshold, the optical system is determined to be inconsistent.
[0025] The embodiments of the present invention have the following beneficial effects:
[0026] This invention provides a method for determining the consistency of an optical system. In this solution, the gain of different particle clusters in a substance containing two particle clusters is calculated, and the difference in gain results corresponding to different particle clusters is compared with a difference threshold to determine the consistency of the optical system. This achieves substantive data-driven confirmation of optical system consistency, thereby improving the effectiveness of the consistency determination. Furthermore, before calculating the gain for different particle clusters, the linearity of the optical system hardware is checked. By ensuring the linearity of the optical system hardware, the gain corresponding to the substance is measured, improving the accuracy of gain measurement and further enhancing the effectiveness of the consistency determination. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] in:
[0029] Figure 1 This is a flowchart illustrating a method for determining the consistency of an optical system according to an embodiment of the present invention.
[0030] Figure 2 This is a schematic diagram of an optical system structure according to an embodiment of the present invention;
[0031] Figure 3 This is a flowchart illustrating a method for determining the consistency of an optical system according to an embodiment of the present invention.
[0032] Figure 4 This is a low-angle histogram corresponding to the detection substance containing a cluster of particles in an embodiment of the present invention.
[0033] Figure 5 This is a low-angle histogram corresponding to the detection substance containing two clusters of particles in an embodiment of the present invention.
[0034] Figure 6 This is a structural block diagram of an optical system consistency judgment device according to an embodiment of the present invention;
[0035] Figure 7 This is a structural block diagram of a computer device in an embodiment of the present invention. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] This invention provides a method for judging the consistency of an optical system, which is mainly used to judge the consistency of an optical system by using a substance containing two clumps of particles as the detection substance. It is applicable to any scenario for judging the consistency of an optical system.
[0038] To better illustrate the method of this invention, the principle of the optical system is described below, referring to... Figure 1 , Figure 1 This application provides a schematic diagram of the detection principle of a analyte, wherein the analyte refers to a substance used to detect the consistency of an optical system, and can be a standard particle, calibrator, quality control material, blood sample, etc. The standard particle and calibrator are substances containing one particle cluster, while the quality control material and blood sample are substances containing two particle clusters, such as... Figure 1 As shown, a certain amount of the analyte (i.e., Figure 1 The sample is injected through a nozzle into a conical flow chamber filled with diluent. Enveloped by the sheath fluid, individual cells pass through the center of the flow chamber. After being accelerated twice, the cells are irradiated by the laser beam when passing through the laser detection zone, generating scattered light. The properties of the scattered light are related to the cell size, the refractive index of the cell membrane, and the internal structure of the cell. Therefore, based on the scattered light generated by the laser beam irradiation when the cells pass through the laser detection zone after being accelerated twice, the cell size, cell membrane, and internal structure can be well analyzed.
[0039] To better illustrate how cells in the flow chamber generate scattered light when irradiated by a laser beam, this application provides a schematic diagram of an optical system structure, referring to... Figure 2 , Figure 2This application provides a schematic diagram of an optical system structure. The optical system includes a front light shaping section and a rear light scattering signal receiving section. The front light shaping section emits a laser beam to the flow chamber section, and the light scattering signal receiving section receives the scattered light signal. The rear light scattering signal receiving section may include the flow chamber section, an aperture, and a PD tube, etc. Cells in the flow chamber section, after undergoing secondary acceleration, are irradiated by the laser beam when passing through the laser detection area, generating scattered light. The scattered light reaches regions including a forward low-angle region, a forward high-angle region, and a lateral region. The forward low-angle region is called the low angle, and the low-angle scattered light reflects the cell size. The forward high-angle region is called the medium angle, and the medium-angle scattered light reflects the fine internal structure and particulate matter of the cell. The lateral region is called the high angle, and the high-angle forward scattered light reflects the fine internal structure and particulate matter of the cell. The scattered light can be refracted to various regions, giving the particles in the scattered light low-angle, medium-angle, and high-angle values. The optical receiver receives these scattered light signals and converts them into electrical pulses. Based on the collected electrical pulse data, the scattered light signals are analyzed.
[0040] In this embodiment, the consistency of the optical system can be judged based on low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light.
[0041] Reference Figure 3 , Figure 3 This is a flowchart illustrating a method for determining the consistency of an optical system according to an embodiment of the present invention, as shown below. Figure 3 As shown, the method includes the following steps:
[0042] Step S101: Determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, calculate the gain corresponding to different particle clusters contained in the substance under test under the preset gain.
[0043] The substance to be tested is a substance containing two clusters of particles.
[0044] Step S102: Calculate the difference between the gains corresponding to different particles contained in the substance to be tested, compare the difference with the difference threshold, if the difference is less than the difference threshold, then determine that the optical system has consistency, if the difference is not less than the difference threshold, then determine that the optical system does not have consistency.
[0045] Before determining the consistency of the optical system, in order to avoid large errors in the measurement results due to hardware nonlinearity, this embodiment first determines whether the hardware of the optical system is linear. If the optical system hardware is linear, the consistency determination action is then performed to improve the accuracy of the consistency determination. If the optical system hardware is nonlinear, the equipment is adjusted until the optical system hardware is linear.
[0046] Under the condition of linearity of optical system hardware, at a preset gain, the gain corresponding to different particle clusters contained in the test material is calculated respectively. Based on the comparison result between the difference between the gain corresponding to different particles contained in the test material and the difference threshold, it is determined whether the optical system has consistency. Specifically, if the difference is less than the difference threshold, the optical system is determined to have consistency; if the difference is not less than the difference threshold, the optical system is determined to have inconsistency.
[0047] This embodiment provides a hardware linearity detection method for an optical system, the specific steps of which are as follows:
[0048] Step S201: Under a preset target gain, acquire the scattered light generated by the laser beam when the detected substance passes through the laser detection area of the optical system. The scattered light includes low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light.
[0049] The detected substance can be a substance containing one cluster of particles or a substance containing at least two clusters of particles, and the target gain includes a first preset gain and a second preset gain.
[0050] Step S202: Generate first target data based on the low-angle value of particles in low-angle scattered light, generate second target data based on the medium-angle value of particles in medium-angle scattered light, and generate third target data based on the high-angle value of particles in high-angle forward scattered light. The first target data, the second target data, and the third target data all include the particle volume and the correspondence between the particle volume and the total number of particles in the volume.
[0051] Step S203: Generate a histogram based on the first target data to obtain a first histogram; generate a histogram based on the second target data to obtain a second histogram; and generate a histogram based on the third target data to obtain a third histogram.
[0052] Step S204: Calculate the centroid of the first histogram to obtain the first target centroid, calculate the centroid of the second histogram to obtain the second target centroid, and calculate the centroid of the third histogram to obtain the third target centroid.
[0053] Step S205: Calculate the gain based on the first target centroid under the first preset gain and the first target centroid under the second preset gain to obtain the first calibration gain; calculate the gain based on the second target centroid under the first preset gain and the second target centroid under the second preset gain to obtain the second calibration gain; and calculate the gain based on the third target centroid under the first preset gain and the third target centroid under the second preset gain to obtain the third calibration gain.
[0054] Step S206: Calculate the difference between the first calibration gain and the first standard gain to obtain the first target difference; calculate the difference between the second calibration gain and the second standard gain to obtain the second target difference; and calculate the difference between the third calibration gain and the third standard gain to obtain the third target difference.
[0055] Step S207: If the first target difference, the second target difference, and the third target difference are all less than a preset value, then the hardware of the optical system is linear; if there is a target difference among the first target difference, the second target difference, and the third target difference that is not less than a preset value, then the hardware of the optical system is nonlinear.
[0056] In this embodiment, firstly, the gain of the optical system is set to a first preset gain. Under the first preset gain, the scattered light generated by the laser beam when the detected substance passes through the laser detection area of the optical system is acquired. The scattered light includes low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light.
[0057] First target data is generated based on the low-angle value of particles in low-angle scattered light, second target data is generated based on the medium-angle value of particles in medium-angle scattered light, and third target data is generated based on the high-angle value of particles in high-angle forward scattered light. The first, second, and third target data all include the particle volume and the correspondence between the volume and the total number of particles. A histogram is generated based on the first target data to obtain the first histogram, the second target data to obtain the second histogram, and the third target data to obtain the third histogram. The horizontal axis of the histogram represents the particle volume, and the vertical axis of the histogram represents the total number of particles corresponding to the particle volume.
[0058] Calculate the centroid of the first histogram to obtain the first target centroid; calculate the centroid of the second histogram to obtain the second target centroid; and calculate the centroid of the third histogram to obtain the third target centroid.
[0059] The following explains how to calculate the centroid of a histogram:
[0060] To identify the peak values of a histogram, it's important to note that one peak corresponds to one cluster of particles. If the detected substance contains one cluster of particles, the histogram will have one peak value; if it contains two clusters, it will have two peak values, and so on. If the detected substance contains N clusters of particles, the histogram will have N peak values. (Refer to...) Figure 4 and Figure 5 , Figure 4 This is a low-angle histogram corresponding to a detection substance containing a cluster of particles, provided in an embodiment of the present invention. Figure 5 This is a low-angle histogram corresponding to a detection substance containing two clusters of particles, provided in an embodiment of the present invention.
[0061] If the substance being detected contains a cluster of particles, the peak value of the histogram is obtained, the product of the peak value and the multiplier is calculated, and the x-axis value corresponding to the product of the peak value and the multiplier is obtained, thus yielding the x-axis value L. r and the x-axis value L l The multiplier value takes a value in the range [0,1], and the multiplier value is generally 0.1.
[0062] The formula for the center of gravity is as follows:
[0063]
[0064] Where G is the centroid, X i Let F(X) be the x-coordinate value of the histogram F(X). i ) is X i The corresponding ordinate value, L r L l L represents the x-axis value corresponding to the product of the peak value and the multiple of the histogram. r <L l .
[0065] Taking the calculation of the centroid of the first histogram as an example, the formula for calculating the centroid of the first target is as follows:
[0066]
[0067] Among them, G 第一直方图 With X as the primary objective, i Let F(X) be the x-coordinate value of the first histogram. i ) is X i The corresponding ordinate value, L r1 L l1 These are the x-axis values corresponding to the product of the peak value and the multiple of the first histogram, respectively. r1 <L l1 .
[0068] When the substance being tested is a substance containing a cluster of particles, the centroids of each histogram can be calculated using the formulas described above, namely the first centroid, the second centroid, and the third centroid.
[0069] If the substance being detected contains at least N groups of particles, where N > 1, then the peak values of the histogram are obtained, resulting in N peak values. One peak value is arbitrarily selected to obtain the target peak value. The product of the target peak value and the multiplier is calculated, and the corresponding abscissa value L is obtained. r and the x-axis value L l The multiplier value takes a value in the range [0,1], and the multiplier value is generally 0.1.
[0070] The formula for the center of gravity is as follows:
[0071]
[0072] Where G is the centroid, X i Let F(X) be the x-coordinate value of the histogram F(X). i ) is X i The corresponding ordinate value, L r L l L represents the abscissa value corresponding to the product of the target wave peak value and its multiple. r <L l .
[0073] In one possible implementation, the centroid corresponding to each peak value of the histogram can be calculated separately to obtain N centroids, and any one of the N centroids can be selected as the centroid of the histogram.
[0074] When the substance being tested contains N groups of particles, the centroids of each histogram can be calculated using the formula above, namely the first centroid, the second centroid, and the third centroid.
[0075] Change the gain of the optical system to a second preset gain. Obtain the first, second, and third centroids under the second preset gain in the same way as obtaining the first, second, and third centroids under the first preset gain.
[0076] In this embodiment, it is necessary to calculate the gain under each histogram. Specifically, the gain is calculated based on the first target centroid under the first preset gain and the first target centroid under the second preset gain to obtain the first calibration gain. The gain is calculated based on the second target centroid under the first preset gain and the second target centroid under the second preset gain to obtain the second calibration gain. The gain is calculated based on the third target centroid under the first preset gain and the third target centroid under the second preset gain to obtain the third calibration gain.
[0077] The formula for calculating gain is as follows:
[0078]
[0079] or
[0080] Where D is the gain, G1 is the centroid under the first preset gain D1, G2 is the centroid under the second preset gain D2, and G is the target value of the centroid, which can be understood as the standard value of the centroid, and can be determined by experiments.
[0081] Taking the calculation of the gain under the first histogram as an example, the formula for calculating the first calibration gain is as follows:
[0082]
[0083] or
[0084] Where D1 is the first calibration gain, G1 is the first target centroid under the first preset gain D1, G2 is the first target centroid under the second preset gain D2, and G is the first centroid target value, which can be understood as the standard value of the centroid, and can be determined by experiments.
[0085] The gain under each histogram can be calculated according to the above gain calculation formula, namely the first calibration gain, the second calibration gain, and the third calibration gain.
[0086] Under standard conditions, the gain value is generally within a specific range, typically [0, 255]. To ensure the validity of the calculated gain, in this embodiment, after the gain calculation is completed, gain calibration is performed to confirm whether the first calibration gain, second calibration gain, and third calibration gain are within the specific range. If the first calibration gain, second calibration gain, and third calibration gain are all within the specific range, the difference between the first calibration gain and the first standard gain is calculated to obtain the first target difference. The difference between the second calibration gain and the second standard gain is calculated to obtain the second target difference. The difference between the third calibration gain and the third standard gain is calculated to obtain the third target difference. It is then determined whether the first target difference, the second target difference, and the third target difference are all less than a preset value, typically 2.5. If the first target difference, the second target difference, and the third target difference are all less than the preset value, the optical system is considered to have hardware linearity. If any of the first target difference, the second target difference, and the third target difference is not less than the preset value, the optical system is considered to have hardware nonlinearity.
[0087] If any of the first, second, and third calibration gains is outside the specific range, the equipment or the target gain is readjusted to ensure that all three calibration gains are within the specific range, thereby ensuring the validity of the calibration gain calculation and improving the accuracy of the hardware linearity judgment of the optical system.
[0088] If the optical system's hardware is linear, its consistency is assessed. Specifically, under a preset gain, the gain corresponding to different particle clusters contained in the test material is calculated. The test material contains two particle clusters. The difference between the gains corresponding to the different particles in the test material is calculated and compared to a threshold. If the difference is less than the threshold, the optical system is considered consistent; otherwise, it is considered inconsistent. Compared to using a material containing one particle cluster as the test material, using a material containing two particle clusters allows for the simultaneous detection of the gains corresponding to two different particle clusters. This comparison of the gains corresponding to different particles enables the determination of the optical system's consistency, improving detection efficiency.
[0089] Under the preset gain, the gain corresponding to different particle clusters contained in the analyte is calculated respectively, as follows:
[0090] Step S301: Under a preset gain, acquire the scattered light generated by the laser beam when the substance to be tested passes through the laser detection area of the optical system.
[0091] The scattered light includes low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light, and the preset gain includes first gain and second gain.
[0092] Step S302: Generate first data based on the low-angle value of particles in low-angle scattered light, generate second data based on the medium-angle value of particles in medium-angle scattered light, and generate third data based on the high-angle value of particles in high-angle forward scattered light.
[0093] The first, second, and third data all include the particle volume and the correspondence between the volume and the total number of particles in that volume.
[0094] Step S303: Calculate the gain corresponding to different particle clusters contained in the substance to be tested based on the first data, the second data, and the third data.
[0095] Based on the first, second, and third data, the gain corresponding to different particle clusters contained in the substance under test is calculated. The specific steps are as follows:
[0096] Step 401: Generate a histogram based on the first data to obtain a low-angle histogram, calculate the centroid of the low-angle histogram to obtain a first centroid; generate a histogram based on the second data to obtain a mid-angle histogram, calculate the centroid of the mid-angle histogram to obtain a second centroid; generate a histogram based on the third data to obtain a high-angle histogram, calculate the centroid of the high-angle histogram to obtain a third centroid.
[0097] In the histogram, the horizontal axis represents the particle volume, and the vertical axis represents the total number of particles corresponding to that particle volume.
[0098] Step S402: Calculate the gain corresponding to different particle clusters contained in the substance to be tested based on the first centroid, the second centroid, and the third centroid.
[0099] In one possible implementation, the method for calculating the centroid of the low-angle histogram to obtain the first centroid can be:
[0100] Step S501: Determine the peak value of the low-angle histogram, obtain the first peak value and the second peak value, obtain the abscissa corresponding to the first target value, obtain the first abscissa and the second abscissa, and calculate the first centroid corresponding to the first peak value based on the first target value, the first abscissa and the second abscissa.
[0101] The first target value is the product of the first wave peak value and a preset multiple, where the preset multiple is greater than 0 and less than 1.
[0102] Step S502: Obtain the abscissa corresponding to the second target value, and obtain the third abscissa and the fourth abscissa. Calculate the first centroid corresponding to the second wave peak based on the second target value, the third abscissa, and the fourth abscissa.
[0103] The second target value is the product of the second wave peak value and a preset multiple.
[0104] In one possible implementation, the method for calculating the centroid of the mid-angle histogram to obtain the second centroid can be:
[0105] Step S601: Determine the peak value of the mid-angle histogram, obtain the third peak value and the fourth peak value, obtain the horizontal coordinate corresponding to the third target value, obtain the fifth horizontal coordinate and the sixth horizontal coordinate, and calculate the second centroid corresponding to the third peak value based on the third target value, the fifth horizontal coordinate and the sixth horizontal coordinate.
[0106] The third target value is the product of the third wave peak value and a preset multiple, where the preset multiple is greater than 0 and less than 1.
[0107] Step S602: Obtain the abscissa corresponding to the fourth target value, and obtain the seventh abscissa and the eighth abscissa. Calculate the second centroid corresponding to the fourth wave peak value based on the fourth target value, the seventh abscissa, and the eighth abscissa.
[0108] The fourth target value is the product of the fourth wave peak value and a preset multiple.
[0109] In one possible implementation, the method for calculating the centroid of the high-angle histogram to obtain the third centroid can be:
[0110] Step S701: Determine the peak value of the high-angle histogram, obtain the fifth peak value and the sixth peak value, obtain the abscissa corresponding to the fifth target value, obtain the ninth abscissa and the tenth abscissa, and calculate the third centroid corresponding to the fifth peak value based on the fifth target value, the ninth abscissa and the tenth abscissa.
[0111] The fifth target value is the product of the fifth wave peak value and a preset multiple, where the preset multiple is greater than 0 and less than 1.
[0112] Step S702: Obtain the abscissa corresponding to the sixth target value, and obtain the eleventh and twelfth abscissas. Calculate the third centroid corresponding to the sixth wave peak based on the sixth target value, the eleventh abscissa, and the twelfth abscissa; wherein, the sixth target value is the product of the sixth wave peak and a preset multiple.
[0113] In this embodiment, the preset gain includes a first gain and a second gain. First, the gain of the optical system is set to the first gain. Under the first gain, the scattered light generated by the laser beam when the substance to be tested passes through the laser detection area of the optical system is acquired. The scattered light includes low-angle scattered light, medium-angle scattered light and high-angle forward scattered light.
[0114] First data is generated based on the low-angle value of particles in low-angle scattered light, second data is generated based on the medium-angle value of particles in medium-angle scattered light, and third data is generated based on the high-angle value of particles in high-angle forward scattered light. The first, second, and third data all include the correspondence between particle volume and the total number of particles per volume. A histogram is generated based on the first data to obtain a low-angle histogram, a histogram is generated based on the second data to obtain a medium-angle histogram, and a histogram is generated based on the third data to obtain a high-angle histogram. The horizontal axis of the histogram represents the particle volume, and the vertical axis of the histogram represents the total number of particles corresponding to the particle volume.
[0115] Calculate the centroid of the low-angle histogram to obtain the first centroid, calculate the centroid of the middle-angle histogram to obtain the second centroid, and calculate the centroid of the high-angle histogram to obtain the third centroid.
[0116] Since the substance to be tested contains two clusters of particles, the low-angle histogram, the middle-angle histogram, and the high-angle histogram all have two peaks, with one peak corresponding to one cluster of particles. In this embodiment, the centroid corresponding to each peak in the histogram is calculated to obtain the centroid corresponding to each cluster of particles.
[0117] Therefore, in this embodiment, the center of gravity corresponding to each cluster of particles is determined by determining the peak value of the histogram and obtaining two peak values, denoted as the first peak value and the second peak value. Then, the product of the first peak value and a preset multiple, and the product of the second peak value and the preset multiple are calculated respectively, wherein the preset multiple B is greater than 0 and less than 1.
[0118] Obtain the x-coordinate corresponding to the product of the first peak value and a preset multiple, resulting in two x-coordinate values, which can be denoted as the first position and the second position. The formula for calculating the centroid corresponding to the first peak value is:
[0119]
[0120] Where G is the centroid, X i Let F(X) be the x-coordinate value of the histogram F(X). i ) is X i The corresponding ordinate value, L r L l These are the first and second positions, respectively, L r <L l .
[0121] Similarly, by obtaining the x-coordinate corresponding to the product of the second peak and a preset multiple, we obtain two x-coordinate values, which can be denoted as the third position and the fourth position. The formula for calculating the centroid corresponding to the second peak is:
[0122]
[0123] Where G is the centroid, X i Let F(X) be the x-coordinate value of the histogram F(X). i ) is X i The corresponding ordinate value, L r L l The third and fourth positions are respectively, L r <L l .
[0124] Using the above method, the centroids corresponding to the two peaks in the histogram can be calculated, thus obtaining the centroids corresponding to different particle clusters of the substance under test.
[0125] The calculation of the centroid of each histogram is explained in detail below:
[0126] For a low-angle histogram, determine the peak values of the low-angle histogram, and denote the two peak values as the first peak value and the second peak value, respectively. Calculate the product of the first peak value and a preset multiple to obtain the first target value. Obtain the abscissa corresponding to the first target value, and obtain the first and second abscissas. Based on the first target value, the first abscissa, and the second abscissa, calculate the first centroid corresponding to the first peak value. Calculate the product of the second peak value and the preset multiple to obtain the second target value, and obtain the abscissa corresponding to the second target value, and obtain the third and fourth abscissas. Based on the second target value, the third and fourth abscissas, calculate the first centroid corresponding to the second peak value.
[0127] For the median angle histogram, determine the peak values of the median angle histogram, and denote the two peak values as the third peak value and the fourth peak value, respectively. Calculate the third target value as the product of the third peak value and a preset multiple, and obtain the x-coordinate corresponding to the third target value, thus obtaining the fifth and sixth x-coordinates. Based on the third target value, the fifth x-coordinate, and the sixth x-coordinate, calculate the second centroid corresponding to the third peak value. Calculate the product of the fourth peak value and the preset multiple, obtain the x-coordinate corresponding to the fourth target value, thus obtaining the seventh and eighth x-coordinates. Based on the fourth target value, the seventh x-coordinate, and the eighth x-coordinate, calculate the second centroid corresponding to the fourth peak value.
[0128] For the high-angle histogram, determine the peak values of the high-angle histogram, and denote the two peak values as the fifth peak value and the sixth peak value, respectively. Calculate the fifth target value as the product of the fifth peak value and a preset multiple, and obtain the x-coordinate corresponding to the fifth target value, resulting in the ninth and tenth x-coordinates. Based on the fifth target value, the ninth x-coordinate, and the tenth x-coordinate, calculate the third centroid corresponding to the fifth peak value. Calculate the sixth peak value as the product of the sixth peak value and the preset multiple, and obtain the x-coordinate corresponding to the sixth target value, resulting in the eleventh and twelfth x-coordinates. Based on the sixth target value, the eleventh and twelfth x-coordinates, calculate the third centroid corresponding to the sixth peak value.
[0129] To calculate the centroids of each histogram under the first gain, the gain of the optical system is changed to the second gain. The method for obtaining the first, second, and third centroids corresponding to each histogram under the first gain is the same as that for obtaining the first, second, and third centroids corresponding to each histogram under the second gain. These will not be elaborated here.
[0130] The first, second, and third centroids under the second gain were obtained; that is, the first centroid corresponding to the first peak of the low-angle histogram, the first centroid corresponding to the second peak of the low-angle histogram, the second centroid corresponding to the third peak, the second centroid corresponding to the fourth peak, the third centroid corresponding to the fifth peak, and the third centroid corresponding to the sixth peak under the second gain. The first, third, and fifth peaks correspond to the same particle cluster, as do the second, fourth, and sixth peaks.
[0131] After obtaining the first, second, and third centroids under the first gain, and the first, second, and third centroids under the second gain, the gain corresponding to different particle clusters is calculated. This gain includes the first target gain under the low-angle histogram, the second target gain under the mid-angle histogram, and the third target gain under the high-angle histogram, specifically:
[0132] Step S801: Calculate the first target gain corresponding to the first particle cluster based on the first centroid corresponding to the first wave peak under the first gain, the first centroid corresponding to the first wave peak under the second gain, the first gain, and the second gain; calculate the first target gain corresponding to the second particle cluster based on the first centroid corresponding to the second wave peak under the first gain, the second centroid corresponding to the second wave peak under the second gain, the first gain, and the second gain.
[0133] Step S802: Calculate the second target gain corresponding to the first particle cluster based on the second centroid corresponding to the third wave peak under the first gain, the second centroid corresponding to the third wave peak under the second gain, the first gain, and the second gain; calculate the second target gain corresponding to the second particle cluster based on the second centroid corresponding to the fourth wave peak under the first gain, the second centroid corresponding to the fourth wave peak under the second gain, the first gain, and the second gain.
[0134] Step S803: Calculate the third target gain corresponding to the first particle cluster based on the third centroid corresponding to the fifth wave peak under the first gain, the third centroid corresponding to the fifth wave peak under the second gain, the first gain, and the second gain; calculate the third target gain corresponding to the second particle cluster based on the third centroid corresponding to the sixth wave peak under the first gain, the third centroid corresponding to the sixth wave peak under the second gain, the first gain, and the second gain.
[0135] The formula for calculating gain is as follows:
[0136]
[0137] or
[0138] Where D is the gain, G1 is the centroid under the first gain D1, G2 is the centroid under the second gain D2, and G is the target value of the centroid, which can be understood as the standard value of the centroid, and can be determined experimentally.
[0139] Therefore, the gain corresponding to different particle clusters can be calculated using the above formula. The particle clusters of the substance to be measured are respectively denoted as the first particle cluster and the second particle cluster. The first wave peak, the third wave peak, and the fifth wave peak correspond to the first particle cluster, and the second wave peak, the fourth wave peak, and the sixth wave peak correspond to the second particle cluster.
[0140] Taking the calculation of the first target gain corresponding to the first particle cluster as an example, this explains how to calculate the first target gain:
[0141]
[0142] or
[0143] Where D is the first target gain, G1 is the first centroid corresponding to the first peak value under the first gain D1, G2 is the first centroid corresponding to the first peak value under the second gain D2, and G is the centroid target value, which can be understood as the standard value of the centroid, and can be determined by experiments.
[0144] It should be noted that the standard centroid values used when calculating the gain of each histogram are not necessarily equal; the standard centroid values are empirical values.
[0145] Since the gains of different particle clusters in the test material are relatively close when the optical system is consistent, meaning the gain difference is not too large, this embodiment determines the consistency of the optical system by calculating the gain difference corresponding to different particle clusters. Specifically:
[0146] Step S901: Calculate the difference between the first target gain corresponding to the first particle cluster and the first target gain corresponding to the second particle cluster to obtain the first difference.
[0147] Step S902: Calculate the difference between the second target gain corresponding to the first particle cluster and the second target gain corresponding to the second particle cluster to obtain the second difference.
[0148] Step S903: Calculate the difference between the third target gain corresponding to the first particle cluster and the third target gain corresponding to the second particle cluster to obtain the third difference.
[0149] The system compares the differences to a threshold, where the differences include a first difference, a second difference, and a third difference. If the difference is less than the threshold, the optical system is determined to be consistent; if the difference is not less than the threshold, the optical system is determined to be inconsistent. In other words, if all three differences are less than the threshold, the optical system is determined to be consistent; if any one of these differences is not less than the threshold, the optical system is determined to be inconsistent.
[0150] By comparing the gain difference with the difference threshold, the consistency of the optical system can be determined. This method can confirm the consistency of the optical system with substantial data, thereby improving the effectiveness of the consistency judgment. In addition, the method is simple, does not rely on extra equipment, and is easy to operate.
[0151] Based on the above method, by calculating the gain of different particle clusters in a substance containing two particle clusters, and comparing the difference in gain results corresponding to different particle clusters with a difference threshold, the consistency of the optical system is determined. This achieves substantive data confirmation of the optical system's consistency, thereby improving the effectiveness of the consistency judgment. Furthermore, before calculating the gain for different particle clusters, the linearity of the optical system's hardware is checked. By ensuring the linearity of the optical system's hardware, the gain corresponding to the substance is measured, improving the accuracy of gain measurement and further enhancing the effectiveness of the optical system consistency judgment.
[0152] To better implement the above method, embodiments of the present invention provide an optical system consistency judgment device, referring to... Figure 6 , Figure 6 A structural block diagram of an optical system consistency judgment device provided in an embodiment of the present invention is shown below. Figure 6 As shown, the device 60 includes:
[0153] Calculation module 601: used to determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, then under a preset gain, the gain corresponding to different particle clusters contained in the substance under test is calculated respectively; wherein, the substance under test is a substance containing two particle clusters.
[0154] Judgment module 602: used to calculate the difference between the gains corresponding to different particles contained in the substance under test, compare the difference with the difference threshold, if the difference is less than the difference threshold, then determine that the optical system has consistency, if the difference is not less than the difference threshold, then determine that the optical system does not have consistency.
[0155] In one possible design, the calculation module 601 is specifically used to: acquire, under a preset gain, the scattered light generated by the laser beam irradiation of the substance under test when it passes through the laser detection area of the optical system, the scattered light including low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light; generate first data based on the low-angle value of the particles in the low-angle scattered light, generate second data based on the medium-angle value of the particles in the medium-angle scattered light, and generate third data based on the high-angle value of the particles in the high-angle forward scattered light, wherein the first data, the second data, and the third data all include the particle volume and the correspondence between the total number of particles in the volume; and calculate the gain corresponding to different particle clusters contained in the substance under test based on the first data, the second data, and the third data.
[0156] In one possible design, the calculation module 601 is specifically used to: generate a histogram based on the first data to obtain a low-angle histogram, calculate the centroid of the low-angle histogram to obtain a first centroid; generate a histogram based on the second data to obtain a mid-angle histogram, calculate the centroid of the mid-angle histogram to obtain a second centroid; generate a histogram based on the third data to obtain a high-angle histogram, calculate the centroid of the high-angle histogram to obtain a third centroid; wherein, the horizontal axis of the histogram is the particle volume, and the vertical axis of the histogram is the total number of particles corresponding to the particle volume; and calculate the gain corresponding to different particle clusters contained in the substance to be tested based on the first centroid, the second centroid, and the third centroid.
[0157] In one possible design, the calculation module 601 is specifically used to: determine the peak value of the low-angle histogram, obtain a first peak value and a second peak value, obtain the abscissa corresponding to a first target value, obtain a first abscissa and a second abscissa, and calculate the first centroid corresponding to the first peak value based on the first target value, the first abscissa, and the second abscissa; wherein, the first target value is the product of the first peak value and a preset multiple, the preset multiple being greater than 0 and less than 1; obtain the abscissa corresponding to the second target value, obtain a third abscissa and a fourth abscissa, and calculate the first centroid corresponding to the second peak value based on the second target value, the third abscissa, and the fourth abscissa; wherein, the second target value is the product of the second peak value and a preset multiple.
[0158] In one possible design, the calculation module 601 is specifically used to: determine the peak value of the mid-angle histogram, obtain the third peak value and the fourth peak value, obtain the abscissa corresponding to the third target value, obtain the fifth abscissa and the sixth abscissa, and calculate the second centroid corresponding to the third peak value based on the third target value, the fifth abscissa, and the sixth abscissa; wherein the third target value is the product of the third peak value and a preset multiple, the preset multiple being greater than 0 and less than 1; obtain the abscissa corresponding to the fourth target value, obtain the seventh abscissa and the eighth abscissa, and calculate the second centroid corresponding to the fourth peak value based on the fourth target value, the seventh abscissa, and the eighth abscissa; wherein the fourth target value is the product of the fourth peak value and the preset multiple.
[0159] In one possible design, the calculation module 601 is specifically used to: determine the peak value of the high-angle histogram, obtain the fifth peak value and the sixth peak value, obtain the abscissa corresponding to the fifth target value, obtain the ninth abscissa and the tenth abscissa, and calculate the third centroid corresponding to the fifth peak value based on the fifth target value, the ninth abscissa, and the tenth abscissa; wherein the fifth target value is the product of the fifth peak value and a preset multiple; the preset multiple is greater than 0 and less than 1; obtain the abscissa corresponding to the sixth target value, obtain the eleventh abscissa and the twelfth abscissa, and calculate the third centroid corresponding to the sixth peak value based on the sixth target value, the eleventh abscissa, and the twelfth abscissa; wherein the sixth target value is the product of the sixth peak value and the preset multiple.
[0160] In one possible design, the calculation module 601 is specifically used to: calculate the first target gain corresponding to the first particle cluster based on the first centroid corresponding to the first wave peak under the first gain, the first centroid corresponding to the first wave peak under the second gain, the first gain, and the second gain; calculate the first target gain corresponding to the second particle cluster based on the first centroid corresponding to the second wave peak under the first gain, the second centroid corresponding to the second wave peak under the second gain, the first gain, and the second gain; calculate the second target gain corresponding to the first particle cluster based on the second centroid corresponding to the third wave peak under the first gain, the second centroid corresponding to the third wave peak under the second gain, the first gain, and the second gain; calculate the second target gain corresponding to the second particle cluster based on the second centroid corresponding to the fourth wave peak under the first gain, the second centroid corresponding to the fourth wave peak under the second gain, the first gain, and the second gain; calculate the third target gain corresponding to the first particle cluster based on the third centroid corresponding to the fifth wave peak under the first gain, the third centroid corresponding to the fifth wave peak under the second gain, the first gain, and the second gain; and calculate the third target gain corresponding to the second particle cluster based on the third centroid corresponding to the sixth wave peak under the first gain, the third centroid corresponding to the sixth wave peak under the second gain, the first gain, and the second gain.
[0161] In one possible design, the judgment module 602 is specifically used to: calculate the difference between the first target gain corresponding to the first particle cluster and the first target gain corresponding to the second particle cluster to obtain a first difference; calculate the difference between the second target gain corresponding to the first particle cluster and the second target gain corresponding to the second particle cluster to obtain a second difference; and calculate the difference between the third target gain corresponding to the first particle cluster and the third target gain corresponding to the second particle cluster to obtain a third difference.
[0162] Based on the aforementioned device, by calculating the gain of different particle clusters of a substance containing two particle clusters, and comparing the difference in gain results corresponding to different particle clusters with a difference threshold, the consistency of the optical system is determined. This achieves substantive data-driven confirmation of the optical system's consistency, thereby improving the effectiveness of the consistency assessment. Furthermore, before calculating the gain for different particle clusters, the linearity of the optical system's hardware is checked. By ensuring the linearity of the optical system's hardware, the gain corresponding to the substance is measured, improving the accuracy of gain measurement and further enhancing the effectiveness of the optical system consistency assessment.
[0163] Figure 7 An internal structural diagram of a computer device in one embodiment is shown. This computer device can specifically be a terminal or a server. Figure 7 As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program causes the processor to perform all the steps of the above-described method. The internal memory may also store a computer program, which, when executed by the processor, causes the processor to perform all the steps of the above-described method. Those skilled in the art will understand that... Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0164] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the aforementioned method.
[0165] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the steps of the aforementioned method.
[0166] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0167] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.
[0168] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for judging the consistency of an optical system, characterized in that, The method includes: Determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, calculate the gain corresponding to different particle clusters contained in the substance under test under a preset gain. The substance under test is a substance containing two particle clusters. The difference between the gains corresponding to different particles contained in the substance under test is calculated, and the difference is compared with a difference threshold. If the difference is less than the difference threshold, the optical system is determined to have consistency. If the difference is not less than the difference threshold, the optical system is determined to have inconsistency. The step of calculating the gain corresponding to different particle clusters contained in the analyte under a preset gain includes: Under a preset gain, the scattered light generated by the laser beam when the substance to be tested passes through the laser detection area of the optical system is acquired. The scattered light includes low-angle scattered light, medium-angle scattered light and high-angle forward scattered light. First data is generated based on the low-angle value of particles in low-angle scattered light, second data is generated based on the medium-angle value of particles in medium-angle scattered light, and third data is generated based on the high-angle value of particles in high-angle forward scattered light. The first data, second data, and third data all include the particle volume and the correspondence between the particle volume and the total number of particles in the volume. Based on the first, second, and third data, the gain corresponding to the different particle clusters contained in the substance to be tested is calculated respectively.
2. The method according to claim 1, characterized in that, The step of calculating the gain corresponding to different particle clusters contained in the substance under test based on the first data, the second data, and the third data includes: A histogram is generated based on the first data to obtain a low-angle histogram, and the centroid of the low-angle histogram is calculated to obtain a first centroid. A histogram is generated based on the second data to obtain a medium-angle histogram, and the centroid of the medium-angle histogram is calculated to obtain a second centroid. A histogram is generated based on the third data to obtain a high-angle histogram, and the centroid of the high-angle histogram is calculated to obtain a third centroid. The horizontal axis of the histogram represents the particle volume, and the vertical axis represents the total number of particles corresponding to that particle volume. Based on the first centroid, the second centroid, and the third centroid, the gain corresponding to different particle clusters contained in the substance to be tested is calculated respectively.
3. The method according to claim 2, characterized in that, The calculation of the centroid of the low-angle histogram to obtain the first centroid includes: Determine the peak value of the low-angle histogram to obtain the first peak value and the second peak value. Obtain the abscissa corresponding to the first target value to obtain the first abscissa and the second abscissa. Calculate the first centroid corresponding to the first peak value based on the first target value, the first abscissa, and the second abscissa. Wherein, the first target value is the product of the first peak value and a preset multiple, where the preset multiple is greater than 0 and less than 1. Obtain the horizontal coordinate corresponding to the second target value, and obtain the third and fourth horizontal coordinates. Calculate the first centroid corresponding to the second wave peak value based on the second target value, the third horizontal coordinate, and the fourth horizontal coordinate; wherein the second target value is the product of the second wave peak value and a preset multiple.
4. The method according to claim 2, characterized in that, The calculation of the centroid of the mid-angle histogram to obtain the second centroid includes: Determine the peak value of the mid-angle histogram to obtain the third and fourth peak values. Obtain the abscissa corresponding to the third target value to obtain the fifth and sixth abscissas. Calculate the second centroid corresponding to the third peak value based on the third target value, the fifth abscissa, and the sixth abscissa. The third target value is the product of the third peak value and a preset multiple, where the preset multiple is greater than 0 and less than 1. Obtain the abscissa corresponding to the fourth target value, and obtain the seventh and eighth abscissas. Calculate the second centroid corresponding to the fourth wave peak value based on the fourth target value, the seventh abscissa, and the eighth abscissa; wherein, the fourth target value is the product of the fourth wave peak value and a preset multiple.
5. The method according to claim 2, characterized in that, The calculation of the centroid of the high-angle histogram to obtain the third centroid includes: Determine the peak value of the high-angle histogram to obtain the fifth and sixth peak values. Obtain the abscissa corresponding to the fifth target value to obtain the ninth and tenth abscissas. Calculate the third centroid corresponding to the fifth peak value based on the fifth target value, the ninth abscissa, and the tenth abscissa. The fifth target value is the product of the fifth peak value and a preset multiple. The preset multiple is greater than 0 and less than 1. Obtain the x-coordinate corresponding to the sixth target value, and obtain the eleventh and twelfth x-coordinates. Based on the sixth target value, the eleventh x-coordinate, and the twelfth x-coordinate, calculate the third centroid corresponding to the sixth wave peak value; wherein, the sixth target value is the product of the sixth wave peak value and a preset multiple.
6. The method according to claim 5, characterized in that, The preset gain includes a first gain and a second gain, the gain includes a first target gain, a second target gain, and a third target gain, the particle cluster includes a first particle cluster and a second particle cluster, and the step of calculating the gain corresponding to different particle clusters contained in the analyte based on the first centroid, the second centroid, and the third centroid includes: Based on the first centroid corresponding to the first wave peak under the first gain, the first centroid corresponding to the first wave peak under the second gain, the first gain, and the second gain, calculate the first target gain corresponding to the first particle cluster; based on the first centroid corresponding to the second wave peak under the first gain, the second centroid corresponding to the second wave peak under the second gain, the first gain, and the second gain, calculate the first target gain corresponding to the second particle cluster. Based on the second centroid corresponding to the third wave peak under the first gain, the second centroid corresponding to the third wave peak under the second gain, the first gain, and the second gain, calculate the second target gain corresponding to the first particle cluster; based on the second centroid corresponding to the fourth wave peak under the first gain, the second centroid corresponding to the fourth wave peak under the second gain, the first gain, and the second gain, calculate the second target gain corresponding to the second particle cluster. Based on the third centroid corresponding to the fifth wave peak under the first gain, the third centroid corresponding to the fifth wave peak under the second gain, the first gain, and the second gain, calculate the third target gain corresponding to the first particle cluster; based on the third centroid corresponding to the sixth wave peak under the first gain, the third centroid corresponding to the sixth wave peak under the second gain, the first gain, and the second gain, calculate the third target gain corresponding to the second particle cluster.
7. The method according to claim 6, characterized in that, The difference includes a first difference, a second difference, and a third difference. The calculation of the difference in gain between different particles contained in the analyte includes: Calculate the difference between the first target gain corresponding to the first particle cluster and the first target gain corresponding to the second particle cluster to obtain the first difference; Calculate the difference between the second target gain corresponding to the first particle cluster and the second target gain corresponding to the second particle cluster to obtain the second difference; The difference between the third target gain corresponding to the first particle cluster and the third target gain corresponding to the second particle cluster is calculated to obtain the third difference.
8. A device for judging the consistency of an optical system, characterized in that, The device includes: Calculation module: used to determine whether the hardware of the optical system is linear. If the hardware of the optical system is linear, the gain corresponding to different particle clusters contained in the substance under test is calculated under a preset gain. The substance under test is a substance containing two particle clusters. Judgment module: used to calculate the difference between the gains corresponding to different particles contained in the substance under test, compare the difference with the difference threshold, if the difference is less than the difference threshold, then the optical system is determined to have consistency, if the difference is not less than the difference threshold, then the optical system is determined to have inconsistency. The calculation module is further configured to acquire, at a preset gain, the scattered light generated by the laser beam irradiation of the test substance as it passes through the laser detection area of the optical system. The scattered light includes low-angle scattered light, medium-angle scattered light, and high-angle forward scattered light. First data is generated based on the low-angle value of particles in the low-angle scattered light; second data is generated based on the medium-angle value of particles in the medium-angle scattered light; and third data is generated based on the high-angle value of particles in the high-angle forward scattered light. The first, second, and third data all include the particle volume and its correspondence with the total number of particles within that volume. Based on the first, second, and third data, the gain corresponding to different particle clusters contained in the test substance is calculated.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 7.