Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the invention provides an automatic classification arrangement method and equipment applied to pathological tissue sections. The technical scheme is as follows:
in a first aspect, there is provided an automatic classification arrangement method applied to pathological tissue sections, the method comprising:
s1, acquiring sequencing information of n samples in automatic classifying and arranging equipment, wherein the sequencing information is used for indicating the arrangement sequence of the n samples in the automatic classifying and arranging equipment, the 1 st sample is a first sample, the n sample is a last sample, the 1 st position is a first position, and the n position is a last position; the automatic classification arrangement equipment comprises n positions and 1 preset position;
s2, moving the sample x positioned at the nth position to a preset position, and moving the nth sample to the nth position so that the position y positioned before the nth sample is in an idle state;
s3, moving the y sample to a y position, wherein the position of the y sample before is in an idle state;
s4, continuing to execute according to the steps S2 to S3 until the xth position is in an idle state, and moving the sample x positioned at the preset position to the xth position;
s5, continuing to execute the steps from S2 to S4 on the (n-1) th sample and the (n-1) th position until the (n) th sample is placed to the (n) th position according to the sorting information.
Optionally, the acquiring the sorting information of the n samples in the automatic sorting device includes:
acquiring classification information among the n samples;
and calculating the sorting information according to the sorting information.
Optionally, the acquiring the sorting information of the n samples in the automatic sorting device includes:
acquiring correlations among the n samples;
and calculating the ordering information according to the correlation.
Optionally, the moving the sample x located at the nth position to a preset position includes:
calculating a first optimal path between the sample x at the nth position and a preset position;
and moving the sample positioned at the nth position to a preset position according to the first optimal path.
Optionally, said moving said nth sample to said nth position comprises:
calculating a second optimal path between the nth sample to the nth location;
and moving the nth sample to the nth position according to the second optimal path.
Optionally, the moving the sample x located at the nth position to a preset position includes:
calculating a first optimal path between the sample x at the nth position and a preset position;
moving the sample positioned at the nth position to a preset position according to the first optimal path;
said moving said nth sample to said nth position comprises:
calculating a second optimal path between the nth sample to the nth location;
moving the nth sample to the nth position according to the second optimal path;
the moving process is performed by a mechanical gripping device, the method further comprising:
and setting a moving path of the mechanical grabbing device according to the first optimal path and the second optimal path.
Optionally, the moving the sample x located at the nth position to a preset position includes:
calculating a first optimal path between the sample x at the nth position and a preset position;
moving the sample positioned at the nth position to a preset position according to the first optimal path;
said moving said nth sample to said nth position comprises:
calculating a second optimal path between the nth sample to the nth location;
moving the nth sample to the nth position according to the second optimal path;
the n positions are movable, and the automatic sorting and arranging device further comprises a vacancy groove, wherein the vacancy groove is used for placing the positions;
and setting the moving paths of the n positions according to the vacancy groove, the first optimal path and the second optimal path.
In a second aspect, there is provided an automatic sort arrangement apparatus applied to pathological tissue sections, the automatic sort arrangement apparatus comprising:
the automatic sorting and arranging device comprises an acquisition module, a sorting module and a sorting module, wherein the acquisition module is used for acquiring sorting information of n samples in the automatic sorting and arranging device, the sorting information is used for indicating the arrangement sequence of the n samples in the automatic sorting and arranging device, the 1 st sample is a first sample, the n sample is a last sample, the 1 st position is a first position, and the n position is a last position; the automatic classification arrangement equipment comprises n positions and 1 preset position;
a moving module, configured to move a sample x located at the nth position to a preset position, move the nth sample to the nth position, and locate at a position y before the nth sample in an idle state;
the moving module is further configured to move the y sample to the y position until the x position is in an idle state;
the moving module is also used for moving the sample x in the preset position to an xth position;
the moving module is further configured to continue moving the n-1 th sample and the n-1 th position until the n samples are all placed to the n positions according to the sorting information.
Optionally, the mobile module includes a mechanical gripping device.
Optionally, the n positions are movable.
Optionally, the acquiring module is specifically configured to:
acquiring classification information among the n samples;
and calculating the sorting information according to the sorting information.
Optionally, the acquiring module is specifically configured to:
acquiring correlations among the n samples;
and calculating the ordering information according to the correlation.
Optionally, the mobile module is specifically configured to:
calculating a first optimal path between the sample at the nth position and a preset position;
and moving the sample positioned at the nth position to a preset position according to the first optimal path.
Optionally, the mobile module is specifically configured to:
calculating a second optimal path between the nth sample to the nth location;
and moving the nth sample to the nth position according to the second optimal path.
Optionally, the mobile module is further specifically configured to:
and setting a moving path of the mechanical grabbing device according to the first optimal path and the second optimal path.
Optionally, the mobile module is further specifically configured to;
and setting the moving paths of the n positions according to the vacancy slots.
The technical scheme provided by the embodiment of the invention has the beneficial effects that:
through the acquired sequencing information, the automatic sequencing of the plurality of samples in the automatic sorting and arranging equipment according to the sequencing information is realized, so that the position adjustment efficiency of the plurality of samples is improved, and the problem of inaccurate sequencing sequence caused by manual sequencing is avoided.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
The embodiment of the invention provides an automatic classification and arrangement method applied to pathological tissue sections, which is shown by referring to fig. 1, and comprises the following steps:
s1, acquiring sequencing information of n samples in automatic classifying and arranging equipment.
The sorting information is used for indicating the arrangement sequence of n samples in the automatic sorting and arranging equipment, wherein the 1 st sample is the first sample, the n sample is the last sample, the 1 st position is the first position, and the n position is the last position; the automatic sorting and arranging equipment comprises n positions and 1 preset position.
For further explanation of the method according to the embodiment of the present invention, it is assumed that the n positions and the reserved positions are shown with reference to fig. 2, to the n samples are s1 S to sn Referring to a in fig. 3, superscripts 1 to n are used to indicate an arrangement order, and n samples are arranged according to the arrangement information and then referred to b in fig. 3.
S2, moving the sample x positioned at the nth position to a preset position, and moving the nth sample to the nth position so that the position y positioned before the nth sample is in an idle state;
s3, moving the y sample to a y position, wherein the position of the y sample before is in an idle state;
s4, continuing to execute according to the steps S2 to S3 until the xth position is in an idle state, and moving the sample x positioned at the preset position to the xth position;
s5, continuing to execute the steps from S2 to S4 on the (n-1) th sample and the (n-1) th position until the (n) th sample is placed to the (n) th position according to the sorting information.
Alternatively, the process described in step S1 may be:
201. acquiring classification information among n samples;
specifically, the tag information on the n samples is read, where the tag information may be a two-dimensional code, a bar code, or an OCR character, and the tag information should include information for sorting, such as: item name, organization information, wax block information, patient information, doctor information, etc. In practical applications, the class information may be used to indicate the classification of the n samples, or may indicate the order of the n samples in the order;
for example, when the method is used for sorting, taking a specific pathological analysis item as an example, the classification of the n samples can be pathological sections obtained by the same pathological analysis item for different patients, so that the n samples are adjacently arranged from the category of the item name.
Or taking the tissue information as an example, the classification of the n samples may be that several of the n samples are sections of the same tissue at different times or after different experimental procedures, so that the n samples are arranged adjacently on the classification of the tissue information.
Alternatively, the n samples may also be read for future use time.
202. And calculating ordering information according to the classification information.
Specifically, a plurality of samples of the same category are arranged to be ranked close.
Optionally, according to the future use time of the n samples and the class, the plurality of samples in the same class are arranged to be similar in order, and at least one sample with the previous use time is located at an easy-to-take position, where the easy-to-take position may be manually set, and the specific setting mode is not limited in the embodiment of the present invention.
Alternatively, the process described in step S1 may be:
301. correlation between n samples is obtained.
Specifically, the process of reading the tag information on the n samples is the same as the process described in step 201, and will not be described in detail here.
The label information at least comprises sample names, preservation conditions and correlation coefficients with other samples, and can also comprise the future use time of the n samples;
the correlation coefficient is used to indicate that two samples may be stored adjacently, where the correlation coefficient may be considered to be set, and the embodiment of the present invention is not limited to a specific setting manner.
302. From the correlation, ranking information is calculated.
Specifically, n samples are set to be placed at the 1 st position nearest in future use time, the sample with the highest correlation coefficient with the sample is placed at the 2 nd position, and the like until the sorting of all samples is completed;
if the samples with the highest correlation coefficients with the samples are a plurality of samples, selecting the samples with the nearest use time from the plurality to be placed at the 2 nd position, and the like, until the sorting of all the samples is completed.
Optionally, moving the sample x located at the nth position to the preset position in step S2 includes:
401. and calculating a first optimal path between the sample at the nth position and the preset position.
Specifically, a plurality of paths between the sample at the nth position and the preset position are calculated, and the length unit of the paths can be a single position; for example, the first path has a length of 2 positions and the second path has a length of 3 positions;
and selecting the path with the shortest length from the paths as a first optimal path.
402. And moving the sample at the nth position to a preset position according to the first optimal path.
Optionally, moving the nth sample to the nth position in step S2 includes:
501. a second optimal path between the nth sample and the nth location is calculated.
Specifically, the method is the same as that described in step 401, and will not be described in detail here.
502. And moving the nth sample to the nth position according to the second optimal path.
Alternatively, the process described in step S3 may be:
601. and calculating a third optimal path between the sample at the preset position and the position before the nth sample.
Specifically, the method is the same as that described in step 401, and will not be described in detail here.
602. And moving the y-th sample to the y-th position according to the third optimal path.
Optionally, the moving process is performed by a mechanical gripping device, the method further comprising:
and setting a moving path of the mechanical grabbing device according to the first optimal path and the second optimal path.
Optionally, the n positions are movable, and the automatic sorting and arranging device further comprises a vacancy groove, wherein the vacancy groove is used for placing the positions;
according to the vacancy slots, the movement paths of n positions are set, and the process can be specifically as follows:
calculating the number of positions to be moved in the process of moving the position of the nth sample to the nth position; the number of movements may be the number of positions to be moved in the process by moving the relevant plurality of positions to the empty slot continuously and then moving the position where the nth sample is located to the nth position;
setting a moving mode with the least number of positions to be moved, wherein the moving mode is a mode that the position of the nth sample moves to the nth position;
calculating the number of positions to be moved in the process that the position of the sample at the nth position moves to the preset position;
the number of movements may be the number of positions to be moved in the process by moving the relevant plurality of positions to the empty slot continuously and then moving the position where the nth sample is located to a preset position;
setting the moving mode with the least number of positions to be moved as the moving mode that the position of the nth sample moves to the preset position.
In practical applications, the empty slot may be the predetermined position.
Example two
An embodiment of the present invention provides an automatic sorting apparatus 4 applied to pathological tissue sections, referring to fig. 4, the automatic sorting apparatus 4 includes:
the acquiring module 41 acquires ordering information of n samples in the automatic sorting and arranging device in an information scanning manner, wherein the ordering information is used for indicating the arrangement sequence of the n samples in the automatic sorting and arranging device, the 1 st sample is a first sample, the n sample is a last sample, the 1 st position is a first position, and the n position is a last position; the automatic classifying and arranging equipment comprises n positions and 1 preset position;
a moving module 42, configured to move the sample x located at the nth position to a preset position, move the nth sample to the nth position, and locate at a position y before the nth sample in an idle state;
the moving module 42 is further configured to move the y-th sample to the y-th location until the x-th location is in an idle state;
the moving module 42 is further configured to move the sample x to an xth position in the preset position;
the movement module 42 is further configured to continue moving the n-1 th sample and the n-1 th position until the n samples are all placed to the n positions according to the sorting information.
Optionally, the movement module 42 includes a mechanical gripping device.
Alternatively, n positions may be movable.
Optionally, the obtaining module 41 is specifically configured to:
acquiring classification information among n samples;
and calculating ordering information according to the classification information.
Optionally, the obtaining module 41 is specifically configured to:
acquiring correlations between n samples;
from the correlation, ranking information is calculated.
Optionally, the mobile module 42 is specifically configured to:
calculating a first optimal path between a sample at an nth position and a preset position;
and moving the sample at the nth position to a preset position according to the first optimal path.
Optionally, the mobile module 42 is specifically configured to:
calculating a second optimal path between the nth sample and the nth position;
and moving the nth sample to the nth position according to the second optimal path.
Optionally, the mobile module 42 is further specifically configured to:
and setting a moving path of the mechanical grabbing device according to the first optimal path and the second optimal path.
Optionally, the mobile module 42 is also specifically configured to;
according to the empty slots, the movement paths of n positions are set.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present invention, which is not described herein.
It should be noted that: the automatic sorting and arranging device provided in the above embodiment is only exemplified by the division of the above functional modules when executing the sample arranging method applied to the sample automatic sorting and arranging device, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the automatic sorting and arranging device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the sample arranging method and the automatic sorting and arranging device embodiment applied to the sample automatic sorting and arranging device provided in the foregoing embodiments belong to the same concept, and detailed implementation processes of the method embodiment are omitted herein.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.