Full-automatic immunohistochemical staining machine control method and device based on multi-probe cooperative control
By adopting a hierarchical priority scheduling strategy and grouping requests for the same type of cleaning fluid, the problem of uneven cleaning fluid supply in traditional dyeing machines is solved, the probe waiting time is shortened, the overall efficiency is improved, and the dyeing quality is ensured.
Patent Information
- Application Number
- CN202510476088.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-04-16
AI Technical Summary
The traditional multi-probe collaborative fully automatic immunohistochemistry staining machine's cleaning fluid supply system suffers from imbalanced and inefficient cleaning fluid supply when faced with complex and dynamic staining requirements, resulting in long probe waiting times, affecting staining effects and detection efficiency.
A hierarchical priority scheduling strategy is adopted. By real-time monitoring of the cleaning fluid requests and waiting time of the probes, combined with the probe importance priority and cleaning fluid type, requests for the same type of cleaning fluid are processed in groups, reducing the frequent switching of cleaning fluid pipelines and pumping systems, and optimizing the cleaning fluid supply process.
It effectively reduces probe waiting time, improves cleaning solution supply efficiency, enhances the overall working efficiency of the multi-probe fully automatic immunohistochemistry staining machine, and ensures staining quality.
Smart Images

Figure CN120405107B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of medical devices, and particularly relates to a control method and device of a full-automatic immunohistochemical staining machine based on multi-probe collaborative control. BACKGROUND
[0002] In the field of high-throughput pathological sample detection, multi-probe collaborative full-automatic immunohistochemical staining machines have become key equipment for improving detection efficiency. Such staining machines are usually equipped with multiple independently controllable probes, thereby realizing parallel processing of tissue samples and greatly improving the speed of sample processing. In the immunohistochemical staining process, a cleaning liquid supply system is an indispensable important component, which mainly provides cleaning liquid necessary in the staining process for each probe, so as to ensure the quality of staining and effectively remove residual reagents.
[0003] However, in actual application, the sample detection needs faced by pathological laboratories are increasingly complex. The types and pathological characteristics of different tissue samples are often quite different, and even the same type of tissue sample may need to use different immunohistochemical staining programs due to individual differences. Moreover, clinical diagnosis shows a diversified development trend for staining results, for example, for different disease diagnosis purposes, the staining intensity, staining time and other parameters may need to be adjusted accordingly. Many factors together make each probe show significant differences and dynamics in cleaning liquid demand.
[0004] At present, the cleaning liquid supply system of the traditional immunohistochemical staining machine is usually relatively simple in control strategy. One common strategy is "first-come-first-served", that is, the cleaning liquid is supplied according to the order of the probe requesting the cleaning liquid. Another strategy is to set a fixed cleaning liquid quota for each probe, and the amount of cleaning liquid that each probe can use is determined in advance before the staining program starts. However, when facing the diversity and dynamic changes of the staining program, these traditional control strategies expose their inherent limitations.
[0005] Using the "first-come-first-served" strategy can easily lead to high-priority or time-sensitive probes to be affected by the final staining effect due to too long waiting time. For example, when multiple probes simultaneously issue cleaning liquid requests, if the request of a high-priority probe is later than that of a low-priority probe, the high-priority probe may need to wait for a relatively long time to obtain the cleaning liquid, which is unacceptable in the application scenario of high-throughput detection.
[0006] While the fixed quota allocation strategy can avoid the waiting problem in the first-come-first-served strategy to some extent, it cannot flexibly adapt to the changes in the dyeing process. If the pre-set quota is not enough to meet the actual needs of the probe, the probe will not be able to complete the cleaning step smoothly, thereby causing the dyeing to fail. On the contrary, if the pre-set quota is too much, it will inevitably cause waste of cleaning fluid. More importantly, the fixed quota strategy cannot effectively cope with sudden changes in cleaning fluid demand during the dyeing process, for example, when a probe needs additional cleaning due to the particularity of the sample, the fixed quota will be difficult to meet this temporary increase in demand.
[0007] In the case of multiple probes working in coordination in the dyeing machine, the disadvantages of the above-mentioned traditional control strategy will be more prominent. Since the dyeing programs of each probe are not completely synchronized, their cleaning fluid demand shows dynamic changes and imbalance in time and quantity. If the cleaning fluid supply system still uses a relatively simple control strategy, it will easily cause a bottleneck effect in cleaning fluid supply, which is specifically manifested in that part of the probes cannot obtain timely supply when they need cleaning fluid, while another part of the probes may have idle and waste of cleaning fluid resources at some time. This imbalance and inefficiency of cleaning fluid supply will eventually seriously restrict the overall working efficiency of the multi-probe coordinated dyeing machine, significantly prolong the sample detection cycle, and cannot fully exert the inherent advantages of multi-probe parallel processing, which is contrary to the urgent needs of high-throughput pathological sample detection.
[0008] Therefore, in order to better meet the dual needs of efficiency and quality for high-throughput pathological sample detection, it is urgent to design an intelligent cleaning fluid supply control method that can effectively adapt to the diversity and dynamic changes of the dyeing process for the multi-probe coordinated full-automatic immunohistochemical dyeing machine, so as to effectively overcome the limitations of the traditional control strategy and significantly improve the working efficiency of the full-automatic immunohistochemical dyeing machine.
[0009] In view of the above problems in the prior art, the prior art needs to be improved. SUMMARY
[0010] In view of the above problems in the prior art, the prior art needs to be improved.
[0011] In a first aspect, a full-automatic immunohistochemical dyeing machine control method based on multi-probe coordinated control is provided, which comprises the following steps:
[0012] S1: obtaining cleaning fluid requests of each probe and current waiting time after each probe sends the cleaning fluid request, the cleaning fluid request at least including probe identification and cleaning fluid type;
[0013] S2: acquiring a pre-set probe importance priority according to the probe identifier, and determining a first priority queue of cleaning liquid requests of each probe according to the probe importance priority and the current waiting time;
[0014] S3: when the current waiting time of each probe does not exceed a preset waiting time, sequentially satisfying the cleaning liquid requests of each probe according to the first priority queue;
[0015] S4: when the current waiting time of at least one probe exceeds a preset waiting time, grouping the probes according to the cleaning liquid type requested by each probe, ensuring that the cleaning liquid type requested by each probe in the same group is the same, determining a second priority queue of each group of probes, and sequentially performing collaborative cleaning on the samples processed by each group of probes according to the second priority queue.
[0016] The control method for a full-automatic immunohistochemical staining machine based on multi-probe collaborative control provided in the present application aims to solve the problem of excessive probe waiting time caused by unreasonable cleaning liquid request scheduling in a multi-probe full-automatic immunohistochemical staining machine. The method optimizes the cleaning liquid supply process through a hierarchical priority scheduling strategy. First, the system monitors and collects cleaning liquid request information of each probe in real time, including probe identifier, required cleaning liquid type, and requested waiting time, to ensure that the system masters the cleaning demand and urgency of each probe. Then, based on the probe identifier, a pre-set importance priority is acquired, and this priority is combined with the current waiting time to calculate a first priority queue of cleaning liquid requests of each probe. When the waiting time of all probes is within an acceptable range, the system sequentially satisfies the cleaning liquid requests of each probe according to the first priority queue. In this case, the system prioritizes priority and takes into account waiting time to ensure that important probes are given priority in obtaining cleaning liquid. When it is detected that the waiting time of a probe exceeds a preset threshold, the system will start an emergency scheduling mechanism. At this time, instead of simply relying on the first priority queue, the system groups the probes according to the cleaning liquid type to ensure that probes in the same group request the same type of cleaning liquid. Then, the system determines a second priority queue of each group of probes and performs collaborative cleaning on the samples processed by each group of probes according to this queue. The advantage of this grouping strategy is that when an emergency occurs, by concentrating on processing the same type of cleaning liquid request, the number of times of frequently switching cleaning liquid pipelines and pumping systems can be reduced, thereby improving the cleaning liquid supply efficiency, shortening the overall waiting time, and effectively improving the cleaning efficiency. Therefore, the present application has the beneficial effect of effectively reducing probe waiting time while ensuring staining quality, thereby improving the overall working efficiency of the multi-probe full-automatic immunohistochemical staining machine.
[0017] Further, step S2 comprises:
[0018] S21: obtaining the sample type and staining procedure of the sample currently processed by the probe according to the probe identifier, querying the probe importance priority mapping table according to the sample type and staining procedure, and obtaining the importance priority of each probe;
[0019] S22: Calculating the priority improvement of the probe according to the current waiting time;
[0020] S23: Calculate the dynamic priority of each probe according to the importance priority and the priority improvement range, and arrange the dynamic priorities in descending order to obtain a first priority queue.
[0021] The present application provides a method for controlling a fully automatic immunohistochemical staining machine based on collaborative control of multiple probes. On the basis of the determined importance priority, the current waiting time of the probe is further considered. Even if the probe has a lower importance priority, if the waiting time for its cleaning solution request is too long, its priority should be appropriately increased to avoid the probe waiting for a long time and affecting the staining process. This solution achieves quantitative consideration of waiting time by calculating the increase in the priority of the probe, providing a basis for subsequent dynamic priority calculations.
[0022] Furthermore, step S21 includes:
[0023] S211: constructing a coding table for combinations of the sample type and the staining procedure, assigning a unique code to each combination of the sample type and the staining procedure, and adding the code to a probe importance priority mapping table;
[0024] S212: Obtaining the sample type and staining procedure of the sample currently processed by the probe according to the probe identifier, and querying the sample type and staining procedure combination code table to obtain a corresponding combination code;
[0025] S213: Query the probe importance priority mapping table according to the combined code to obtain the importance priority of each probe.
[0026] This application provides a control method for a fully automated immunohistochemistry stainer based on multi-probe collaborative control. By establishing a combination coding table and a priority mapping table, this method provides a structured approach for determining probe importance priorities based on sample type and staining procedure. This method makes the acquisition of importance priorities more specific, efficient, and accurate.
[0027] Furthermore, step S22 includes:
[0028] S221: Obtaining, according to the probe identifier, an average time for performing a cleaning operation on the corresponding probe in history;
[0029] S222: when the average time is less than or equal to the preset cleaning time, maintaining the importance priority of the probe;
[0030] S223: when the average time is greater than the preset cleaning time, obtaining a cleaning efficiency according to the preset cleaning time, multiplying the current waiting time by the cleaning efficiency to obtain a priority improvement range of the probe.
[0031] The application provides a full-automatic immunohistochemical staining machine control method based on multi-probe collaborative control. The method not only considers the current waiting time, but also combines the historical waiting performance of the probe and the cleaning efficiency of the probe, can more accurately reflect the emergency degree and importance of the cleaning liquid request of the probe, and thus more effectively optimizes the supply order of the cleaning liquid, reduces the waiting time of the probe, and improves the overall working efficiency of the multi-probe collaborative staining machine.
[0032] Further, step S4 comprises:
[0033] S41: when the current waiting time of each probe exceeds the preset waiting time, the probes are grouped according to the cleaning liquid type requested by each probe, so that the cleaning liquid type requested by each group of probes is the same, and the comprehensive priority score of each group of probes is calculated;
[0034] S42: the comprehensive priority score is sorted in descending order to obtain the second priority queue;
[0035] S43: according to the second priority queue, the samples processed by each group of probes are processed in turn.
[0036] Further, step S41 comprises:
[0037] S411: the number of probes in each group is obtained, and the dynamic priority of the probes in each group is determined according to the first priority queue;
[0038] S412: the linear weight distribution method is used to distribute the dynamic priority of each probe, and the distributed weight is normalized to obtain the normalized dynamic weight after processing, and the dynamic weight is located in the interval [0, 1];
[0039] S43: according to the number of probes, the dynamic priority of each probe and the dynamic weight corresponding to each probe, the comprehensive priority score of each group of probes is calculated.
[0040] Further, the cleaning liquid request further comprises the cleaning liquid demand concentration of each probe, and step S43 comprises:
[0041] S431: Calculating the target concentration of the cleaning solution required for each group based on the required concentration of the cleaning solution for each probe in each group;
[0042] S432: Based on the target concentration of the cleaning solution, the samples processed by each group of probes are queued according to the second priority and collaboratively cleaned in sequence.
[0043] Furthermore, step S341 includes:
[0044] S4311: Obtaining the sample type of the sample currently processed by each probe in each group, and determining the allowable range of the required concentration of the probe cleaning solution according to the sample type;
[0045] S4312: Calculate the average required concentration of the cleaning solution of each probe in each group. If the average required concentration is within the allowable range of the required concentration of the probe cleaning solution, use the average required concentration as the target concentration of the cleaning solution.
[0046] Furthermore, in step S4312, after calculating the average required concentration of the cleaning solution of each probe in each group, the method further includes:
[0047] S4314: If the average concentration requirement is not within the allowable range of the probe cleaning solution concentration requirement, further grouping the probes in the group so that the average concentration requirement of each group of probes after further grouping is within the allowable range of the probe cleaning solution concentration requirement;
[0048] S4315: Obtain the third priority queue of each group of probes after further grouping, so that the samples processed by each group of probes can be collaboratively cleaned in turn according to the third priority queue, and the average concentration requirement of each group of probes after further grouping is used as the target concentration of the cleaning liquid.
[0049] In a second aspect, a fully automatic immunohistochemical staining machine control device based on multi-probe coordinated control is applied in the steps of any of the above methods, characterized in that the device includes:
[0050] Acquisition module: Acquisition of a cleaning liquid request from each probe and a current waiting time after each probe issues the cleaning liquid request, wherein the cleaning liquid request at least includes a probe identifier and a cleaning liquid type;
[0051] Priority determination module: obtains a pre-set probe importance priority according to the probe identifier, and determines a first priority queue of cleaning liquid requests of each probe according to the probe importance priority and the current waiting time;
[0052] The first control module: when the current waiting time of each probe does not exceed the preset waiting time, the cleaning liquid request of each probe is sequentially satisfied according to the first priority queue;
[0053] The second control module: when the current waiting time of each probe exceeds the preset waiting time, the probes are grouped according to the type of cleaning liquid requested by each probe, so that the type of cleaning liquid requested by each group of probes is the same, and a second priority queue of each group of probes is determined, and the samples processed by each group of probes are sequentially cleaned in cooperation according to the second priority queue.
[0054] Beneficial effects: the control method and device of the full-automatic immunohistochemical staining machine based on multi-probe cooperative control can optimize the supply process of cleaning liquid through hierarchical priority scheduling strategy. First, the system monitors and collects the cleaning liquid request information of each probe in real time, including probe identification, required cleaning liquid type and requested waiting time, to ensure that the system masters the cleaning demand and emergency degree of each probe. Then, based on the probe identification, the pre-set importance priority is obtained, and the priority is combined with the current waiting time to calculate the first priority queue of the cleaning liquid request of each probe. When the waiting time of all probes is within the acceptable range, the system sequentially satisfies the cleaning liquid request of each probe according to the first priority queue. In this case, the system gives priority to the priority and takes into account the waiting time to ensure that important probes can obtain cleaning liquid first. When it is detected that the waiting time of a probe exceeds the preset threshold, the system will start the emergency scheduling mechanism. At this time, the system no longer simply depends on the first priority queue, but groups the probes according to the type of cleaning liquid to ensure that the probes in the same group request the same type of cleaning liquid. Then, the system determines the second priority queue of each group of probes, and cleans the samples processed by each group of probes in cooperation according to the queue. The advantage of this grouping strategy is that when an emergency occurs, by concentrating the processing of the same type of cleaning liquid request, the number of times of frequently switching the cleaning liquid pipeline and the pumping system can be reduced, thereby improving the cleaning liquid supply efficiency, shortening the overall waiting time and effectively improving the cleaning efficiency. Therefore, the application has the beneficial effects of effectively reducing the probe waiting time and improving the overall working efficiency of the multi-probe full-automatic immunohistochemical staining machine while ensuring the staining quality. BRIEF DESCRIPTION OF DRAWINGS
[0055] Figure 1 The flowchart of the control method of the full-automatic immunohistochemical staining machine based on multi-probe cooperative control proposed in the application.
[0056] Figure 2 The structure diagram of the control device of the full-automatic immunohistochemical staining machine based on multi-probe cooperative control proposed in the application.
[0057] Figure 3A simple structure diagram of the full-automatic immunohistochemical staining machine proposed in the application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the application will be apparently and completely described below with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. The components of the embodiments of the application described and indicated in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the application provided in the drawings is not intended to limit the scope of the claimed application, but only represents selected embodiments of the application. Based on the embodiments of the application, all other embodiments obtained by those skilled in the art without creative work belong to the scope of protection of the application.
[0059] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. Meanwhile, in the description of the application, the terms "first", "second", and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0060] Please refer to Figure 1 , in a first aspect, a control method of a full-automatic immunohistochemical staining machine based on multi-probe cooperative control, the method comprising the steps of:
[0061] S1: obtaining the cleaning liquid request of each probe, and the current waiting time after each probe sends the cleaning liquid request, the cleaning liquid request at least containing the probe identifier and the cleaning liquid type;
[0062] S2: obtaining the probe importance priority set in advance according to the probe identifier, and determining the first priority queue of the cleaning liquid request of each probe according to the probe importance priority and the current waiting time;
[0063] S3: when the current waiting time of each probe does not exceed the preset waiting time, then the cleaning liquid request of each probe is satisfied in turn according to the first priority queue;
[0064] S4: when there is a probe whose current waiting time exceeds the preset waiting time among the probes, then the probes are grouped according to the cleaning liquid type requested by each probe, so that the cleaning liquid type requested by each group of probes is the same, and the second priority queue of each group of probes is determined, and the samples processed by each group of probes are cooperatively cleaned in turn according to the second priority queue.
[0065] Wherein, please refer to Figure 3The full-automatic immunohistochemical staining machine at least includes a central control system (referred to as system) for scheduling the cooperative work of multiple probes, a cleaning liquid supply system provided with different types of cleaning liquids (such as PBS, distilled water and other cleaning liquids), the cleaning liquid supply system realizes the supply of different cleaning liquids through a switching gate valve and a pump system, a probe system connected with the cleaning liquid supply system for releasing the cleaning liquid into the sample being processed. The probe system includes multiple probes (P1, P2, P3, P4, P5), each probe independently cleans the sample being processed, the sample is placed in a sample slide area, and the cleaning liquid supply system is connected with the probe system through a distributor for distributing the cleaning liquid to each probe.
[0066] In step S1, the cleaning liquid request is collected by the central control system in real time, the probe identifier is used to distinguish different probes, the cleaning liquid type indicates the type of cleaning liquid required by the probe, and the current waiting time is calculated by the internal clock of the central control system.
[0067] In step S2, the probe importance priority can be pre-stored in a database or a configuration file, and the first priority queue can be determined by using a weighting algorithm, for example, the weight of the importance priority is higher than the weight of the current waiting time.
[0068] In step S3, the preset waiting time is a configurable parameter, for example, set to 5 seconds, when the waiting time of all probes is less than 5 seconds, the system processes the cleaning liquid request according to the first priority queue order.
[0069] In step S4, the probe grouping can be realized by using a hash algorithm or a lookup table, and the second priority queue can be determined by considering the number of probes in the group, the average priority of the probes in the group and other factors. The cooperative cleaning refers to that the probes in the same group can share the same cleaning liquid supply pipeline, and the sample is cleaned at the same time, so as to reduce the number of pipeline switching and save cleaning time, and improve the efficiency.
[0070] Specifically, the technical scheme aims to solve the technical problem that the unreasonable cleaning liquid request scheduling in the multi-probe full-automatic immunohistochemical staining machine leads to too long probe waiting time. In the operation process of the multi-probe immunohistochemical staining machine, the central control system first continuously listens to the cleaning liquid request from each probe in step S1. The request information of each probe is recorded, and the information content includes the unique identifier of the probe sending the cleaning liquid request, the type of the requested cleaning liquid, and the time point at which the cleaning liquid request is raised. The system calculates the current waiting time of each cleaning liquid request by recording the time point and the current time.
[0071] Subsequently, the central control system retrieves the pre-set probe importance priority according to the probe identifier in step S2. The importance priority can be determined based on sample type, staining procedure, and other factors. The central control system combines the probe importance priority and the current waiting time, and uses the pre-set priority calculation rule to generate a first priority queue of probe cleaning fluid requests. The first priority queue is the preliminary order of cleaning fluid distribution, and the cleaning fluid requests with higher priority are placed in the front of the queue.
[0072] In step S3, the central control system checks the current waiting time of all probes that have sent cleaning fluid requests. If all waiting times are below the pre-set waiting time threshold, it indicates that the current cleaning fluid supply pressure is not high, and the system has sufficient time to process the requests in an orderly manner. At this time, the system follows the first priority queue determined in step S2 to sequentially satisfy the cleaning fluid requests of the probes in the queue.
[0073] However, when step S4 detects that the waiting time of at least one probe exceeds the pre-set waiting time, the system determines that there may be a bottleneck in the cleaning fluid supply or the urgency of some requests has increased. In order to avoid long waiting time affecting the staining quality, the system starts an emergency scheduling strategy. The system first groups the probes that have sent overtime waiting requests according to the type of cleaning fluid requested, ensuring that probes in the same group need the same type of cleaning fluid. Then, the system determines a second priority queue among the groups. The determination of the second priority queue can take into account factors such as the urgency of each group and the number of probes in the group. After determining the second priority queue, the system performs collaborative cleaning according to the queue, one group at a time. Collaborative cleaning means that probes in the same group can be cleaned at the same time as much as possible, thereby reducing the frequent switching of cleaning fluid pipelines and pumping systems, improving the efficiency of cleaning fluid supply, and prioritizing the cleaning needs of probes with long waiting time.
[0074] Further, step S2 includes:
[0075] S21: Obtain the sample type and staining procedure of the current sample being processed by the probe according to the probe identifier, and query the probe importance priority mapping table according to the sample type and staining procedure to obtain the importance priority of each probe;
[0076] S22: Calculate the priority promotion amplitude of the probe according to the current waiting time;
[0077] S23: Calculate the dynamic priority of each probe according to the importance priority and the priority promotion amplitude, and arrange the dynamic priority in descending order to obtain the first priority queue.
[0078] In step S21, a probe importance priority mapping table is pre-established to store the mapping relationship between sample types, staining procedures and probe importance priorities. Specifically, the mapping table can be implemented by using a database table, a hash table or an array.
[0079] The sample types can include, but are not limited to, tumor tissue, inflammatory tissue, normal tissue, etc., and the staining procedures can include, but are not limited to, hematoxylin-eosin staining, IHC staining, special staining, etc. Each combination of sample type and staining procedure is assigned a unique importance priority, which can be represented by a numerical value or a level. The larger the numerical value or the higher the level, the higher the importance of the probe.
[0080] In step S22, the priority elevation amplitude can be calculated according to the current waiting time by using a linear function, an exponential function or a piecewise function. For example, a baseline waiting time (i.e., a preset waiting time) can be set. When the current waiting time of the probe exceeds the preset waiting time, the priority elevation amplitude is calculated. The longer the waiting time, the greater the priority elevation amplitude. As a preferred embodiment, the priority elevation amplitude can be directly proportional to the current waiting time.
[0081] In step S23, the dynamic priority can be calculated by weighted summation of the importance priority and the priority elevation amplitude, or by multiplication of the two, or by other nonlinear combination methods. In the weighted summation method, the weights of the importance priority and the priority elevation amplitude can be pre-set, and the weight size can be adjusted according to the actual application scenario. After the dynamic priority is calculated, a sorting algorithm such as quicksort, mergesort or heapsort is used to sort the dynamic priorities in descending order to generate a first priority queue. The first priority queue is an ordered list of probe identifiers, in which the probe identifiers are arranged in descending order of dynamic priority.
[0082] Further, step S21 includes:
[0083] S211: Construct a sample type and staining procedure combination coding table, assign a unique code to each combination of sample type and staining procedure, and add the code to the probe importance priority mapping table;
[0084] S212: According to the probe identifier, obtain the sample type and staining procedure of the sample currently processed by the probe, and query the sample type and staining procedure combination coding table to obtain the corresponding combination code;
[0085] S213: Query the probe importance priority mapping table according to the combination code to obtain the importance priority of each probe.
[0086] In step S211, a sample type and staining procedure combination coding table is constructed, in which a unique code is assigned to each unique sample type and staining procedure combination. The codes are then integrated into the probe importance priority mapping table. As a possible implementation, the coding table can be designed as a database or hash table structure, in which the combination of sample type and staining procedure constitutes the index, and the corresponding unique code is stored as the value.
[0087] In step S212, the sample type and staining procedure currently processed by the probe are obtained according to the probe identifier. The sample type can include but is not limited to tumor tissue, inflammatory tissue or normal tissue, and the staining procedure refers to a specific staining scheme applied to the sample, such as hematoxylin-eosin staining, immunohistochemical staining, etc. The information of sample type and staining procedure can be extracted from the task management module of the staining machine control system.
[0088] Subsequently, the combination code matching the current sample type and staining procedure is determined by searching the combination coding table established in step S211. In step S213, the obtained combination code is used as an index to perform a query operation in the probe importance priority mapping table, and the probe importance priority associated with the combination code is obtained. The probe importance priority mapping table is pre-set, which defines the correspondence between different combination codes and probe importance levels. The importance priority can be quantified as a numerical value or a level, and the higher the numerical value or the higher the level, the higher the importance of the probe.
[0089] Further, step S22 includes:
[0090] S221: According to the probe identifier, the average time of the corresponding probe for historical cleaning operation is obtained;
[0091] S222: When comparing the average time with the preset cleaning time, if the average time is less than or equal to the preset cleaning time, the importance priority of the probe is maintained;
[0092] S223: When the average time is greater than the preset cleaning time, the cleaning efficiency is obtained according to the preset cleaning time, the current waiting time is multiplied by the cleaning efficiency, and the priority of the probe is obtained.
[0093] Specifically, during the operation of the multi-probe collaborative full-automatic immunohistochemical staining machine, the needle tube of the probe is prone to blockage after long-term use, so that it takes longer time for the cleaning liquid to pass through the probe. Therefore, in order to solve this problem, the application proposes a solution, which combines historical cleaning records to improve the priority of the probe that takes longer time for cleaning, so as to improve the cleaning efficiency.
[0094] In step S221, the average cleaning time is obtained by tracking the time from the execution of the cleaning operation to the completion of the cleaning operation, reflecting the time of the probe past cleaning. The cleaning efficiency is obtained by the formula: cleaning efficiency = 1 / preset cleaning time, wherein the preset cleaning time is set by the technician according to the maximum time allowed for the sample to wait for cleaning, which can be set to a time slightly smaller than the maximum time allowed for the sample to wait for cleaning, thereby reserving waiting time for the sample to be cleaned in the dyeing machine, avoiding too long actual waiting time, which exceeds the maximum time allowed for the sample to wait for cleaning, resulting in dyeing failure.
[0095] In steps S222 to S223, if the average time is less than or equal to the preset cleaning time, it means that the probe is not blocked, and the priority can remain the original importance priority. If the average time is greater than the preset cleaning time, it means that the probe is probably blocked, and the current waiting time is multiplied by the cleaning efficiency to obtain the priority amplitude that the probe should be promoted. This calculation method is relatively moderate, avoiding excessive promotion of the priority of the probe with short waiting time, and maintaining the balance of priority adjustment.
[0096] Further, step S4 comprises:
[0097] S41: When there is a probe with a current waiting time exceeding a preset waiting time among the probes, the probes are grouped according to the cleaning liquid type requested by each probe, so that the cleaning liquid type requested by each group of probes is the same, and the comprehensive priority score of each group of probes is calculated;
[0098] S42: The comprehensive priority score is sorted in descending order to obtain a second priority queue;
[0099] S43: According to the second priority queue, the samples processed by each group of probes are sequentially cooperatively cleaned.
[0100] Among them, the calculation of the comprehensive priority score can be realized by considering the number of probes in the group and the dynamic priority of each probe. Specifically, a group of probes with more number of probes, or a group of probes with higher dynamic priority of probes in the group, can be given a higher comprehensive priority score, so as to obtain a more forward cleaning order in the second priority queue.
[0101] The generation of the second priority queue is realized by sorting the comprehensive priority scores of each group of probes, and the sorting result is descending order, which means that the group of probes with higher comprehensive priority score has a more forward position in the queue, and will obtain the opportunity of priority cleaning. According to the second priority queue, the samples processed by each group of probes are sequentially cooperatively cleaned, which ensures that the cleaning liquid supply system can meet the cleaning liquid demand of the group of probes with higher comprehensive priority score.
[0102] Further, step S41 comprises:
[0103] S411: Obtain the number of probes in each group, and determine the dynamic priority of the probes in each group according to the first priority queue;
[0104] S412: Perform weight distribution on the dynamic priority of each probe by using a linear weight distribution method, normalize the distributed weight, and obtain the normalized processed dynamic weight, which is located in the interval [0, 1];
[0105] S43: Calculate the comprehensive priority score of each group of probes according to the number of probes, the dynamic priority of each probe, and the dynamic weight corresponding to each probe.
[0106] Specifically, the comprehensive priority score can be calculated by using a weighted average method, and the calculation formula is:
[0107] wherein, n i represents the number of the i-th group of probes, P 动态,j represents the dynamic priority of the j-th probe, W j represents the weight of the j-th probe in the first priority list, and S i is the comprehensive priority score.
[0108] wherein, the formula for performing weight distribution on the dynamic priority of each probe by using a linear weight distribution method is: W j = n i -j+1, wherein j is the position of the probe in the first priority list.
[0109] Further, the cleaning liquid request further includes the cleaning liquid demand concentration of each probe, and step S43 includes:
[0110] S431: Calculate the cleaning liquid target concentration required by each group according to the cleaning liquid demand concentration of each probe in each group;
[0111] S432: According to the cleaning liquid target concentration, perform collaborative cleaning on the samples processed by each group of probes in sequence according to the second priority queue.
[0112] Specifically, for the technical solution of collaborative cleaning according to the grouping of cleaning liquid types proposed before, in order to solve the problem of not considering the concentration demand difference of probes in the group, the scheme increases the cleaning liquid demand concentration information in the cleaning liquid request, and in the collaborative cleaning step S43, first performs step S431 to calculate the cleaning liquid target concentration of each group, and then performs step S432 to perform collaborative cleaning according to the target concentration. Through such improvement, the collaborative cleaning process can better adapt to the differentiated demand of different probes for cleaning liquid concentration.
[0113] In step S431, the target concentration of the cleaning solution required by each group can be calculated in multiple ways. As an implementation scheme, the average value of the cleaning solution concentration required by each probe in each group can be calculated, and the average value is taken as the target concentration of the cleaning solution. Further, considering that the importance of different probes may differ, when calculating the average value, weighted average can be performed according to the probe priority, so that the concentration requirement of the probe with high priority occupies a larger proportion in the calculation of the target concentration. In addition, the allowable range of the cleaning solution concentration requirement can also be considered. For example, the concentration allowable range of each type of cleaning solution can be preset, and when calculating the target concentration, it is necessary to ensure that the target concentration is within the allowable range. If the calculated average value exceeds the allowable range, the target concentration can be adjusted to the boundary value closest to the average value and within the allowable range.
[0114] In step S432, the samples processed by each group of probes are sequentially cleaned according to the second priority queue, which means that the cleaning solution supply system provides cleaning solution for each group of probes according to the order of the second priority queue. When providing cleaning solution for a group of probes, the concentration of the supplied cleaning solution is the target concentration of the cleaning solution calculated in step S431. In this way, it can be ensured that not only the type and priority of the cleaning solution are considered, but also the adaptability of the cleaning solution concentration is considered during the collaborative cleaning process.
[0115] Further, step S341 includes:
[0116] S4311: Obtain the sample type of each probe currently processing a sample in each group, and determine the allowable range of the cleaning solution concentration requirement of the probe according to the sample type;
[0117] S4312: Calculate the average value of the concentration requirement of the cleaning solution concentration requirement of each probe in each group, and if the average value of the concentration requirement is within the allowable range of the cleaning solution concentration requirement of the probe, take the average value of the concentration requirement as the target concentration of the cleaning solution.
[0118] In step S4311, the sample type is obtained, for example, the sample type information can be obtained by scanning the barcode on the sample container or manually input by the operator. There is a preset correspondence between the sample type and the allowable range of the cleaning solution concentration requirement, and this correspondence can be stored in the form of a table, a database or a configuration file. The allowable range represents the acceptable fluctuation interval of the cleaning solution concentration for a specific sample type, so as to ensure the staining quality. For example, for A type samples, the allowable range of the cleaning solution concentration requirement is [X1%, Y1%]; for B type samples, the allowable range is [X2%, Y2%].
[0119] In step S4312, the concentration demand average is calculated by an arithmetic average method, i.e., the sum of the cleaning fluid demand concentration values of all the probes in a group divided by the number of probes. Then, the concentration demand average is compared with the allowable range determined in step S4311. The comparison process is to determine whether the concentration demand average is greater than or equal to the lower limit value of the allowable range and less than or equal to the upper limit value of the allowable range. If the concentration demand average meets this condition, it means that the average is suitable as the target concentration of the cleaning fluid.
[0120] Further, in step S4312, after calculating the concentration demand average of the cleaning fluid demand concentration of each probe in each group, the following is further included:
[0121] S4314: If the concentration demand average is not within the allowable range of the cleaning fluid demand concentration of the probes, the probes in the group are further grouped, so that the concentration demand average of each group of probes after further grouping is within the allowable range of the cleaning fluid demand concentration of the probes;
[0122] S4315: Obtain a third priority queue of the probes after further grouping, so that the samples processed by the probes in each group are sequentially cleaned according to the third priority queue, and the concentration demand average of each group of probes after further grouping is used as the target concentration of the cleaning fluid.
[0123] Among them, step S4314 is proposed for the case where the cleaning fluid concentration demand average exceeds the allowable range. Specifically, when the calculated concentration demand average does not meet the allowable range of the cleaning fluid demand concentration of the probes, the system performs further grouping operation. This operation aims to further subdivide the probes in the current group, so that after re-grouping, the concentration demand average of each small group falls within the allowable range of the cleaning fluid demand concentration of all the probes in the group. In this way, it is ensured that the target concentration of the cleaning fluid determined by each group can meet the concentration demand of the probes in the group.
[0124] Step S4315 processes the cleaning process after grouping. After further grouping of the probes, the cleaning order of the new groups needs to be determined. The system obtains a third priority queue of the probes after further grouping, and the subsequent collaborative cleaning will be performed according to this queue to ensure the order of the cleaning process. Each group uses its own concentration demand average as the target concentration of the cleaning fluid, ensuring the matching of the cleaning fluid concentration and the probe demand. By adding the steps of further grouping and the third priority queue, the cleaning fluid supply control method can more finely manage the demand of the probes for the concentration of the cleaning fluid. Even when different probes have different allowable ranges for the concentration of the same type of cleaning fluid, the grouping strategy can be dynamically adjusted to ensure that each probe obtains cleaning fluid with a suitable concentration, thereby improving the reliability of the staining quality. This scheme avoids the staining problems that may be caused by simply using the average concentration, and improves the adaptability and performance of the immunohistochemical staining machine when processing complex samples and multiple staining programs.
[0125] In a specific implementation, the execution priority of the third priority queue is higher than that of the second priority queue, that is, after the group probe in the third priority queue completes the cleaning operation, the probe cleaning task of the next group is assigned.
[0126] Please refer to Figure 2 In a second aspect, a full-automatic immunohistochemical staining machine control device based on multi-probe cooperative control is applied in the steps of any of the above methods, and the device comprises:
[0127] The acquisition module 201 acquires the cleaning liquid requests of the probes and the current waiting times of the probes after the cleaning liquid requests are sent, and the cleaning liquid request at least contains the probe identifier and the cleaning liquid type.
[0128] The priority determination module 202 determines the first priority queue of the cleaning liquid requests of the probes according to the probe importance priority set in advance and the current waiting time.
[0129] The first control module 203 satisfies the cleaning liquid requests of the probes in the first priority queue one by one when the current waiting times of the probes do not exceed the preset waiting time.
[0130] The second control module 204 determines the second priority queue of the probes in each group according to the cleaning liquid types requested by the probes in each group, and cooperatively cleans the samples processed by the probes in each group according to the second priority queue when the current waiting time of at least one of the probes exceeds the preset waiting time.
[0131] The acquisition module 201 can be configured to monitor the signals of the staining machine control system in real time to receive the cleaning liquid requests from the probes. The cleaning liquid request data can contain the unique identifier of the probe, the requested cleaning liquid type, and can also include the timestamp of the request.
[0132] The priority determination module 202 can be implemented as a processor running a priority algorithm. The processor accesses the memory, and the memory stores the probe importance priority mapping table. The priority determination module 202 receives the cleaning liquid request information from the acquisition module, retrieves the probe importance priority, and generates the first priority queue through weighted calculation or other priority sorting algorithms combined with the current waiting time.
[0133] The first control module 203 and the second control module 204 can be realized by a programmable logic controller (PLC) or a single-chip microcomputer. They receive the priority queue information from the priority determination module and control the valves, pumps and other actuators of the cleaning liquid supply system.
[0134] The first control module 203 directly controls the cleaning fluid supply according to the first priority queuing order when the overall system load is not high and the waiting time is short. The second control module 204 activates the grouping and cooperative cleaning strategy when it is detected that the probe waiting time is too long, groups the probes according to the cleaning fluid type, calculates the second priority queue, and then controls the cleaning fluid supply system to clean cooperatively according to the second priority queue. In this way, through the cooperative work of the modules, the cleaning fluid supply control device can realize real-time response, priority sorting and intelligent distribution of cleaning fluid requests.
[0135] Specifically, in the application scenario of high-throughput pathological sample detection, a multi-probe cooperative full-automatic immunohistochemical staining machine is used. Different tissue sample staining procedures differ, resulting in dynamic changes in cleaning fluid demand and resource competition problems. In order to ensure the staining quality of each probe, an intelligent cleaning fluid supply control method is designed. The control method is realized by a control device. The control device first collects cleaning fluid requests from each probe of the staining machine and the waiting time of each request in real time through the acquisition module 201. The cleaning fluid request contains information such as probe identification and required cleaning fluid type. Subsequently, the priority determination module 202 retrieves the pre-set probe importance priority based on the probe identification, and calculates the first priority queue of each request in combination with the current waiting time. In the early stage of system operation or when the load is low, the first control module 203 detects that the waiting time of all probes is within the pre-set range, at which time the control device satisfies the cleaning fluid requests of each probe in turn according to the first priority queue, ensuring cleaning efficiency. When the system load increases or the waiting time of some probes exceeds the pre-set threshold due to special reasons, the second control module 204 is activated. The second control module 204 first groups the probes according to the requested cleaning fluid type to ensure that probes in the same group request the same cleaning fluid for cooperative cleaning. Then, the second control module 204 calculates the second priority queue of each group of probes and controls the cleaning fluid supply system to clean cooperatively according to the queue. Through the cooperative work of the above modules, the control device can dynamically adjust the cleaning fluid supply strategy according to the priority and waiting time of the probes, ensure the timely cleaning of high-priority probes, take into account the overall cleaning efficiency, avoid uneven allocation of cleaning fluid resources or supply bottlenecks, ultimately improve the overall efficiency of multi-probe cooperative staining, and shorten the pathological sample detection cycle.
[0136] In this document, the terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0137] The above merely provides an example of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims
1. A control method for a fully automatic immunohistochemical staining machine based on multi-probe coordinated control, characterized in that: The method comprises the steps of: S1: Obtaining a cleaning liquid request from each probe and a current waiting time after each probe issues the cleaning liquid request, wherein the cleaning liquid request at least includes a probe identifier and a cleaning liquid type; S2: obtaining a preset probe importance priority according to the probe identifier, and determining a first priority queue for cleaning liquid requests of each probe according to the probe importance priority and the current waiting time; Step S2 includes: S21: obtaining the sample type and staining procedure of the sample currently processed by the probe according to the probe identifier, querying the probe importance priority mapping table according to the sample type and staining procedure, and obtaining the importance priority of each probe; S22: Calculating the priority improvement of the probe according to the current waiting time; S23: Calculating the dynamic priority of each probe according to the importance priority and the priority improvement range, and arranging the dynamic priorities in descending order to obtain a first priority queue; S3: When the current waiting time of each probe does not exceed the preset waiting time, the cleaning liquid request of each probe is sequentially satisfied according to the first priority queue; S4: When the current waiting time of each probe exceeds the preset waiting time, the probes are grouped according to the type of cleaning solution requested by each probe, so that each group of probes requests the same type of cleaning solution, and a second priority queue is determined for each group of probes. Samples processed by each group of probes are collaboratively cleaned in sequence according to the second priority queue; Step S4 includes: S41: When the current waiting time of each probe exceeds the preset waiting time, the probes are grouped according to the cleaning liquid type requested by each probe, so that the cleaning liquid type requested by each group of probes is the same, and a comprehensive priority score of each group of probes is calculated; S42: sorting the comprehensive priority scores in descending order to obtain the second priority queue; S43: Queuing according to the second priority, collaboratively cleaning the samples processed by each group of probes in turn.
2. The method for controlling a fully automatic immunohistochemical staining machine based on multi-probe coordinated control according to claim 1, characterized in that: Step S21 includes: S211: constructing a coding table for combinations of the sample type and the staining procedure, assigning a unique code to each combination of the sample type and the staining procedure, and adding the code to a probe importance priority mapping table; S212: Obtaining the sample type and staining procedure of the sample currently processed by the probe according to the probe identifier, and querying the sample type and staining procedure combination code table to obtain a corresponding combination code; S213: Query the probe importance priority mapping table according to the combined code to obtain the importance priority of each probe.
3. The method for controlling a fully automatic immunohistochemical staining machine based on multi-probe coordinated control according to claim 1, characterized in that: Step S22 includes: S221: Obtaining, according to the probe identifier, an average time for performing a cleaning operation on the corresponding probe in history; S222: Compare the average time with a preset cleaning time, and when the average time is less than or equal to the preset cleaning time, maintain the importance priority of the probe; S223: When the average time is greater than the preset cleaning time, a cleaning efficiency is obtained according to the preset cleaning time, and the current waiting time is multiplied by the cleaning efficiency to obtain an improvement in the priority of the probe.
4. The method for controlling a fully automatic immunohistochemical staining machine based on multi-probe coordinated control according to claim 1, characterized in that: Step S41 includes: S411: Obtaining the number of probes in each group, and determining the dynamic priority of the probes in each group according to the first priority queue; S412: using a linear weight distribution method to distribute weights to the dynamic priorities of the respective probes, and normalizing the distributed weights to obtain normalized dynamic weights, wherein the dynamic weights are in the interval [0, 1]. S413: Calculate a comprehensive priority score for each group of probes based on the number of probes, the dynamic priority of each probe, and the dynamic weight corresponding to each probe.
5. The method for controlling a fully automatic immunohistochemical staining machine based on multi-probe coordinated control according to claim 1, characterized in that: The cleaning solution request also includes the required cleaning solution concentration of each probe. Step S43 includes: S431: Calculating the target concentration of the cleaning solution required for each group based on the required concentration of the cleaning solution for each probe in each group; S432: Based on the target concentration of the cleaning solution, the samples processed by each group of probes are queued according to the second priority and collaboratively cleaned in sequence.
6. The method for controlling a fully automatic immunohistochemical staining machine based on multi-probe coordinated control according to claim 5, characterized in that: Step S341 includes: S4311: Obtain the sample type of the sample currently processed by each probe in each group, and determine the allowable range of the required concentration of the probe cleaning solution according to the sample type; S4312: Calculate the average required concentration of the cleaning solution of each probe in each group. If the average required concentration is within the allowable range of the required concentration of the probe cleaning solution, use the average required concentration as the target concentration of the cleaning solution.
7. The method for controlling a fully automatic immunohistochemical staining machine based on multi-probe coordinated control according to claim 6, characterized in that: In step S4312, after calculating the average required concentration of the cleaning solution for each probe in each group, the method further includes: S4314: If the average concentration requirement is not within the allowable range of the probe cleaning solution concentration requirement, further grouping the probes in the group so that the average concentration requirement of each group of probes after further grouping is within the allowable range of the probe cleaning solution concentration requirement; S4315: Obtain the third priority queue of each group of probes after further grouping, so that the samples processed by each group of probes can be collaboratively cleaned in turn according to the third priority queue, and the average concentration requirement of each group of probes after further grouping is used as the target concentration of the cleaning liquid.
8. A fully automatic immunohistochemical staining machine control device based on multi-probe coordinated control, applied in the steps of the method according to any one of claims 1 to 7, characterized in that: The device comprises: Acquisition module: acquires the cleaning liquid request of each probe and the current waiting time after each probe issues the cleaning liquid request, wherein the cleaning liquid request at least includes a probe identifier and a cleaning liquid type; Priority determination module: obtains a pre-set probe importance priority according to the probe identifier, and determines a first priority queue of cleaning liquid requests of each probe according to the probe importance priority and the current waiting time; A first control module: when the current waiting time of each probe does not exceed the preset waiting time, satisfying the cleaning liquid request of each probe in sequence according to the first priority queue; The second control module: when the current waiting time in each probe exceeds the preset waiting time, the probes are grouped according to the type of cleaning fluid requested by each probe, so that the type of cleaning fluid requested by each group of probes is the same, and the second priority queue of each group of probes is determined. According to the second priority queue, the samples processed by each group of probes are collaboratively cleaned in turn.
Citation Information
Patent Citations
Full-automatic immunohistochemical staining machine control method and system and storage medium
CN116465709A
Rapid immunohistochemical dyeing machine
CN118243474A