A laboratory instrument state identification method, electronic equipment and storage medium

By acquiring the reservation time range and multi-source event streams, combined with time slice division and probability calculation models, the status of laboratory instruments can be accurately identified, solving the problem of the disconnect between reservation and actual use in existing technologies, and improving resource utilization and management intelligence.

CN123180675APending Publication Date: 2026-11-27JIHUA LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611694610.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing laboratory management system cannot accurately identify the actual status of laboratory instruments, resulting in a disconnect between reservations and actual use, serious waste of resources, and a lack of in-depth integration and collaborative analysis of multi-source heterogeneous data, making it difficult to meet the requirements of refined scheduling and compliance auditing.

Method used

By acquiring the reservation time range, continuously collecting multi-source event streams, utilizing time slice segmentation and preprocessing techniques, and combining a probabilistic calculation model of feature weights and state constraints, the actual operating status of laboratory instruments can be accurately identified, and reservation management and anomaly linkage can be automatically executed based on the identification results.

Benefits of technology

It enables accurate identification of laboratory instrument status, improves resource utilization and management intelligence, solves the problem of disconnect between reservation and actual use, and provides a data foundation for closed-loop management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180675A_ABST
    Figure CN123180675A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of laboratory equipment, and particularly provides a laboratory instrument state recognition method, an electronic device and a storage medium, which comprises the following steps: acquiring a reservation use time range and target laboratory instruments that need to be used of a laboratory, and then determining an analysis time window according to the reservation use time range; continuously acquiring, for each target laboratory instrument, a plurality of source event streams corresponding to the current target laboratory instrument; dividing the analysis time window into a plurality of time slices, and pre-processing, for each target laboratory instrument, all standard event streams corresponding to the current target laboratory instrument; the preprocessing comprises time alignment and deduplication; for each target laboratory instrument, the actual state of the current target laboratory instrument in each time slice is determined according to all standard events corresponding to the current target laboratory instrument; and the laboratory resource utilization rate and the intelligent management level can be significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of laboratory equipment technology, and more specifically, to a method for identifying the status of laboratory instruments, electronic equipment, and storage medium. Background Technology

[0002] Shared laboratory instruments are typically characterized by high value, high demand, and high barriers to entry. The core objective of their management lies not only in recording reservation information but also in accurately determining whether a reservation truly translates into a valid experiment, and in timely scheduling when instruments are idle, malfunctioning, or being used without authorization. However, existing laboratory management systems still face numerous challenges in practical applications.

[0003] First, there is a serious disconnect between scheduled occupancy and actual usage. Existing platforms often only record the time slots users schedule, but cannot reliably determine whether users arrive on time, whether they actually conduct effective operations, whether they leave early, or whether there are instances of prolonged instrument occupancy without any substantial experimental activity. This management model results in a huge gap between the apparent utilization rate and the actual effective utilization rate of high-value instruments, leading to resource waste.

[0004] Secondly, a single data source is insufficient to support accurate status identification. Relying solely on access control records cannot confirm whether a user has operated a specific instrument; relying solely on host computer login information cannot determine whether a user is present; relying solely on device power consumption data cannot distinguish between subdivided states such as preheating, idling, sample waiting, and effective experiments; and relying solely on video surveillance faces multiple challenges such as obstruction, limited viewing angles, privacy protection, and identity verification. Due to the lack of deep integration and collaborative analysis of multi-source heterogeneous data, existing systems often appear crude and lagging in status judgment, failing to meet the stringent requirements of refined laboratory scheduling and compliance auditing.

[0005] There is currently no effective technical solution to the above problems. Summary of the Invention

[0006] The purpose of this application is to provide a laboratory instrument status identification method, electronic device and storage medium, which can significantly improve the utilization rate of laboratory resources and the level of intelligent management.

[0007] In a first aspect, this application provides a method for identifying the status of laboratory instruments, which includes the following steps: S1. Obtain the laboratory's scheduled usage time range and the target laboratory instruments to be used, and then determine the analysis time window based on the scheduled usage time range; the analysis time window covers the scheduled usage time range. S2. For each target laboratory instrument, continuously acquire the multi-source event stream corresponding to the current target laboratory instrument; the multi-source event stream includes standard event streams collected from different data sources, and each standard event stream includes several standard events; S3. Divide the analysis time window into multiple time slices, and for each target laboratory instrument, preprocess all standard event streams corresponding to the current target laboratory instrument; the preprocessing includes time alignment and deduplication. S4. For each target laboratory instrument, determine the actual state of the current target laboratory instrument in each time slice based on all the standard events corresponding to the current target laboratory instrument.

[0008] Optionally, step S4 includes: S41. Build a filter list based on all time slices, and select the earliest time slice corresponding to the time node in the filter list; S42. For each target laboratory instrument, extract event features based on all standard events that are located in the currently selected time slice and within a preset number of time slices before the currently selected time slice and that correspond to the current target laboratory instrument. S43. For each target laboratory instrument, calculate the state probability of each candidate use state in the preset use state set based on the preset state constraints, preset feature weights and the event characteristics corresponding to the current target laboratory instrument, and then use the highest state probability as the initial screening probability. S44. For each target laboratory instrument, analyze whether it simultaneously satisfies the following conditions: the initial screening probability is greater than the first preset threshold, the duration of the initial screening probability in the currently selected time slice is greater than the preset duration, and the current target laboratory instrument switches from its actual state in the previous time slice to the candidate state corresponding to the initial screening probability in accordance with the preset state transition rules. If so, the candidate state corresponding to the initial screening probability is taken as the actual state of the current target laboratory instrument in the currently selected time slice. If not, the actual state of the instrument in the previous time slice is taken as the current target laboratory instrument. S45. Analyze whether there are any unselected time slices. If so, remove the currently selected time slice from the filter list, select the earliest time slice corresponding to the time node in the filter list, and return to step S42. If not, determine that the actual status of the current target laboratory instrument in each time slice has been determined.

[0009] Optionally, the preset feature weights and preset state constraints are both determined based on the type of the target laboratory instrument.

[0010] Optionally, the formula for calculating the state probability is: ; Where s represents a candidate state. Let represent the state probability of the d-th target laboratory instrument being in candidate state s at time slice t, based on all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset feature weight of the d-th target laboratory instrument in candidate state s. This represents all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the event features extracted based on all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset state constraint term for the d-th target laboratory instrument in candidate state s, where S represents the preset set of usage states. This represents the preset feature weight of the d-th target laboratory instrument in candidate state r. This represents all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset state constraint term for the d-th target laboratory instrument in candidate state r.

[0011] Optionally, the candidate status can be: absent, present but not used, ready, effective operation, sample waiting, vacant, abnormal, or cleanup completed.

[0012] Optionally, the reservation time range is associated with the reservation user information, and the laboratory instrument status identification method also includes steps performed after step S4: A1. When the duration of the absence of a valid operation state and the absence state reaches the first preset time threshold, a notification message to the user corresponding to the reservation user information is sent. When the duration of the absence of a valid operation state and the absence state reaches the second preset time threshold and no response message from the user is received regarding the notification message to the user ... A2. When the duration of the absence of a valid operating state and the absence of a valid operating state or the vacancy state reaches the third preset time threshold, a start experiment prompt message is sent to the user corresponding to the reservation user information. When the duration of the absence reaches the fourth preset time threshold and there is no valid operating state, the user's abandonment of the experiment is received in response to the start experiment prompt message, or the target laboratory instrument is not currently running and the experiment that is already running does not require safe termination, the reservation usage time range is deleted; the third preset time threshold is less than the fourth preset time threshold. A3. In the event of an abnormal state, lock the preset key functions of the target laboratory instrument and restrict the start-up of the target laboratory instrument; A4. When an effective operating state exists, calculate the effective utilization rate of the target laboratory instrument corresponding to that effective operating state.

