Sample detection method and device for biological sample library management system

Through the update of the biological sample detection task queue and fine-grained task planning, the problem of low sample detection efficiency in traditional methods is solved, and efficient task scheduling and acquisition of sample detection results are achieved.

CN120260695BActive Publication Date: 2025-08-19FUDAN (SHANGHAI) TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510742676.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-05
Publication Date
2025-08-19
Estimated Expiration
2045-06-05

AI Technical Summary

Technical Problem

The traditional timed task management method fails to effectively consider the processing condition limitations and activity characteristics of biological samples in biological sample detection, resulting in inefficient execution of sample detection tasks and it is difficult to cope with complex task scheduling needs such as task dependence, priority and exception processing.

Method used

By updating the historical biological sample detection task queue, determining the sample storage information and task node sequence, and performing task planning based on this information, generating a planned task node sequence set, and controlling the sample processing equipment to perform detection operations to achieve fine-grained task scheduling and avoid conflicts.

Benefits of technology

It improves the execution efficiency of biological sample detection tasks, ensures that the tasks are successfully executed according to priority and equipment restrictions, and avoids task blockage and sample activity loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120260695B_ABST
    Figure CN120260695B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a sample detection method and apparatus for a biological sample library management system. A specific implementation of the method includes: updating a historical biological sample detection task queue to obtain an updated biological sample detection task queue; determining biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence; establishing a task node sequence corresponding to each biological sample detection task in the biological sample detection task queue to obtain a task node sequence set; performing task planning on each task node in the task node sequence set to generate a planned task node sequence set; and performing sample detection operations on biological samples corresponding to the biological sample detection tasks in the biological sample detection task queue to obtain a sample detection result set. This implementation can improve the execution efficiency of sample detection tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the fields of computer technology and biological sample detection, and more particularly to a sample detection method and apparatus for a biological sample library management system. Background Art

[0002] Scheduling and managing scheduled tasks is a core requirement in many automated systems. For example, in data processing systems, automated production lines, scientific research experiments, and other scenarios, the execution of scheduled tasks directly affects system efficiency and data accuracy.

[0003] Traditional scheduled task management methods usually rely on simple scripts or the scheduled task tools that come with the operating system. When processing tasks corresponding to biological samples, they do not take into account the processing conditions of biological samples (such as the number of devices or the restrictions on the sample detection order) and the activity characteristics of biological samples. It is difficult to cope with complex task scheduling requirements (such as task dependencies, task priorities, task exception handling, etc.), resulting in low execution efficiency of sample detection tasks.

[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art. Summary of the Invention

[0005] The content of this disclosure is used to briefly introduce concepts that will be described in detail in the detailed description section below. The content of this disclosure is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0006] Some embodiments of the present disclosure provide a sample detection method and apparatus for a biological sample library management system to solve the technical problems mentioned in the above background technology section.

[0007] In a first aspect, some embodiments of the present disclosure provide a sample detection method for a biological sample library management system, the method comprising: updating a historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the biological sample detection task corresponds to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task; determining biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence; establishing a task node sequence corresponding to each biological sample detection task in the biological sample detection task queue according to a preset detection step identifier list to obtain a task node sequence set, wherein each task node in each task node sequence represents a task processing step of the corresponding biological sample detection task; performing task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set; and controlling a sample processing device corresponding to each planned task node in the planned task node sequence set to perform a sample detection operation on the biological sample corresponding to the biological sample detection task in the biological sample detection task queue to obtain a sample detection result set.

[0008] In a second aspect, some embodiments of the present disclosure provide a sample detection device for a biological sample library management system, the device comprising: an updating unit, configured to update a historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the above-mentioned biological sample detection task corresponds to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task; a determining unit, configured to determine the biological sample storage information corresponding to each biological sample detection task in the above-mentioned biological sample detection task queue to obtain a biological sample storage information sequence; an establishing unit, configured to establish a biological sample detection task queue according to a preset detection step identifier list. A task node sequence corresponding to each biological sample detection task in the task node sequence is obtained to obtain a task node sequence set, wherein each task node in each task node sequence represents a task processing step of the corresponding biological sample detection task; a task planning unit is configured to perform task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set; and a sample detection unit is configured to control a sample processing device corresponding to each planned task node in the planned task node sequence set to perform a sample detection operation on the biological sample corresponding to the biological sample detection task in the biological sample detection task queue to obtain a sample detection result set.

