Dyeing film extraction scheduling optimization method, device and application thereof
The dyeing piece lifting and scheduling method through dynamic optimization of paths and time management solves the problems of low efficiency and unstable quality in the traditional HE dyeing process, realizes efficient and automated HE dyeing, adapts to large-scale detection needs, and improves dyeing consistency and quality. Diagnostic accuracy.
Patent Information
- Application Number
- CN202410946623.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The traditional HE staining process relies on manual operations, with low efficiency and unstable quality. The existing automated equipment has limited processing capabilities and cannot meet the needs of large-scale clinical testing. It is also difficult for equipment algorithms and scheduling mechanisms to maintain staining consistency.
The method of scheduling and optimizing the dyeing slides using dynamic optimization path and time management is used to build a dyeing batch scheduling model, pre-configure the dyeing plan, dynamically adjust the slide movement path and time, realize multi-thread scheduling, and combine machine learning to optimize the scheduling strategy. Ensure dyeing quality and efficiency.
It realizes efficient automated HE staining, improves staining quality and consistency, adapts to large-scale detection needs, reduces operational risks, and improves the accuracy and reliability of pathological diagnosis.
Smart Images

Figure CN118504933B
Abstract
Description
Technical Field
[0001] The present application relates to the field of biomedical engineering, and in particular to a method and device for optimizing dyeing and extracting film scheduling and its application. Background Art
[0002] In the field of medical diagnosis, especially in pathology, hematoxylin and eosin (HE) staining is a basic and crucial technology used to reveal the subtle differences in cell and tissue structure, which plays a decisive role in the diagnosis of diseases. Traditionally, the HE staining process is highly dependent on the manual operation of technicians, including placing the slides one by one into different staining solutions and strictly controlling the staining time. This series of steps is not only tedious and time-consuming, but also poses a challenge to the operator's professional skills and physical health. Long-term exposure to harmful chemical reagents, such as dyes and dewaxing agents, may have adverse effects on the health of workers.
[0003] In recent years, with the rapid development of automation technology, it has become an urgent need to apply it to pathology laboratories to improve work efficiency and ensure personnel safety. Although some automated staining equipment has appeared on the market to reduce manual intervention and improve staining efficiency, these devices generally have several limitations: first, they are often designed to process a small number of slides at a time, which cannot meet the needs of large-scale clinical testing; second, most systems use a single task processing mode, that is, "single thread", which limits their processing speed and flexibility; finally, the quality and consistency of staining are restricted by the equipment algorithm and scheduling mechanism, making it difficult to maintain highly consistent staining effects across various staining schemes and different batches.
[0004] In view of the above problems, it is particularly important to develop an intelligent management system that can adapt to user-defined staining schemes and dynamically adjust the staining process to achieve efficient multi-threaded staining operations. This system needs to have the following key features: First, it can receive and parse the complex staining schemes preset by users, and automatically plan the staining steps and time series based on this; second, it has flexible multi-threaded processing capabilities, and even in the face of changes in the number or type of stain input, it can dynamically optimize through algorithms to ensure that each slide is accurately and efficiently processed; third, through real-time monitoring and algorithm adjustment, the consistency and high quality of the staining results of each batch are maintained, thereby improving the accuracy and reliability of pathological diagnosis.
[0005] In summary, building an automated HE staining system that combines user-defined presets and multi-threaded dynamic scheduling algorithms is a key technical innovation direction for the current pathology clinical practice to move towards higher efficiency, safety, and standardization. The successful implementation of such a system is expected to completely change the working mode of the pathology laboratory, accelerate the automation process of pathology diagnosis, and ensure the stability and repeatability of staining quality, providing strong technical support for precision medicine. Summary of the invention
[0006] The embodiments of the present application provide a method, device and application for optimizing dyeing and lifting scheduling, which are aimed at the problems faced by current technologies, such as low manual operation efficiency, unstable quality, high occupational safety risks, limited processing capacity of existing automated equipment, and insufficient flexibility and consistency.
[0007] The core technology of the present invention is to achieve efficient and automated processing of pathological clinical HE staining by dynamically optimizing path and time management, thereby ensuring the quality and efficiency of batch staining.
[0008] In a first aspect, the present application provides a method for optimizing dyeing and collecting film scheduling, the method comprising the following steps:
[0009] S00, build a dyeing batch scheduling model to convert the dyeing vat layout and workflow in the actual dyeing workstation into a digital model;
[0010] S10, pre-configure the dyeing scheme, define a fixed total number of dyeing steps k, assign a specific immersion time to each step, and use the preset dye sensitivity as a constraint condition S ij ;
[0011] S20, according to the dyeing batch scheduling model, calculate the time for each batch of slide racks to be placed in the dyeing tank of the corresponding step and lifted from the dyeing tank of the corresponding step in each dyeing step, as well as the time occupied by the movement stroke, and then determine the movement time t for the structural arm to finish dyeing from the previous dyeing tank and move to the next dyeing tank for dyeing after lifting the slides according to the Pythagorean theorem vector operation ij , to determine the shortest time for the shortest path calculation under the current solution;
[0012] S30, implementing a dynamic scheduling algorithm to dynamically adjust the movement path and time schedule of the slide according to the number of staining batches N currently being processed and the newly input batches, to ensure that the optimal multi-threaded scheduling strategy is found while satisfying the sensitivity constraints of each step;
[0013] S40, automatically adjusts the structure arm movement, and commands the precise movement of the robot arm on the XYZ axis in real time according to the optimized scheduling plan to adapt to batch changes and make full use of system resources;
[0014] S50, iterative optimization, continuously monitoring the status of the staining module and the addition of new batches, and cyclically executing steps S30 to S40 until all slides to be stained complete the predetermined staining process.
[0015] Furthermore, in step S00, in the converted digital model, the position of the gripper when entering the dye vat is set as the coordinate origin (0,0), and according to the layout and number of dyeing modules, the position of the structural arm is recorded as (i,j), where i represents the i-th row of the dyeing module and j represents the j-th column of the dyeing module.
[0016] Furthermore, in step S20, the formula for calculating the time minT for picking up and placing the slides of each batch of slide racks in each staining step is:
[0017]
[0018] Where p means there are p rows inside the coloring module, q means there are q rows inside the coloring module; i=1,...,p; j=1,...,q; x ij = 0 means that there is no slide rack in the dyeing tank at the corresponding position of row i and column j. ij =1 means that there is a slide rack in the dyeing tank at the corresponding position of row i and column j. N corresponds to the number of all dyeing batches entering the dyeing process. ij It indicates the movement time of the structural arm lifting the sheet from the previous dye vat to finish dyeing and moving to the next dye vat for dyeing.
[0019] Furthermore, in step S20, after the structural arm lifts the sheet, the dyeing is completed from the previous dye vat, and the movement time formula for moving to the next dye vat for dyeing is:
[0020]
[0021] Among them, v x and v y They represent the movement speed of the gripper in the x-axis direction and the y-axis direction respectively, Li represents the distance between the i-th dye vat and the last dye vat in the same x-axis direction, and Hj represents the distance between the j-th dye vat and the last dye vat in the same y-axis direction.
[0022] Furthermore, in step S20, the time for which the structural arm needs to be occupied at any step in the dyeing process for:
[0023]
[0024] Wherein, 2T represents the sum of the time for lifting and placing the slides of each batch of slide racks in each staining step.
[0025] Furthermore, the error in each dyeing step affects the reference loss function F:
[0026]
[0027] Among them, K ij is the time the slide is in the structural arm and the dyeing tank, is the time that the structure arm needs to be occupied, e is the cross entropy, and time t is the actual start time of each step in the actual dyeing process.
[0028] Furthermore, in step S40, the dyeing work is performed on the glass slide racks to be dyed according to whether there is surplus time and idle dyeing tanks in each batch.
[0029] In a second aspect, the present application provides a dyeing sheet and sheet picking scheduling optimization device, comprising:
[0030] The digital dyeing workstation modeling unit is used to digitize the positions of each dye vat and the working area in the dyeing module to form a dyeing batch scheduling model;
[0031] The dyeing step and time parameter setting unit is used to determine a series of fixed dyeing steps k and set a specific immersion time and dye sensitivity parameter S in the dye vat for each step. ij ;
[0032] The slide movement time calculation unit is responsible for calculating the specific time required for the slide rack to be lifted, placed, and moved to each dyeing tank during the dyeing process;
[0033] The batch scheduling optimization algorithm unit dynamically adjusts based on the newly added batch information at the input end, uses the shortest path algorithm to calculate the optimal movement path and time arrangement of each batch of slides in the staining process, considers the sensitivity constraints of the staining steps, and realizes efficient scheduling of multiple batches of slides at the same time;
[0034] Real-time scheduling and adjustment feedback loop, automatically recalculating and adjusting the XYZ axis motion instructions of the structural arm according to the real-time situation of the newly added batches in the dyeing process, so as to make full use of the dye tank resources and time gaps to ensure continuous and efficient dyeing operations;
[0035] Sensitivity priority scheduling module, according to the sensitivity parameter S of the dyeing step ij , automatically adjust the execution order and time allocation of each step in the staining process to ensure strict time control of highly sensitive steps;
[0036] Dynamic resource allocation module, which is used to monitor the usage status and idle time of the dye vats in the dyeing module, automatically matching the slides to be stained to the most appropriate dye vats and time windows to maximize system utilization;
[0037] Among them, the real-time scheduling adjustment feedback loop integrates a machine learning algorithm to continuously optimize the scheduling strategy by continuously learning data from the dyeing process.
[0038] In a third aspect, the present application provides an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned dyeing and film collection scheduling optimization method.
[0039] In a fourth aspect, the present application provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process. The process includes the above-mentioned dyeing piece and piece selection scheduling optimization method.
[0040] The main contributions and innovations of the present invention are as follows:
[0041] 1. Intelligent scheduling optimization: By introducing advanced multi-threaded automatic scheduling algorithms, the present invention can dynamically adjust the dyeing process and time arrangement while processing multiple batches of dyeing tasks, which is significantly better than traditional manual operation and single task processing mode, and realizes the intelligence and efficiency of dyeing operations.
[0042] 2. Enhanced flexibility and adaptability: The system can automatically recalculate the optimal scheduling plan based on the real-time input dyeing batch changes, effectively utilize dye tank resources and time gaps, solve the problem of insufficient flexibility and adaptability of existing automated equipment, and improve overall work efficiency.
[0043] 3. Improved quality and stability: By precisely controlling the time of each dyeing step, especially in combination with the sensitivity parameters of the dyeing steps, the present invention ensures the consistency and high quality of dyeing results of different batches, and solves the problem of dyeing quality fluctuations caused by equipment limitations.
[0044] 4. Maximize resource utilization: Utilize dynamic resource allocation strategy to automatically match the slides to be stained to the most appropriate dyeing tank and time window, maximize the processing capacity of the dyeing module, reduce idle resources, and further improve dyeing efficiency.
[0045] 5. Improved human-computer interaction and safety: Automated scheduling reduces the frequency of medical staff's direct contact with harmful chemical reagents, ensuring personnel safety. It also simplifies the operating process and enhances the friendliness and ease of operation of the human-computer interface.
[0046] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0048] Figure 1 This is the process of the dyeing and extracting scheduling optimization method according to the embodiment of the present application;
[0049] Figure 2 It is a process of digitizing the planes of each dye vat in the dyeing module according to an embodiment of the present application;
[0050] Figure 3 This is a partial process of step S50 according to an embodiment of the present application;
[0051] Figure 4 This is the process of step S50 according to the embodiment of the present application;
[0052] Figure 5 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0054] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0055] Traditional pathological clinical HE staining work faces problems such as low manual operation efficiency, unstable quality, high occupational safety risks, limited processing capacity of existing automated equipment, and lack of flexibility and consistency.
[0056] Based on this, the present invention is based on machine learning to solve the problems existing in the prior art.
[0057] Embodiment 1
[0058] This application aims to propose a method for optimizing the scheduling of slide lifting and staining. When a single structural arm processes multiple batches of stained glass slides with different staining processes at the same time, according to the permutation and combination of any two thread batches, in the whole staining process of these batches, the total staining steps are fixed, represented by k. The time required for lifting, placing, and moving the slide at the beginning of each staining step is calculated. Then the sensitivity (priority) parameter in each staining step is introduced as a constraint condition S ij (The more sensitive the staining step is, the less buffer time is allowed, and the stricter the time for staining the slides is.) Once new batches of slides are added to the input in this process, the number of staining batches N currently being executed is updated, and the system automatically re-solves the function after the variable is introduced. The structural arm will adjust the scheduling movement in the XYZ axis direction according to the latest result. The above method is a multi-threaded batch scheduling planning adjustment model.
[0059] Among them, the constraint condition S ij It is just a setting constant value of a dyeing step, which can be understood as 0 or 1. This is a comparison parameter value between two dyeing steps. If there are two steps, one with a sensitivity of 1 and the other with a sensitivity of 0, then the step with a sensitivity of 1 has a higher sensitivity. When there is a scheduling judgment between the two, the step with a sensitivity of 1 cannot wait. On the contrary, the step with a sensitivity of 0 is allowed to wait because its value is lower than 1, and the waiting time is the minT corresponding to the sensitivity value of 1.
[0060] Specifically, the present application embodiment provides a dyeing film and film scheduling optimization method, specifically, referring to Figure 1 , the method comprising:
[0061] S00. Construct a dyeing batch scheduling model and digitize the planes of each dye vat in the dyeing module; wherein, the plane digitization of the dye vat refers to representing the dye vat position points of multiple dye vats at different positions in the form of (i, j) coordinates and the sensitivity, time, presence or absence of glass slides and other parameters corresponding to the dye solution in the dye vat, such as Figure 2 shown.
[0062] In this embodiment, some parameters in the model need to be set. The position of the gripper when entering the cylinder is set as the coordinate origin (0, 0). There are p rows and q columns inside the dyeing module. The position of the structural arm in the i-th row and j-th column is recorded as (i, j), (i=1,…,p; j=1,…,q).
[0063] S10, determining the dyeing steps and the duration of dyeing required in each dyeing step;
[0064] S20, setting the sensitivity of various dye vats (dye solutions therein) in the dyeing scheme, and setting the dyeing execution scheme according to the sensitivity;
[0065] Among them, the sensitivity Sij Settings: Users set the sensitivity of various dye vats (dye liquids in them) in the dyeing scheme according to the inherent characteristics of the dye liquid (whether it is easily affected by acid and alkali) and the requirements of the dyeing scene. The two dyeing steps are compared with each other. The dye liquid with a higher dyeing sensitivity value is strictly executed according to the dyeing duration after the dyeing work starts.
[0066] S30, calculating the time for putting down and lifting the slide rack, and calculating the time for putting the slide rack into the dye vat of the corresponding step and lifting it from the dye vat of the corresponding step in each batch according to the dyeing batch scheduling model, and then determining the movement time t for the structure arm to finish dyeing from the previous dye vat and move to the next dye vat for dyeing after lifting the slide rack according to the Pythagorean theorem vector operation. ij , thereby determining the shortest time for the shortest path calculation under the current solution;
[0067] In this embodiment, the time taken by the structural arm to lift the slide rack and the time taken to place the slide (the time taken to lift and place the slide is the same) is calculated as:
[0068]
[0069] where i=1,…,p; j=1,…,q; x ij = 0 means that there is no slide rack in the dyeing tank at the corresponding position of row i and column j. ij =1 means that the dyeing tank at the corresponding position of row i and column j has a slide rack .
[0070] Next, according to the Pythagorean theorem vector calculation, the movement time t of the structural arm from the previous dye vat to the next dye vat for dyeing is determined. ij :
[0071]
[0072] in, and They represent the movement speed of the gripper in the horizontal (row, X-axis) and vertical (column, Y-axis) directions respectively, Li represents the distance between the i-th dye vat and the last dye vat in the same X-axis direction, and Hj represents the distance between the j-th dye vat and the last dye vat in the same Y-axis direction.
[0073] S40, continuously putting in new slide racks at the input end, continuously optimizing the path and time plan of the structural arm scheduling the slide racks, and performing the dyeing work according to whether there is surplus time and idle dyeing tanks in each batch for the slide racks to be dyed;
[0074] In this embodiment, before the structural arm puts the slide rack into the dyeing tank, it is necessary to confirm that the structural arm has clamped the slide rack from the previous dyeing tank and is ready to enter the next dyeing tank. ij ) considerations, since the dye in each dye vat is affected by the different immersion time, the degree of influence of the glass slide immersion is inconsistent. Therefore, for the dye with a greater impact, the sensitivity value will be higher. In the actual dyeing process, the longer the waiting time, the less likely it is to occur. This also means that when the structural arm encounters a highly sensitive dye immersion step, the structural arm must be more punctual and give priority to the corresponding slide placement and lifting actions.
[0075]
[0076] Among them, x ij It indicates whether there is a glass slide in the dyeing tank. If there is a glass slide x ij =1, no slide x ij =0; S ij It represents the sensitivity value of the dye in the dye vat corresponding to the i-th row and the j-th column. S represents the sensitivity included in the calculation. To be included in the calculation, the slide must have a high sensitivity value and be stained.
[0077] How long the structure arm needs to be occupied at any step in the staining process
[0078]
[0079] Among them, 2T refers to the time of lifting and putting down. Since the time of lifting and the time of putting down are the same, both are T, 2T is used to express it.
[0080] In any step, the time that the slide rack is in the structural arm and the dye tank is:
[0081]
[0082] Among them, k represents the dyeing step, k ij It represents the time required for dyeing the dye vat corresponding to row i and column j. This is a variable parameter that the user customizes and inputs based on the dye liquid characteristics and dyeing requirements.
[0083] This time is used as the theoretical calculation time value that the structural arm needs to be occupied next time.
[0084] On the basis of satisfying the above conditions, the optimal path for the structural arm to carry out the next dyeing batch is calculated, and then combined with the condition that the dye vat of the next step in each thread batch is idle, the next action of the structural arm is judged, such as Figure 3Finally, the error effect in each dyeing step is determined (the error effect refers to the deviation between the actual value and the theoretical expected value. The addition of the error effect can make the theoretical calculated value more in line with the actual value, and the difference is smaller during simulation, which can make the estimation of the dyeing multi-threaded batch solution more accurate). The error effect here refers to the loss function F:
[0085]
[0086] In fact, the closer the actual time t taken to start each step is to The closer the better, where e represents cross entropy. Time t is the actual start time of each step in the actual dyeing process. In real scenes, sensors, controllers, and motion components have a time sequence in the process of sensing and receiving signal processing. They are not performed at the same time, and the time consumed varies depending on the number of threads. Therefore, this actual variable parameter needs to be taken into account when executing the algorithm program.
[0087] S50, the calculation model is continuously repeated until all the slide racks to be stained in the staining module have completed the staining work, such as Figure 4 shown.
[0088] Embodiment 2
[0089] Based on the same concept, the present application also proposes a dyeing sheet picking scheduling optimization device, comprising:
[0090] The digital dyeing workstation modeling unit is used to digitize the positions of each dye vat and the working area in the dyeing module to form a dyeing batch scheduling model;
[0091] The dyeing step and time parameter setting unit is used to determine a series of fixed dyeing steps k and set a specific immersion time and dye sensitivity parameter S in the dye vat for each step. ij ;
[0092] The slide movement time calculation unit is responsible for calculating the specific time required for the slide rack to be lifted, placed, and moved to each dyeing tank during the dyeing process;
[0093] The batch scheduling optimization algorithm unit dynamically adjusts based on the newly added batch information at the input end, uses the shortest path algorithm to calculate the optimal movement path and time arrangement of each batch of slides in the staining process, considers the sensitivity constraints of the staining steps, and realizes efficient scheduling of multiple batches of slides at the same time;
[0094] Real-time scheduling and adjustment feedback loop, automatically recalculating and adjusting the XYZ axis motion instructions of the structural arm according to the real-time situation of the newly added batches in the dyeing process, so as to make full use of the dye tank resources and time gaps to ensure continuous and efficient dyeing operations;
[0095] Sensitivity priority scheduling module, according to the sensitivity parameter S of the dyeing step ij , automatically adjust the execution order and time allocation of each step in the staining process to ensure strict time control of highly sensitive steps;
[0096] Dynamic resource allocation module, which is used to monitor the usage status and idle time of the dye vats in the dyeing module, automatically matching the slides to be stained to the most appropriate dye vats and time windows to maximize system utilization;
[0097] Among them, the real-time scheduling adjustment feedback loop integrates a machine learning algorithm to continuously optimize the scheduling strategy by continuously learning data from the dyeing process.
[0098] Embodiment 3
[0099] This embodiment also provides an electronic device, referring to Figure 5 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.
[0100] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0101] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside the data processing device. In a specific embodiment, the memory 404 is a non-volatile memory. In a specific embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0102] The memory 404 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402 .
[0103] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the dyeing and extracting scheduling optimization methods in the above embodiments.
[0104] Optionally, the electronic device may further include a transmission device 406 and an input / output device 408 , wherein the transmission device 406 is connected to the processor 402 , and the input / output device 408 is connected to the processor 402 .
[0105] The transmission device 406 can be used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0106] Input / output devices 408 are used to input or output information.
[0107] Embodiment 4
[0108] This embodiment also provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process. The process includes the dyeing and extraction scheduling optimization method according to the first embodiment.
[0109] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0110] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.
[0111] Embodiments of the present invention can be implemented by computer software, which is executable by a data processor of a mobile device, such as in a processor entity, or implemented by hardware, or implemented by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and / or macros can be stored in any device-readable data storage medium, and they include program instructions for performing specific tasks. Computer program products can include one or more computer executable components configured to perform embodiments when the program is running. One or more computer executable components can be at least one software code or a part thereof. In addition, at this point, it should be noted that any box of the logic flow in the figure can represent program steps, or interconnected logic circuits, boxes and functions, or a combination of program steps and logic circuits, boxes and functions. Software can be stored in physical media such as memory chips or storage blocks implemented in processors, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. Physical media are non-transient media.
[0112] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0113] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A dyeing and picking scheduling optimization method, It is characterized in that The following steps are involved: S00, build a dyeing batch scheduling model to convert the dyeing vat layout and workflow in the actual dyeing workstation into a digital model; S10, pre-configure the dyeing scheme, define a fixed total number of dyeing steps k, assign a specific immersion time to each step, and use the preset dye sensitivity as a constraint condition S ij ; S20, according to the dyeing batch scheduling model, calculate the time for each batch of slide racks to be placed in the dyeing vat of the corresponding step and lifted from the dyeing vat of the corresponding step in each dyeing step, as well as the time occupied by the movement stroke, and then determine the movement time t for the structural arm to finish dyeing from the previous dyeing vat and move to the next dyeing vat for dyeing after lifting the slides according to the Pythagorean theorem vector operation. ij , to determine the shortest time for the shortest path calculation under the current solution; S30, implementing a dynamic scheduling algorithm to dynamically adjust the movement path and time schedule of the slide according to the number of staining batches N currently being processed and the newly input batches, to ensure that the optimal multi-threaded scheduling strategy is found while satisfying the sensitivity constraints of each step; S40, automatically adjusts the structure arm movement, and commands the precise movement of the robot arm on the XYZ axis in real time according to the optimized scheduling plan to adapt to batch changes and make full use of system resources; S50, iterative optimization, continuously monitoring the status of the staining module and the addition of new batches, and cyclically executing steps S30 to S40 until all slides to be stained complete the predetermined staining process.
2. A dyeing and extracting scheduling optimization method as claimed in claim 1, It is characterized in that In step S00, in the converted digital model, the position of the gripper when entering the dye vat is set as the coordinate origin (0,0), and according to the layout and number of dyeing modules, the position of the structural arm is recorded as (i,j), where i represents the i-th row of the dyeing module and j represents the j-th column of the dyeing module.
3. A dyeing and extracting scheduling optimization method as claimed in claim 2, It is characterized in that In step S20, the formula for calculating the time minT for picking up and placing the slides of each batch of slide racks in each staining step is: Where p means there are p rows inside the coloring module, q means there are q rows inside the coloring module; i=1,...,p; j=1,...,q; x ij = 0 means that there is no slide rack in the dyeing tank at the corresponding position of row i and column j. ij =1 means that there is a slide rack in the dyeing tank at the corresponding position of row i and column j. N corresponds to the number of all dyeing batches entering the dyeing process. ij It indicates the movement time of the structural arm lifting the sheet from the previous dye vat to finish dyeing and moving to the next dye vat for dyeing.
4. A dyeing and extracting scheduling optimization method as claimed in claim 3, It is characterized in that In step S20, according to the Pythagorean theorem vector operation, the movement time t of the structural arm after lifting the sheet from the previous dye vat to the next dye vat for dyeing is determined. ij The formula is: Among them, v x and v y They represent the movement speed of the gripper in the x-axis direction and the y-axis direction respectively, Li represents the distance between the i-th dye vat and the last dye vat in the same x-axis direction, and H(j-1) represents the distance between the j-1-th dye vat and the last dye vat in the same y-axis direction.
5. A dyeing and extracting scheduling optimization method as claimed in claim 4, It is characterized in that In step S20, the length of time the structure arm needs to be occupied at any step in the dyeing process for: Wherein, 2T represents the sum of the time for lifting and placing the slides of each batch of slide racks in each staining step.
6. A dyeing and extracting scheduling optimization method as described in any one of claims 1 to 5, It is characterized in that The error in each dyeing step affects the reference loss function F: Among them, K ij is the time the slide is in the structural arm and the dyeing tank, is the time that the structure arm needs to be occupied, e is the cross entropy, and t is the actual start time of each step in the actual dyeing process.
7. A dyeing sheet picking scheduling optimization device, It is characterized in that include: The digital dyeing workstation modeling unit is used to digitize the positions of each dye vat and the working area in the dyeing module to form a dyeing batch scheduling model; The dyeing step and time parameter setting unit is used to determine a series of fixed dyeing steps k and set a specific immersion time and dye sensitivity parameter S in the dye vat for each step. ij ; The slide movement time calculation unit is responsible for calculating the specific time required for the slide rack to be lifted, placed, and moved to each dyeing tank during the dyeing process; The batch scheduling optimization algorithm unit dynamically adjusts based on the newly added batch information at the input end, uses the shortest path algorithm to calculate the optimal movement path and time arrangement of each batch of slides in the staining process, considers the sensitivity constraints of the staining steps, and realizes efficient scheduling of multiple batches of slides at the same time; Real-time scheduling and adjustment feedback loop, automatically recalculating and adjusting the XYZ axis motion instructions of the structural arm according to the real-time situation of the newly added batches in the dyeing process, so as to make full use of the dye tank resources and time gaps to ensure continuous and efficient dyeing operations; Sensitivity priority scheduling module, according to the sensitivity parameter S of the dyeing step ij , automatically adjust the execution order and time allocation of each step in the staining process to ensure strict time control of highly sensitive steps; Dynamic resource allocation module, which is used to monitor the usage status and idle time of the dye vats in the dyeing module, automatically matching the slides to be stained to the most appropriate dye vats and time windows to maximize system utilization; Among them, the real-time scheduling adjustment feedback loop integrates a machine learning algorithm to continuously optimize the scheduling strategy by continuously learning data from the dyeing process.
8. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to run the computer program to execute the dyeing and extraction scheduling optimization method according to any one of claims 1 to 6.
9. A readable storage medium, It is characterized in that A computer program is stored in the readable storage medium, and the computer program includes a program code for controlling a process to execute a process, and the process includes the dyeing and extraction scheduling optimization method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Dyeing scheduling system and scheduling method based on multi-task dyeing procedure
CN108345498A
Efficiency optimization algorithm for automatic staining of urine cells
CN111180058A
Automated batch stainer for immunohistochemistry
US20170328821A1
Method and system for determining motion path of mechanical arm
US20200101608A1