[0013] Optionally, the multi-source event stream includes a standard event stream collected by the video recorder behavior recognition module. Each standard event includes at least event source information, event type information, and event confidence level. Step A3 includes: A31. When an abnormal state exists, the standard event stream collected by the video recorder behavior recognition module in the multi-source event stream corresponding to the abnormal state shall be used as the target event stream. A32. Analyze whether the event confidence level corresponding to the target event flow is less than the preset confidence level. If so, trigger the preset manual review process. If not, lock the preset key functions of the target laboratory instrument and restrict the start of the target laboratory instrument.

[0014] Optionally, the reservation time range consists of the reservation start time and reservation end time, and step A4 includes: A41. When an effective operating state exists, calculate the effective utilization rate of the target laboratory instrument corresponding to that effective operating state; A42. When the current actual state of the target laboratory instrument is in an effective operating state and the difference between the current time node and the scheduled end time is less than or equal to the preset deviation, obtain the scheduled experiment type information, and then determine the expected experiment duration based on the scheduled experiment type information. A43. Calculate the estimated experiment completion time based on the time node corresponding to the earliest time slice that is determined to be a valid operating state and the estimated duration of the experiment. A44. When the expected completion time of the experiment is after the scheduled end time, analyze whether the state probability corresponding to all valid operation states is greater than or equal to the second preset threshold and there is no scheduled use time range that overlaps with the expected completion time of the experiment. If so, modify the scheduled end time of the current scheduled use time range to the expected completion time of the experiment. If not, generate a prompt message to speed up the experiment.

[0015] Secondly, this application provides an electronic device including a processor and a memory, the memory storing computer-readable instructions, which, when executed by the processor, perform the steps of the method provided in the first aspect above.

[0016] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the method provided in the first aspect above.

[0017] As can be seen from the above, the laboratory instrument status identification method, electronic device and storage medium provided in this application can accurately identify the actual operating status of laboratory instruments by acquiring the reservation time range and continuously collecting multi-source event streams, utilizing time slice division and preprocessing technology, and combining a probability calculation model based on feature weights and state constraints. Based on the identification results, reservation management and abnormal linkage can be automatically executed, thereby solving the problems of disconnect between reservation and actual use, rough status identification and lack of automated response mechanism in the prior art. It has the advantages of significantly improving the utilization rate of laboratory resources and the level of intelligent management. Attached Figure Description

[0018] Figure 1 A flowchart illustrating a laboratory instrument status identification method provided in this application embodiment.

[0019] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0020] Reference numerals: 101, processor; 102, memory; 103, communication bus. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0022] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0023] Firstly, such as Figure 1 As shown, this application provides a method for identifying the status of laboratory instruments, which includes the following steps: S1. Obtain the laboratory's scheduled usage time range and the target laboratory instruments to be used, and then determine the analysis time window based on the scheduled usage time range; the analysis time window covers the scheduled usage time range. S2. For each target laboratory instrument, continuously acquire the multi-source event stream corresponding to the current target laboratory instrument; the multi-source event stream includes standard event streams collected from different data sources, and each standard event stream includes several standard events; S3. Divide the analysis time window into multiple time slices, and for each target laboratory instrument, preprocess all standard event streams corresponding to the current target laboratory instrument; the preprocessing includes time alignment and deduplication. S4. For each target laboratory instrument, determine the actual state of the current target laboratory instrument in each time slice based on all the standard events corresponding to the current target laboratory instrument.

[0024] The laboratory instrument status identification method in this embodiment refers to a method for identifying the usage status of a target laboratory instrument at different times based on the reserved usage time range and multi-source event streams. The reserved usage time range in this embodiment refers to the start and end time period selected by the user in the reservation system for the planned use of the target laboratory instrument, generally consisting of the reservation start time and reservation end time. The preset usage time range can be obtained from the reservation and waitlist management system (used to record users, instruments, reservation time periods, experiment types, expected sample quantities, training qualifications, and waitlist queues). The analysis time window in this embodiment refers to a time interval set for examining the status of the target laboratory instrument. This time window covers the reserved usage time range and is used to intercept and examine multi-source event streams. The analysis time window in this embodiment can be represented as: ;in, Indicates the analysis time window. Indicates the scheduled start time for use. Indicates the end time of the reservation. This indicates the preset preparation time before the experiment. This indicates the start and end times after the preset experiment. The target laboratory instrument in this embodiment refers to the laboratory instrument currently selected for status identification, which can be one or more instruments. The multi-source event stream in this embodiment refers to a set of standard event streams continuously generated from different data sources for the same target laboratory instrument and converted into a specific format. The standard event stream in this embodiment refers to a sequence of standard events arranged in chronological order, converted from the same data source according to a prescribed field format. The standard event in this embodiment refers to a record unit in the standard event stream. The standard time preferably includes the event source, event type, event time, user or candidate identity, instrument number, event confidence level, and additional attributes. The time slice in this embodiment refers to a time unit obtained by dividing the analysis time window by length.

[0025] The features of the above methods will be explained in the following order of execution.

[0026] In step S1, the reserved usage time range of the laboratory and the target laboratory instruments to be used are obtained. Then, the analysis time window is determined based on the reserved usage time range, ensuring that the analysis time window covers the reserved usage time range. This step can be implemented in several ways. For example, the analysis time window can be extended by a fixed duration at both ends of the reserved usage time range; alternatively, the start and end times of the analysis time window can be manually entered by the administrator based on the reserved usage time range.

[0027] In step S2, for each target laboratory instrument, a multi-source event stream corresponding to the current target laboratory instrument is continuously acquired. The multi-source event stream includes standard event streams collected from different data sources, and each standard event stream includes one or more standard events. Data sources may include access control and identity authorization systems (used to acquire laboratory access control card swipes, facial verification, or personnel passage events, and verify whether users have the authority to enter the experimental area and use the target instrument), instrument host computer agents (used to collect operation logs such as login, software startup, parameter setting, start testing, pause, data export, error reporting, and exit in the instrument control computer), instrument status acquisition devices (used to collect statuses such as power-on, warm-up, operation, standby, alarm, task completion, and data file generation through serial ports, network ports, PLCs, power sensors, or device APIs), and video recorder behavior recognition modules (used to perform behavior event processing on the camera images at the edge side, and output tags such as personnel arriving at the instrument area, approaching the operating table, continuous operation, leaving, multiple people watching, and abnormal actions). Standard event streams can be generated directly from each data source according to the specified field format; alternatively, each data source can first send the raw records to an intermediate conversion node, which then converts the raw records into standard events; or each data source can periodically upload raw records in batches, which are then converted into standard event streams by the parsing module. Different acquisition methods differ in terms of real-time performance and data synchronization, and the appropriate method can be selected based on deployment conditions.

[0028] In step S3, the analysis time window is divided into multiple time slices, and for each target laboratory instrument, all standard event streams corresponding to that instrument are preprocessed. Preprocessing includes time alignment and deduplication. Specifically, time alignment unifies the event times in each standard event stream to the system clock; deduplication removes duplicate records based on event source, event type, event time, and user identifier. Time slices can be divided into fixed lengths, dynamically based on event density, or by a scheme specified by administrators. After division, each standard event is assigned to its corresponding time slice based on its event time.

[0029] In step S4, for each target laboratory instrument, the actual state of the current target laboratory instrument in each time slice is determined based on all standard events corresponding to the current target laboratory instrument. State determination can be achieved in several ways. For example, the frequency of occurrence of various events within the current time slice can be counted, and the state corresponding to the event type with the highest frequency can be taken as the actual state; alternatively, a trigger condition for a single data source can be set, and when the event confidence of that data source exceeds a threshold, its corresponding state is confirmed as the actual state. These methods can serve as the basis for state judgment, and more constraints can be introduced subsequently to refine the state judgment.