[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.

[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation of the first aspect is implemented.

[0011] The above-described various embodiments of the present disclosure have the following beneficial effects: Through the sample detection methods for biological sample library management systems according to some embodiments of the present disclosure, the execution efficiency of sample detection tasks can be improved. Specifically, the low execution efficiency of sample detection tasks is caused by the fact that traditional scheduled task management methods generally rely on simple scripts or the scheduled task tools provided by the operating system. When processing tasks corresponding to biological samples, these methods fail to consider the processing conditions of biological samples (such as the number of devices or the sample detection order) and the activity characteristics of biological samples, making it difficult to cope with complex task scheduling requirements (such as task dependencies, task priorities, and task exception handling). This results in low execution efficiency of sample detection tasks. Based on this, the sample detection methods for biological sample library management systems according to some embodiments of the present disclosure first update a historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the biological sample detection tasks correspond to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task. Then, the biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue is determined to obtain a biological sample storage information sequence. Considering the need to address the complexities of scheduling biological sample testing tasks, biological sample storage information is introduced as a basis for task scheduling. Subsequently, based on a preset list of test step identifiers, a task node sequence corresponding to each biological sample testing task in the biological sample testing task queue is established, resulting in a task node sequence set. Each task node in each task node sequence represents a task processing step for the corresponding biological sample testing task. Establishing task nodes allows for fine-grained task partitioning, facilitating the identification of detailed steps within the biological sample testing task. This also allows for matching required testing equipment. Next, based on the biological sample storage information sequence, task planning is performed for each task node in the task node sequence set to generate a planned task node sequence set. Task planning determines the execution order of the task nodes corresponding to each biological sample testing task. Furthermore, because the biological sample testing tasks are pre-divided into task node sequences, the processing constraints and biological sample activity characteristics corresponding to different task nodes can be considered during the task partitioning process. This facilitates detailed and fine-grained planning of the task execution order, thereby meeting task scheduling requirements and avoiding task conflicts. Finally, the sample processing devices corresponding to the respective post-planned task nodes in the post-planned task node sequence set are controlled to perform sample testing operations on the biological samples corresponding to the biological sample testing tasks in the biological sample testing task queue, thereby obtaining a sample testing result set. This can improve the execution efficiency of the sample testing tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0013] Figure 1 is a flow chart of some embodiments of a sample detection method for a biological sample library management system according to the present disclosure;

[0014] Figure 2 It is a schematic diagram of the task node sequence set after planning;

[0015] Figure 3 is a schematic diagram of a sample detection module of some embodiments of the sample detection method for a biological sample library management system disclosed herein;

[0016] Figure 4 is a schematic structural diagram of some embodiments of a sample detection device for a biological sample library management system according to the present disclosure;

[0017] Figure 5 It is a structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.

[0020] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0024] Figure 1 A process 100 of some embodiments of a sample detection method for a biological sample library management system according to the present disclosure is shown. The sample detection method for a biological sample library management system includes the following steps:

[0025] Step 101 : Update the historical biological sample detection task queue to obtain an updated biological sample detection task queue.

[0026] In some embodiments, the execution entity (e.g., a computing device) of a sample testing method for a biological sample library management system can update a historical biological sample testing task queue to obtain an updated biological sample testing task queue. Each biological sample testing task is associated with a task identifier and a biological sample number. The task identifier uniquely identifies a testing task. Each biological sample testing task can correspond to a biological sample. Different biological sample testing tasks can be performed on the same biological sample, i.e., different sample testing tasks can be performed on the same biological sample.

[0027] It should be noted that the computing device described above can be either hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules, for example, to provide distributed services, or as a single software or software module. No specific limitations are given here.

[0028] In some optional implementations of some embodiments, the execution subject updates the historical biological sample detection task queue to obtain an updated biological sample detection task queue, which may include the following steps:

[0029] The first step is to obtain a biological sample testing instruction initiated by a user through an operating terminal. The biological sample testing instruction may include the corresponding biological sample number and task identifier. The biological sample testing instruction can be information issued by the user through an operating terminal (e.g., a personal terminal or an operating terminal of a biological sample library management system) to initiate a task. The biological sample testing instruction may also include a test identifier. Each test identifier can correspond to a test topic.

[0030] As an example, the testing subjects of the biological sample may include, but are not limited to, at least one of the following: routine screening, fibrinolytic system testing, thrombophilia testing, anticoagulant therapy monitoring, coagulation factor testing, etc.

[0031] The second step is to establish a corresponding biological sample detection task according to the biological sample detection instruction, wherein the information in the biological sample detection instruction can be used as a parameter and sent to a preset task establishment function according to a preset parameter position to establish the biological sample detection task.

[0032] As an example, the task creation function may be a create_task function.

[0033] The third step is to add the established biological sample detection task to the historical biological sample detection task queue to obtain an updated biological sample detection task queue. The historical biological sample detection queue can be an empty queue or a queue containing uncompleted tasks.

[0034] Step 102 : Determine the biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence.

[0035] In some embodiments, the execution entity may determine the biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence.

[0036] In some optional implementations of some embodiments, the execution entity determines the biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence, including:

[0037] The first step is to obtain the biological sample storage location, biological sample storage volume, biological sample storage duration, and biological sample activity information corresponding to the biological sample number included in each biological sample testing task from the biological sample database of the biological sample library management system. The biological sample storage location can be the location where the biological sample is stored in the sample library. The biological sample storage volume can be the number of biological samples. For example, the storage volume of a tissue sample can be two, and the storage volume of a blood sample can be 10 ml. The biological sample activity information can include the activity level of the biological sample. Here, the biological sample storage duration can be used to indicate the storage time of the biological sample after it is removed from the inventory.

