The present disclosure relates to medical equipments, particularly to an automatic compensation method, device and corresponding flow cytometer.
Flow cytometer can receive photoelectric signals generated by irradiating cells with laser and graphically present the photoelectric signals for the analysis of the user. Scattered light signals and fluorescence signals of the photoelectric signals can represent physical and chemical properties of the cells, such as the size of the cell, the graininess and the expression of antigen molecules, etc.
Representing the information about the height, area or the like of the particles in visual graphs is generally implemented by a routine as shown in
The fluorescence signals are excited by irradiating fluorescein with the laser. However, the wavelengths of the generated fluorescence signals are generally not a fixed wavelength as in an ideal state, but distributed in a certain distribution curve. In order to acquire the fluorescence data representing a certain property, the flow cytometer uses bandpass filters to filter out interference signals to ensure that most of the acquired signals are fluorescence signals which can represent the properties of the irradiated subject.
However, for the fluorescence compensation method by the table, it is needed to acquire the data of the plurality of fluorescence channels using a plurality of tests under a known voltage, and compensation values of the plurality of table cells need to be calculated according to the data of the plurality of channels, which is costly and time-consuming. Furthermore, in clinical practice, the compensation values of the graphs often need to be adjusted and the user usually tries to adjust the compensation values several times until particle clusters are distributed in the dot plot in a “smooth vertical and horizontal” shape, i.e., cell populations are substantially equally positioned in a certain direction. For example, a target dot plot shown in
However, the inventors have found that there are some difficulties for the user to implement the graph-based compensation using the existing method. First, after the user determines a direction for compensation, it will take experience for the user to determine which cell of a compensation matrix needs to be adjusted, which can only be accurately determined with very rich experience. Second, when the user performs manual adjustment, a suitable compensation value can generally be obtained after a plurality of cycles of compensation adjustment, graph observation, and reviewing and analysis of statistical results, which is cumbersome, complicated and inaccurate.
In order to eliminate the drawbacks of the existing technologies, the present disclosure provides an automatic compensation method, device and corresponding flow cytometer, by which the graphs can be automatically adjusted and compensated, thereby reducing user's workload and increasing compensation accuracy.
To solve the problems mentioned above, in an aspect, an embodiment of the present disclosure can provide an automatic compensation method for analyzing and processing flow data. The method may include the following steps:
determining a base cell population and a reference cell population in a plurality of cell populations according to positions of the plurality of cell populations in a dot plot which needs to be compensated, where the base cell population may be a double-negative cell population and the reference cell population may be a single-positive cell population adjacent to the base cell population in a compensating direction; and
automatically calculating a compensation value through a progressive approximation algorithm according to based on a position of the base cell population and compensating particles of the plurality of cell populations in the dot plot with the compensation value such that a position difference between the reference cell population and the base cell population in a compensated direction in the compensated dot plot is within a predetermined range.
Preferably, determining the base cell population in the plurality of cell populations according to the positions of the plurality of cell populations in the dot plot which needs to be compensated may include:
compensating the plurality of cell populations in the dot plot with a first compensation value, where the first compensation value may be an overcompensation value; and
projecting the plurality of cell populations onto the compensating direction and the compensated direction respectively to obtain histograms and determining one of the plurality of cell populations as the base cell population according to graphical peak features of the histograms.
Preferably, determining the base cell population in the plurality of cell populations according to the positions of the plurality of cell populations in the dot plot which needs to be compensated may include:
acquiring a cell population contour using an image algorithm at a lower-left region of the dot plot and determining a cell population corresponding to the cell population contour as the base cell population.
Preferably, after determining the base cell population and the reference cell population in the plurality of cell populations, the method may further include:
dividing the dot plot into four regions according to the position of the base cell population such that the base cell population is located in a lower-left region.
Preferably, automatically calculating the compensation value through the progressive approximation algorithm according to the position of the base cell population and compensating the particles of the plurality of cell populations in the dot plot with the compensation value may include:
compensating the particles of the plurality of cell populations in the dot plot with the compensation value using the following formula:
a compensation resulting value of each particle in the compensated direction=a current measurement value of each particle in the compensated direction−the compensation value*a current measurement value of each particle in the compensating direction;
where a compensation resulting value of each particle in the compensating direction may remain unchanged relative to its current measurement value in the compensating direction.
Preferably, the method may further include calculating a coarse adjustment compensation value and compensating the dot plot with the coarse adjustment compensation value,
where the coarse adjustment compensation value may be calculated using the following formula:
(a measurement value of the reference cell population in the compensated direction−a measurement value of the base cell population in the compensated direction)/a measurement value of the reference cell population in the compensating direction.
Preferably, the progressive approximation algorithm may be an iterative algorithm, and automatically calculating the compensation value through the progressive approximation algorithm according to the position of the base cell population and compensating the particles of the plurality of cell populations in the dot plot with the compensation value may include:
setting the coarse adjustment compensation value as an initial compensation value or setting an initial compensation value, and setting an adjustment step length and an iteration termination condition; and
compensating the plurality of cell populations in the dot plot and determining whether the compensated reference cell population meets the iteration termination condition; and if no, automatically adding or subtracting the initial compensation value by the adjustment step length to obtain a current compensation value, and continuing to compensate the plurality of cell populations in the dot plot, until the iteration termination condition is met.
Preferably, the iteration termination condition may be:
an absolute value of a difference value between a median of the compensation resulting values of the base cell population in the compensated direction and a median of the compensation resulting values of the reference cell population in the compensated direction is less than a first predetermined value; or
a ratio of an absolute value of a difference value between a median of the compensation resulting values of the base cell population in the compensated direction and a median of the compensation resulting values of the reference cell population in the compensated direction to the median of the compensation resulting values of the base cell population in the compensated direction or the median of the compensation resulting values of the reference cell population in the compensated direction is less than a second predetermined value; or
an absolute value of a difference value between an average of the compensation resulting values of the base cell population in the compensated direction and an average of the compensation resulting values of the reference cell population in the compensated direction is less than a third predetermined value; or
a ratio of an absolute value of a difference value between an average of the compensation resulting values of the base cell population in the compensated direction and an average of the compensation resulting values of the reference cell population in the compensated direction to the average of the compensation resulting values of the base cell population in the compensated direction or the average of the compensation resulting values of the reference cell population in the compensated direction is less than a fourth predetermined value.
Preferably, automatically adding or subtracting the initial compensation value by the adjustment step length to obtain the current compensation value and compensating the plurality of cell populations in the dot plot until the iteration termination condition is met may further include:
determining whether there is a reversion in magnitude between the median/average of the compensation resulting values of the particles of the base cell population in the compensated direction and the median/average of the compensation resulting values of the particles of the reference cell population in the compensated direction; and if yes, reducing the adjustment step length by a predetermined value and continuing the iteration.
Preferably, the progressive approximation algorithm may be a binary search algorithm.
Preferably, dividing the dot plot into four regions according to the position of the base cell population may include:
dividing the dot plot into four regions by generating a quadrant gate in the dot plot, where the quadrant gate may be a regular quadrant gate which is formed by one straight line in a horizontal direction and one straight line in a vertical direction, or an irregular quadrant gate which is formed by at least one lines in a horizontal direction and at least one lines in a vertical direction.
Preferably, the method may further include:
before the automatic compensation, determining at least one expected target compensating directions of the plurality of cell populations in the dot plot and displaying the target compensating directions in graph form for user's selection.
Preferably, the method may further include:
before or after the automatic compensation, manually adjusting the compensation value and compensating the plurality of cell populations in the dot plot with the adjusted compensation value.
Correspondingly, in another aspect, an embodiment of the present disclosure provides an automatic compensation device for analyzing and processing flow data. The device may include:
a base cell population determination unit which may be used to determine a base cell population and a reference cell population in a plurality of cell populations according to positions of the plurality of cell populations in a dot plot which needs to be compensated, where the base cell population may be a double-negative cell population and the reference cell population may be a single-positive cell population adjacent to the base cell population in a compensating direction; and
a compensation unit which may be used to automatically calculate a compensation value through a progressive approximation algorithm according to a position of the base cell population and update the dot plot with the compensation value such that a position difference between the reference cell population and the base cell population in the dot plot in a compensated direction is within a predetermined range.
Preferably, the base cell population determination unit may include:
an overcompensation subunit which may be used to compensate the plurality of cell populations in the dot plot with a first compensation value, where the first compensation value may be an overcompensation value; and
a projection subunit which may be used to project the plurality of cell populations onto the compensating direction and the compensated direction respectively to obtain histograms and determine one of the plurality of cell populations as the base cell population according to graphical peak features of the histograms.
Preferably, the base cell population determination unit may include:
a contour determination subunit which may be used to acquire a cell population contour using an image algorithm at a lower-left region of the dot plot and determine a cell population corresponding to the cell population contour as the base cell population.
Preferably, the device may further include:
a region division unit which may divide the dot plot into four regions according to the position of the base cell population such that the base cell population is located in a lower-left region.
Preferably, the compensation unit may further include:
a compensation subunit which may be used to compensate particles of all of the plurality of cell populations in the dot plot with the compensation value using a following formula:
a compensation resulting value of each particle in the compensated direction=a current measurement value of each particle in the compensated direction−the compensation value*a current measurement value of each particle in the compensating direction;
where a compensation resulting value of each particle in the compensating direction may remain unchanged relative to its current measurement value in the compensating direction.
Preferably, the device may further include a coarse adjustment compensation value calculation subunit which may be used to calculate a coarse adjustment compensation value with a following formula:
the coarse adjustment compensation value=(a measurement value of the reference cell population in the compensated direction−a measurement value of the base cell population in the compensated direction)/a measurement value of the reference cell population in the compensating direction.
Preferably, the progressive approximation algorithm used by the compensation unit may be an iteration algorithm, and the compensation unit may further include:
a setting subunit which may be used to set the coarse adjustment compensation value as an initial compensation value or set an initial compensation value, and set an adjustment step length and an iteration termination condition; and
an iteration subunit which may compensate the plurality of cell populations in the dot plot and determine whether the compensated reference cell population meets the iteration termination condition; and if not, the iteration subunit may automatically add the adjustment step length to or subtract the adjustment step length from the initial compensation value to obtain a current compensation value, and continue to compensate the plurality of cell populations in the dot plot with the current compensation value, until the iteration termination condition is met.
Preferably, the iteration termination condition may be:
an absolute value of a difference value between a median of the compensation resulting values of the particles of the base cell population in the compensated direction and a median of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a first predetermined value; or
a ratio of an absolute value of a difference value between a median of the compensation resulting values of the particles of the base cell population in the compensated direction and a median of the compensation resulting values of the particles of the reference cell population in the compensated direction to the median of the compensation resulting values of the particles of the base cell population in the compensated direction or the median of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a second predetermined value; or
an absolute value of a difference value between an average of the compensation resulting values of the particles of the base cell population in the compensated direction and an average of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a third predetermined value; or
a ratio of an absolute value of a difference value between an average of the compensation resulting values of the particles of the base cell population in the compensated direction and an average of the compensation resulting values of the particles of the reference cell population in the compensated direction to the average of the compensation resulting values of the particles of the base cell population in the compensated direction or the average of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a fourth predetermined value.
Preferably, the iteration subunit may further include:
an adjustment step length updating subunit which may be used to determine whether there is a reversion between the median/average of the compensation resulting values of the base cell population in the compensated direction and the median/average of the compensation resulting values of the particles of the reference cell population in the compensated direction; and if yes, the adjustment step length updating subunit may reduce the adjustment step length by a predetermined value and the iteration subunit may then continue the iteration.
Preferably, the progressive approximation algorithm may be a binary search algorithm.
Preferably, the region division unit may divide the dot plot into four regions by generating a quadrant gate in the dot plot, where the quadrant gate may be a regular quadrant gate which is formed by one straight line in a horizontal direction and one straight line in a vertical direction, or an irregular quadrant gate which is formed by at least one lines in a horizontal direction and at least one lines in a vertical direction.
Preferably, the device may further include:
a target compensating direction determination unit which may be used to, before the automatic compensation, determine at least one expected target compensating directions of the plurality of cell populations in the dot plot and display the target compensating direction in graph form for user's selection.
Preferably, the device may further include:
a compensation value setting unit which may be used to manually adjust the compensation value and compensate the cell populations in the regions of the dot plot with the adjusted compensation value.
Correspondingly, in yet another aspect, an embodiment of the present disclosure also provides a flow cytometer which may include the automatic compensation device as described above.
The advantages of the embodiments of the present disclosure may be as follows.
The automatic compensation method, device and corresponding flow cytometer provided by the embodiments of the present disclosure can automatically form the quadrant gate according to the features and the position information of the respective cell populations in the dot plot, automatically perform the coarse adjustment compensation, and perform fine adjustment compensation using the progressive approximation algorithm. Therefore, a suitable compensation value can be automatically calculated and the dot plot can be automatically updated, such that the plurality of cell populations in the compensated dot plot are distributed in a smooth horizontal and vertical form.
The embodiments of the present disclosure enable automatic compensation using the graph-based adjustment. Therefore, user's workload is reduced and the accuracy is increased. Furthermore, since the compensation cell which needs to be compensated can be automatically set, the experience requirement for the user is greatly reduced.
In order to describe the technical solutions of the present disclosure or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be described briefly below. Obviously, the drawings described below are only some embodiments of the present disclosure. For a person ordinarily skilled in the art, other drawings can be obtained based on these drawings without creative work.
The technical solutions of various embodiments of the present disclosure will be clearly and completely described hereinafter with reference to the drawings. However, it will be obvious that the described embodiments are parts, but not all, of the embodiments of the present disclosure. All other embodiments obtained by a person ordinarily skilled in the art according to the embodiments of the present disclosure without creative works will fall within the scope of protection of the present disclosure.
The embodiments of the present disclosure will be described with reference to the drawings below.
For the convenience of the following description, some terms recited in the following description will be briefly described first.
Flow data may refer to those data obtained by, using a sheath flow cytometry, irradiating fluorescent dyes on an analyte with a laser and acquiring intensities of scatter lights in a plurality of angles and intensities of fluorescence excitation lights.
Dot plot may refer to a two-dimensional plot generated by a flow cytometer, where the dot plot may contain two-dimensional feature information of a plurality of particles. An X axis and a Y axis of the dot plot may respectively represent one property of each particle. For example, in a dot plot, the X axis may represent CD3 property of lymphocytes, and the Y axis may represent CD8 property of the lymphocytes.
Compensation may refer to adjusting the value of each particle in a dot plot in at least one coordinate axis directions using a compensation value (i.e., a compensation coefficient). For example, the value in one coordinate axis direction may be adjusted while the value in another coordinate axis direction may not be adjusted.
Cell population may refer to a group of particles which are distributed in a certain region of a dot plot and formed by a plurality of particles which have the same properties, such as double-negative cell population, single-positive cell population, double-positive cell population or the like.
Compensating direction may refer to a coordinate direction in which coordinate values of the particles need not to be adjusted during compensation.
Compensated direction may refer to a coordinate direction in which coordinate values of the particles need to be adjusted during compensation.
Base cell population may refer to a cell population which is located as a reference position in a dot plot.
Reference cell population may refer to the single-positive cell population adjacent to the base cell population in the compensating direction.
In an embodiment, the particles in a dot plot may be compensated using the following formula:
a compensation resulting value of each particle in the compensated direction=a current measurement value of each particle in the compensated direction−a compensation value*a current measurement value of each particle in the compensating direction.
It should be noted that, during each compensation, the particles of all the cell populations in the dot plot need to be compensated, i.e., both the base cell population and the reference cell population are compensated using the formula above during each compensation, such that the measurement value of each particle in the compensated direction is adjusted to obtain the compensation resulting value of each particle in the compensated direction while the measurement value of each particle in the compensating direction remains unchanged.
The concepts of the embodiments of the present disclosure may be as following.
When the flow data generated by a flow cytometer needs to be analyzed, a user may select, in an interaction interface, to perform compensation by manually adjusting the compensation values or by automatically calculating the compensation values using methods provided by the embodiments of the present disclosure. As shown in
The user may also select to set the compensation value in a manual compensation box (which is a small box on a right side of “Manual Modify” in the figure). In
At step S10, a base cell population and a reference cell population in a plurality of cell populations may be determined according to positions of the plurality of cell populations in a dot plot which needs to be compensated. The base cell population may be a double-negative cell population. The reference cell population may be a single-positive cell population in a compensating direction. The dot plot may be generated by a flow cytometer.
At step S12, the dot plot may be divided into four regions according to a position of the base cell population, such that the base cell population can be located in a lower-left region.
At step S14, a coarse adjustment compensation value may be obtained. The step S14 may be optional.
At step S16, a compensation value may be automatically calculated through a progressive approximation algorithm according to the position of the base cell population, and the dot plot may be updated using the compensation value, such that a position difference between the reference cell population and the base cell population in the dot plot in a compensated direction is within a predetermined range. In the dot plot of this embodiment, the compensating direction may be perpendicular to the compensated direction.
The steps above will be described in details with reference to other drawings hereinafter.
The step S10 may further include the following steps.
The plurality of cell populations in the dot plot may be compensated using a first compensation value, where the first compensation value is an overcompensation value. The plurality of cell populations may be projected onto the compensating and compensated directions respectively to obtain histograms, and one cell population of the plurality of cell populations can be determined as the base cell population and the reference cell population can also be determined according to graphical peak features of the histograms.
This step may be on the basis of the following principles.
For example, in an embodiment, a double-negative cell population, a single-positive cell population and a double-positive cell population are contained in the dot plot shown in
First, the position of the base cell population (i.e. the double-negative cell population) in the dot plot may be determined.
In an embodiment of the present disclosure, the first compensation value may be set. The first compensation value may be a relatively large value, such as 50%. During the compensation of the dot plot, double-negative cells are not sensitive to the compensation value (i.e., the positions of the particles have not changed much by the compensation) while single-positive cells are very sensitive to the compensation value (i.e., the position change of the particles of the single-positive cell population after the compensation is larger than that of the particles of the double-negative cell population). Accordingly, a relatively large compensation value can separate the double-negative cell population and the single-positive cell population. After the dot plot is overcompensated by the first compensation value, the single-positive cell population may be adjusted to a negative region (marked as A in
Then, all of the particles in the dot plot may be projected onto the Y axis (i.e. the CD8 direction) to obtain a histogram. The histogram obtained by the projection may be as shown in
In the step S12, according to the center point determined in the step S10, lines may be extended from the center point in a horizontal direction and a vertical direction, so as to form the quadrant gate in the dot plot. The quadrant gate may be comprised of lines in the horizontal direction and the vertical direction, and divide the dot plot into four regions (referring to the regions Q5, Q6, Q7 and Q8 shown in
It can be understood that, in other embodiments, the base cell population may be found and the quadrant gate may be formed in the steps S10 and S12 by other ways. For example, in an embodiment, a cell population contour may be obtained at the lower-left corner of the dot plot of
In
It can be understood that the measurement value of the base cell population or the reference cell population below is obtained by counting all particles in the region in which the base cell population or the reference cell population is located. That is, all particles in the lower-left region (such as the region Q7 in
At the step S14, t a coarse adjustment compensation value may further be calculated, and the dot plot may be compensated using the coarse adjustment compensation value.
The coarse adjustment compensation value may be calculated using the following formula:
a coarse adjustment compensation value=(a measurement value of the reference cell population in the compensated direction−a measurement value of the base cell population in the compensated direction)/a measurement value of the reference cell population in the compensating direction.
Specifically, the dot plot shown in
The formula for calculating the coarse adjustment compensation value may be as following:
K12=(Q8:OCD8−Q7OCD8/Q8:OCD3 (5)
where K12 is the coarse adjustment compensation value, Q8:OCD8 is the measurement value(s) of the reference cell population located in the region Q8 in the CD8 direction (the compensated direction), Q7:OCD8 is the measurement value(s) of the base cell population located in the region Q7 in the CD8 direction (the compensated direction), and Q8:OCD3 is the measurement value(s) of the reference cell population located in the region Q8 in the CD3 direction (the compensating direction).
Specifically, the coarse adjustment compensation value may be obtained on the basis of the following principles.
Taking the dot plot in
OCD8=SCD8+K12*SCD3 (1)
where OCD8 is the measurement value in the CD8 direction (i.e. the Y-axis direction in
According to the formula (1), the following formula may be obtained:
SCD8=OCD8−K12*SCD3 (2)
For the base cell population located in the region Q8, the following formula may be obtained:
Q8:SCD8=Q8:OCD8−K12*Q8:SCD3 (3)
where Q8 represents the cell population located in the region Q8, and Q8:SCD8 represents a set of actual values of the cell population located in the region Q8 in the CD8 direction.
Provided that the positions of the base cell population and the reference cell population in the dot plot are substantially at the same level after the compensation, the actual values of the reference cell population in the CD8 direction can be substantially the same with those of the base cell population in the CD8 direction. That is,
Q8:SCD8=Q7:SCD8,
which may be substituted into the formula (3) to obtain the following formula:
Q7:SCD8=Q8:OCD8K12*Q8:SCD3 (4)
The formula (4) may be rewritten as
K12=(Q8:OCD8−Q7:SCD8)Q8:SCD3
Since it is a coarse adjustment, it can be considered that Q7:OCD8 approximately equals to Q7:SCD8 and Q8:OCD8 approximately equals to Q8:SCD3. Therefore, the coarse adjustment compensation value K12 may be obtained by:
K12=(Q8:OCD8−Q7:OCD8)/Q8:OCD3 (5)
In the formula (5) above, the measurement values of the region Q7 and the region Q8 may be represented by medians. A median may refer to a numerical value of the particle in a middlemost position of a sequence, where the sequence is formed by sequencing all particles in one region according to their numerical values on the compensating direction and/or compensated direction. In this way, the interference of outlier(s) can be eliminated. All calculation items in the formula (5) above are measurable measurement values, and thus the coarse adjustment compensation value can be easily calculated.
It can be understood that, in other embodiments, the measurement values and the actual values of the region Q7 and the region Q8 in the formula (5) above may also be represented by, for example, average, by which the coarse adjustment compensation value may also be easily calculated.
After the coarse adjustment compensation value is calculated, all cell populations in the dot plot may be compensated using the coarse adjustment compensation value to update the dot plot.
It can be understood that, there can be fewer fine adjustment compensations by calculating the coarse adjustment compensation value. In other embodiments, the step of coarse adjustment compensation value calculation may alternatively be omitted to directly perform the fine adjustment compensation as described below.
In the fine adjustment compensation of the step S16, the progressive approximation algorithm used may be an iterative algorithm. The compensation value may be automatically calculated through the progressive approximation algorithm according to the position of the base cell population and all particles in the dot plot may be compensated using the compensation value. Then, the dot plot may be updated according to the compensation results. This step may specifically include:
setting the coarse adjustment compensation value as an initial compensation value or setting an initial compensation value, and setting an adjustment step length and an iteration termination condition; and
compensating the plurality of cell populations in the dot plot and determining whether the compensated reference cell population meets the iteration termination condition. If not, the initial compensation value is automatically added or subtracted by the adjustment step length to obtain a current compensation value, and the plurality of cell populations in the dot plot may be continued to be compensated using the current compensation value until the iteration termination condition is met. The details will be described below with reference to
The particles of all cell populations in the dot plot may be compensated by the compensation value using the following formula:
a resulting value of each particle in the compensated direction after the compensation=a current measurement value of each particle in the compensated direction−the compensation value*a current measurement value of each particle in the compensating direction.
The current measurement value of each particle in the compensating direction may remain unchanged.
The specific processes of the fine adjustment compensation may be as shown in
At step S20, the iteration termination condition, the initial adjustment step length and the initial compensation value may be set. The coarse adjustment compensation value obtained in the step S14 above may be set as the initial compensation value. In the case that there is no coarse adjustment compensation step, the initial compensation value may be directly set. In an embodiment, the initial adjustment step length may be set, for example, as 1%.
The iteration termination condition may be defined as follows:
an absolute value of a difference value between a median of the compensation resulting values of the particles of the base cell population in the compensated direction and a median of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a first predetermined value; or
a ratio of an absolute value of a difference value between a median of the compensation resulting values of the particles of the base cell population in the compensated direction and a median of the compensation resulting values of the particles of the reference cell population in the compensated direction to the median of the compensation resulting values of the particles of the base cell population in the compensated direction or the median of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a second predetermined value; or
an absolute value of a difference value between an average of the compensation resulting values of the particles of the base cell population in the compensated direction and an average of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a third predetermined value; or
a ratio of an absolute value of a difference value between an average of the compensation resulting values of the particles of the base cell population in the compensated direction and an average of the compensation resulting values of the particles of the reference cell population in the compensated direction to the average of the compensation resulting values of the particles of the base cell population in the compensated direction or the average of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a fourth predetermined value.
The first, second, third and fourth predetermined values may be pre-determined as needed.
Specifically, in an embodiment, when taking the dot plot in
where Median(Q8:CD8) is the median of the measurement values of the particles of the reference cell population located in the region Q8 in the CD8 direction, Median(Q7:CD8) is the median of the measurement values of the particles of the base cell population located in the adjacent region Q7 in the CD8 direction, and the 5% is the second predetermined value as mentioned above.
At step S21, it may be determined whether the Median(Q8:CD8) is larger than the Median(Q7:CD8), and if yes, step S22 may be performed to increase the compensation value, i.e. the initial adjustment step length may be automatically added to the initial compensation value to obtain the current compensation value.
If not, step S23 may be performed to reduce the compensation value, i.e. the initial adjustment step length may be automatically subtracted from the initial compensation value to obtain the current compensation value.
At step S24, the particles of the plurality of cell populations in the dot plot may be compensated using the current compensation value, coordinates of the dot plot can be refreshed, and the current dot plot can be updated according to the compensation results.
At step S25, it may be determined whether the plurality of cell populations in the compensated dot plot meet the iteration termination condition. If yes, the fine adjustment compensation can be ended, and the current compensation value may be outputted as the final compensation value; if not, step S26 will be performed.
At step S26, it may be determined whether there is a reversion between the median/average of the measurement values of the particles of the base cell population in the compensated direction and the median/average of the measurement values of the particles of the reference cell population in the compensated direction. If yes, the adjustment step length may be reduced by a predetermined multiple and the iteration may then be continued. Specifically, in an embodiment, it may be determined whether the Median(Q8:CD8) and the Median(Q7:CD8) are reversed in their magnitudes. If not, the step S21 may be performed. The reversion herein may refer to that, for example, provided that there is always Median(Q8:CD8)>Median(Q7:CD8) during the iteration, the compensation value is continued to be adjusted for the iteration; when Median(Q7:CD8)>Median(Q8:CD8) arises for the first time, it is determined that there is the reversion between these two in their magnitudes. The reversion may mean that the Median(Q8:CD8) and the Median(Q7:CD8) are very close in their magnitudes, and in this case, the step S27 may then be performed.
At step S27, the initial adjustment step length may be reduced by a predetermined value (for example, reduced by a predetermined multiple; in an example, the initial adjustment step length may be reduced by 10 multiples to 0.1%) and the method may go back to the step S21 to repeat the iteration.
When the compensation results meet the iteration termination condition, the fine adjustment compensation can be ended and the current compensation value may be outputted as the final compensation value. In this way, the medians of the base cell population in the region Q7 and the reference cell population in the region Q8 can be closest to each other in the compensated direction (i.e. the CD8 direction). By finely adjusting the compensation value using the progressive approximation algorithm, the “smooth vertical and horizontal” distribution of the cell population particles in the dot plot can be achieved, i.e., the positions of the base cell population (i.e. the double-negative cell population) and the reference cell population can be substantially the same (within a predetermined range) in the compensated direction.
In other embodiments, it may also compare the averages of the base cell population in the region Q7 and the reference cell population in the region Q8 in the compensated direction (i.e. the CD8 direction) and make these two to be close to each other. In this way, the “smooth vertical and horizontal” distribution of the cell population particles in the dot plot may also be achieved, i.e., the positions of the base cell population (i.e. the double-negative cell population) and the reference cell population can be substantially the same (within a predetermined range) in the compensated direction.
It can be understood that the progressive approximation algorithm may also be, for example, a binary search algorithm in other embodiments.
It can be understood that, after the automatic calculation of the compensation value and the compensation to the particles in the dot plot, the user may also manually adjust the compensation value when he or she thinks that the compensation value automatically calculated is not suitable.
As shown in
a target compensating direction determination unit 10 which may be used to, before the automatic compensation, determine at least one expected target compensating direction of a plurality of cell populations in a dot plot and display the target compensating direction in graph form for user's selection;
a compensation value setting unit 12 which may be used to manually adjust the compensation value and compensate the cell populations in all regions of the dot plot using the adjusted compensation value;
a base cell population determination unit 14 which may be used to determine a base cell population and a reference cell population in the plurality of cell populations according to positions of the plurality of cell populations in the dot plot which needs to be compensated, where the base cell population may be a double-negative cell population and the reference cell population may be a single-positive cell population in a compensating direction;
a region division unit 16 which may divide the dot plot into four regions according to a position of the base cell population such that the base cell population are located in a lower-left region and at least a portion of the reference cell population is located in a region which is in the compensating direction and adjacent to the base cell population. Specifically, the region division unit may divide the dot plot into four regions by generating a quadrant gate in the dot plot. The quadrant gate may be a regular quadrant gate which is formed by one straight line in a horizontal direction and one straight line in a vertical direction; or, the quadrant gate may be an irregular quadrant gate which is formed by at least one line in the horizontal direction and at least one line in the vertical direction.
a compensation unit 18 which may be used to automatically calculate the compensation value through a progressive approximation algorithm according to the position of the base cell population and to update the dot plot using the compensation value such that a position difference between the reference cell population and the base cell population in the dot plot in a compensated direction is within a predetermined range, where in the dot plot, the compensating direction is perpendicular to the compensated direction.
The base cell population determination unit 14 may include:
an overcompensation subunit 140 which may be used to compensate the plurality of cell populations in the dot plot with a first compensation value, where the first compensation value is an overcompensation value; and
a projection subunit 142 which may be used to project the plurality of cell populations onto the compensating direction and the compensated direction respectively to obtain histograms and determine one of the plurality of cell populations as the base cell population according to graphical peak features of the histograms.
In another embodiment, the base cell population determination unit 14 may further include:
a contour determination subunit 144 which may be used to acquire a cell population contour using an image algorithm at the lower-left region of the dot plot and determine the cell population corresponding to the cell population contour as the base cell population.
The compensation unit 18 may further include:
a coarse adjustment compensation value calculation subunit 180 which may be used to calculate a coarse adjustment compensation value;
a setting subunit 181 which may be used to set the coarse adjustment compensation value as an initial compensation value or set an initial compensation value, and set an adjustment step length and an iteration termination condition;
a compensation subunit 182 which may be used to compensate the particles of all the plurality of cell populations in the dot plot with the compensation value set by the setting subunit; and
an iteration subunit 183 which may compensate the plurality of cell populations in the dot plot and determine whether the compensated reference cell population meets the iteration termination condition; and if not, the iteration subunit may automatically add the adjustment step length to or subtract the adjustment step length from the initial compensation value to obtain a current compensation value, and continue to compensate the plurality of cell populations in the dot plot with the current compensation value, until the iteration termination condition is met. The specific details about the automatic addition or subtraction of the initial compensation value by the adjustment step length may be as described with respect to
The coarse adjustment compensation value calculation subunit 180 may calculate the coarse adjustment compensation value with the following formula:
the coarse adjustment compensation value=(a measurement value of the reference cell population in the compensated direction−a measurement value of the base cell population in the compensated direction)/a measurement value of the reference cell population in the compensating direction.
The compensation subunit 182 may compensate the particles of all cell populations in the dot plot with the following formula:
a resulting value of each particle in the compensated direction after the compensation=a current measurement value of each particle in the compensated direction−the compensation value*a current measurement value of each particle in the compensating direction.
The compensation resulting value of each particle in the compensating direction may remain unchanged relative to its current measurement value in the compensating direction.
The iteration termination condition may be:
an absolute value of a difference value between a median of the compensation resulting values of the particles of the base cell population in the compensated direction and a median of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a first predetermined value; or
a ratio of an absolute value of a difference value between a median of the compensation resulting values of the particles of the base cell population in the compensated direction and a median of the compensation resulting values of the particles of the reference cell population in the compensated direction to the median of the compensation resulting values of the particles of the base cell population in the compensated direction or the median of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a second predetermined value; or
an absolute value of a difference value between an average of the compensation resulting values of the particles of the base cell population in the compensated direction and an average of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a third predetermined value; or
a ratio of an absolute value of a difference value between an average of the compensation resulting values of the particles of the base cell population in the compensated direction and an average of the compensation resulting values of the particles of the reference cell population in the compensated direction to the average of the compensation resulting values of the particles of the base cell population in the compensated direction or the average of the compensation resulting values of the particles of the reference cell population in the compensated direction is less than a fourth predetermined value.
Further, the iteration subunit 183 may further include:
an adjustment step length updating subunit 1830 which may be used to determine whether there is a reversion between the median/average of the compensation resulting values of the particles of the base cell population in the compensated direction and the median/average of the compensation resulting values of the particles of the reference cell population in the compensated direction occurs; and if yes, the adjustment step length updating subunit may reduce the adjustment step length by a predetermined multiple and the iteration subunit may then continue the iteration.
It can be understood that, the progressive approximation algorithm may be a binary search algorithm in other embodiments.
More details may be as described above with respect to
Correspondingly, according to another aspect of the present disclosure, a flow cytometer is provided, which may include the automatic compensation device as described above. More details may be as described above with respect to
The advantages of the embodiments of the present disclosure may be as follows.
The automatic compensation method, device and corresponding flow cytometer provided by the embodiments of the present disclosure can automatically form the quadrant gate according to the features and the position information of the various cell populations in the dot plot, automatically perform the coarse adjustment compensation, and perform the fine adjustment compensation using the progressive approximation algorithm. Therefore, a suitable compensation value can be automatically calculated and the dot plot can be automatically updated, such that the plurality of cell populations are distributed in the compensated dot plot in a smooth horizontal and vertical form.
The embodiments of the present disclosure enable automatic compression using the graph-based adjustment. Therefore, user's workload is reduced and the accuracy is increased. Furthermore, since the compensation cell which needs to be compensated can be automatically set, the experience requirement for the user is greatly reduced.
A person ordinarily skilled in the art will understand that all or part of the processes of the methods in the embodiments above can be implemented through instructing related hardware by programs of a computer. The computer may include one or more general-purpose or special-purpose processors. The programs can be stored in a computer readable storage medium. When the programs are being executed, the processes as described in the embodiments above may be implemented. The storage medium may be disk, CD, ROM (Read-Only Memory) or RAM (Random Access Memory), etc.
The embodiments of the present disclosure have been described above. However, they do not intend to limit the scope of the present disclosure. The equivalents made according to the claims of the present disclosure still fall within the scope of the present disclosure.
Number | Name | Date | Kind |
---|---|---|---|
20040119974 | Bishop et al. | Jun 2004 | A1 |
20050073686 | Roth | Apr 2005 | A1 |
20080194508 | Christensen et al. | Aug 2008 | A1 |
20140220621 | Durack | Aug 2014 | A1 |
Number | Date | Country |
---|---|---|
102177427 | Sep 2011 | CN |
103180858 | Jun 2013 | CN |
2007010236 | Jan 2007 | WO |
Entry |
---|
Chen et al., AnnexinVPI Detection of Cell Apoptosis by Flow Cytometry to Determine the Positive Boundary Value and Compensation Value, J Mod Lab Med., Jul. 31, 2008, vol. 23, No. 4. |
Tao et al., Compensative Problem in Multi-Parameter Measurement of Flow Cytometry, Journal of Beijing Medical University, 1996, pp. 39-41, vol. 28, No. 1. |
Number | Date | Country | |
---|---|---|---|
20170097296 A1 | Apr 2017 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2014/075109 | Apr 2014 | US |
Child | 15289826 | US |