[0030] As one implementation method, an analysis time window is determined based on the scheduled usage time range. The analysis time window covers the scheduled usage time range and extends forward and backward by δ_pre and δ_post respectively to accommodate preparatory actions such as early arrival and power-on warm-up, as well as closing actions such as cleaning, data export, and fixture return. Raw records are continuously collected from modules such as reservation and waitlist management, access control and identity permissions, instrument host computer agent, instrument status acquisition, and video recorder behavior recognition. The raw records from each source are uniformly converted into standard events. Standard events include event source, event type, event time, user or candidate identity, instrument number, event confidence level, and additional attributes. The standard event stream is uniformly time-corrected to the system clock, deduplicated, associated with reservations, associated with instruments, and associated with identities. The analysis time window is divided into multiple time slices according to a preset length Δt. For each target laboratory instrument, its actual status in each time slice is determined based on the associated standard events.

[0031] The above technical solution will be illustrated by an example below.

[0032] Suppose user A has reserved a usage period for instrument A from 9:00 to 11:00 through the reservation system. After obtaining the reserved usage time range and the identifier of instrument A, the system determines the analysis time window to be from 8:30 to 11:30 to cover possible early arrival and closing actions.

[0033] Within the analysis time window, the system continuously collects raw records corresponding to instrument A from multiple data sources. For example, the access control and identity verification system generates events such as user A entering the laboratory; the instrument's host computer agent records events such as user A logging into the instrument control software and starting experimental methods; the instrument status acquisition device records events such as power changes and operating status of instrument A; and the video recorder's behavior recognition module records events such as operational actions occurring within the operating area. Each data source converts the raw records into standard events according to a specified field format. Standard events include event source, event type, event time, user or candidate identity, instrument number, event confidence level, and additional attributes.

[0034] Subsequently, the system preprocesses the standard event streams from various data sources. The event times are synchronized to the system clock, and duplicate card-swiping events caused by simultaneous reporting from dual access control readers are eliminated. Afterward, the system divides the analysis time window into multiple time slices of 10 minutes each.

[0035] Based on this, the system determines the actual status of instrument A within each time slice according to all standard events associated with instrument A. During the time slice from 8:30 to 9:00, no access control events were collected, and instrument A was identified as absent in all time slices from 8:30 to 9:00. During the time slice from 9:00 to 9:10, access control events and host computer login events were collected simultaneously, but no instrument operation events occurred, so instrument A was identified as present but not operating. During the time slice from 9:10 to 9:20, the instrument status acquisition device recorded a power increase, the video recorder behavior recognition module recorded a sample loading action, and the host computer agent recorded a method preparation instruction. After integrating multiple event sources, instrument A was identified as being in the preparation stage. During the time segment from 9:20 to 10:30, the host computer agent continuously recorded method operation events, and the instrument status acquisition device recorded operating parameters. Instrument A was identified as being in a valid operating state in all time slices from 9:20 to 10:30. Between 10:30 and 11:00, the method execution ends, the host computer agent records the data export event, the instrument status acquisition device records the power decrease, and all time slices of instrument A between 10:30 and 11:00 are identified as cleanup completed. Through the above process, the multi-source event stream is merged into a sequence of instrument A's usage status at different times. This sequence can be used to determine whether a reservation has been converted into actual use and provides a basis for subsequent scheduling and management.

[0036] As can be seen from the above examples, the method proposed in this application integrates appointment information, multi-source event collection, time alignment and deduplication, time slice division, and state recognition into a processing flow that includes multiple steps.

[0037] Compared to management methods that rely solely on reservation records, this method analyzes time windows and multi-source event streams to correlate reserved time periods (the range of reserved usage time) with events that have already occurred, thereby distinguishing between reserved occupancy and actual use. Compared to status judgment methods that rely solely on a single data source, this method reduces misjudgments caused by the limitations of a single data source by integrating information from multiple data sources such as access control, host computer, instrument status acquisition devices, and video recorder behavior recognition modules. Compared to methods that do not perform time alignment and deduplication of event streams, this method eliminates the impact of time deviations and duplicate records on status recognition through preprocessing. Compared to judgment methods that do not divide time windows into time slices, this method can determine the instrument status at the unit after time slice segmentation, thereby capturing the status change process. Therefore, this method achieves closed-loop management from reservation to usage status recognition, providing a data foundation for the scheduling, auditing, and utilization analysis of laboratory instruments.

[0038] In some preferred embodiments, step S4 includes: S41. Build a filter list based on all time slices, and select the earliest time slice corresponding to the time node in the filter list; S42. For each target laboratory instrument, extract event features based on all standard events that are located in the currently selected time slice and within a preset number of time slices before the currently selected time slice and that correspond to the current target laboratory instrument. S43. For each target laboratory instrument, calculate the state probability of each candidate use state in the preset use state set based on the preset state constraints, preset feature weights and the event characteristics corresponding to the current target laboratory instrument, and then use the highest state probability as the initial screening probability. S44. For each target laboratory instrument, analyze whether it simultaneously satisfies the following conditions: the initial screening probability is greater than the first preset threshold, the duration of the initial screening probability in the currently selected time slice is greater than the preset duration, and the current target laboratory instrument switches from its actual state in the previous time slice to the candidate state corresponding to the initial screening probability in accordance with the preset state transition rules. If so, the candidate state corresponding to the initial screening probability is taken as the actual state of the current target laboratory instrument in the currently selected time slice. If not, the actual state of the instrument in the previous time slice is taken as the current target laboratory instrument. S45. Analyze whether there are any unselected time slices. If so, remove the currently selected time slice from the filter list, select the earliest time slice corresponding to the time node in the filter list, and return to step S42. If not, determine that the actual status of the current target laboratory instrument in each time slice has been determined.

[0039] The filtering list in this embodiment is a data structure used to store all time slices to be processed, such as an array, linked list, or priority queue that can be sorted by timestamp. Its purpose is to ensure that subsequent processing is done sequentially in chronological order, thereby avoiding state breaks caused by backtracking or out-of-order processing. For each time slice, the time window used to extract event features includes both the currently selected time slice and a preset number of time slices preceding it. This preset number can be set to a fixed value based on the instrument's response speed, event acquisition frequency, or management experience, or it can be dynamically adjusted based on real-time data density. For example, the window can be expanded to supplement the context when events are sparse, and shrunk to reduce computation when events are dense. Preferably, this embodiment can set the preset number to infinity to identify the actual state of the target laboratory instrument in each time slice based on all standard events generated from the start of the analysis time window. Event features are quantitative representations obtained by structurally abstracting standard events within the time window. For example, they can be statistically analyzed based on the number of occurrences of various events, the time interval between the most recent event and the current time slice, the continuity of events associated with the same user or instrument, the combination pattern of multiple source events occurring simultaneously, or a weighted summation of the confidence levels of each event. The extraction method is preferably implemented through a pre-constructed event feature extraction function. Preset feature weights are used to distinguish the contribution of different event features to state judgment. For example, the weight of operational event features can be higher than that of environmental noise event features. These weights can be obtained from parameters learned from historical labeled data or initialized based on expert experience and further adjusted using validation data. Preset state constraints are used to integrate external prior knowledge such as reservation rules, instrument process stage rules, and safety rules into state probability calculations. This can be achieved by imposing probability penalties on states that violate reservation time periods or process sequences, and granting probability rewards to states that conform to expected processes. Alternatively, they can be embedded in the form of state transition feasibility. State probabilities can be calculated using a normalized form based on feature weighting and state constraints. For example, the score of each candidate state is first calculated, and then mapped to a probability distribution using a softmax function. The preliminary screening probability is the maximum probability value selected from this distribution, indicating the most likely state for the current time slice. The first preset threshold and the preset duration together constitute the stability threshold for state switching. The first preset threshold is used to exclude state inferences with excessively low confidence, and the preset duration is used to suppress short-term fluctuations. Both can be set uniformly or separately for each candidate state. Preset state transition rules are used to characterize the legitimate evolutionary relationships between states. For example, the "absent" state cannot directly jump to the "cleanup complete" state. These preset state transition rules can be described using a finite state machine or by using a state transition matrix to limit the reachability from the actual state of the previous time slice to the current candidate state, thereby avoiding state jumps that do not conform to physical laws or management logic. The cyclic removal and reselection mechanism in step S45 ensures the sequential traversal of all time slices, forming a closed-loop identification process that is progressively recursively applied from front to back.