[0038] In the second step, the biological sample storage location, biological sample storage volume, biological sample storage time and biological sample activity information corresponding to the biological sample number included in each biological sample detection task in the biological sample detection task queue are determined as biological sample storage information to obtain a biological sample storage information sequence.

[0039] Step 103 : According to the preset detection step identifier list, a task node sequence corresponding to each biological sample detection task in the biological sample detection task queue is established to obtain a task node sequence set.

[0040] In some embodiments, the execution entity may establish a task node sequence corresponding to each biological sample detection task in the biological sample detection task queue according to a preset detection step identifier list to obtain a task node sequence set.

[0041] In some optional implementations of some embodiments, the execution entity establishes a task node sequence corresponding to each biological sample testing task in the biological sample testing task queue according to a preset detection step identifier list, and obtains a task node sequence set, including:

[0042] The first step is to split each biological sample detection task in the biological sample detection task queue according to the detection step identification list to obtain a detection subtask sequence set. The detection step identification list may include task execution steps corresponding to each detection topic. Each task execution step corresponds to a detection step identification. Each detection topic corresponds to at least one task execution step, that is, to at least one detection step identification. Thus, the task execution steps corresponding to each biological sample detection task can be obtained from the detection step identification list, and the detection step identification can be determined as a detection subtask to obtain a detection subtask sequence.

[0043] In the second step, based on the above-mentioned biological sample detection task queue, the subtask reversible identifier corresponding to each detection subtask sequence in the above-mentioned detection subtask sequence set is determined to obtain a subtask reversible identifier set. Among them, the subtask reversible identifier is used to characterize the presence of detection subtasks with interchangeable execution orders in each detection subtask under the biological sample detection task. Here, the subtask reversible identifier corresponding to each detection subtask sequence can be obtained from the preset task execution sequence table. The subtask reversible identifier can be an indication that at least two detection subtasks can be executed in accordance with the task sequence or in reverse order by swapping the task sequence. The task execution sequence table may include: a detection subject field, two detection subtask fields, and a subtask reversible identifier field.

[0044] In practice, subtask reversibility can be indicated by a "-" to indicate that tasks between two task nodes should be executed sequentially, and a "+" to indicate that tasks between two task nodes can be executed in reverse order. For example, in microbiological testing, a smear is typically prepared first, then stained to allow for microbial morphology and structure observation under a microscope. However, in some cases, microorganisms may be stained first and then smeared onto a slide. Therefore, the "staining" and "smearing" subtasks can be executed in reverse order. Furthermore, in tests such as sample packaging and nucleic acid extraction, ensuring the continuity of the experimental process is a priority to avoid prolonged exposure of samples that could affect quality, and therefore require sequential execution. Here, the two task nodes can correspond to the same test task or different inspection tasks. For example, when performing protein expression testing (such as Western blot), it is sometimes necessary to first determine the expression or gene sequence information of the target gene through genetic testing (such as RT-PCR or gene sequencing). Gene mutations or abnormal expression levels may affect the protein structure and expression levels, thereby affecting the analysis and interpretation of protein test results.

[0045] The third step is to determine the detection subtask sequence set as a task node sequence set, and add the subtask reversible identifier in the subtask reversible identifier set to the corresponding task node in the task node sequence set. Here, the subtask reversible identifier can be added to the detection step identifier in the detection subtask to obtain a task node.

[0046] Step 104 : performing task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set.

[0047] In some embodiments, the execution entity may perform task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set.

[0048] In some optional implementations of some embodiments, the execution entity performs task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set, which may include the following steps:

[0049] The first step is to use the biological sample storage information sequence to schedule the individual biological sample testing tasks in the biological sample testing task queue to obtain a task scheduling queue. Task scheduling is divided based on the sample activity information in the biological sample storage information. Task scheduling can be performed by the following steps: First, the individual biological sample testing tasks in the biological sample testing task queue can be sorted according to the biological sample activity information included in the biological sample storage information sequence to obtain a task scheduling queue. Here, the biological sample activity values (activity periods) can be sorted from smallest to largest. This allows testing tasks corresponding to biological samples with shorter activity periods to be prioritized for sample testing, thus avoiding a decrease in biological sample activity due to prolonged sorting time.

[0050] In the second step, the task node sequences in the task node sequence set are adjusted according to the task scheduling queue to obtain an adjusted task node sequence set. The task node sequences in the task node sequence set can be sequentially adjusted according to the task scheduling order in the task scheduling queue to obtain the adjusted task node sequence set. Furthermore, if the biological sample testing task involves testing an inactivated sample, the biological sample storage information can be arranged in ascending order of biological sample storage duration. This arrangement prioritizes biological samples with shorter storage durations.

