Optical system gain calibration method and apparatus
By generating histograms of low-angle, medium-angle, and high-angle scattered light, the gain of the optical system is calculated and it is determined whether it is within a preset range. This solves the problem of low accuracy in optical system gain calibration and achieves more accurate gain calibration.
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
Existing optical systems have low gain calibration accuracy when detecting substances containing a cluster of particles, and cannot effectively distinguish between substances containing a single cluster of particles and substances containing at least two clusters of particles, leading to errors in calibration gain calculation.
By acquiring the low-angle, mid-angle, and high-angle scattered light of the substance under test, a histogram is generated, the gain of the substance under test is calculated, and it is determined whether the calibration gain is within the preset range. If not, the preset gain of the optical system is changed, and the calibration process is repeated.
This improves the accuracy of optical system gain calibration for substances containing a cluster of particles. By combining histograms of low-angle, medium-angle, and high-angle scattered light, it comprehensively reflects the properties of the substance under test, thereby improving the accuracy of gain determination.
Smart Images

Figure CN116735458B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical system technology, and in particular to an optical system gain calibration method and apparatus. Background Technology
[0002] Currently, optical system gain calibration does not differentiate between detected materials; all detected materials are calculated using the same algorithm and calculation process to determine their center of gravity. However, some detected materials contain only one cluster of particles, while others contain at least two clusters. Since the properties of materials containing one cluster differ from those containing at least two clusters, using the same algorithm and calculation process to calculate the center of gravity for all materials will lead to inconsistencies in the number of identified particle clusters, causing errors in the gain calibration calculation. Gain calibration, in this context, refers to determining the gain of the optical system.
[0003] Therefore, in order to improve the accuracy of calibration gain for substances containing a cluster of particles, there is an urgent need for a method for optical system gain calibration for detection substances containing a cluster of particles. Summary of the Invention
[0004] The main objective of this invention is to provide an optical system gain calibration method and apparatus that can solve the problem of low accuracy in optical system gain calibration in the prior art.
[0005] To achieve the above objectives, a first aspect of the present invention provides an optical system gain calibration method, the method comprising:
[0006] Under the preset gain of the optical system, the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system is acquired, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance under test is a substance containing a cluster of particles;
[0007] First data is obtained based on low-angle scattered light, and a histogram is generated based on the first data to obtain a low-angle histogram; second data is obtained based on the low-angle histogram and low-angle scattered light, and a histogram is generated based on the second data to obtain a mid-angle histogram; third data is obtained based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, and a histogram is generated based on the third data to obtain a high-angle histogram; wherein, the data includes the correspondence between volume and the total number of particles corresponding to the volume, and the horizontal axis of the histogram is the volume, and the vertical axis is the total number of particles corresponding to the volume;
[0008] Based on the low-angle histogram, the middle-angle histogram, and the high-angle histogram, the gain corresponding to the substance under test is calculated to obtain the calibration gain; it is determined whether the calibration gain is within a preset range. If the calibration gain is within the preset range, the calibration gain is determined to be the gain of the optical system; if the calibration gain is not within the preset range, the preset gain of the optical system is changed, and the process returns to the step of obtaining the scattered light generated by the laser beam irradiation when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
[0009] In conjunction with the first aspect, in one possible implementation, obtaining the second data based on the low-angle histogram and the low-angle scattered light includes: determining the peak value of the low-angle histogram to obtain a first peak value; identifying the trough values on both sides of the first peak value to obtain a first trough value and a second trough value; determining the abscissas corresponding to the first trough value and the second trough value to obtain a first abscissa and a second abscissa; and obtaining the second data based on the first abscissa, the second abscissa, and the low-angle scattered light.
[0010] In conjunction with the first aspect, in one possible implementation, obtaining the second data based on the first abscissa, the second abscissa, and the low-angle scattered light includes: forming an interval by dividing the first abscissa and the second abscissa to obtain a first interval; and obtaining the second data based on the median angle value corresponding to the particles with volume within the first interval in the low-angle scattered light.
[0011] In conjunction with the first aspect, in one possible implementation, obtaining the third data based on the low-angle scattered light, the mid-angle scattered light, and the mid-angle histogram includes: identifying the peak value of the mid-angle histogram to obtain a second peak value; identifying the trough values on both sides of the second peak value to obtain a third trough value and a fourth trough value; determining the abscissas corresponding to the third trough value and the fourth trough value to obtain a third abscissa and a fourth abscissa; and obtaining the third data based on the third abscissa, the fourth abscissa, the low-angle scattered light, and the mid-angle scattered light.
[0012] In conjunction with the first aspect, in one possible implementation, obtaining the third data based on the third abscissa, the fourth abscissa, the low-angle scattered light, and the mid-angle scattered light includes: forming an interval between the third abscissa and the fourth abscissa to obtain a second interval; and obtaining the third data based on the high-angle value corresponding to the particle with volume in the first interval in the low-angle scattered light and the high-angle value corresponding to the particle with volume in the second interval in the mid-angle scattered light.
[0013] In conjunction with the first aspect, in one possible implementation, the above-mentioned calculation of the gain corresponding to the analyte based on the low-angle histogram, the mid-angle histogram, and the high-angle histogram to obtain the calibration gain includes: calculating the centroid of the low-angle histogram to obtain the first centroid, calculating the centroid of the mid-angle histogram to obtain the second centroid, and calculating the centroid of the high-angle histogram to obtain the third centroid; and calculating the gain corresponding to the analyte based on the first, second, and third centroids corresponding to the analyte under a first preset gain, and the first, second, and third centroids corresponding to the analyte under a second preset gain, to obtain the calibration gain.
[0014] In conjunction with the first aspect, in one possible implementation, the above-mentioned calculation of the centroid of the low-angle histogram to obtain the first centroid, calculation of the centroid of the mid-angle histogram to obtain the second centroid, and calculation of the centroid of the high-angle histogram to obtain the third centroid include: obtaining the peak value of the low-angle histogram to obtain the first peak value; calculating the product of the first peak value and a preset multiple to obtain the first target value; wherein the preset multiple is greater than 0 and less than 1; obtaining the abscissa corresponding to the first target value to obtain the first target coordinate and the second target coordinate; calculating the centroid of the low-angle histogram based on the first target coordinate and the second target coordinate to obtain the first centroid; obtaining the centroid of the mid-angle histogram to obtain the third centroid; and obtaining the peak value of the high-angle histogram to obtain the third centroid. The peak value of the histogram is used to obtain the second peak value. The product of the second peak value and a preset multiple is calculated to obtain the second target value. The x-coordinate corresponding to the second target value is obtained to obtain the third target coordinate and the fourth target coordinate. Based on the third target coordinate and the fourth target coordinate, the centroid of the low-angle histogram is calculated to obtain the second centroid. The peak value of the high-angle histogram is used to obtain the third peak value. The product of the third peak value and a preset multiple is calculated to obtain the third target value. The x-coordinate corresponding to the third target value is obtained to obtain the fifth target coordinate and the sixth target coordinate. Based on the fifth target coordinate and the sixth target coordinate, the centroid of the high-angle histogram is calculated to obtain the third centroid.
[0015] In conjunction with the first aspect, in one possible implementation, the calculation of the calibration gain based on the first centroid, second centroid, and third centroid corresponding to the first preset gain, and the first centroid, second centroid, and third centroid corresponding to the second preset gain, includes: calculating a first calibration gain based on the first centroid corresponding to the first preset gain, the first centroid corresponding to the second preset gain, and a standard value of the first centroid; calculating a second calibration gain based on the second centroid corresponding to the first preset gain, the second centroid corresponding to the second preset gain, and a standard value of the second centroid; and calculating a third calibration gain based on the third centroid corresponding to the first preset gain, the third centroid corresponding to the second preset gain, and a standard value of the third centroid.
[0016] In conjunction with the first aspect, in one possible implementation, the determination of whether the calibration gain is within a preset range, and if the calibration gain is within the preset range, then the calibration gain is determined to be the gain of the optical system; if the calibration gain is not within the preset range, then the calibration gain is determined to be invalid, includes: determining whether the first calibration gain, the second calibration gain, and the third calibration gain are all within the preset range; if the first calibration gain, the second calibration gain, and the third calibration gain are all within the preset range, then the calibration gain is determined to be the gain of the optical system; if the first calibration gain, the second calibration gain, and the third calibration gain are not all within the preset range, then the calibration gain is determined to be invalid.
[0017] To achieve the above objectives, a second aspect of the present invention provides an optical system gain calibration apparatus, the apparatus comprising:
[0018] Acquisition module: used to acquire the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system under a preset gain of the optical system, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance under test is a substance containing a cluster of particles;
[0019] Histogram acquisition module: used to acquire first data based on low-angle scattered light, generate a histogram based on the first data to obtain a low-angle histogram; acquire second data based on the low-angle histogram and low-angle scattered light, generate a histogram based on the second data to obtain a mid-angle histogram; acquire third data based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, generate a histogram based on the third data to obtain a high-angle histogram; wherein, the data includes the correspondence between volume and the total number of particles corresponding to the volume, and the horizontal axis of the histogram is the volume, and the vertical axis is the total number of particles corresponding to the volume;
[0020] Gain calculation module: used to calculate the gain corresponding to the substance under test based on the low-angle histogram, the middle-angle histogram, and the high-angle histogram to obtain the calibration gain; determine whether the calibration gain is within a preset range; if the calibration gain is within the preset range, determine that the calibration gain is the gain of the optical system; if the calibration gain is not within the preset range, change the preset gain of the optical system, and return to the step of obtaining the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
[0021] 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:
[0022] Under the preset gain of the optical system, the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system is acquired, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance under test is a substance containing a cluster of particles;
[0023] First data is obtained based on low-angle scattered light, and a histogram is generated based on the first data to obtain a low-angle histogram; second data is obtained based on the low-angle histogram and low-angle scattered light, and a histogram is generated based on the second data to obtain a mid-angle histogram; third data is obtained based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, and a histogram is generated based on the third data to obtain a high-angle histogram; wherein, the data includes the correspondence between volume and the total number of particles corresponding to the volume, and the horizontal axis of the histogram is the volume, and the vertical axis is the total number of particles corresponding to the volume;
[0024] Based on the low-angle histogram, the middle-angle histogram, and the high-angle histogram, the gain corresponding to the substance under test is calculated to obtain the calibration gain; it is determined whether the calibration gain is within a preset range. If the calibration gain is within the preset range, the calibration gain is determined to be the gain of the optical system; if the calibration gain is not within the preset range, the preset gain of the optical system is changed, and the process returns to the step of obtaining the scattered light generated by the laser beam irradiation when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
[0025] 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:
[0026] Under the preset gain of the optical system, the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system is acquired, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance under test is a substance containing a cluster of particles;
[0027] First data is obtained based on low-angle scattered light, and a histogram is generated based on the first data to obtain a low-angle histogram; second data is obtained based on the low-angle histogram and low-angle scattered light, and a histogram is generated based on the second data to obtain a mid-angle histogram; third data is obtained based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, and a histogram is generated based on the third data to obtain a high-angle histogram; wherein, the data includes the correspondence between volume and the total number of particles corresponding to the volume, and the horizontal axis of the histogram is the volume, and the vertical axis is the total number of particles corresponding to the volume;
[0028] Based on the low-angle histogram, the middle-angle histogram, and the high-angle histogram, the gain corresponding to the substance under test is calculated to obtain the calibration gain; it is determined whether the calibration gain is within a preset range. If the calibration gain is within the preset range, the calibration gain is determined to be the gain of the optical system; if the calibration gain is not within the preset range, the preset gain of the optical system is changed, and the process returns to the step of obtaining the scattered light generated by the laser beam irradiation when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
[0029] The embodiments of the present invention have the following beneficial effects:
[0030] This invention provides a gain calibration method for an optical system. Under a preset gain of the optical system, the method acquires the scattered light generated when a substance under test is irradiated by a laser beam passing through the laser detection area of the optical system. The scattered light includes at least low-angle scattered light and mid-angle scattered light. The substance under test is a substance containing a cluster of particles. First data is obtained based on the low-angle scattered light; a histogram is generated based on the first data to obtain a low-angle histogram. Second data is obtained based on the low-angle histogram and the low-angle scattered light; a histogram is generated based on the second data to obtain a mid-angle histogram. Third data is obtained based on the low-angle scattered light, the mid-angle scattered light, and the mid-angle histogram; a histogram is generated based on the third data. A high-angle histogram is obtained; the data includes the correspondence between volume and the total number of particles corresponding to that volume. The horizontal axis of the histogram represents volume, and the vertical axis represents the total number of particles corresponding to that volume. Based on the low-angle, medium-angle, and high-angle histograms, the gain corresponding to the analyte is calculated to obtain the calibration gain. It is then determined whether the calibration gain is within a preset range. If the calibration gain is within the preset range, it is determined to be the gain of the optical system. If the calibration gain is not within the preset range, the preset gain of the optical system is changed, and the process returns to the step of obtaining the scattered light generated by the laser beam irradiation when the analyte passes through the laser detection area of the optical system under the preset gain of the optical system. In this technical solution, since low-angle scattered light can reflect the size of cells, and medium-angle scattered light can reflect the fine internal structure and particulate matter of cells, combining low-angle scattered light, medium-angle scattered light, low-angle histogram, medium-angle histogram, and high-angle histogram can more comprehensively reflect the property characteristics of the analyte, thereby improving the accuracy of determining the gain of the optical system. Attached Figure Description
[0031] 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.
[0032] in:
[0033] Figure 1 This is a schematic diagram illustrating the detection principle of a analyte in an embodiment of the present invention;
[0034] Figure 2 This is a schematic diagram of an optical system structure according to an embodiment of the present invention;
[0035] Figure 3 This is a flowchart illustrating an optical system gain calibration method according to an embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram of a low-angle histogram L(X) in an embodiment of the present invention;
[0037] Figure 5 A structural block diagram of an optical system gain calibration device according to an embodiment of the present invention;
[0038] Figure 6 This is a structural block diagram of a computer device in an embodiment of the present invention. Detailed Implementation
[0039] 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.
[0040] Reference Figure 1 , Figure 1 This application provides a schematic diagram of a detection principle for a analyte, wherein the analyte is the substance to be detected, generally including standard particles, calibrators, quality control materials, blood samples, etc. Standard particles and calibrators are substances containing one particle cluster, while quality control materials and blood samples 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.
[0041] 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 2 This 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 rear 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 three regions: a forward low-angle region, a forward high-angle region, and a lateral region. The forward low-angle region is called the low-angle region, and the low-angle scattered light reflects the cell size. The forward high-angle region is called the medium-angle region, 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 region, 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.
[0042] In this embodiment of the invention, the particle volume in the scattered light and the total number of particles corresponding to the particle volume can be obtained, and the relationship between the particle volume and the total number of particles corresponding to the particle volume can be obtained. A histogram is generated based on the relationship between the particle volume and the total number of particles corresponding to the particle volume. The horizontal axis of the histogram is the particle volume, and the vertical axis is the total number of particles corresponding to the particle volume. The gain of the substance to be tested is calculated based on the histogram, and then the gain of the substance to be tested is calibrated and confirmed.
[0043] Based on the above principles, embodiments of the present invention provide an optical system gain calibration method, which is used to determine the gain of an optical system, referring to... Figure 3 , Figure 3 This is a flowchart illustrating an optical system gain calibration method provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the specific steps of this method are as follows:
[0044] Step S101: Under the preset gain of the optical system, 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.
[0045] The substance to be tested is a substance containing a cluster of particles, such as a standard particle.
[0046] The gain of the optical system is preset. For ease of description, the preset gain is referred to as the preset gain. In this embodiment, under the 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 obtained. The scattered light includes low-angle scattered light, medium-angle scattered light and high-angle scattered light. The preset gain is in the range of [0, 255].
[0047] Step S102: Obtain first data based on low-angle scattered light, generate a histogram based on the first data to obtain a low-angle histogram; obtain second data based on the low-angle histogram and low-angle scattered light, generate a histogram based on the second data to obtain a mid-angle histogram; obtain third data based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, generate a histogram based on the third data to obtain a high-angle histogram.
[0048] The data includes the correspondence between volume and the total number of particles corresponding to that volume. The horizontal axis of the histogram represents volume, and the vertical axis represents the total number of particles corresponding to that volume.
[0049] First data is obtained from the low-angle scattered light, and a histogram is generated based on the first data to obtain the low-angle histogram L(X). Specifically, obtaining the first data from the low-angle scattered light can be achieved by obtaining the first data based on the low-angle values of the particles in the low-angle scattered light.
[0050] Further, based on the low-angle histogram and the low-angle scattered light, the second data is obtained. A histogram is then generated based on the second data to obtain the mid-angle histogram. The specific steps for obtaining the second data are as follows: Steps S201-S202.
[0051] Step S201: Determine the peak value of the low-angle histogram to obtain the first peak value; identify the trough values on both sides of the first peak value to obtain the first trough value and the second trough value; determine the abscissa corresponding to the first trough value and the second trough value to obtain the first abscissa and the second abscissa.
[0052] Step S202: Obtain the second data based on the first horizontal coordinate, the second horizontal coordinate, and the low-angle scattered light.
[0053] Determine the peak value of the low-angle histogram L(X) to obtain the first peak value, and let the first peak value be Vp. l Identify the trough values on both sides of the first peak value to obtain the first and second trough values. Determine the corresponding abscissas of the first and second trough values to obtain the first abscissa Pv. l1 Second x-coordinate Pv l2 It should be noted that for a substance containing a cluster of particles, its corresponding histogram L(X) has only one peak, such as... Figure 4 As shown, Figure 4 This is a schematic diagram of a low-angle histogram L(X) provided in an embodiment of the present invention.
[0054] The second data is obtained based on the first abscissa, the second abscissa, and the low-angle scattered light. The specific steps are as follows: steps S2021-S2022.
[0055] Step S2021: Combine the first and second horizontal coordinates to form an interval, thus obtaining the first interval.
[0056] Step S2022: Obtain the second data based on the median angle value corresponding to the particles with volume in the first interval in the low-angle scattered light.
[0057] Set the first horizontal coordinate Pv l1 Second x-coordinate Pv l2 Constructing intervals, we obtain the first interval [Pv] l1 ,Pv l2 ], where Pv l1 <Pv l2 The volume of the low-angle scattered light in the first interval [Pv] l1 ,Pv l2 The second data is obtained by taking the mid-angle value corresponding to the particle within the range.
[0058] Based on the low-angle scattered light, the mid-angle scattered light, and the mid-angle histogram M(X), the third data is obtained. A histogram is then generated based on the third data to obtain the high-angle histogram H(X). The specific steps for obtaining the third data are as follows: Steps S301-S302.
[0059] Step S301: Identify the peak value of the mid-angle histogram to obtain the second peak value; identify the trough values on both sides of the second peak value to obtain the third and fourth trough values; determine the abscissas corresponding to the third and fourth trough values to obtain the third and fourth abscissas.
[0060] Step S302: Obtain the third data based on the third horizontal coordinate, the fourth horizontal coordinate, the low-angle scattered light, and the mid-angle scattered light.
[0061] Identify the peak value of the mid-angle histogram M(X) to obtain the second peak value Vp. m Identify the troughs on both sides of the second peak value to obtain the third and fourth trough values. Determine the corresponding x-coordinates of the third and fourth trough values to obtain the third x-coordinate Pv. m1 and the fourth horizontal axis Pv m2 .
[0062] The third data is obtained based on the third x-coordinate, the fourth x-coordinate, the low-angle scattered light, and the mid-angle scattered light. The specific steps are as follows: Steps S3021-S3022:
[0063] Step S3021: Combine the third and fourth horizontal coordinates to form an interval, thus obtaining the second interval.
[0064] Step S3022: Obtain the third data based on the high angle value corresponding to the particles with volume in the first interval in the low-angle scattered light and the high angle value corresponding to the particles with volume in the second interval in the medium-angle scattered light.
[0065] The third horizontal coordinate Pv m1 and the fourth horizontal axis Pv m2 Constructing an interval, we obtain the second interval [Pv] m1 ,Pv m2 ], where Pv m1 <Pv m2 The third data is obtained based on the high angle values corresponding to the particles with volume in the first interval in the low-angle scattered light and the high angle values corresponding to the particles with volume in the second interval in the medium-angle scattered light.
[0066] Step S103: Calculate the gain corresponding to the substance under test based on the low-angle histogram, the mid-angle histogram, and the high-angle histogram to obtain the calibration gain; determine whether the calibration gain is within a preset range. If the calibration gain is within the preset range, determine that the calibration gain is the gain of the optical system; if the calibration gain is not within the preset range, change the preset gain of the optical system and return to the step of obtaining the scattered light generated by the laser beam irradiation when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
[0067] Step S401: 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.
[0068] In this embodiment, the preset gain includes a first preset gain and a second preset gain. Based on the steps described above for calculating the first centroid, the second centroid, and the third centroid under the preset gain, the first centroid, the second centroid, and the third centroid under the first preset gain, and the first centroid, the second centroid, and the third centroid under the second preset gain can be calculated respectively.
[0069] The method for calculating the first centroid is as follows:
[0070] Step S4011: Obtain the peak value of the low-angle histogram to obtain the first peak value; 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 to obtain the first target coordinate and the second target coordinate; calculate the centroid of the low-angle histogram based on the first target coordinate and the second target coordinate to obtain the first centroid.
[0071] Among them, the preset multiple is greater than 0 and less than 1, and the preset multiple B is generally 0.1.
[0072] Obtain the first peak value Vp of the low-angle histogram L(X).l Calculate the peak value Vp of the first wave. l The product of this value and a preset multiple B yields the first target value B*Vp. l .
[0073] Obtain the first target value B*Vp l The corresponding x-coordinate gives the coordinates of the first target, L. l1 Second target coordinates L r1 .
[0074] Based on the first target coordinates L l Second target coordinates L r Forming the interval [L l1 ,L r1 ], L l1 <L r1 Calculate the interval [L] l1 ,L r1 The average area of the histogram within the range, i.e., the centroid G1, is calculated using the following formula:
[0075]
[0076] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0077] Step S4012: Obtain the peak value of the mid-angle histogram to obtain the second peak value; calculate the product of the second peak value and a preset multiple to obtain the second target value; obtain the abscissa corresponding to the second target value to obtain the third target coordinate and the fourth target coordinate; calculate the centroid of the low-angle histogram based on the third target coordinate and the fourth target coordinate to obtain the second centroid.
[0078] Obtain the second peak value Vp of the mid-angle histogram M(X). m Calculate the peak value Vp of the second wave. m The product of this value and a preset multiplier B yields the second target value B*Vp. m .
[0079] Obtain the second target value B*Vp m The corresponding x-coordinate gives the coordinates L of the third target. l2 and the coordinates of the fourth target L r2 .
[0080] Based on the third target coordinates L l2 and the coordinates of the fourth target L r2 Forming the interval [L l2 ,L r2 ], L l2 <L r2 Calculate the interval [L]l2 ,L r2 The average area of the histogram within the range, i.e., the centroid G2, is calculated using the following formula:
[0081]
[0082] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0083] Step S4013: Obtain the peak value of the high-angle histogram to obtain the third peak value; calculate the product of the third peak value and a preset multiple to obtain the third target value; obtain the abscissa corresponding to the third target value to obtain the fifth target coordinate and the sixth target coordinate; calculate the centroid of the high-angle histogram based on the fifth target coordinate and the sixth target coordinate to obtain the third centroid.
[0084] Obtain the peak value of the high-angle histogram H(X) to obtain the third peak value Vp. h Calculate the peak value Vp of the third wave. h The product of this value and the preset multiplier B yields the third target value B*Vp. h .
[0085] Obtain the third target value B*Vp h The corresponding x-coordinate gives the coordinates L of the fifth target. l3 and the coordinates of the sixth target L r3 .
[0086] According to the fifth target coordinates L l3 and the coordinates of the sixth target L r3 Forming the interval [L l3 ,L r3 ], L l3 <L r3 Calculate the interval [L] l3 ,L r3 The average area of the histogram within the range, i.e., the centroid G3, is calculated using the following formula:
[0087]
[0088] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0089] Step S402: Calculate the gain corresponding to the substance under test based on the first centroid, second centroid, and third centroid corresponding to the substance under test under the first preset gain, and the first centroid, second centroid, and third centroid corresponding to the substance under test under the second preset gain, and obtain the calibration gain.
[0090] The formula for calculating calibration gain is:
[0091]
[0092] or
[0093] Where D is the calibration gain, D1 is the first preset gain, D2 is the first preset gain, G1 is the centroid under the first preset gain, G2 is the centroid under the second preset gain, and G is the standard value of the centroid, which can be obtained from experiments.
[0094] Step S4021: Calculate the first calibration gain based on the first centroid corresponding to the first preset gain, the first centroid corresponding to the second preset gain, and the standard value of the first centroid.
[0095] Step S4022: Calculate the second calibration gain based on the second centroid corresponding to the first preset gain, the second centroid corresponding to the second preset gain, and the standard value of the second centroid.
[0096] Step S4023: Calculate the third calibration gain based on the third centroid corresponding to the first preset gain, the third centroid corresponding to the second preset gain, and the standard value of the third centroid.
[0097] In this embodiment, the gain corresponding to the low-angle histogram is calculated based on the centroid of the low-angle histogram under two preset gains to obtain the first calibration gain; the gain corresponding to the mid-angle histogram is calculated based on the centroid of the mid-angle histogram under two preset gains to obtain the second calibration gain; and the gain corresponding to the high-angle histogram is calculated based on the centroid of the high-angle histogram under two preset gains to obtain the third calibration gain.
[0098] Specifically, the calibration gain is calculated using the calibration gain calculation formula, based on the first centroid corresponding to the first preset gain, the first centroid corresponding to the second preset gain, and the standard value of the first centroid. The second calibration gain is calculated using the same formula, based on the second centroid corresponding to the first preset gain, the second centroid corresponding to the second preset gain, and the standard value of the second centroid. The third calibration gain is calculated using the same formula, based on the third centroid corresponding to the first preset gain, the second preset gain, and the standard value of the third centroid. The standard values of the first, second, and third centroids are respectively derived from the centroids corresponding to the low-angle, mid-angle, and high-angle histograms obtained experimentally.
[0099] Furthermore, after calculating the first calibration gain, the second calibration gain, and the third calibration gain, it is determined whether the gain calibration of the optical system is successful based on whether the first calibration gain, the second calibration gain, and the third calibration gain are within a preset range.
[0100] Step S501: Determine whether the first calibration gain, the second calibration gain, and the third calibration gain are all within a preset range. If the first calibration gain, the second calibration gain, and the third calibration gain are all within the preset range, then determine that the calibration gain is the gain of the optical system. If the first calibration gain, the second calibration gain, and the third calibration gain are not all within the preset range, then determine that the calibration gain is invalid.
[0101] It is determined whether the first calibration gain, the second calibration gain, and the third calibration gain are all within a preset range. If all three calibration gains are within the preset range, the optical system gain calibration is successful, and the calibration gain is determined to be the optical system gain. If any of the first, second, or third calibration gains is outside the preset range, the calibration gain is determined to be invalid. The preset range is [0, 255].
[0102] If the calibration gain is invalid, the preset gain of the optical system is changed, and the process returns to the step of acquiring the scattered light generated by the laser beam when the analyte passes through the laser detection area of the optical system under the preset gain of the optical system. The calibration gain is then recalculated and calibrated under the new preset gain. In one possible implementation, the initial preset gain can be taken from a small gain value, and the preset gain of the optical system can be changed according to preset rules, such as gradually increasing by a fixed value. For example, if the fixed value is 2 and the initial preset gain is 3, the first change to the preset gain of the optical system can be 5. In another possible implementation, the initial preset gain can be taken from a large gain value, such as 255, and the preset gain of the optical system can be gradually decreased by a fixed value. For example, if the fixed value is 2 and the initial preset gain is 255, the first change to the preset gain of the optical system can be 253.
[0103] Example:
[0104] The procedure for gain calibration of the optical system is as follows: The first preset gain is D1, the second preset gain is D2, and the analyte is a standard particle.
[0105] The gain of the optical system is set to the first preset gain D1. Under the first preset gain D1, the standard particle is used as the detection substance, and the scattered light generated by the laser beam when the standard particle passes through the laser detection area of the optical system is obtained.
[0106] First data is obtained from the low-angle scattered light. A histogram is generated based on the first data to obtain the low-angle histogram L(X). The peak value of the low-angle histogram L(X) is determined to obtain the first peak value Vp. lIdentify the trough values on both sides of the first peak value to obtain the first and second trough values. Determine the corresponding abscissas of the first and second trough values to obtain the first abscissa Pv. l1 Second x-coordinate Pv l2 .
[0107] Set the first horizontal coordinate Pv l1 Second x-coordinate Pv l2 Constructing intervals, we obtain the first interval [Pv] l1 ,Pv l2 ], the volume of the low-angle scattered light in the first interval [Pv l1 ,Pv l2 The mid-angle value corresponding to the particle within the range is used to obtain the second data. A histogram is generated based on the second data to obtain the mid-angle histogram M(X).
[0108] Identify the peak value of the mid-angle histogram M(X) to obtain the second peak value Vp. m Identify the troughs on both sides of the second peak value to obtain the third and fourth trough values. Determine the corresponding x-coordinates of the third and fourth trough values to obtain the third x-coordinate Pv. m1 and the fourth horizontal axis Pv m2 .
[0109] The third horizontal coordinate Pv m1 and the fourth horizontal axis Pv m2 Constructing an interval, we obtain the second interval [Pv] m1 ,Pv m2 ], where Pv m1 <Pv m2 Based on the high-angle values corresponding to particles with volume in the first interval of low-angle scattered light and particles with volume in the second interval of medium-angle scattered light, the third data is obtained. A histogram is generated based on the third data to obtain the high-angle histogram H(X).
[0110] Obtain the first peak value Vp of the low-angle histogram L(X). l Calculate the peak value Vp of the first wave. l The product of this value and a preset multiple B yields the first target value B*Vp. l Obtain the first target value B*Vp l The corresponding x-coordinate gives the coordinates of the first target, L. l1 Second target coordinates L r1 According to the first target coordinates L l Second target coordinates L r Forming the interval [L l1 ,L r1 ], L l1 <L r1 Calculate the interval [L]l1 ,L r1 The average area of the histogram within the range, i.e., the first centroid G1, is calculated using the following formula:
[0111]
[0112] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0113] Obtain the second peak value Vp of the mid-angle histogram M(X). m Calculate the peak value Vp of the second wave. m The product of this value and a preset multiplier B yields the second target value B*Vp. m Obtain the second target value B*Vp m The corresponding x-coordinate gives the coordinates L of the third target. l2 and the coordinates of the fourth target L r2 According to the coordinates of the third target L l2 and the coordinates of the fourth target L r2 Forming the interval [L l2 ,L r2 ], L l2 <L r2 Calculate the interval [L] l2 ,L r2 The average area of the histogram within the range, i.e., the second centroid G2, is calculated using the following formula:
[0114]
[0115] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0116] Obtain the peak value of the high-angle histogram H(X) to obtain the third peak value Vp. h Calculate the peak value Vp of the third wave. h The product of this value and the preset multiplier B yields the third target value B*Vp. h Obtain the third target value B*Vp h The corresponding x-coordinate gives the coordinates L of the fifth target. l3 and the coordinates of the sixth target L r3 According to the fifth target coordinates L l3 and the coordinates of the sixth target L r3 Forming the interval [L l3 ,L r3 ], L l3 <L r3 Calculate the interval [L] l3 ,Lr3 The average area of the histogram within the range, i.e., the third centroid G3, is calculated using the following formula:
[0117]
[0118] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0119] The gain of the optical system is set to the second preset gain D2. Under the second preset gain D2, the scattered light generated by the laser beam when the standard particle passes through the laser detection area of the optical system is obtained, using the standard particle as the detection material.
[0120] First data is obtained from the low-angle scattered light. A histogram is generated based on the first data to obtain the low-angle histogram L(X). The peak value of the low-angle histogram L(X) is determined to obtain the first peak value Vp. l Identify the trough values on both sides of the first peak value to obtain the first and second trough values. Determine the corresponding abscissas of the first and second trough values to obtain the first abscissa Pv. l1 Second x-coordinate Pv l2 .
[0121] Set the first horizontal coordinate Pv l1 Second x-coordinate Pv l2 Constructing intervals, we obtain the first interval [Pv] l1 ,Pv l2 ], the volume of the low-angle scattered light in the first interval [Pv l1 ,Pv l2 The mid-angle value corresponding to the particle within the range is used to obtain the second data. A histogram is generated based on the second data to obtain the mid-angle histogram M(X).
[0122] Identify the peak value of the mid-angle histogram M(X) to obtain the second peak value Vp. m Identify the troughs on both sides of the second peak value to obtain the third and fourth trough values. Determine the corresponding x-coordinates of the third and fourth trough values to obtain the third x-coordinate Pv. m1 and the fourth horizontal axis Pv m2 .
[0123] The third horizontal coordinate Pv m1 and the fourth horizontal axis Pv m2 Constructing an interval, we obtain the second interval [Pv] m1 ,Pv m2 ], where Pv m1 <Pv m2Based on the high-angle values corresponding to particles with volume in the first interval of low-angle scattered light and particles with volume in the second interval of medium-angle scattered light, third data is obtained. A histogram is generated based on the third data to obtain the high-angle histogram H(X).
[0124] Obtain the first peak value Vp of the low-angle histogram L(X). l Calculate the peak value Vp of the first wave. l The product of this value and a preset multiple B yields the first target value B*Vp. l Obtain the first target value B*Vp l The corresponding x-coordinate gives the coordinates of the first target, L. l1 Second target coordinates L r1 According to the first target coordinates L l Second target coordinates L r Forming the interval [L l1 ,L r1 ], L l1 <L r1 Calculate the interval [L] l1 ,L r1 The average area of the histogram within the range, i.e., the first centroid G1, is calculated using the following formula:
[0125]
[0126] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0127] Obtain the second peak value Vp of the mid-angle histogram M(X). m Calculate the peak value Vp of the second wave. m The product of this value and a preset multiplier B yields the second target value B*Vp. m Obtain the second target value B*Vp m The corresponding x-coordinate gives the coordinates L of the third target. l2 and the coordinates of the fourth target L r2 According to the coordinates of the third target L l2 and the coordinates of the fourth target L r2 Forming the interval [L l2 ,L r2 ], L l2 <L r2 Calculate the interval [L] l2 ,L r2 The average area of the histogram within the range, i.e., the second centroid G2, is calculated using the following formula:
[0128]
[0129] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0130] Obtain the peak value of the high-angle histogram H(X) to obtain the third peak value Vp. h Calculate the peak value Vp of the third wave. h The product of this value and the preset multiplier B yields the third target value B*Vp. h Obtain the third target value B*Vp h The corresponding x-coordinate gives the coordinates L of the fifth target. l3 and the coordinates of the sixth target L r3 According to the fifth target coordinates L l3 and the coordinates of the sixth target L r3 Forming the interval [L l3 ,L r3 ], L l3 <L r3 Calculate the interval [L] l3 ,L r3 The average area of the histogram within the range, i.e., the third centroid G3, is calculated using the following formula:
[0131]
[0132] Among them, X i L(X) represents the x-coordinate. i ) represents X i The corresponding ordinate.
[0133] Based on the first, second, and third centroids of the analyte under the first preset gain, and the first, second, and third centroids of the analyte under the second preset gain, the gain corresponding to the analyte is calculated to obtain the calibration gain.
[0134] The first calibration gain is calculated using the following formula:
[0135]
[0136] or
[0137] Among them, D 11 D1 is the first calibration gain, D2 is the first preset gain, and G is the first preset gain. 11 G is the first centroid under the first preset gain. 21 G is the first centroid under the second preset gain. 标1 The standard value of the first centroid can be obtained experimentally.
[0138] The second calibration gain is calculated using the following formula:
[0139]
[0140] or
[0141] Among them, D 12 D1 is the first calibration gain, D2 is the first preset gain, and G is the first preset gain. 12 G is the second centroid under the first preset gain. 22 G is the second centroid under the second preset gain. 标2 The standard value of the second centroid can be obtained experimentally.
[0142] The third calibration gain is calculated using the following formula:
[0143]
[0144] or
[0145] Among them, D 13 D1 is the third calibration gain, D2 is the first preset gain, and G is the third preset gain. 13 G is the third centroid under the first preset gain. 23 The third centroid under the second preset gain, G 标3 The standard value of the third centroid can be obtained experimentally.
[0146] Judge D 11 D 12 and D 13 Are all values within the interval [0, 255]? If we calculate D... 11 D 12 and D 13 If the values are 200, 170, and 180 respectively, then the gain calibration of the optical system is successful, and D is determined. 11 D 12 and D 13 This represents the gain of the optical system.
[0147] Based on the above method, under the preset gain of the optical system, the scattered light generated by the laser beam irradiation when the substance under test passes through the laser detection area of the optical system is acquired. The scattered light includes at least low-angle scattered light and mid-angle scattered light. The substance under test is a substance containing a cluster of particles. First data is obtained based on the low-angle scattered light, and a histogram is generated based on the first data to obtain a low-angle histogram. Second data is obtained based on the low-angle histogram and the low-angle scattered light, and a histogram is generated based on the second data to obtain a mid-angle histogram. Third data is obtained based on the low-angle scattered light, the mid-angle scattered light, and the mid-angle histogram, and a histogram is generated based on the third data to obtain a high-angle histogram. The histogram is used to calculate the gain of the analyte based on the low-angle, mid-angle, and high-angle histograms. The calibration gain is determined by analyzing the low-angle, mid-angle, and high-angle histograms. If the calibration gain is within a preset range, it is considered the gain of the optical system. If not, the preset gain of the optical system is changed, and the process returns to the step of obtaining the scattered light generated by the laser beam as the analyte passes through the laser detection area of the optical system under the preset gain of the optical system. In this technical solution, since low-angle scattered light reflects cell size and mid-angle scattered light reflects the fine internal structure and particulate matter of cells, combining low-angle scattered light, mid-angle scattered light, low-angle histogram, mid-angle histogram, and high-angle histograms provides a more comprehensive reflection of the properties of the analyte, thereby improving the accuracy of determining the optical system gain.
[0148] To better implement the above method, embodiments of the present invention provide an optical system gain calibration device, referring to... Figure 5 , Figure 5 This is a schematic diagram of the structure of an optical system gain calibration device provided in an embodiment of the present invention, as shown below. Figure 5 As shown, the device 50 includes:
[0149] Acquisition module 501: used to 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 under a preset gain of the optical system, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance to be tested is a substance containing a cluster of particles.
[0150] Histogram acquisition module 502: Used to acquire first data based on low-angle scattered light, generate a histogram based on the first data to obtain a low-angle histogram; acquire second data based on the low-angle histogram and low-angle scattered light, generate a histogram based on the second data to obtain a mid-angle histogram; acquire third data based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, generate a histogram based on the third data to obtain a high-angle histogram; wherein, the data includes the correspondence between volume and the total number of particles corresponding to the volume, and the horizontal axis of the histogram is the volume, and the vertical axis is the total number of particles corresponding to the volume.
[0151] Gain calculation module 503: used to calculate the gain corresponding to the substance under test based on the low-angle histogram, the middle-angle histogram and the high-angle histogram, to obtain the calibration gain; determine whether the calibration gain is within a preset range; if the calibration gain is within the preset range, determine the calibration gain as the gain of the optical system; if the calibration gain is not within the preset range, change the preset gain of the optical system, and return to the step of obtaining the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
[0152] In one possible design, the histogram acquisition module 502 is specifically used to: determine the peak value of the low-angle histogram to obtain the first peak value; identify the trough values on both sides of the first peak value to obtain the first trough value and the second trough value; determine the abscissa corresponding to the first trough value and the second trough value to obtain the first abscissa and the second abscissa; and obtain the second data based on the first abscissa, the second abscissa, and the low-angle scattered light.
[0153] In one possible design, the histogram acquisition module 502 is specifically used to: form an interval by dividing the first horizontal coordinate and the second horizontal coordinate to obtain the first interval; and obtain the second data based on the median angle value corresponding to the particles with volume in the first interval in the low-angle scattered light.
[0154] In one possible design, the histogram acquisition module 502 is specifically used to: identify the peak value of the mid-angle histogram to obtain the second peak value; identify the trough values on both sides of the second peak value to obtain the third and fourth trough values; determine the abscissas corresponding to the third and fourth trough values to obtain the third and fourth abscissas; and obtain third data based on the third and fourth abscissas, the low-angle scattered light, and the mid-angle scattered light.
[0155] In one possible design, the histogram acquisition module 502 is specifically used to: form an interval by the third and fourth horizontal coordinates to obtain a second interval; and obtain third data based on the high angle value corresponding to the particles with volume in the first interval in the low-angle scattered light and the high angle value corresponding to the particles with volume in the second interval in the medium-angle scattered light.
[0156] In one possible design, the aforementioned gain calculation module 503 is specifically used to: calculate the centroid of the low-angle histogram to obtain the first centroid, calculate the centroid of the mid-angle histogram to obtain the second centroid, and calculate the centroid of the high-angle histogram to obtain the third centroid; and calculate the gain corresponding to the test substance based on the first, second, and third centroids corresponding to the test substance under the first preset gain and the first, second, and third centroids corresponding to the test substance under the second preset gain, thereby obtaining the calibration gain.
[0157] In one possible design, the aforementioned gain calculation module 503 is specifically used for: obtaining the peak value of the low-angle histogram to obtain a first peak value; calculating the product of the first peak value and a preset multiple to obtain a first target value; wherein the preset multiple is greater than 0 and less than 1; obtaining the abscissa corresponding to the first target value to obtain a first target coordinate and a second target coordinate; calculating the centroid of the low-angle histogram based on the first target coordinate and the second target coordinate to obtain a first centroid; obtaining the peak value of the mid-angle histogram to obtain a second peak value; and calculating the product of the second peak value and a preset multiple to obtain a first target value. The product of multiples is used to obtain the second target value; the x-coordinate corresponding to the second target value is obtained to obtain the third and fourth target coordinates; based on the third and fourth target coordinates, the centroid of the low-angle histogram is calculated to obtain the second centroid; the peak value of the high-angle histogram is obtained to obtain the third peak value, and the product of the third peak value and the preset multiple is calculated to obtain the third target value; the x-coordinate corresponding to the third target value is obtained to obtain the fifth and sixth target coordinates; based on the fifth and sixth target coordinates, the centroid of the high-angle histogram is calculated to obtain the third centroid.
[0158] In one possible design, the gain calculation module 503 is specifically used to: calculate a first calibration gain based on the first centroid corresponding to the first preset gain, the first centroid corresponding to the second preset gain, and the standard value of the first centroid; calculate a second calibration gain based on the second centroid corresponding to the first preset gain, the second centroid corresponding to the second preset gain, and the standard value of the second centroid; and calculate a third calibration gain based on the third centroid corresponding to the first preset gain, the third centroid corresponding to the second preset gain, and the standard value of the third centroid.
[0159] In one possible design, the gain calculation module 503 is specifically used to: determine whether the first calibration gain, the second calibration gain, and the third calibration gain are all within a preset range; if the first calibration gain, the second calibration gain, and the third calibration gain are all within the preset range, then the calibration gain is determined to be the gain of the optical system; if the first calibration gain, the second calibration gain, and the third calibration gain are not all within the preset range, then the calibration gain is determined to be invalid.
[0160] Based on the above device, since low-angle scattered light can reflect the size of cells and medium-angle scattered light can reflect the fine internal structure and particulate matter of cells, by combining low-angle scattered light, medium-angle scattered light, low-angle histogram, medium-angle histogram and high-angle histogram, the properties of the substance to be measured can be reflected more comprehensively, thereby improving the accuracy of the determination of the optical system gain.
[0161] Figure 6 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 6 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 6 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.
[0162] 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.
[0163] 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.
[0164] 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.
[0165] 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.
[0166] 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 gain calibration method for an optical system, characterized in that, The method includes: Under the preset gain of the optical system, the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system is acquired, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance under test is a substance containing a cluster of particles; First data is obtained based on low-angle scattered light, and a histogram is generated based on the first data to obtain a low-angle histogram. Second data is obtained based on the low-angle histogram and low-angle scattered light, and a histogram is generated based on the second data to obtain a mid-angle histogram. Third data is obtained based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, and a histogram is generated based on the third data to obtain a high-angle histogram. The first, second, and third data all include the correspondence between particle volume and the total number of particles corresponding to that particle volume. The horizontal axis of the histogram represents particle volume, and the vertical axis represents the total number of particles corresponding to that particle volume. Based on the low-angle histogram, the middle-angle histogram, and the high-angle histogram, the gain corresponding to the substance under test is calculated to obtain the calibration gain; it is determined whether the calibration gain is within a preset range. If the calibration gain is within the preset range, the calibration gain is determined to be the gain of the optical system; if the calibration gain is not within the preset range, the preset gain of the optical system is changed, and the process returns to the step of obtaining the scattered light generated by the laser beam irradiation when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.
2. The method according to claim 1, characterized in that, The process of obtaining the second data based on the low-angle histogram and low-angle scattered light includes: Determine the peak value of the low-angle histogram to obtain the first peak value, identify the trough values on both sides of the first peak value to obtain the first trough value and the second trough value, and determine the abscissa corresponding to the first trough value and the second trough value to obtain the first abscissa and the second abscissa. The second data is obtained based on the first horizontal coordinate, the second horizontal coordinate, and the low-angle scattered light.
3. The method according to claim 2, characterized in that, The process of obtaining the second data based on the first abscissa, the second abscissa, and the low-angle scattered light includes: The first interval is obtained by dividing the first horizontal coordinate and the second horizontal coordinate; The second data is obtained based on the median angle value corresponding to the particles with volume in the first interval in the low-angle scattered light.
4. The method according to claim 1, characterized in that, The third data obtained based on the low-angle scattered light, the mid-angle scattered light, and the mid-angle histogram includes: Identify the peak value of the mid-angle histogram to obtain the second peak value, identify the trough values on both sides of the second peak value to obtain the third and fourth trough values, and determine the abscissas corresponding to the third and fourth trough values to obtain the third and fourth abscissas. The third data is obtained based on the third horizontal coordinate, the fourth horizontal coordinate, the low-angle scattered light, and the mid-angle scattered light.
5. The method according to claim 4, characterized in that, The process of obtaining the third data based on the third abscissa, the fourth abscissa, low-angle scattered light, and mid-angle scattered light includes: By combining the third and fourth horizontal coordinates, we obtain the second interval; The third data is obtained based on the high angle values corresponding to particles with volume in the first interval in low-angle scattered light and the high angle values corresponding to particles with volume in the second interval in medium-angle scattered light.
6. The method according to claim 1, characterized in that, The preset gain includes a first preset gain and a second preset gain. The step of calculating the gain corresponding to the analyte based on the low-angle histogram, the mid-angle histogram, and the high-angle histogram to obtain the calibration gain includes: 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. Based on the first, second, and third centroids of the substance under test under the first preset gain, and the first, second, and third centroids of the substance under test under the second preset gain, the gain corresponding to the substance under test is calculated to obtain the calibration gain.
7. The method according to claim 6, characterized in that, The calculation of the centroid of the low-angle histogram to obtain the first centroid, the calculation of the centroid of the middle-angle histogram to obtain the second centroid, and the calculation of the centroid of the high-angle histogram to obtain the third centroid include: Obtain the peak value of the low-angle histogram to obtain the first peak value; calculate the product of the first peak value and a preset multiple to obtain the first target value; wherein the preset multiple is greater than 0 and less than 1; obtain the x-coordinate corresponding to the first target value to obtain the first target coordinate and the second target coordinate; calculate the centroid of the low-angle histogram based on the first target coordinate and the second target coordinate to obtain the first centroid; Obtain the peak value of the mid-angle histogram to get the second peak value. Calculate the product of the second peak value and a preset multiple to get the second target value. Obtain the x-coordinate corresponding to the second target value to get the third and fourth target coordinates. Calculate the centroid of the low-angle histogram based on the third and fourth target coordinates to get the second centroid. Obtain the peak value of the high-angle histogram to obtain the third peak value. Calculate the product of the third peak value and a preset multiple to obtain the third target value. Obtain the abscissa corresponding to the third target value to obtain the fifth target coordinate and the sixth target coordinate. Calculate the centroid of the high-angle histogram based on the fifth target coordinate and the sixth target coordinate to obtain the third centroid.
8. The method according to claim 6, characterized in that, The calibration gain includes a first calibration gain, a second calibration gain, and a third calibration gain. The calculation of the calibration gain based on the first centroid, second centroid, and third centroid corresponding to the first preset gain, and the first centroid, second centroid, and third centroid corresponding to the second preset gain, includes: The first calibration gain is calculated based on the first centroid corresponding to the first preset gain, the first centroid corresponding to the second preset gain, and the standard value of the first centroid. The second calibration gain is calculated based on the second centroid corresponding to the first preset gain, the second centroid corresponding to the second preset gain, and the standard value of the second centroid. The third calibration gain is calculated based on the third centroid corresponding to the first preset gain, the third centroid corresponding to the second preset gain, and the standard value of the third centroid.
9. The method according to claim 8, characterized in that, The step is to determine whether the calibration gain is within a preset range. If the calibration gain is within the preset range, then the calibration gain is determined to be the gain of the optical system. If the calibration gain is not within the preset range, the calibration gain is determined to be invalid, including: Determine whether the first calibration gain, the second calibration gain, and the third calibration gain are all within a preset range. If the first calibration gain, the second calibration gain, and the third calibration gain are all within the preset range, then the calibration gain is determined to be the gain of the optical system. If the first calibration gain, the second calibration gain, and the third calibration gain are not all within the preset range, then the calibration gain is determined to be invalid.
10. An optical system gain calibration device, characterized in that, The device includes: Acquisition module: used to acquire the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system under a preset gain of the optical system, wherein the scattered light includes at least low-angle scattered light and medium-angle scattered light; wherein the substance under test is a substance containing a cluster of particles; Histogram acquisition module: used to acquire first data based on low-angle scattered light, generate a histogram based on the first data to obtain a low-angle histogram; acquire second data based on the low-angle histogram and low-angle scattered light, generate a histogram based on the second data to obtain a mid-angle histogram; acquire third data based on the low-angle scattered light, mid-angle scattered light, and mid-angle histogram, generate a histogram based on the third data to obtain a high-angle histogram; wherein, the first data, second data, and third data all include the correspondence between particle volume and the total number of particles corresponding to the particle volume, and the horizontal axis of the histogram is the particle volume, and the vertical axis is the total number of particles corresponding to the particle volume; Gain calculation module: used to calculate the gain corresponding to the substance under test based on the low-angle histogram, the middle-angle histogram, and the high-angle histogram to obtain the calibration gain; determine whether the calibration gain is within a preset range; if the calibration gain is within the preset range, determine that the calibration gain is the gain of the optical system; if the calibration gain is not within the preset range, change the preset gain of the optical system, and return to the step of obtaining the scattered light generated by the laser beam when the substance under test passes through the laser detection area of the optical system under the preset gain of the optical system.