[0040] With the coordination of the above steps, state recognition is no longer an isolated judgment of a single time point, but rather a dynamic process with time slices as the main axis, historical events as the context, and probability and rules as dual verification. Specifically, after completing steps S1 to S3, i.e., obtaining the analysis time window, standardizing the multi-source event stream, time alignment and deduplication, and dividing the window into multiple time slices, step S41 first establishes a filtering list and locates the earliest time slice, ensuring that state inference unfolds sequentially from the beginning of the analysis time window. Step S42 extracts event features from all standard events within the current time slice and the preset number of time slices before it, enabling the current judgment to utilize behavioral information from the previous period, mitigating misjudgments caused by relying solely on instantaneous data. It should be understood that when the current time slice is the starting time slice of the analysis time window, step S42 only extracts event features from all standard events within the current time slice. Step S43 interacts the event features with preset feature weights and superimposes preset state constraints to obtain the state probability of each candidate state; by selecting the highest probability as the initial filtering probability, a dominant candidate can be given when there is conflict among multi-source evidence. Step S44 further performs triple verification on the candidate: the probability value must be higher than the first preset threshold to ensure confidence; the duration of the candidate state in the current time slice must exceed a preset duration to ensure stability; and the transition from the actual state in the previous time slice to the candidate state must conform to preset state transition rules to ensure rationality. Only when all three conditions are met simultaneously is a state switch allowed; otherwise, the actual state of the previous time slice is maintained. It should be understood that if the current time slice is the starting time slice of the analysis time window and the current time slice does not simultaneously meet the above three conditions, the actual state of the current time slice is set to the absent state. That is, in this embodiment, it is equivalent to setting the initial value of the actual state of the previous time slice to the absent state. Step S45 continuously removes processed time slices from the filter column and selects the next earliest time slice, repeating the above process until all time slices are assigned an actual state. Since the determination of each time slice is based on the actual state of the previous time slice, the state sequence remains continuous in both time and logic. At the same time, the preprocessing of multi-source event streams provides a clean and aligned data foundation for feature extraction, while the division of the analysis time window provides a unified time granularity for recursive processing, thus jointly improving the robustness and accuracy of state recognition.

[0041] The following is a concrete example to illustrate this. Assume a target laboratory instrument is a high-precision liquid chromatograph (HPLC). Its reserved usage time range is included in the analysis time window, which is divided into multiple time slices of equal length. When an unprocessed time slice is selected as the current time slice, the system reads all standard events associated with the instrument from the first time slice to the current time slice. Examples include access control records showing the user has swiped their card to enter the experimental area, the host computer agent record showing the user has logged into the instrument control software, the instrument status acquisition module showing pump pressure and detector readiness, and the video recorder behavior recognition module showing the user placing a sample at the injection port. The system extracts features from these standard events, obtaining event features including the number of operational events, the number of times multi-source evidence occurs simultaneously, the time span of the most recent event from the current time slice, and the confidence-weighted sum. Subsequently, based on the event features, the system calculates the state probability of each candidate usage state, combined with preset feature weights and preset state constraints. It is assumed that the candidate state corresponding to the current maximum state probability is a valid operational state, and its probability value is higher than a first preset threshold. The system further checks that the duration of the candidate state within the current time slice exceeds a preset duration, and that the transition from the preparation state in the previous time slice to the effective operating state conforms to preset state transition rules. Therefore, the actual state of the current time slice is determined to be an effective operating state. If, during subsequent processing, a brief power fluctuation causes a temporary increase in the probability of an abnormal state within a certain time slice, but this probability does not last to the preset duration, and the direct transition from the effective operating state to the abnormal state is restricted by preset state transition rules, and the actual state of the previous time slice was an effective operating state, then the actual state of this time slice remains an effective operating state, thus avoiding the disruption of the state sequence by transient noise. Each time slice in the filter list is processed sequentially in the same manner until all time slices are determined, thereby obtaining the state trajectory of the liquid chromatograph throughout the entire analysis time window.

[0042] Through the aforementioned technical solutions, the state recognition process can fully utilize historical context and state continuity constraints, overcoming the problems of lag and insufficient accuracy caused by judging based solely on a single point in time or a simple event stream. By introducing duration verification and state transition rules, short-term data fluctuations or single-source anomalies are less likely to trigger drastic state jumps, thereby improving the stability and reliability of the state sequence. Simultaneously, the judgment method based on probability maximization of candidate states combined with multiple constraints allows for a reasonable balance between conflicts between multiple events, further enhancing the adaptability of the recognition results to complex usage scenarios. Therefore, laboratory managers can evaluate the actual usage of instruments based on continuous and accurate state trajectories, providing reliable data support for subsequent reservation releases, anomaly linkages, and utilization statistics.

[0043] In some preferred embodiments, the preset feature weights and preset state constraints are both determined based on the type of the target laboratory instrument.

[0044] The preset feature weights in this embodiment can be understood as a set of parameters used to quantify the contribution of different event features to each candidate usage state. In its implementation, for instrument types that have accumulated historical labeled data, the preset feature weights can be obtained through supervised learning of historical time-slice state labels and corresponding event features. For example, models such as logistic regression, structured support vector machines, or conditional random fields can be used for training, and then calibrated on validation data. For newly deployed instrument types or those lacking sufficient historical data, domain experts can set initial weights based on their operational experience with that type of instrument, and then adjust them using small-batch validation data or online feedback data.

[0045] The preset state constraints in this embodiment can be understood as bias terms reflecting prior knowledge of laboratory instruments regarding state continuity, legality of state transitions, and process safety requirements. In their implementation, these preset state constraints can originate from reservation rules, instrument process stage rules, and safety rules. For example, constraints can be imposed on the transition from an absent state to a valid operating state based on the reservation start time; the sequence constraints between the preparation state, valid operating state, and cleanup completion state can be defined according to the instrument operation procedure; and restrictions can be imposed on the transition from an abnormal state to other states based on safety rules. In specific implementations, these preset state constraints can be pre-configured in the form of a rule table, assigning a large negative bias to state transitions that violate the rules; alternatively, data-driven regularization terms or penalty terms can be constructed by statistically analyzing the frequency or duration distribution of historical state transitions, thus ensuring that the constraints both incorporate expert knowledge and adapt to actual usage patterns.

[0046] The type of target laboratory instrument in this embodiment can be determined by equipment category, model code, or functional grouping information in the laboratory asset management system, or it can be automatically categorized based on the instrument response characteristics reflected in multi-source event streams. After determining the type, the system loads the preset feature weights and preset state constraints corresponding to that type from the parameter library. For instruments of the same type or with the same number, parameters trained or calibrated using historical labeled data of the instrument are used first. If no training data is available, expert rules are used for initialization and adjustments are made based on verified data. The parameter library can be indexed according to instrument type and supports personalized coverage by instrument number, thus taking into account both commonalities and individual differences within the same type.