[0051] The third step is to extract node conflict relationships from each adjusted task node in the adjusted task node sequence set to generate a corresponding node conflict relationship table. The node conflict relationship table includes at least one node conflict relationship identifier, each node conflict relationship identifier indicating that there is a task conflict between at least two corresponding adjusted task nodes. Here, adjusted task nodes corresponding to the same features among the adjusted task nodes can be extracted as conflicting nodes. For example, the same features can include the fact that the biological samples corresponding to the two adjusted task nodes are the same, or that the two adjusted task nodes correspond to the same detection device. The conflicting nodes and the keywords corresponding to the corresponding same features (e.g., biological sample conflict or detection device conflict) can be determined as node conflict relationships to obtain a node conflict relationship table.

[0052] The fourth step is to perform secondary task scheduling on each adjusted task node in the adjusted task node sequence set based on the node conflict relationship table and the reversible identifiers of the subtasks corresponding to each adjusted task node in the adjusted task node sequence set to generate a planned task node sequence set. Each planned task node in the planned task node sequence set includes a node task pointer, which is used to represent the execution order of the task. Secondly, the secondary task scheduling can be performed by the following steps:

[0053] First, for two adjusted task nodes with a node conflict relationship, if the keyword corresponding to the conflict relationship is "biological sample conflict," the number of biological samples required for the two adjusted task nodes is determined. If the total number of biological samples required is greater than the biological sample storage capacity, the adjusted task node sequence corresponding to the relatively lower-priority adjusted task node is removed from the adjusted task node sequence set based on the task priority pre-set by the user for each biological sample testing task. A corresponding sample missing prompt message is generated and sent to the aforementioned operation terminal. The biological sample testing task corresponding to the relatively higher-priority adjusted task node continues to be executed. If the keyword corresponding to the conflict relationship is "testing equipment conflict," if the number of testing equipment is insufficient (for example, the number of testing equipment is less than the number of adjusted task nodes requiring the same testing equipment), the adjusted task node sequences corresponding to the two adjusted task nodes are swapped according to the pre-set task priority. This allows the testing equipment to be used preferentially for the task with the relatively higher priority. Alternatively, if the number of testing equipment is sufficient, there is no need to adjust the order of the adjusted task node sequence.

[0054] Then, the order of each adjusted task node sequence can be adjusted according to the reversible identifiers of the subtasks included in the biological sample detection task to obtain a planned task node sequence set. Here, if the two task nodes corresponding to the reversible identifiers of the subtasks are two cross-task nodes, the order of the task node sequences corresponding to the two task nodes can be adjusted according to the task execution order to obtain an adjusted task node sequence set. In this way, the current biological sample detection task that needs to be executed first can be arranged in front according to the reversible identifiers of the subtasks for priority processing.

[0055] As an example, Figure 2The following diagram illustrates a post-planned task node sequence set. For example, the post-planned task node sequence set may include three post-planned task node sequences, corresponding to three biological sample testing tasks. Here, the three post-planned task node sequences in the post-planned task node sequence set correspond to the following three tasks: routine coagulation function screening, thrombophilia-related testing, and antiphospholipid syndrome testing. The post-planned task nodes in the post-planned task node sequence corresponding to routine coagulation function screening are: T004_S01: Sample Pretreatment, T004_S02: Plasma Prothrombin Time (PT), T004_S03: Activated Partial Thromboplastin Time (APTT), T004_S04: Plasma Fibrinogen (FIB) Content, T004_S05: Thrombin Time (TT), and T004_S06: End. The post-planned task node sequence for thrombophilia testing is as follows: T005_S01: Sample pretreatment, T005_S02: Detection of antithrombin III activity in plasma, T005_S03: Determination of plasma protein C content and activity, T005_S04: Detection of plasma protein S content, and T005_S05: End. The post-planned task node sequence for antiphospholipid syndrome testing is as follows: T006_S01: Sample pretreatment, T006_S02: Detection of lupus anticoagulant (LA) in plasma, T006_S03: Determination of abnormal LA levels in the sample, and T006_S04: End. In addition, after planning, there is an equipment conflict among task nodes T004_S01, T005_S01, and T006_S01, that is, they correspond to the detection equipment processing the same sample.

[0056] In practice, considering that multiple tasks involve the same device, if there are too many detection tasks, the waiting time will also be longer, so there will be serious congestion in the tasks of a certain node. In addition, if the biological sample is not convenient for long-term storage during the detection process, the sample needs to be detected quickly, but the activity of the biological sample is reduced due to task blocking. Therefore, considering the processing constraints of the task, tasks can be arranged according to the characteristics of each task (that is, the task detection steps, the biological sample storage information of the biological sample corresponding to the task) to determine the execution order of the tasks. Then, considering that there are task conflicts in the detection process of biological samples, the node conflict relationship can be extracted and used for secondary task arrangement to avoid task jamming. This will improve the execution efficiency of the task.