[0047] This scheme uses the instrument type as the benchmark for setting state recognition parameters, enabling the preset feature weights and preset state constraints to match the inherent characteristics of the target laboratory instrument. When executing step S4, for each time slice, the system extracts event features from the currently selected time slice and the associated standard events in the preceding time slices. Subsequently, the system weights these event features using preset feature weights corresponding to the target laboratory instrument type, and performs prior corrections to the state probability calculation using preset state constraints of the corresponding type. Based on this, and combining the first preset threshold, duration, and preset state transition rules, the actual state of each time slice is determined sequentially. Because different types of instruments have different sensitivities to the same event, for example, for high-speed centrifuges, the preset feature weights focus more on rotor speed signals, lid locking signals, and power consumption change signals, while the weight of user dwell video events is relatively low. The preset state constraints emphasize the sequential relationship between the absent state, the present but not used state, the ready state, the effective operation state, and the cleanup completion state, and require that the effective operation state must be accompanied by a continuous rotor running signal. For polymerase chain reaction (PCR) instruments, the preset feature weights focus more on the number of temperature cycles, program running events, and sample loading and detection events. The weight of user dwell video events is also moderately suppressed. The preset state constraints allow for a longer sample waiting state and require that the duration of the effective operation state matches the typical amplification cycle. Therefore, this solution can highlight the unique state characterization of this type of instrument at the feature level through typified weight settings, while ensuring that the state transition sequence conforms to the operating logic and safety requirements of this type of instrument through typified state constraints.

[0048] In some preferred embodiments, the formula for calculating the state probability is: ; Where s represents a candidate state. Let represent the state probability of the d-th target laboratory instrument being in candidate state s at time slice t, based on all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset feature weight of the d-th target laboratory instrument in candidate state s. This represents all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the event features extracted based on all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset state constraint term for the d-th target laboratory instrument in candidate state s, where S represents the preset set of usage states. This represents the preset feature weight of the d-th target laboratory instrument in candidate state r. This represents all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset state constraint term for the d-th target laboratory instrument in candidate state r.

[0049] In some preferred embodiments, the candidate states are: absent, present but not used, ready, effective operation, sample waiting, vacant, abnormal, or cleanup completed.

[0050] The "Not Present" status indicates that no user identification event associated with the reservation has occurred within the target laboratory instrument's usage area during the reserved usage time period. This includes events such as no access control card swipes, no login to the host computer, and no personnel presence detected by the video recorder's behavior recognition module. The "Present but Not Used" status indicates that the user has arrived at the instrument's location or completed host computer login, but has not yet initiated any control actions to change the target laboratory instrument's operating conditions, and the instrument has not entered the method execution or data acquisition phase. The "Ready" status indicates that the user is performing pre-operations for the formal experiment, such as power-on self-test, preheating, system equilibration, loading the experimental method, installing the chromatographic column, or placing samples. At this time, the instrument is under control but has not yet output valid experimental data. The "Active Operation" status indicates that the target laboratory instrument is executing the reserved experimental procedure and generating data or products directly related to the experimental objective, such as chromatographic acquisition, mass spectrometry scanning, reaction cycling, or spectral measurement. The "Sample Waiting" status indicates that the instrument is in the experimental sequence, but due to unmet external conditions such as sample queue, incubation timing, temperature control equilibration, or pretreatment completion, no active measurement or reaction operation has been performed in the current time slice. The "Idle" status indicates that the user has occupied the target laboratory instrument or its reserved time slot, but the instrument has not generated any effective experimental action for an extended period. Examples include the user leaving without logging out, or the instrument being in standby mode without any experimental queue running. The "Abnormal" status indicates that behavior or signals deviating from normal experimental procedures or safety regulations have been detected, such as unauthorized personnel operation, safety door opening, critical parameter exceeding limits, or instrument alarms. The "Cleanup Complete" status indicates that the experiment has been completed, and the user is performing cleanup actions such as shutting down, flushing tubing, unloading fixtures, exporting data, restoring the workbench, or logging out of the system.

[0051] By classifying the target laboratory instruments into eight candidate states, the system no longer roughly identifies "in use" or "idle" when determining the status of the instruments in each time slice. Instead, it maps the actual operating logic of the instruments to specific stages of their lifecycle. Based on the analysis time window determined in step S1, step S2 continuously collects event streams from multiple sources, including access control and identity permissions, instrument host computer agents, instrument status acquisition, and video recorder behavior recognition modules. Step S3 performs time alignment and deduplication on the standard event streams and divides the analysis time window into multiple time slices. Then, in step S4, event features are extracted by combining the standard events in the current and previous preset number of time slices. The state probability of each candidate state is calculated using preset feature weights and preset state constraints. The actual state of the current time slice is determined based on the preliminary screening probability, the first preset threshold, the duration, and the preset state transition rules.

[0052] Since the candidate state set covers the entire process from user arrival, experiment preparation, effective operation, sample waiting, idle state, anomaly state, to cleanup completion, the pre-defined state transition rules can define reasonable transition paths. For example, the "not present" state can transition to the "present but not used" state, the "present but not used" state can transition to the "preparation" or "idle" state, the "preparation" state can transition to the "effective operation" state, the "effective operation" state can transition to the "sample waiting" or "cleanup completion" state, and the "abnormal" state can be transitioned from multiple preceding states and must be verified before transitioning out. In this way, even if there are local missing or noisy multi-source events within certain time slices, the system can avoid unreasonable jumps by relying on the constraints of the state transition rules, ensuring the continuity and interpretability of the state sequence in the time dimension.

[0053] In some preferred embodiments, the reservation time range is associated with the reservation user information, and the laboratory instrument status identification method further includes a step performed after step S4: A1. When the duration of the absence of a valid operation state and the absence state reaches the first preset time threshold, a notification message to the user corresponding to the reservation user information is sent. When the duration of the absence of a valid operation state and the absence state reaches the second preset time threshold and no response message from the user is received regarding the notification message to the user ... A2. When the duration of the absence of a valid operating state and the absence of a valid operating state or the vacancy state reaches the third preset time threshold, a start experiment prompt message is sent to the user corresponding to the reservation user information. When the duration of the absence reaches the fourth preset time threshold and there is no valid operating state, the user's abandonment of the experiment is received in response to the start experiment prompt message, or the target laboratory instrument is not currently running and the experiment that is already running does not require safe termination, the reservation usage time range is deleted; the third preset time threshold is less than the fourth preset time threshold. A3. In the event of an abnormal state, lock the preset key functions of the target laboratory instrument and restrict the start-up of the target laboratory instrument; A4. When an effective operating state exists, calculate the effective utilization rate of the target laboratory instrument corresponding to that effective operating state.

[0054] The association between the reserved usage time range and the reserved user information is the prerequisite for all subsequent automated reminders, resource releases, and accountability. This association can be achieved by writing the user's account, mobile phone number, or employee ID into the corresponding reservation record in the reservation database. Regardless of the method used, the core purpose is to let the system know "who" reserved "which instrument" during "which time period," thereby providing a responsible party for tiered reminders and handling of violations.

[0055] Step A1 constitutes a tiered handling mechanism for no-show situations. Its function is to address situations where a user has made a reservation but fails to arrive, and the system detects no valid activity. This is achieved through a two-stage strategy: first, sending a notification to arrive, then automatically releasing resources. This approach respects the user's potential for a short delay while preventing the instrument from being unnecessarily occupied for an extended period. In implementation, the first preset time threshold can be set to 15 minutes after the start of the analysis time window, at which point the system pushes an arrival notification to the user's mobile terminal. The second preset time threshold can be set to 30 minutes after the start of the analysis time window. If no response is received from the user or the user voluntarily withdraws before this time, the system automatically deletes the reserved usage time range and releases the time slot to other users in the waiting list. Notification channels can include in-app messages, SMS, voice calls, or emails.