[0057] Optionally, before controlling the sample processing devices corresponding to the respective post-planned task nodes in the post-planned task node sequence set to perform sample testing operations on the biological samples corresponding to the biological sample testing tasks in the biological sample testing task queue to obtain the sample testing result set, the method further includes:

[0058] The first step is to generate a node pressure value sequence set based on the biological sample storage duration and biological sample activity information corresponding to each post-planning task node in the above-mentioned post-planning task node sequence set. Among them, the corresponding node pressure value can be generated for each post-planning task node corresponding to the detection equipment in the post-planning task node. In this way, the node pressure value can be used to represent the pressure level of a certain detection equipment during the execution of the sample detection task. Secondly, for each post-planning task node corresponding to the detection equipment, the node pressure value can be generated by the following steps:

[0059] .

[0060] in, Indicates the node pressure value. 、 Represents the preset weight coefficients, which sum to 1 and are used to balance the activity risk caused by long waiting time of biological samples during the detection process. Indicates the number of biological samples (copies) corresponding to each planned task node using the same testing equipment. Here, different testing tasks require different numbers of biological samples to be tested simultaneously. 、 Indicates the serial number. Indicates the The biological sample storage duration corresponding to each planned task node. Indicates the The activity level value (activity cycle) of the biological sample corresponding to the planned task node. Indicates the number of planned task nodes corresponding to the same inspection equipment. Indicates the The preset processing time corresponding to each planned task node. This represents the average ratio of storage time to activity cycle for all biological samples, reflecting the overall activity risk of the biological samples. The closer this value is to 1, the closer the sample is to inactivation, and the greater the stress value. Indicates the average processing time of all planned task nodes by the detection device.

[0061] Here, different post-planning task nodes can correspond to different biological samples, that is, different biological samples can be tested and processed using the same testing equipment. The average processing time for each biological sample can be pre-selected based on the performance of the testing equipment and used as the preset processing time.

[0062] In the second step, in response to determining that there is a node pressure value exceeding the preset pressure threshold in the above-mentioned node pressure value sequence set, secondary task planning is performed on each task node sequence in the above-mentioned task node sequence set to generate a target task node sequence set. Among them, the node pressure value exceeding the preset pressure threshold represents a node pressure overload. Thus, information representing task blockage can be sent to the operation terminal. Here, the information representing task blockage can include the identification of the detection device corresponding to the task blockage. In addition, the task node sequence corresponding to the node pressure value exceeding the preset pressure threshold can be added to the task waiting queue, and the remaining node pressure value sequences can be sorted to obtain the target task node sequence set.

[0063] Step 105 : Control the sample processing equipment corresponding to each post-planned task node in the post-planned task node sequence set to perform sample detection operations on the biological samples corresponding to the biological sample detection tasks in the biological sample detection task queue to obtain a sample detection result set.

[0064] In some embodiments, the above-mentioned execution entity can control the sample processing equipment corresponding to each post-planning task node in the above-mentioned post-planning task node sequence set, perform sample detection operations on the biological samples corresponding to the biological sample detection tasks in the above-mentioned biological sample detection task queue, and obtain a sample detection result set.

[0065] In some optional implementations of some embodiments, the execution entity controls the sample processing device corresponding to each post-planned task node in the post-planned task node sequence set to perform a sample testing operation on the biological sample corresponding to the biological sample testing task in the biological sample testing task queue, thereby obtaining a sample testing result set, including:

[0066] For each post-planning task node sequence in the above post-planning task node sequence set, perform the following detection steps:

[0067] The first step is to retrieve a biological sample based on the biological sample number corresponding to the planned task node sequence. This can be accomplished by controlling a robotic arm to retrieve the biological sample with the corresponding biological sample number from the biological sample library and place the biological sample in the corresponding testing device. Alternatively, the biological sample number can be sent to a control terminal to notify a human to manually retrieve the biological sample.

[0068] As an example, for a blood-type biological sample, the corresponding detection device may be: a fully automatic coagulation analyzer.

[0069] In the second step, in response to determining that there is no post-planning task node including a node conflict relationship identifier in the above-mentioned post-planning task node sequence, the corresponding sample processing equipment is controlled according to the task execution order of each post-planning task node in the above-mentioned post-planning task node sequence, and sample detection operations are performed on the above-mentioned biological samples in turn to obtain sample detection results.

[0070] In the 3rd step, in response to determining that there is the planning rear task node that comprises the node conflict relation mark in the above-mentioned planning rear task node sequence, before the execution comprises the task corresponding to the planning rear task node of the node conflict relation mark, carry out task suspension.Wherein, task suspension is used to wait for other tasks corresponding to the node conflict relation mark to be executed preferentially, and after the task is preferentially executed, the identification state of the node conflict relation mark is adjusted.Here, the planning rear task node of each planning rear task node sequence can be synchronous execution under the situation that there is no conflict.When task is executed to the planning rear task node that has the node conflict relation mark, can carry out task suspension, after waiting for other planning rear task nodes of corresponding node conflict relation mark to execute and finish, then continue to perform the task.

[0071] In the fourth step, in response to determining that the identification status of the node conflict relationship identifier has been adjusted, the task corresponding to the post-planned task node including the node conflict relationship identifier is initiated to continue sample testing and obtain a sample test result. Each biological sample testing task may correspond to at least one test step, and therefore each post-planned task node in the corresponding post-planned task node sequence has a test result. Thus, the test results corresponding to each post-planned task node in the post-planned task node sequence can be determined as the sample test result.

[0072] In practice, in order to avoid the situation where multiple tasks involve the same device, if there are too many detection tasks, the waiting time is also long, which causes serious blockage of tasks at a certain node. Therefore, on the basis of task splitting, the node pressure value is generated by the above formula to quantify the pressure situation of the node. In this way, it can be reflected whether the task throughput of the detection equipment can meet the various planned task nodes corresponding to the same detection equipment. Therefore, task blocking can be avoided through secondary task planning. In this way, the execution efficiency of the task is improved. Furthermore, the situation where biological samples suffer serious loss of activity or sample contamination due to long waiting times is avoided.

[0073] Optionally, the sample test result set can be sent to an operation terminal for display and storage. In addition, the inventory of biological samples in the biological sample library can be updated in real time.

[0074] Optional, such as Figure 3 The schematic diagram of the sample detection module 300 of some embodiments of the sample detection method shown is that the sample detection method for the biological sample library management system can also be configured into the following modules: Scheduled task adding module 301: adding cyclic scheduled tasks through the SetIntervalJob method, supporting the setting of the task execution interval. Daily scheduled task adding module 302: adding daily scheduled tasks through the SetDailyJob method, supporting the setting of the specific time for task execution. Delayed task adding module 303: adding delayed tasks through the SetDelayJob method, supporting the setting of the task delay time. Task deletion module 304: deleting the specified scheduled task through the RemoveJob method, returning a success message if the deletion is successful, and an error message if it fails. Task status management module 305: pausing and resuming all scheduled tasks through the PauseAllJobs and ResumeAllJobs methods, supporting task status management.

[0075] In practice, through the above-mentioned embodiments, technical problems such as dynamic scheduling, task dependency, priority management, exception handling and status monitoring in scheduled task scheduling and management have been solved. Traditional scheduled task scheduling methods are usually static, and it is difficult to adjust the task dynamically once it is created. This solution supports dynamic addition, deletion, suspension and resumption of tasks by introducing the Quartz scheduling framework, and can flexibly adjust the task execution plan according to system requirements. There are dependencies between certain tasks. For example, task A must be executed after task B is completed. This solution supports the configuration of dependencies between tasks through the task dependency management module to ensure that tasks are executed in the correct order. In a multi-task concurrent scenario, how to ensure that high-priority tasks can be executed first is a technical difficulty. This solution ensures that high-priority tasks can be executed first through task priority configuration to avoid resource conflicts. And the execution status of tasks can be monitored in real time.

[0076] The above-described various embodiments of the present disclosure have the following beneficial effects: Through the sample detection methods for biological sample library management systems according to some embodiments of the present disclosure, the execution efficiency of sample detection tasks can be improved. Specifically, the low execution efficiency of sample detection tasks is caused by the fact that traditional scheduled task management methods generally rely on simple scripts or the scheduled task tools provided by the operating system. When processing tasks corresponding to biological samples, these methods fail to consider the processing conditions of biological samples (such as the number of devices or the sample detection order) and the activity characteristics of biological samples, making it difficult to cope with complex task scheduling requirements (such as task dependencies, task priorities, and task exception handling). This results in low execution efficiency of sample detection tasks. Based on this, the sample detection methods for biological sample library management systems according to some embodiments of the present disclosure first update a historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the biological sample detection tasks correspond to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task. Then, the biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue is determined to obtain a biological sample storage information sequence. Considering the need to address the complexities of scheduling biological sample testing tasks, biological sample storage information is introduced as a basis for task scheduling. Subsequently, based on a preset list of test step identifiers, a task node sequence corresponding to each biological sample testing task in the biological sample testing task queue is established, resulting in a task node sequence set. Each task node in each task node sequence represents a task processing step for the corresponding biological sample testing task. Establishing task nodes allows for fine-grained task partitioning, facilitating the identification of detailed steps within the biological sample testing task. This also allows for matching required testing equipment. Next, based on the biological sample storage information sequence, task planning is performed for each task node in the task node sequence set to generate a planned task node sequence set. Task planning determines the execution order of the task nodes corresponding to each biological sample testing task. Furthermore, because the biological sample testing tasks are pre-divided into task node sequences, the processing constraints and biological sample activity characteristics corresponding to different task nodes can be considered during the task partitioning process. This facilitates detailed and fine-grained planning of the task execution order, thereby meeting task scheduling requirements and avoiding task conflicts. Finally, the sample processing devices corresponding to the respective post-planned task nodes in the post-planned task node sequence set are controlled to perform sample testing operations on the biological samples corresponding to the biological sample testing tasks in the biological sample testing task queue, thereby obtaining a sample testing result set. This can improve the execution efficiency of the sample testing tasks.