[0056] Step A2 addresses situations where a user has arrived but hasn't started the experiment, or where the instrument is occupied but no effective operation has occurred. Its purpose is to encourage users to quickly enter an effective experimental state and to promptly reclaim the time slot when it's confirmed that the user has abandoned the activity or that the instrument is no longer needed. In implementation, the third preset time threshold can be set to 15 minutes after the first detection of an unstarted or occupied state. When this threshold is reached, the system sends a start-the-experiment prompt to the user. The fourth preset time threshold can be set to 30 minutes after the first detection of an unstarted or occupied state. If the user replies that they want to abandon the experiment, or if there is no response after the reminder, and the target laboratory instrument is not currently running, or if the already running experiment does not require safe closure, then the reserved usage time range is deleted. Determining whether the target laboratory instrument is running can be based on the host computer's operating status, power acquisition data, or temperature control data; determining whether safe closure is required can be based on the instrument type, experimental stage, and sample preservation requirements.

[0057] Step A3 constitutes a real-time safety linkage mechanism for abnormal states. When the actual state of the target laboratory instrument is identified as abnormal, the system immediately locks its preset critical functions and restricts their activation to prevent the abnormality from escalating or causing secondary damage. In implementation, the preset critical functions can be key subsystems such as lasers, high-voltage power supplies, heating modules, motion axes, or vacuum pumps; the locking method can be sending a disable command to the lower-level controller, or revoking the current user's operating permissions and prohibiting new experiments from starting at the upper-level software level. In one implementation, the locking action is linked to the instrument's own hardware interlock loop; in another implementation, the locking action is issued through the laboratory instrument management platform's policy engine and simultaneously notifies the administrator or safety officer.

[0058] Step A4 is used to calculate the effective utilization rate of the target laboratory instruments when the effective operating status is confirmed. Its purpose is to quantitatively compare the actual effective experimental time of the instruments with the total scheduled time, thereby providing an objective basis for scheduling optimization and performance evaluation. In practice, the effective utilization rate can be calculated as the ratio of the cumulative time slices in an effective operating state to the total scheduled time. Preferably, the formula for calculating the effective utilization rate is: ; in, This represents the effective utilization rate, and N represents the total number of time slices. The valid operating state is represented by the probability that the current target laboratory instrument is in a valid operating state at time slice t, based on all standard events from the first time slice to the t-th time slice. This represents the preset data quality coefficient. This indicates the preset duration corresponding to the time slice. This indicates the duration of the analysis time window.

[0059] In terms of the overall operation mechanism, steps A1 to A4 are based on the time-slice-level actual state sequence obtained in step S4. By associating the reservation time range with the reservation user information, the abstract state identification result is transformed into scheduling and security actions oriented towards specific users. Since step S4 has comprehensively utilized multiple constraints such as multi-source event streams, time alignment, deduplication, preset feature weights, preset state constraints, and state transition rules when determining the actual state of each time slice, the resulting state sequence has high accuracy and robustness. It is this highly reliable state input that enables steps A1 to A4 to avoid rashly triggering resource reclamation or security locking based solely on a single-source event or transient anomaly, thereby achieving a balance between automatic management and the risk of misjudgment.

[0060] Specifically, when the target laboratory instrument remains in an absent state after the reservation begins and does not exhibit any effective operational status, step A1 first gently reminds the user of their arrival. Only if no response is received within a longer second preset time threshold or the user explicitly abandons the reservation, does the system enforce the deletion of the reserved usage time range and notify the waiting queue. Similarly, step A2, for absent or vacant states, uses a tiered judgment based on third and fourth preset time thresholds to distinguish between brief preparation and genuine resource waste, ensuring that the time slot is released only when the user subjectively abandons the reservation or when the user is unresponsive and objectively no longer needs to occupy the space. Step A3 immediately cuts off critical functions upon confirmation of an abnormal state, restricting the use of the laboratory instrument in this abnormal state. Step A4 accumulates the effective experimental time during the period of effective operation and can further combine this with the reservation end time to determine whether to extend the reservation or prompt the user to expedite the process, thereby achieving a refined measurement of the instrument's true usage value.

[0061] In some preferred embodiments, the multi-source event stream includes a standard event stream collected by the video recorder behavior recognition module, and each standard event includes at least event source information, event type information, and event confidence level. Step A3 includes: A31. When an abnormal state exists, the standard event stream collected by the video recorder behavior recognition module in the multi-source event stream corresponding to the abnormal state shall be used as the target event stream. A32. Analyze whether the event confidence level corresponding to the target event flow is less than the preset confidence level. If so, trigger the preset manual review process. If not, lock the preset key functions of the target laboratory instrument and restrict the start of the target laboratory instrument.

[0062] The standard event stream collected by the video recorder's behavior recognition module refers to a structured sequence of events generated by performing behavior recognition analysis on video data collected by camera equipment deployed around laboratory instruments. Specifically, it can be achieved by using cameras fixed above the instrument's operating area, combined with human keypoint detection and action classification models, to recognize the operator's posture and movements; alternatively, it can be achieved by using multi-angle camera arrays or pan-tilt cameras to fuse multi-view video information and generate event records based on 3D reconstruction and behavioral temporal analysis.

[0063] Each standard event contains event source information, event type information, and event confidence score, which constitute the basic data for quality assessment and credibility determination of video recognition results. Event source information identifies the specific video recorder behavior recognition module or camera device that generated the event; event type information describes the identified behavior category; and event confidence score characterizes the reliability of the recognition model's judgment of that behavior. In terms of implementation, standard events can be stored and transmitted in JSON format, including source identifier, event type, confidence score, and timestamp fields; alternatively, they can be encapsulated in binary serialization formats such as Protocol Buffers or Avro and distributed via message queues to meet the low-latency transmission requirements of high-concurrency scenarios.

[0064] When an abnormal state exists, the standard event stream collected by the video recorder behavior recognition module from the multi-source event stream corresponding to the abnormal state is taken as the target event stream. Essentially, this involves selectively extracting the evidence chain related to visual recognition from the multi-source data for targeted confidence assessment. In implementation, a data view indexed by event source can be maintained in the multi-source event stream storage structure. When the state determination result is abnormal, a subset of events originating from the video recorder behavior recognition module is directly retrieved. Alternatively, during real-time stream processing, a source tag can be attached to each standard event, and the target event stream can be dynamically extracted using streaming filtering operators. The purpose of this step is to focus the confidence test on the visual data source most susceptible to environmental interference.

[0065] Comparing the event confidence level corresponding to the target event stream with a preset confidence level is a crucial step in determining whether to implement automated control measures. The preset confidence level can be set based on the complexity of the laboratory environment, the importance level of the instrument, or the historical false alarm rate. For example, in scenarios with stable ambient lighting and high recognition accuracy, a relatively fixed global threshold can be used; for scenarios with drastic changes in lighting or multiple users operating simultaneously, a threshold strategy that dynamically adjusts based on time period, region, or instrument type can be adopted. When the event confidence level is lower than the preset confidence level, a pre-set manual review process is triggered; when the event confidence level is not lower than the preset confidence level, the preset key functions of the target laboratory instrument are directly locked and their activation is restricted.

[0066] Triggering a pre-set manual review process aims to provide a further verification mechanism for video evidence with insufficient confidence, avoiding improper instrument control due to visual misjudgment. This manual review process can involve sending a review request containing video clips and event details to the laboratory administrator for manual confirmation; or it can require on-site users to re-authenticate their identity by swiping a card, scanning a code, or using biometrics to confirm the legitimate identity of the current operator.

[0067] Locking down the preset critical functions of the target laboratory instrument and restricting its activation aims to prevent the further development of the abnormal state. Preset critical functions may include core execution units such as the instrument's sample injection module, high-voltage module, laser emission module, or precision motion control module; restricting activation can manifest as prohibiting the loading of new experimental programs, preventing switching from standby to running mode, or requiring a re-verification of permissions before resuming operation. These control commands can be issued through the interface with the instrument's host computer agent or implemented through the instrument controller's hardware interlock circuitry.