[0077] Further references Figure 4As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a sample detection device for a biological sample library management system. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the sample detection device for a biological sample library management system can be specifically applied to various electronic devices.

[0078] like Figure 4 As shown, some embodiments of the sample detection device 400 for a biological sample library management system include: an updating unit 401, a determining unit 402, an establishing unit 403, a task planning unit 404, and a sample detection unit 405. The updating unit 401 is configured to update the historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the above-mentioned biological sample detection task corresponds to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task; the determining unit 402 is configured to determine the biological sample storage information corresponding to each biological sample detection task in the above-mentioned biological sample detection task queue to obtain a biological sample storage information sequence; the establishing unit 403 is configured to establish a task node sequence corresponding to each biological sample detection task in the above-mentioned biological sample detection task queue according to a preset detection step identifier list. A task node sequence set is obtained, wherein each task node in each task node sequence represents a task processing step of the corresponding biological sample detection task; a task planning unit 404 is configured to perform task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set; a sample detection unit 405 is configured to control a sample processing device corresponding to each planned task node in the planned task node sequence set to perform a sample detection operation on the biological sample corresponding to the biological sample detection task in the biological sample detection task queue to obtain a sample detection result set.

[0079] It is understood that the units described in the sample detection device 400 for the biological sample library management system are similar to those in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the sample detection device 400 for the biological sample library management system and the units included therein, and will not be described in detail here.

[0080] Reference below Figure 5 , which shows a schematic structural diagram of an electronic device (such as a computing device) suitable for implementing some embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure. Figure 5As shown, the computer device includes a processor, a memory and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions, which, when executed, may enable the processor to execute any of the above methods. The processor is used to provide computing and control capabilities to support the operation of the entire computer device. The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium, which, when executed by the processor, may enable the processor to execute any of the above methods. The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present disclosure, and does not constitute a limitation on the computer device to which the solution of the present disclosure is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0081] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0082] In one embodiment, the processor is configured to execute a computer program stored in a memory to implement the following steps: updating a historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the biological sample detection task corresponds to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task; determining biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence; establishing a task node sequence corresponding to each biological sample detection task in the biological sample detection task queue based on a preset detection step identifier list to obtain a task node sequence set, wherein each task node in each task node sequence represents a task processing step of the corresponding biological sample detection task; performing task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set; and controlling a sample processing device corresponding to each planned task node in the planned task node sequence set to perform a sample detection operation on the biological sample corresponding to the biological sample detection task in the biological sample detection task queue to obtain a sample detection result set.

[0083] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the above method of the present disclosure.

[0084] The computer-readable storage medium may be an internal storage unit of the computer device described in the aforementioned embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a flash memory card, etc., provided on the computer device.