[0068] This solution constructs a two-layer verification mechanism for abnormal states by separating the standard event stream collected by the video recorder's behavior recognition module from the multi-source event stream and independently evaluating the event confidence of this event stream. Based on the multi-source event stream fusion, which integrates access control, host computer, instrument status, and visual information to determine abnormal states, the system further assesses the credibility of the visual evidence itself. When an abnormal state is triggered primarily by evidence from the video recorder's behavior recognition module and the confidence of this evidence is insufficient, the system does not directly lock the target laboratory instrument or impose penalties. Instead, it triggers a process requiring re-authentication or manual review to obtain a more reliable basis for judgment. When the confidence of the evidence is sufficient, automated control measures are quickly implemented. Since video events generally only prove that a person is in the operating area, and cannot definitively determine that a specific person has exceeded their authority without legitimate identification or strong cross-source evidence, the aforementioned two-layer verification mechanism leverages the comprehensive advantages of multi-source event stream fusion in state recognition while specifically addressing the inherent weakness of video data sources in complex environments, which are prone to false alarms. This achieves a balance between automated response and careful human judgment.

[0069] In some preferred embodiments, the reservation time range consists of the reservation start time and the reservation end time, and step A4 includes: A41. When an effective operating state exists, calculate the effective utilization rate of the target laboratory instrument corresponding to that effective operating state; A42. When the current actual state of the target laboratory instrument is in an effective operating state and the difference between the current time node and the scheduled end time is less than or equal to the preset deviation, obtain the scheduled experiment type information, and then determine the expected experiment duration based on the scheduled experiment type information. A43. Calculate the estimated experiment completion time based on the time node corresponding to the earliest time slice that is determined to be a valid operating state and the estimated duration of the experiment. A44. When the expected completion time of the experiment is after the scheduled end time, analyze whether the state probability corresponding to all valid operation states is greater than or equal to the second preset threshold and there is no scheduled use time range that overlaps with the expected completion time of the experiment. If so, modify the scheduled end time of the current scheduled use time range to the expected completion time of the experiment. If not, generate a prompt message to speed up the experiment.

[0070] The start and end times of the reservation are the two boundaries of the reservation time range, used to define the legal period for a user to occupy the target laboratory equipment within the reservation period. This time range can be generated by the user manually entering the start and end times through the calendar control when submitting the reservation request, or it can be automatically recommended and confirmed by the scheduling system based on the experiment type template selected by the user and the available free time slots.

[0071] The preset deviation is the time slack threshold that triggers whether a reassessment of the reservation end time is required. This threshold can be configured as a fixed duration, such as a time window before the reservation ends; or it can be configured as a relative value proportional to the expected duration of the experiment, such as taking a certain proportion of the expected duration of the experiment as the decision window.

[0072] The reservation experiment type information is used to characterize the category or protocol of the experiment corresponding to the current reservation. It can be selected by the user from the list of experiment types on the reservation interface and submitted along with the reservation request, or it can be automatically mapped by the system after parsing the experiment name, sample type or test item filled in by the user in the reservation form.

[0073] The estimated duration of the experiment is used to estimate the continuous operation time required to complete the current scheduled experiment. One way to determine this is by statistical averaging or quantile estimation based on historical operation records of similar experiments on instruments in the target laboratory; another way is to determine it based on the recommended duration specified in the standard operating procedure corresponding to this type of experiment or the reference operating time template provided by the instrument manufacturer.

[0074] The earliest time point corresponding to the time slice that is determined to be a valid operating state is the basis for calculating the actual start point of the experiment. This time point can be determined as the start time of the first time slice in which the actual state is a valid operating state; or it can be determined as the start time of the first time slice that meets the condition after the state probabilities of multiple consecutive time slices all meet the valid operating state condition, in order to filter out short-term misjudgments.

[0075] The estimated experiment completion time is used to represent the end time of the experiment calculated based on the actual effective start time and the estimated duration of the experiment. It can be obtained by directly adding the estimated duration of the experiment to the time node corresponding to the earliest effective operation state; or by first converting the estimated duration of the experiment into the number of time slices and then adding it to the sequence number of the earliest effective time slice to obtain the corresponding end time slice node.

[0076] The second preset threshold is used to measure the confidence level of the valid operational status identification result and is the threshold for determining whether the reservation end time can be automatically extended. This threshold can be set as a uniform probability lower limit, and extension is only allowed when the probability of valid operational status in all relevant time slices is not lower than this lower limit; it can also be dynamically calibrated according to the type of instrument in the target laboratory, the reliability of the data source, or the historical false identification rate.

[0077] The time range of appointments that overlap with the expected experiment completion time refers to other confirmed appointments that overlap in time. When determining whether there is overlap, you can compare only the appointment time slots of the same target laboratory instrument near the expected experiment completion time; or you can further combine the overall laboratory schedule and check other appointments in the same experimental area or sharing auxiliary equipment to avoid resource conflicts.

[0078] Modifying the end time of a reservation can be achieved by updating the end time field in the reservation database and simultaneously notifying the relevant users and access control system. Generating prompts to expedite experiments can be done by sending messages to the users corresponding to the reservation information via in-system messages, SMS, or pop-ups on the laboratory management terminal, reminding them to complete the experiment or apply for renewal before the original end time of the reservation.

[0079] This solution addresses resource conflicts caused by uncertain experimental progress by combining status recognition results with dynamic management of reservation times. After executing steps S1 to S4, the actual status of the target laboratory instruments in each time slot is determined. The probability sequence of valid operating states not only reflects whether the experiment is actually being conducted but also carries confidence information for the recognition results of each time slot. Step A41 calculates the effective utilization rate based on this, providing a quantitative basis for adjusting the reservation end time. When the current actual status remains valid and the current time point falls within the preset deviation range before the reservation end time, step A42 determines the expected experiment duration based on the reservation experiment type information. Step A43 further calculates the expected experiment completion time using the earliest time point determined to be a valid operating state as the actual starting point. Step A44 comprehensively considers whether the status probabilities corresponding to all valid operating states reach the second preset threshold and whether there are subsequent time conflicts, deciding whether to extend the reservation end time to the expected experiment completion time or generate an acceleration prompt message if the conditions are not met. Because this process utilizes the confidence level of the state probability, the prior duration of the experiment type, and the actual start time, the adjustment of the reservation end time can adapt to the actual progress of the experiment without frequently disturbing subsequent scheduling due to single-point misjudgment.

[0080] Please refer to Figure 2 , Figure 2 This application provides a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The electronic device includes a processor 101 and a memory 102. The processor 101 and the memory 102 are interconnected and communicate with each other via a communication bus 103 and / or other forms of connection mechanisms (not shown). The memory 102 stores computer-readable instructions executable by the processor 101. When the electronic device is running, the processor 101 executes these computer-readable instructions to perform the method in any optional implementation of the above embodiments, thereby achieving the following function: Step S1: Obtain the laboratory's scheduled usage time range and the target laboratory instruments to be used, and then determine the division based on the scheduled usage time range. Step S2: For each target laboratory instrument, continuously acquire the multi-source event stream corresponding to the current target laboratory instrument; the multi-source event stream includes standard event streams collected from different data sources, and each standard event stream includes several standard events; Step S3: Divide the analysis time window into multiple time slices, and for each target laboratory instrument, preprocess all standard event streams corresponding to the current target laboratory instrument; the preprocessing includes time alignment and deduplication; Step S4: For each target laboratory instrument, determine the actual status of the current target laboratory instrument in each time slice based on all standard events corresponding to the current target laboratory instrument.