[0085] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0086] The above descriptions are merely some preferred embodiments of the present disclosure and illustrate the underlying technical principles. Those skilled in the art should understand that the scope of the invention encompassed by the embodiments of the present disclosure is not limited to technical solutions formed by specific combinations of the aforementioned technical features. It also encompasses other technical solutions formed by any combination of the aforementioned technical features or their equivalents, without departing from the aforementioned inventive concept. For example, a technical solution formed by replacing the aforementioned features with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A sample detection device for a biological sample library management system, comprising: an updating unit configured to update the historical biological sample detection task queue to obtain an updated biological sample detection task queue, wherein the biological sample detection task corresponds to a task identifier and a biological sample number, and the task identifier is used to uniquely identify a detection task; a determining unit configured to determine biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence; An establishing unit is configured to establish a task node sequence corresponding to each biological sample detection task in the biological sample detection task queue according to a preset detection step identifier list, to obtain a task node sequence set, wherein each task node in each task node sequence represents a task processing step of the corresponding biological sample detection task; perform task splitting on each biological sample detection task in the biological sample detection task queue according to the detection step identifier list, to obtain a detection subtask sequence set; determine, according to the biological sample detection task queue, a subtask reversible identifier corresponding to each detection subtask sequence in the detection subtask sequence set, to obtain a subtask reversible identifier set, wherein the subtask reversible identifier is used to represent the existence of detection subtasks with interchangeable execution orders in each detection subtask under the biological sample detection task; determine the detection subtask sequence set as a task node sequence set, and add the subtask reversible identifiers in the subtask reversible identifier set to the corresponding task nodes in the task node sequence set; The task planning unit is configured to perform task planning on each task node in the task node sequence set based on the biological sample storage information sequence to generate a planned task node sequence set, wherein the biological sample storage information sequence is used to perform task scheduling on each biological sample detection task in the biological sample detection task queue to obtain a task scheduling queue, wherein the task scheduling is divided according to the biological sample activity information in the biological sample storage information; according to the task scheduling queue, each task node sequence in the task node sequence set is adjusted to obtain an adjusted task node sequence set; and node conflict relationship extraction is performed on each adjusted task node in the adjusted task node sequence set to generate a corresponding node conflict relationship table, wherein the node conflict relationship table includes at least one node conflict. A conflict relationship identifier is provided, wherein each node conflict relationship identifier represents that there is a task conflict between the corresponding at least two adjusted task nodes; based on the node conflict relationship table and the subtask reversible identifier corresponding to each adjusted task node in the adjusted task node sequence set, secondary task scheduling is performed on each adjusted task node in the adjusted task node sequence set to generate a planned task node sequence set, wherein each planned task node in the planned task node sequence set includes a node task pointer for representing the execution order of the tasks, and a node pressure value sequence set is generated according to the biological sample storage time and biological sample activity information corresponding to each planned task node in the planned task node sequence set, and for each planned task node corresponding to a detection device, a node pressure value is generated by the following formula: , in, represents the node pressure value, 、 Represents the preset weight coefficients, which sum to 1 and are used to balance the activity risk of biological samples caused by waiting too long during the detection process. Indicates the number of biological samples corresponding to each planned task node using the same detection equipment. Different detection tasks require different numbers of biological samples to be tested simultaneously. 、 Indicates the serial number, Indicates the The storage time of biological samples corresponding to each planned task node, Indicates the The activity level value of the biological sample corresponding to the planned task node, Indicates the number of planned task nodes corresponding to the same inspection equipment. Indicates the The preset processing time corresponding to each planned task node, It represents the average value of the ratio of storage time to activity period of all biological samples, reflecting the overall activity risk of biological samples. represents an average processing time of the detection device for all planned task nodes; in response to determining that there is a node pressure value exceeding a preset pressure threshold in the node pressure value sequence set, performing secondary task planning on each task node sequence in the task node sequence set to generate a target task node sequence set, wherein the node pressure value exceeding the preset pressure threshold indicates a node pressure overload; The sample detection unit is configured to control the sample processing equipment corresponding to each post-planned task node in the post-planned task node sequence set, perform sample detection operations on the biological samples corresponding to the biological sample detection tasks in the biological sample detection task queue, and obtain a sample detection result set.

2. The device according to claim 1, characterized in that The updating of the historical biological sample detection task queue to obtain an updated biological sample detection task queue includes: Obtaining a biological sample detection instruction initiated by a user through an operation terminal, wherein the biological sample detection instruction includes a corresponding biological sample number and a task identifier; Establishing a corresponding biological sample detection task according to the biological sample detection instruction; The established biological sample detection task is added to the historical biological sample detection task queue to obtain an updated biological sample detection task queue.

3. The device according to claim 1, characterized in that The determining of the biological sample storage information corresponding to each biological sample detection task in the biological sample detection task queue to obtain a biological sample storage information sequence includes: Obtaining, from a biological sample database of a biological sample library management system, biological sample storage location, biological sample storage volume, biological sample storage time, and biological sample activity information corresponding to the biological sample number included in each biological sample detection task; The biological sample storage location, biological sample storage volume, biological sample storage time, and biological sample activity information corresponding to the biological sample number of each biological sample detection task in the biological sample detection task queue are determined as biological sample storage information to obtain a biological sample storage information sequence.

4. The device according to claim 3, characterized in that The controlling of the sample processing device corresponding to each post-planned task node in the post-planned task node sequence set to perform a sample detection operation on the biological sample corresponding to the biological sample detection task in the biological sample detection task queue to obtain a sample detection result set includes: For each post-planning task node sequence in the post-planning task node sequence set, the following detection steps are performed: Retrieving biological samples according to the biological sample numbers corresponding to the planned task node sequence; In response to determining that no post-planned task node including a node conflict relationship identifier exists in the post-planned task node sequence, controlling corresponding sample processing devices according to a task execution order of each post-planned task node in the post-planned task node sequence to sequentially perform sample testing operations on the biological sample to obtain a sample testing result; In response to determining that a post-planned task node including a node conflict relationship identifier exists in the post-planned task node sequence, pausing the task before executing the task corresponding to the post-planned task node including the node conflict relationship identifier, wherein the task suspension is used to wait for other tasks corresponding to the node conflict relationship identifier to be executed first, and adjusting the identification state of the node conflict relationship identifier after the task is executed first; In response to determining that the identification state of the node conflict relationship identifier has been adjusted, the task corresponding to the planned task node including the node conflict relationship identifier is started for continued sample detection to obtain a sample detection result.

Citation Information

Patent Citations

  • Sample detection scheduling method, sample detection device and storage medium

    CN111929450A

  • Sample detection task execution method and device, computer equipment and storage medium

    CN114636829A

  • Sample state detection method applied to biological sample and computer equipment

    CN119246581A