[0081] This application embodiment also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it executes the method in any optional implementation of the above embodiments to achieve the following functions: Step S1: Obtain the reservation time range of the laboratory and the target laboratory instrument to be used, and then determine the analysis time window according to the reservation time range; the analysis time window covers the reservation time range; Step S2: For each target laboratory instrument, continuously acquire the multi-source event stream corresponding to the current target laboratory instrument; the multi-source event stream includes standard event streams collected from different data sources, and each standard event stream includes several standard events; Step S3: Divide the analysis time window into multiple time slices, and for each target laboratory instrument, preprocess all standard event streams corresponding to the current target laboratory instrument; the preprocessing includes time alignment and deduplication; Step S4: For each target laboratory instrument, determine the actual state of the current target laboratory instrument in each time slice according to all standard events corresponding to the current target laboratory instrument. The computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0082] As can be seen from the above, the laboratory instrument status identification method, electronic device and storage medium provided in this application can accurately identify the actual operating status of laboratory instruments by acquiring the reservation time range and continuously collecting multi-source event streams, utilizing time slice division and preprocessing technology, and combining a probability calculation model based on feature weights and state constraints. Based on the identification results, reservation management and abnormal linkage can be automatically executed, thereby solving the problems of disconnect between reservation and actual use, rough status identification and lack of automated response mechanism in the prior art. It has the advantages of significantly improving the utilization rate of laboratory resources and the level of intelligent management.

[0083] In the embodiments provided in this application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of the above units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple units or components may be combined or integrated into another robot, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interface; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0084] In this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying any such actual relationship or order between these entities or operations.

[0085] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for identifying the status of laboratory instruments, characterized in that, The laboratory instrument status identification method includes the following steps: S1. Obtain the laboratory's scheduled usage time range and the target laboratory instruments to be used, and then determine the analysis time window based on the scheduled usage time range; the analysis time window covers the scheduled usage time range; S2. For each of the target laboratory instruments, continuously acquire the multi-source event stream corresponding to the current target laboratory instrument; the multi-source event stream includes standard event streams collected from different data sources, and each standard event stream includes several standard events; S3. Divide the analysis time window into multiple time slices, and for each target laboratory instrument, preprocess all standard event streams corresponding to the current target laboratory instrument; the preprocessing includes time alignment and deduplication; S4. For each target laboratory instrument, determine the actual state of the current target laboratory instrument in each time slice based on all the standard events corresponding to the current target laboratory instrument.

2. The laboratory instrument status identification method according to claim 1, characterized in that, Step S4 includes: S41. Construct a filter list based on all the time slices, and select the earliest time slice corresponding to the time node in the filter list; S42. For each target laboratory instrument, extract event features based on all standard events that are located in the currently selected time slice and within a preset number of time slices before the currently selected time slice and that correspond to the current target laboratory instrument. S43. For each target laboratory instrument, calculate the state probability of each candidate use state in the preset use state set according to the preset state constraint terms, preset feature weights and the event features corresponding to the current target laboratory instrument, and then use the highest state probability as the initial screening probability. S44. For each of the target laboratory instruments, analyze whether the following conditions are met simultaneously: the initial screening probability is greater than the first preset threshold, the duration of the initial screening probability in the currently selected time slice is greater than the preset duration, and the current target laboratory instrument switches from its actual state in the previous time slice to the candidate state corresponding to the initial screening probability in accordance with the preset state transition rule. If so, the candidate state corresponding to the initial screening probability is taken as the actual state of the current target laboratory instrument in the currently selected time slice. If not, the actual state of the instrument in the previous time slice is taken as the current target laboratory instrument. S45. Analyze whether there are any unselected time slices. If so, remove the currently selected time slice from the filter list, select the earliest time slice corresponding to the time node in the filter list, and return to step S42. If not, determine that the actual status of the current target laboratory instrument in each of the time slices has been determined.

3. The laboratory instrument status identification method according to claim 2, characterized in that, Both the preset feature weights and the preset state constraints are determined based on the type of the target laboratory instrument.

4. The laboratory instrument status identification method according to claim 3, characterized in that, The formula for calculating the state probability is: ; Where s represents a candidate state. Let represent the state probability of the d-th target laboratory instrument being in candidate state s at time slice t, based on all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset feature weight of the d-th target laboratory instrument in candidate state s. This represents all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the event features extracted from all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset state constraint term for the d-th target laboratory instrument in candidate state s, where S represents the preset set of usage states. This represents the preset feature weight of the d-th target laboratory instrument in candidate state r. This represents all standard events of the d-th target laboratory instrument from the first time slice to the t-th time slice. This represents the preset state constraint term for the d-th target laboratory instrument in candidate state r.

5. The laboratory instrument status identification method according to claim 2, characterized in that, The candidate states are: absent, present but not used, ready, effective operation, sample waiting, vacant, abnormal, or cleanup completed.

6. The laboratory instrument status identification method according to claim 5, characterized in that, The reserved usage time range is associated with the reserved user information, and the laboratory instrument status identification method further includes steps performed after step S4: A1. When there is no valid operation state and the duration of the absence state reaches a first preset time threshold, send an arrival reminder to the user corresponding to the reservation user information. When there is no valid operation state, the duration of the absence state reaches a second preset time threshold, and no response is received from the user regarding the arrival reminder or a cancellation message is received from the user regarding the arrival reminder, delete the reservation usage time range; the first preset time threshold is less than the second preset time threshold. A2. When the duration of the absence of a valid operating state and the absence of a valid or vacant state reaches a third preset time threshold, a start experiment prompt message is sent to the user corresponding to the reservation user information. When the duration of the absence of a valid operating state reaches a fourth preset time threshold and no valid operating state exists, when the user abandons the experiment in response to the start experiment prompt message, when the target laboratory instrument is not currently running, and when the experiment that is running does not require safe termination, the reservation usage time range is deleted; the third preset time threshold is less than the fourth preset time threshold. A3. When the abnormal state exists, lock the preset key functions of the target laboratory instrument and restrict the start-up of the target laboratory instrument; A4. When the effective operating state exists, calculate the effective utilization rate of the target laboratory instrument corresponding to the effective operating state.

7. The laboratory instrument status identification method according to claim 6, characterized in that, The multi-source event stream includes a standard event stream collected by the video recorder behavior recognition module. Each standard event includes at least event source information, event type information, and event confidence level. Step A3 includes: A31. When the abnormal state exists, the standard event stream collected by the video recorder behavior recognition module in the multi-source event stream corresponding to the abnormal state shall be taken as the target event stream. A32. Analyze whether the event confidence level corresponding to the target event stream is less than the preset confidence level. If so, trigger the preset manual review process. If not, lock the preset key functions of the target laboratory instrument and restrict the start of the target laboratory instrument.

8. The laboratory instrument status identification method according to claim 6, characterized in that, The reserved usage time range consists of the reservation start time and reservation end time. Step A4 includes: A41. When the effective operating state exists, calculate the effective utilization rate of the target laboratory instrument corresponding to the effective operating state; A42. When the current actual state of the target laboratory instrument is an effective operating state and the difference between the current time node and the reserved end time is less than or equal to the preset deviation, obtain the reserved experiment type information, and then determine the expected experiment duration based on the reserved experiment type information. A43. Calculate the estimated experiment completion time based on the earliest time node corresponding to the time slice that is determined to be the effective operation state and the estimated duration of the experiment. A44. When the expected completion time of the experiment is after the scheduled end time, analyze whether the state probability corresponding to all the effective operation states is greater than or equal to the second preset threshold and there is no scheduled use time range that overlaps with the expected completion time of the experiment. If so, modify the scheduled end time of the current scheduled use time range to the expected completion time of the experiment. If not, generate a prompt message to speed up the experiment.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing computer-readable instructions that, when executed by the processor, perform the steps of the method as described in any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it performs the steps of the method as described in any one of claims 1-8.