Endoscope whole-process management method, device and equipment based on bluetooth AoA positioning and storage medium

CN122994735APending Publication Date: 2026-10-27ZHONGHU INTERNET OF THINGS (GUANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611107022.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-24
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0003]然而,身份绑定高度依赖人工主动操作,易因疏忽导致漏刷、错刷,致使洗消追溯链条断裂及交叉感染排查数据失真;其次,主机与检查室的静态绑定无法适应设备跨室调配或维修等动态场景,导致系统记录的设备归属与实际使用情况不符,难以准确评估设备真实效能及进行故障归因

Benefits of technology

[0010]本发明实施例提供的基于蓝牙AoA定位的内窥镜全流程管理方法,内镜中心部署的多个蓝牙AoA基站,可持续采集内窥镜终端第一蓝牙信标发射的第一CTE信号与内镜主机终端第二蓝牙信标发射的第二CTE信号,通过对两类信号的同步解析,同步输出内窥镜对应的第一位置坐标序列、内镜主机对应的第二位置坐标序列及主机工作状态对应的引脚电平跳变序列,摒弃了传统人工手动刷卡录入数据的操作模式,从源头规避人工疏忽导致的漏刷、错刷问题,避免洗消追溯链条断裂与交叉感染排查数据失真。依托双端实时位置坐标序列计算出内窥镜与内镜主机的动态空间距离序列,再结合内窥镜型号对应的最大物理连接长度判定二者的物理连接状态序列,以实时空间几何约束替代传统固定的检查室静态绑定模式,可精准适配内镜主机跨室调配的动态使用场景,保证设备位置与使用场景数据的实时真实性。通过将时间窗口内的物理连接状态序列与主机引脚电平跳变序列进行双向状态匹配,结合物理连接关系与设备电气运行特征双重维度校验,精准判定内窥镜本次使用过程的有效关联结果,杜绝单一位置判定的误差问题,彻底解决传统人工交互、静态配置导致的内窥镜、主机运行状态与位置坐标自动化关联准确度低的缺陷。基于全流程累计的精准使用关联结果生成内窥镜使用报告。因此,本发明实施例全程实现无感化、自动化的数据采集与关联校验,实现了内窥镜与内镜主机间基于物理几何约束和电气连接特征的无感化高精度自动化关联绑定,提升了内窥镜全生命周期(洗消、使用、追溯全流程)的追溯准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122994735A_ABST
    Figure CN122994735A_ABST
Patent Text Reader

Abstract

The application provides an endoscope whole-process management method and device based on Bluetooth AoA positioning, equipment and storage medium, the method comprises the following steps: analyzing a first CTE signal and a second CTE signal to obtain a first position coordinate sequence of an endoscope terminal and a second position coordinate sequence and a pin level jump sequence of an endoscope host terminal; based on the first position coordinate sequence and the second position coordinate sequence, a spatial distance sequence is determined, based on the spatial distance sequence and the maximum physical connection length corresponding to the model of the endoscope terminal, the physical connection state sequence of the endoscope terminal and the endoscope host terminal is determined; based on the physical connection state sequence and the pin level jump sequence, state matching is carried out in a time window to obtain the use correlation result of the endoscope terminal in the use process; based on the use correlation result of the endoscope terminal in the whole process, a use report of the endoscope terminal is generated. The application improves the trace accuracy of endoscope whole life cycle management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical device information management technology, and in particular to a method, device, equipment and storage medium for endoscope full-process management based on Bluetooth AoA positioning. Background Technology

[0002] In the operation of hospital endoscopy centers, the current system primarily relies on RFID tags or barcodes combined with manual scanning to manage endoscopes. Disinfection personnel must manually swipe cards to record disinfection data at each stage of the cleaning process, and doctors must swipe their cards before the examination to establish a link between the endoscope and the patient. Furthermore, the endoscope unit is typically statically linked to the examination room, and the system defaults to writing the unit's serial number to the examination report.

[0003] However, identity binding relies heavily on manual operation, which can easily lead to missed or incorrect scans due to negligence, causing breaks in the disinfection and traceability chain and distorted data in cross-infection investigations. Secondly, the static binding between the host and the examination room cannot adapt to dynamic scenarios such as cross-room equipment relocation or maintenance, resulting in discrepancies between the system-recorded equipment ownership and actual usage, making it difficult to accurately assess the true performance of the equipment and attribute faults. Existing technologies, in achieving the actual usage association between the endoscope and the endoscope host, suffer from low accuracy in automatically associating the actual endoscope usage process with the host's operating status and position coordinate sequence due to reliance on manual interaction and static configuration. Summary of the Invention

[0004] This invention provides a method, device, equipment, and storage medium for endoscope end-to-end process management based on Bluetooth AoA positioning. It aims to achieve seamless, high-precision, automated association and binding between the endoscope and the endoscope host based on physical geometric constraints and electrical connection characteristics, thereby improving the traceability accuracy of endoscope end-to-end lifecycle management.

[0005] In a first aspect, the present invention provides a method for endoscopy end-to-end management based on Bluetooth AoA positioning, wherein multiple Bluetooth AoA base stations are deployed in the central space of the endoscope; a first Bluetooth beacon is deployed in the endoscope terminal for sending a first CTE signal to the Bluetooth AoA base stations; a second Bluetooth beacon is deployed in the endoscope host terminal for sending a second CTE signal to the Bluetooth AoA base stations; the method includes: By analyzing the first CTE signal and the second CTE signal, the first position coordinate sequence of the endoscope terminal and the second position coordinate sequence and pin level transition sequence of the endoscope host terminal are obtained. Based on the first position coordinate sequence and the second position coordinate sequence, the spatial distance sequence between the endoscope terminal and the endoscope host terminal is determined, and based on the spatial distance sequence and the maximum physical connection length corresponding to the model of the endoscope terminal, the physical connection status sequence between the endoscope terminal and the endoscope host terminal is determined. Based on the physical connection state sequence and the pin level transition sequence, state matching is performed within a time window to obtain the usage association result of the endoscope terminal in this usage process. Based on the usage correlation results of the endoscope terminal throughout the entire process, an endoscope terminal usage report is generated.

[0006] Secondly, the present invention also provides an endoscope full-process management device based on Bluetooth AoA positioning, used to implement the endoscope full-process management method based on Bluetooth AoA positioning as described in the first aspect; the endoscope full-process management device based on Bluetooth AoA positioning includes: The signal parsing module is used to parse the first CTE signal and the second CTE signal to obtain the first position coordinate sequence of the endoscope terminal and the second position coordinate sequence and pin level transition sequence of the endoscope host terminal. The connection status determination module is used to determine the spatial distance sequence between the endoscope terminal and the endoscope host terminal based on the first position coordinate sequence and the second position coordinate sequence, and to determine the physical connection status sequence between the endoscope terminal and the endoscope host terminal based on the spatial distance sequence and the maximum physical connection length corresponding to the model of the endoscope terminal. The state matching module is used to perform state matching within a time window based on the physical connection state sequence and the pin level transition sequence to obtain the usage association result of the endoscope terminal in this usage process. The full usage process management module is used to generate endoscope terminal usage reports based on the usage correlation results of the endoscope terminal throughout the entire process.

[0007] Thirdly, the present invention also provides an electronic device, comprising: a memory for storing a computer program; and a processor for reading and executing the computer program, thereby realizing the endoscope full-process management method based on Bluetooth AoA positioning as described above.

[0008] Fourthly, the present invention also provides a non-transitory computer-readable storage medium storing a computer program, which, when executed by a processor, implements the endoscope full-process management method based on Bluetooth AoA positioning as described above.

[0009] Fifthly, the present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned endoscope full-process management method based on Bluetooth AoA positioning.

[0010] The endoscope end-to-endoscope management method based on Bluetooth AoA positioning provided in this invention utilizes multiple Bluetooth AoA base stations deployed in the endoscopy center to continuously collect the first CTE signal transmitted by the first Bluetooth beacon of the endoscope terminal and the second CTE signal transmitted by the second Bluetooth beacon of the endoscope host terminal. Through synchronous analysis of these two types of signals, it synchronously outputs the first position coordinate sequence corresponding to the endoscope, the second position coordinate sequence corresponding to the endoscope host, and the pin level transition sequence corresponding to the host's operating status. This eliminates the traditional manual card-swiping data entry method, avoiding missed or incorrect swiping due to human error at the source, and preventing the breakdown of the disinfection and traceability chain and the distortion of cross-infection investigation data. Based on the real-time position coordinate sequence of both ends, the dynamic spatial distance sequence between the endoscope and the endoscope host is calculated. Then, combined with the maximum physical connection length corresponding to the endoscope model, the physical connection status sequence of the two is determined. This real-time spatial geometric constraint replaces the traditional fixed static binding mode of the examination room, accurately adapting to the dynamic usage scenario of cross-room deployment of the endoscope host, ensuring the real-time authenticity of equipment location and usage scenario data. By performing bidirectional state matching between the physical connection state sequence and the host pin level transition sequence within a time window, and combining physical connection relationships with the electrical operating characteristics of the device for dual-dimensional verification, the effective association results of the endoscope's current usage process are accurately determined. This eliminates the error problem of single-position determination and completely solves the shortcomings of low accuracy in the automated association of endoscope and host operating status and position coordinates caused by traditional manual interaction and static configuration. An endoscope usage report is generated based on the accurate usage association results accumulated throughout the entire process. Therefore, this embodiment of the invention achieves seamless and automated data acquisition and association verification throughout the entire process, realizing seamless, high-precision automated association binding between the endoscope and the endoscope host based on physical geometric constraints and electrical connection characteristics, and improving the traceability accuracy of the endoscope throughout its entire life cycle (cleaning, disinfection, use, and traceability). Attached Figure Description

[0011] Figure 1 This is a flowchart illustrating the endoscope full-process management method based on Bluetooth AoA positioning provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of the endoscope end-process management device based on Bluetooth AoA positioning provided in an embodiment of the present invention; Figure 3 An embodiment diagram of the electronic device provided in this invention; Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with the present invention. Detailed Implementation

[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0013] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified. In the description of this invention, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for illustrative purposes. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed herein.

[0014] Optionally, see Figure 1 , Figure 1 This is a flowchart illustrating the endoscope end-to-end procedure management method based on Bluetooth AoA positioning provided by the present invention. The endoscope end-to-end procedure management method based on Bluetooth AoA positioning includes: Step 10: Analyze the first CTE signal and the second CTE signal to obtain the first position coordinate sequence of the endoscope terminal and the second position coordinate sequence and pin level transition sequence of the endoscope host terminal.

[0015] Optionally, a Bluetooth AoA (Angle of Arrival) base station is deployed high on the ceiling or wall at the center of the endoscope. Each Bluetooth AoA base station is equipped with a multi-antenna array, and the three-dimensional spatial coordinates of each Bluetooth AoA base station have been pre-calibrated, measured, and stored in the device management device. The multi-antenna array consists of multiple antenna elements arranged in a preset geometric pattern. It is used to receive Bluetooth broadcast packets containing the CTE (Constant Tone Extension) field transmitted by Bluetooth beacons, and to calculate the angle of arrival of the signal based on the phase difference between the CTE signals received by each antenna element. The angle of arrival includes azimuth and elevation. The azimuth is the angle between the projection of the signal arrival direction onto the horizontal plane and a preset reference direction, and the elevation is the angle between the signal arrival direction and the horizontal plane.

[0016] The endoscope terminal is equipped with a first Bluetooth beacon, which stores the endoscope terminal's identification information and the endoscope's model code. The first Bluetooth beacon continuously broadcasts a first Bluetooth broadcast packet containing a CTE field at a preset broadcast frequency. The first Bluetooth broadcast packet carries the device identifier of the first Bluetooth beacon. The endoscope host terminal is equipped with a second Bluetooth beacon, which stores the endoscope host terminal's identification information. The second Bluetooth beacon continuously broadcasts a second Bluetooth broadcast packet containing a CTE field at a preset broadcast frequency. The second Bluetooth broadcast packet carries the device identifier of the second Bluetooth beacon.

[0017] After each Bluetooth angle-of-arrival (AOA) base station's multi-antenna array receives the first CTE signal transmitted by the first Bluetooth beacon, it calculates the azimuth and elevation angles of the first CTE signal relative to the Bluetooth AOA base station based on the phase difference between each antenna element. The calculated azimuth and elevation angles, along with the base station identifier and corresponding reception timestamp of the Bluetooth AOA base station, are encapsulated into an angle resolution record and sent to the device management device. After receiving angle resolution records for the same first Bluetooth broadcast packet from at least two Bluetooth AOA base stations at the same sampling time, the device management device uses a multi-station angle intersection positioning algorithm to calculate the three-dimensional position coordinates of the first Bluetooth beacon at that sampling time.

[0018] For each Bluetooth angle-of-arrival (AOA) base station, the device management unit constructs a spatial ray extending from the AOA base station along the signal arrival direction based on its known 3D spatial coordinates and the calculated azimuth and elevation angles. When angle resolution data is obtained from two AOA base stations, the shortest common perpendicular segment between the two spatial rays is calculated, and the midpoint of this shortest common perpendicular segment is used as the estimated 3D position coordinate of the first Bluetooth beacon at that sampling time. When angle resolution data is obtained from three or more AOA base stations, the least squares method is used to find the 3D coordinate point that minimizes the sum of the perpendicular distances from the point to all spatial rays, and this 3D coordinate point is used as the 3D position coordinate of the first Bluetooth beacon at that sampling time. The device management unit arranges the 3D position coordinates of the first Bluetooth beacon calculated at each sampling time in chronological order to form a first position coordinate sequence. Each element in the first position coordinate sequence is a triplet containing the x-coordinate, y-coordinate, and y-coordinate values, as well as the corresponding sampling timestamp.

[0019] The process for obtaining the second position coordinate sequence is the same as that for obtaining the first position coordinate sequence. After each Bluetooth angle-of-arrival base station's multi-antenna array receives the second CTE signal transmitted by the second Bluetooth beacon, it calculates the azimuth and elevation angles of the second CTE signal relative to the Bluetooth angle-of-arrival base station based on the phase difference between each antenna element. The device management device also uses the aforementioned multi-station angle intersection positioning algorithm to calculate the three-dimensional position coordinates of the second Bluetooth beacon at each sampling time, and arranges them in the order of sampling times to form the second position coordinate sequence.

[0020] Optionally, a general purpose input / output (GPIO) pin of the second Bluetooth beacon is connected via a wire to the hot plug detect (HPD) pin of the video input interface of the endoscope host terminal. The hot plug detect pin is an electrical pin on the video input interface of the endoscope host terminal used to detect whether an external video connector is inserted. When the external video connector is inserted into the video input interface, the level of the hot plug detect pin changes from low to high; when the external video connector is removed from the video input interface, the level of the hot plug detect pin changes from high to low.

[0021] The second Bluetooth beacon continuously monitors the voltage level of the hot-plug detection pin connected to its general-purpose input / output pin at a preset sampling frequency. When a change in voltage level is detected, the second Bluetooth beacon records the timestamp and direction of the voltage transition, and encapsulates the timestamp and direction into a voltage transition record, which is then sent to the device management device. The transition direction includes rising edge transitions and falling edge transitions. A rising edge transition indicates a change in voltage level from low to high, and a falling edge transition indicates a change in voltage level from high to low. The device management device arranges all received voltage transition records in chronological order of their timestamps to form a pin voltage transition sequence.

[0022] Step 20: Based on the first position coordinate sequence and the second position coordinate sequence, determine the spatial distance sequence between the endoscope terminal and the endoscope host terminal. Based on the spatial distance sequence and the maximum physical connection length corresponding to the model of the endoscope terminal, determine the physical connection status sequence between the endoscope terminal and the endoscope host terminal.

[0023] Optionally, the device management device extracts a pair of three-dimensional position coordinates corresponding to the same sampling time from the first position coordinate sequence and the second position coordinate sequence. For each sampling time, the three-dimensional position coordinates of the first Bluetooth beacon corresponding to that sampling time are extracted from the first position coordinate sequence and denoted as the first coordinate triplet, which includes the first x-coordinate value, the first y-coordinate value, and the first y-coordinate value; at the same time, the three-dimensional position coordinates of the second Bluetooth beacon corresponding to that sampling time are extracted from the second position coordinate sequence and denoted as the second coordinate triplet, which includes the second x-coordinate value, the second y-coordinate value, and the second y-coordinate value.

[0024] The equipment management device uses a three-dimensional Euclidean distance calculation method to calculate the spatial distance between the endoscope terminal and the endoscope host terminal at the sampling moment. The calculation process of the three-dimensional Euclidean distance can be derived from the distance formula between two points, which will not be elaborated here.

[0025] The equipment management device performs the above-mentioned three-dimensional spatial Euclidean distance calculation for each sampling time in the first position coordinate sequence and the second position coordinate sequence, and arranges the spatial distance values ​​corresponding to each sampling time in the order of sampling time to form a spatial distance sequence.

[0026] The device management unit obtains the maximum physical connection length corresponding to the model of the endoscope terminal. The maximum physical connection length is the maximum allowable distance at which the endoscope terminal can establish an effective electrical connection with the endoscope host terminal. This value is determined by the physical structure of the endoscope terminal and specifically includes the sum of the length of the endoscope terminal's connection cable and the connector margin.

[0027] Optionally, in this embodiment of the invention, the device management device pre-stores a mapping table between each model of endoscope terminal and its corresponding maximum physical connection length. Based on the model code of the endoscope obtained in step 10, the maximum physical connection length corresponding to the endoscope terminal of that model code is obtained from the mapping table using the model code as the key value.

[0028] The device management unit compares each spatial distance value in the spatial distance sequence with the maximum physical connection length to determine the physical connection status corresponding to each sampling moment. When the spatial distance value at a certain sampling moment is less than or equal to the maximum physical connection length, it is determined that the endoscope terminal and the endoscope host terminal are in a connected state at that sampling moment; when the spatial distance value at a certain sampling moment is greater than the maximum physical connection length, it is determined that the endoscope terminal and the endoscope host terminal are in a disconnected state at that sampling moment. The device management unit arranges the connection or disconnection status corresponding to each sampling moment in chronological order of the sampling moments to form a physical connection status sequence. Each element in the physical connection status sequence contains a sampling timestamp and a corresponding status identifier, the status identifier being either connected or disconnected.

[0029] Step 30: Based on the physical connection state sequence and pin level transition sequence, perform state matching within the time window to obtain the usage association results of the endoscope terminal in this usage process.

[0030] Optionally, the device management unit determines one or more electrical connection time periods based on the timestamps corresponding to rising edge transitions and falling edge transitions in the pin level transition sequence. Each electrical connection time period is defined by the timestamp of a rising edge transition as the start time and the timestamp of the most recent falling edge transition after that rising edge transition as the end time. The electrical connection time period represents the continuous period during which the hot-plug detection pin of the endoscope host terminal electrically detects that the external video connector is in an inserted state.

[0031] The device management unit matches the time range covered by continuous sampling times marked as connected in the physical connection state sequence with the time windows of each electrical connection time period to obtain the usage association results of the endoscope terminal during this use, as detailed in steps 301 to 304. The usage association results include normal association records and abnormal association records. Normal association records include at least usage record information, which includes at least the endoscope terminal ID, endoscope host terminal ID, usage start time, usage end time, and usage duration. Abnormal association records include at least usage record information and the reason for the abnormality.

[0032] Step 40: Generate an endoscope terminal usage report based on the usage correlation results of the endoscope terminal throughout the entire process.

[0033] Optionally, the device management unit generates a usage report for the endoscope terminal based on the usage association results throughout the entire process, as described in steps 401 to 404. The usage report comprehensively reflects the usage of the endoscope terminal within a specified time frame, including a management report of normal association records and an anomaly event log of abnormal association records. The anomaly event log summarizes all records of the endoscope terminal that are determined to have abnormal associations throughout the entire process, recording associated abnormal events that occur during the use of the endoscope terminal, including usage record information for each abnormality and the corresponding cause of the abnormality.

[0034] The entire process refers to the complete usage cycle of an endoscope terminal, from the moment it is removed after completing the disinfection process until it is returned to the disinfection area or drying storage cabinet after the endoscope terminal has been used for the current examination. Within the entire process, the endoscope terminal may undergo one or more associated uses with different endoscope main units.

[0035] The embodiments of the present invention realize a non-intrusive, high-precision, automated association and binding between the endoscope and the endoscope host based on physical geometric constraints and electrical connection characteristics, thereby improving the traceability accuracy of the endoscope's entire life cycle management.

[0036] Optionally, the processes of steps 301 to 304 include: Step 301: Take the time period in the physical connection state sequence that is in the connection state as the first target time period, and determine the effective time interval of the physical connection based on the physical connection start time and physical connection end time of each first target time period.

[0037] Optionally, each element in the physical connection state sequence obtained in step 20 is traversed. Each element in the physical connection state sequence contains a sampling timestamp and a corresponding state identifier. The state identifier is either connected or disconnected. The device management device checks the state identifier corresponding to each sampling timestamp in the order of the sampling timestamps.

[0038] When the device detects that the status identifier corresponding to a certain sampling timestamp changes from a disconnected state to a connected state from the previous sampling timestamp, or when the sampling timestamp is the first element in the physical connection state sequence and its status identifier is connected, the device management device marks the sampling timestamp as the physical connection start time. The physical connection start time represents the critical moment when the spatial distance between the endoscope terminal and the endoscope host terminal changes from greater than the maximum physical connection length to less than or equal to the maximum physical connection length.

[0039] When the device detects that the status identifier corresponding to a certain sampling timestamp changes from a connected state to a disconnected state from the previous sampling timestamp, the device management device marks the previous sampling timestamp as the physical connection end time. The physical connection end time represents the last sampling timestamp in a connected state before the critical moment when the spatial distance between the endoscope terminal and the endoscope host terminal changes from less than or equal to the maximum physical connection length to greater than the maximum physical connection length.

[0040] When the last element of the physical connection state sequence is reached, and the state identifier of the last element is a connection state, the device management device marks the sampling timestamp of the last element as the physical connection end time.

[0041] The device management unit combines the start time and end time of each pair of adjacent physical connections into a first target time period. Each first target time period is defined by a physical connection start time and a physical connection end time, indicating that the status identifier corresponding to all sampled timestamps in the physical connection state sequence within this time period is in a connected state.

[0042] The device management unit calculates the time difference between the end time and the start time of the physical connection within the first target time period to obtain the duration of the first target time period. When the duration of the first target time period is greater than or equal to a preset minimum effective duration threshold for physical connection, the first target time period is determined as an effective physical connection time interval. When the duration of the first target time period is less than the minimum effective duration threshold for physical connection, the first target time period is marked as a transient interference interval and discarded. The minimum effective duration threshold for physical connection is a preset minimum effective duration period used to exclude misjudgments of connection status caused by positioning jitter or instantaneous signal fluctuations.

[0043] The device management unit arranges all valid physical connection time intervals in chronological order of their start times, forming a list of valid physical connection time intervals. Each element in the list contains a physical connection start time and a physical connection end time.

[0044] Step 302: Take the time period in the pin level state sequence that is in the electrical connection level state as the second target time period, and determine the effective time interval of electrical conduction based on the electrical conduction start time and electrical conduction end time of each second target time period.

[0045] Optionally, each level transition record in the pin level transition sequence is traversed. Each level transition record in the pin level transition sequence includes a transition timestamp and a transition direction, where the transition direction is either a rising edge transition or a falling edge transition. A rising edge transition indicates that the level state of the general input / output pin of the second Bluetooth beacon changes from low to high, corresponding to the moment when the hot-plug detection pin of the endoscope host terminal detects that the external video connector is inserted into the video input interface. A falling edge transition indicates that the level state of the general input / output pin of the second Bluetooth beacon changes from high to low, corresponding to the moment when the hot-plug detection pin of the endoscope host terminal detects that the external video connector is unplugged from the video input interface. The electrical connection level state refers to the state where the level state of the general input / output pin of the second Bluetooth beacon is high.

[0046] The device management unit checks the transition direction of each level transition record sequentially according to the order of the transition timestamps. When a rising edge transition is detected in a level transition record, the transition timestamp of that level transition record is marked as the electrical conduction start time. The electrical conduction start time indicates the critical moment when the hot-plug detection pin of the endoscope host terminal detects that the external video connector has changed from a deactivated state to an inserted state at the electrical level.

[0047] When the most recent falling edge transition record is detected after a certain rising edge transition, the transition timestamp of that falling edge transition record is marked as the electrical conduction end time. The electrical conduction end time represents the critical moment when the hot-plug detection pin of the endoscope host terminal detects at the electrical level that the external video connector has changed from the inserted state to the unplugged state.

[0048] The device management unit combines each pair of adjacent electrical conduction start times and electrical conduction end times into a second target time period. Each second target time period is defined by an electrical conduction start time and an electrical conduction end time, indicating that the general input / output pins of the second Bluetooth beacon remain in an electrically connected state during this time period. When the last level transition record in the pin level transition sequence is a rising edge transition, and there is no corresponding falling edge transition record after the rising edge transition, the device management unit marks the transition timestamp of the rising edge transition as the electrical conduction start time and marks the current system time as the electrical conduction end time.

[0049] The equipment management device calculates the time difference between the end time and the start time of electrical conduction in the second target time period to obtain the duration of the second target time period. When the duration of the second target time period is greater than or equal to a preset minimum effective duration threshold for electrical conduction, the second target time period is determined as an effective electrical conduction time interval. When the duration of the second target time period is less than the minimum effective duration threshold for electrical conduction, the second target time period is marked as a transient electrical interference interval and discarded. The minimum effective duration threshold for electrical conduction is a preset minimum effective duration period used to exclude misjudgments of conduction status caused by electrical contact jitter or transient poor contact.

[0050] The equipment management device arranges all valid electrical conduction time intervals in chronological order of their start times, forming a list of valid electrical conduction time intervals. Each element in the list contains a start time and an end time for electrical conduction.

[0051] Step 303: Traverse the physical connection time intervals, take the electrical conduction time intervals that overlap with the physical connection time intervals as the target time intervals, and take the larger start time of each physical connection time interval and the target time interval as the intersection start time and the smaller end time as the intersection end time.

[0052] Optionally, the device management device sequentially retrieves a physical connection valid time interval from the list of valid physical connection time intervals, and records it as the current valid physical connection time interval. The current valid physical connection time interval includes a physical connection start time and a physical connection end time.

[0053] The equipment management device iterates through each valid electrical conduction time interval in the list and determines whether each valid electrical conduction time interval overlaps with the current valid physical connection time interval. The conditions for determining time overlap are: the end time of electrical conduction in the valid electrical conduction time interval is later than the start time of physical connection in the current valid physical connection time interval, and the start time of electrical conduction in the valid electrical conduction time interval is earlier than the end time of physical connection in the current valid physical connection time interval. When a valid electrical conduction time interval meets the above time overlap conditions, that valid electrical conduction time interval is determined as the target time interval for the current valid physical connection time interval.

[0054] For each current physical connection valid time interval and its corresponding target time interval, calculate their time intersection. Compare the start time of the physical connection in the current physical connection valid time interval with the start time of electrical conduction in the target time interval, and take the later of the two as the start time of the intersection. The equipment management device compares the end time of the physical connection in the current physical connection valid time interval with the end time of electrical conduction in the target time interval, and takes the earlier of the two as the end time of the intersection.

[0055] If the current valid physical connection time interval does not have a corresponding target time interval (i.e., no valid electrical conduction time interval in the list overlaps with the current valid physical connection time interval), then the current valid physical connection time interval is marked as a physical connection interval without electrical confirmation, and the calculation of the intersection start time and intersection end time is skipped. The equipment management device performs the above process for each valid physical connection time interval in the list to obtain the intersection start time and intersection end time for each valid physical connection time interval.

[0056] Step 304: If the start time of the intersection is earlier than the end time of the intersection, an initial spatiotemporal overlap time interval is generated. Matching is performed based on the duration of the initial spatiotemporal overlap time interval to obtain the association result.

[0057] Optionally, it can be determined whether the start time of the intersection is earlier than the end time of the intersection. If the start time of the intersection is earlier than the end time of the intersection, an initial spatiotemporal overlap time interval is generated. The initial spatiotemporal overlap time interval is defined by the start time and end time of the intersection, indicating that within this time interval, the endoscope terminal and the endoscope host terminal simultaneously satisfy the physical connection state as connected and the pin level state as electrically connected. Therefore, it can be understood that the initial spatiotemporal overlap time interval refers to the time interval corresponding to the intersection of the effective physical connection time interval and the effective electrical conduction time interval. It indicates that within this time interval, the endoscope terminal and the endoscope host terminal are within the physical connection constraint range in the spatial dimension, and are simultaneously in the conductive connection state in the electrical dimension, that is, the physical connection state and the electrical connection state are simultaneously established in the time dimension.

[0058] The device management unit matches data based on the duration of each initial spatiotemporal overlap time interval to obtain the association result, as detailed in steps 3041 to 3044. The duration refers to the time difference between the end time and the start time of the intersection of the initial spatiotemporal overlap time intervals. The duration reflects the actual duration for which the endoscope terminal and the endoscope host terminal maintain an effective association under the dual constraints of physical connection and electrical conduction.

[0059] This invention achieves high-precision automated association determination between the endoscope terminal and the endoscope host terminal through a dual verification mechanism of physical connection status and electrical conduction status, combined with time window matching and effective duration filtering. This avoids the problem of false association or missed association caused by single-dimensional determination, and improves the accuracy and reliability of traceability data used in the whole life cycle management of endoscopes.

[0060] Optionally, the processes of steps 3041 to 3044 include: Step 3041: Traverse each initial spatiotemporal overlap time interval. If the duration is less than the preset minimum signal recognition time, the initial spatiotemporal overlap time interval is determined to be a false association caused by signal noise, and the initial spatiotemporal overlap time interval is removed. If the duration is greater than or equal to the preset minimum signal recognition time, the initial spatiotemporal overlap time interval is retained as the first target spatiotemporal overlap time interval.

[0061] Optionally, the device management device sequentially extracts one initial spatiotemporal overlap time interval from each initial spatiotemporal overlap time interval obtained in step 303 as the current initial spatiotemporal overlap time interval to be determined, reads the intersection end time and intersection start time of the current initial spatiotemporal overlap time interval to be determined, calculates the time difference between the intersection end time and intersection start time, and uses the time difference as the duration of the current initial spatiotemporal overlap time interval to be determined.

[0062] The device management unit compares the duration with a preset minimum signal recognition duration. This preset minimum duration is a pre-defined minimum effective duration used to distinguish between valid correlation signals generated by actual physical connections and electrical conduction, and false correlation signals caused by multipath effects, signal obstruction, or electrical pin contact jitter in the Bluetooth angle-of-arrival positioning system. When the duration is less than the preset minimum duration, the current initial spatiotemporal overlap time interval to be determined is identified as a false correlation caused by signal noise, and the initial spatiotemporal overlap time interval is removed from the set of initial spatiotemporal overlap time intervals. When the duration is greater than or equal to the preset minimum duration, the current initial spatiotemporal overlap time interval to be determined is retained and marked as the first target spatiotemporal overlap time interval. The first target spatiotemporal overlap time interval is the time interval identified as a valid correlation signal after duration filtering.

[0063] The equipment management device performs the above process for each initial spatiotemporal overlap time interval, and summarizes all the retained first target spatiotemporal overlap time intervals to form the first target spatiotemporal overlap time interval set.

[0064] Step 3042: Sort the spatiotemporal overlap time intervals of each first target according to the chronological order to obtain the sorted spatiotemporal overlap time intervals.

[0065] Optionally, the equipment management device reads the start time of each first target spatiotemporal coincidence time interval in the first target spatiotemporal coincidence time interval set, and sorts all the first target spatiotemporal coincidence time intervals in the first target spatiotemporal coincidence time interval set in ascending order according to the order of the start times from earliest to latest, to obtain sorted spatiotemporal coincidence time intervals. The sorted spatiotemporal coincidence time intervals are an ordered sequence of time intervals, where each element is a first target spatiotemporal coincidence time interval, and the start time of the previous first target spatiotemporal coincidence time interval in the sequence is earlier than or equal to the start time of the next first target spatiotemporal coincidence time interval.

[0066] Step 3043: Traverse the two adjacent first target spatiotemporal overlap time intervals in the sorted spatiotemporal overlap time intervals. If the time interval between the two adjacent first target spatiotemporal overlap time intervals is less than the preset operation interruption tolerance time, and the endoscope terminal IDs of the associated endoscope terminals of the two adjacent first target spatiotemporal overlap time intervals are the same, then merge the two adjacent first target spatiotemporal overlap time intervals to obtain the second target spatiotemporal overlap time interval. Otherwise, keep the two adjacent first target spatiotemporal overlap time intervals independent to obtain the usage process interval.

[0067] Optionally, the equipment management device sequentially extracts two adjacent first target spatiotemporal overlap time intervals from the sorted spatiotemporal overlap time intervals, records the first target spatiotemporal overlap time interval that is listed first as the preceding first target spatiotemporal overlap time interval, records the second target spatiotemporal overlap time interval that is listed second as the subsequent first target spatiotemporal overlap time interval, calculates the time difference between the start time of the subsequent first target spatiotemporal overlap time interval and the end time of the preceding first target spatiotemporal overlap time interval, and uses this time difference as the time interval between two adjacent first target spatiotemporal overlap time intervals.

[0068] The equipment management device determines whether two adjacent first target spatiotemporal overlap time intervals simultaneously meet the following two merging conditions: the first merging condition is that the time interval between the two adjacent first target spatiotemporal overlap time intervals is less than a preset operation interruption tolerance time; the second merging condition is that the endoscope terminal identification information associated with the two adjacent first target spatiotemporal overlap time intervals is the same. The preset operation interruption tolerance time is a pre-set maximum allowable duration for tolerating time interruptions caused by the operator briefly adjusting the endoscope terminal position or by a brief physical disconnection and reconnection between the endoscope terminal and the endoscope host terminal during a single continuous use. When two adjacent first target spatiotemporal overlap time intervals simultaneously meet the above two merging conditions, the two adjacent first target spatiotemporal overlap time intervals are merged to obtain a second target spatiotemporal overlap time interval. The start time of the second target spatiotemporal overlap time interval is the start time of the preceding first target spatiotemporal overlap time interval, and the end time of the second target spatiotemporal overlap time interval is the end time of the subsequent first target spatiotemporal overlap time interval. If the time intervals of two adjacent first targets that coincide in space and time do not meet at least one of the above two merging conditions, the two adjacent time intervals of the first targets that coincide in space and time remain independent and are not merged.

[0069] The equipment management device performs the above judgment and processing on each pair of adjacent first target spatiotemporal overlap time intervals in the sorted spatiotemporal overlap time intervals. After traversal processing, all second target spatiotemporal overlap time intervals and the independent first target spatiotemporal overlap time intervals are collectively referred to as usage process intervals. Each usage process interval represents the complete time period during which the endoscope terminal maintains a dual effective association of physical connection and electrical conduction with the endoscope host terminal during a continuous use.

[0070] Step 3044: Match the second location information sequence of the endoscope host terminal that has been parsed within each usage process interval to obtain the usage association result.

[0071] Optionally, matching is performed based on the second location information sequence of the endoscope host terminal that has been parsed within each usage process interval to obtain the usage association result, as specifically in steps 30441 to 30444.

[0072] This invention achieves a precise binding between the endoscope terminal and the endoscope host terminal, from a rough correlation at the signal level to a precise binding at the usage level, through signal noise filtering, time sorting, adjacent interval merging, and spatial location matching. This effectively eliminates the interference of false correlation signals and fragmented time intervals on the correlation determination results, and improves the accuracy of traceability data used in the whole life cycle management of endoscopes.

[0073] Optionally, the process of steps 30441 to 30444 includes: Step 30441: Based on each usage process interval and the endoscope terminal ID in the first position coordinate sequence of the endoscope terminal corresponding to the start time of each usage process interval, perform association and binding to obtain the target usage process record, and traverse each target usage process record to check the second position information sequence of the endoscope host terminal that has been parsed within the time period corresponding to the target usage process record.

[0074] Optionally, the device management device sequentially selects one usage process interval from each usage process interval obtained in step 3043 as the currently processed usage process interval. The usage process interval includes a start time and an end time, which represent the start and end times of the usage process interval, respectively.

[0075] The device management device searches for the three-dimensional position coordinate record of the first Bluetooth beacon corresponding to the sampling timestamp that is the same as or closest to the start time of the currently processed usage interval from the first position coordinate sequence. It extracts the device identifier of the first Bluetooth beacon from this three-dimensional position coordinate record and determines the endoscope terminal identifier information associated with the currently processed usage interval based on a preset mapping relationship between the device identifier of the first Bluetooth beacon and the endoscope terminal identifier information. The start time, end time, and associated endoscope terminal identifier information of the currently processed usage interval are combined to generate a target usage interval record. The target usage interval record is a structured data record after the usage interval is associated and bound to its corresponding endoscope terminal identifier information. The above association and binding process is performed for each usage interval to obtain a target usage interval record corresponding to each usage interval.

[0076] For each target usage process record, perform the following checks: Read the start and end times in the target usage process record, extract the three-dimensional position coordinates of all second Bluetooth beacons whose sampling timestamps fall within the time range defined by the start and end times from the second position coordinate sequence, and arrange all the extracted three-dimensional position coordinates in the order of the sampling timestamps to form the second position coordinate subsequence corresponding to the target usage process record.

[0077] The device management unit checks whether the second position coordinate subsequence is empty, that is, whether there is any three-dimensional position coordinate record of the second Bluetooth beacon within the time range.

[0078] Step 30442: If the second location information sequence is not empty and contains at least one location coordinate within the preset endoscope center working area, then generate a normal association record based on the target usage process record.

[0079] Optionally, the device management unit checks whether the second position coordinate subsequence is empty. When the second position coordinate subsequence is not empty, it sequentially traverses each three-dimensional position coordinate in the second position coordinate subsequence and determines whether the three-dimensional position coordinate is within the preset endoscope center working area.

[0080] The preset working area of ​​the endoscopy center is the coordinate range of each functional area within the pre-calibrated endoscopy center, such as examination rooms, operating rooms, or disinfection rooms, in three-dimensional space. The preset working area of ​​the endoscopy center is defined by one or more spatial bounding boxes. Each spatial bounding box is jointly defined by the minimum x-coordinate, maximum x-coordinate, minimum y-coordinate, maximum y-coordinate, minimum y-coordinate, and maximum y-coordinate of that functional area. The equipment management device pre-stores the spatial bounding box parameters corresponding to each functional area.

[0081] For each three-dimensional position coordinate in the second position coordinate subsequence, the following position determination process is performed: the x-coordinate, y-coordinate, and vertical coordinate values ​​of the three-dimensional position coordinate are compared with the corresponding coordinate range of each spatial bounding box. When the x-coordinate value of the three-dimensional position coordinate is greater than or equal to the minimum x-coordinate value and less than or equal to the maximum x-coordinate value of a spatial bounding box, and the y-coordinate value is greater than or equal to the minimum y-coordinate value and less than or equal to the maximum y-coordinate value of the spatial bounding box, and the vertical coordinate value is greater than or equal to the minimum vertical coordinate value and less than or equal to the maximum vertical coordinate value of the spatial bounding box, the three-dimensional position coordinate is determined to be within the preset endoscopic central working area.

[0082] When at least one three-dimensional position coordinate is determined to be within the preset endoscope center working area in the second position coordinate subsequence, a normal association record is generated based on the target usage process record. The normal association record includes at least usage record information, which includes at least endoscope terminal identification information, endoscope host terminal identification information, usage start time, usage end time, and usage duration. Specifically, the endoscope terminal identification information is the endoscope terminal identification information associated with and bound in the target usage process record; the endoscope host terminal identification information is determined based on the device identifier of the second Bluetooth beacon corresponding to the three-dimensional position coordinate within the preset endoscope center working area in the second position coordinate subsequence, through a preset mapping relationship between the device identifier of the second Bluetooth beacon and the endoscope host terminal identification information; the usage start time is the start time of the target usage process record; the usage end time is the end time of the target usage process record; and the usage duration is the time difference between the usage end time and the usage start time.

[0083] Step 30443: If the second location information sequence is empty or the location coordinates in the second location information sequence are all outside the preset endoscope center working area, then the connection is determined to be invalid, and an abnormal association record is generated based on the target usage process record.

[0084] Optionally, if during the inspection process it is determined that the second position coordinate subsequence corresponding to a target usage process record is empty, that is, there is no three-dimensional position coordinate record of any second Bluetooth beacon within the time range of the target usage process record, the connection corresponding to the target usage process record is determined to be an invalid connection. An invalid connection indicates that within the usage process interval, no position data of any endoscope host terminal could be obtained from the second position coordinate sequence, and it is impossible to determine which endoscope host terminal the endoscope terminal has established an association with.

[0085] When the second position coordinate subsequence is not empty, the position determination process described in step 30442 is followed, and each three-dimensional position coordinate in the second position coordinate subsequence is traversed sequentially to determine whether it is within the preset endoscope center working area. After traversing all three-dimensional position coordinates in the second position coordinate subsequence, if it is determined that none of the three-dimensional position coordinates are within the coordinate range defined by any spatial bounding box, the connection corresponding to the target's usage process record is determined to be an invalid connection.

[0086] An anomaly association record is generated based on the target usage process record determined to be an invalid connection. This record includes at least usage record information and the reason for the anomaly. The usage record information includes at least the endoscope terminal identification information, the start time of use, and the end time of use. Since this connection was determined to be invalid, the associated endoscope host terminal cannot be determined. Therefore, the endoscope host terminal identification information in the usage record is marked as undetermined, and the usage duration is the time difference between the end time and the start time of use. The reason for the anomaly is determined based on the specific judgment: when the second position coordinate subsequence is empty, the reason is that the endoscope host terminal position data was not obtained; when all position coordinates in the second position coordinate subsequence are outside the preset endoscope center working area, the reason is that the endoscope host terminal position is outside the working area.

[0087] Step 30444: Determine the association result to use based on normal and abnormal association records.

[0088] Optionally, the equipment management device sorts all normal association records and all abnormal association records in ascending order according to the start time of use, forming a usage association result list. Each element in the usage association result list is either a normal association record or an abnormal association record.

[0089] This invention, through endoscope terminal identification binding, endoscope host terminal location extraction, work area spatial range determination, and abnormal situation classification recording, realizes the transformation from non-intrusive positioning data to structured usage association results between the endoscope terminal and the endoscope host terminal. This ensures that each usage association record in the endoscope's entire lifecycle management has dual evidence support at both the physical space level and the electrical connection level, thereby improving the traceability accuracy of the endoscope's entire lifecycle management.

[0090] Optionally, the processes of steps 401 to 404 include: Step 401: Take the normal association records in the usage association results of each usage process as the target usage records, sort them according to the usage start time of each target usage record, and obtain the connection event sequence.

[0091] Optionally, the device management unit reads records one by one from the usage association result list and determines the type of each record. When a record is a normal association record, it is extracted as the target usage record. When a record is an abnormal association record, it is not included in the extraction scope of the target usage record, and the abnormal association record is reserved for use when generating the abnormal event log later.

[0092] The device management unit sorts all extracted target usage records in ascending order according to their respective usage start times, forming a connection event sequence. The connection event sequence is an ordered sequence of records, where each element is a target usage record, and the usage start time of the preceding target usage record is earlier than or equal to the usage start time of the following target usage record. Each target usage record in the connection event sequence corresponds to a valid connection event between the endoscope terminal and the endoscope host terminal, confirmed in step 30.

[0093] Step 402: Using the endoscope terminal ID of each connection event in the connection event sequence as the endoscope node and the endoscope host terminal ID as the host node, construct an adjacency graph of the endoscope terminal and the endoscope host terminal using the connection events that have occurred between the endoscope terminal and the endoscope host terminal as edges.

[0094] Optionally, the device management device initializes an empty adjacency graph. The adjacency graph is a graph structure data, consisting of a node set and an edge set. The node set contains two types of nodes: endoscope nodes and host nodes. Endoscope nodes are identified by endoscope terminal identification information; each different endoscope terminal identification information corresponds to an endoscope node in the adjacency graph. Host nodes are identified by endoscope host terminal identification information; each different endoscope host terminal identification information corresponds to a host node in the adjacency graph. Each edge in the edge set connects an endoscope node and a host node, indicating that at least one valid connection event has occurred between the endoscope terminal corresponding to that endoscope node and the endoscope host terminal corresponding to that host node.

[0095] The device management unit iterates through each connection event in the connection event sequence. For each connection event, it reads the endoscope terminal identification information and the endoscope host terminal identification information from that connection event.

[0096] The device management unit checks whether an endoscope node identified by the endoscope terminal identification information already exists in the node set. If the endoscope node does not exist in the node set, a new endoscope node is created in the node set, and the identifier of this endoscope node is the endoscope terminal identification information in the connection event. If the endoscope node already exists in the node set, it is not created again.

[0097] The device management unit checks whether a host node identified by the endoscope host terminal identification information already exists in the node set. If the host node does not exist in the node set, a new host node is created in the node set, and the identifier of this host node is the endoscope host terminal identification information in the connection event. If the host node already exists in the node set, it is not created again.

[0098] The device management unit checks if an edge connecting the endoscope node and the host node already exists in the edge set. If no edge exists, a new edge is created, connecting the endoscope node at one end and the host node at the other, and its connection count is initialized to 1. If an edge already exists, its connection count is incremented by 1. The connection count represents the cumulative number of valid connection events between the endoscope terminal corresponding to the endoscope node and the endoscope host terminal corresponding to the host node.

[0099] The device management unit performs the above node creation and edge creation process for each connection event in the connection event sequence, and finally obtains an adjacency graph containing all endoscope nodes, host nodes and edges.

[0100] Step 403: Traverse each host node in the adjacency graph, count the number of different endoscope nodes connected to the host node, and determine the host nodes with a number greater than 1 as shared host nodes and the host nodes with a number of 1 as exclusive host nodes.

[0101] Optionally, the device management device sequentially extracts each host node from the node set of the adjacency graph as the currently traversed host node. For the currently traversed host node, it traverses all edges in the edge set of the adjacency graph and filters out all edges that connect to the currently traversed host node.

[0102] The device management unit extracts the identifiers of the endoscope nodes connected to the other end of each selected edge and aggregates all extracted endoscope node identifiers into a set of endoscope node identifiers. Since the elements in the set are unique, the number of elements in the endoscope node identifier set is the number of different endoscope nodes connected to the currently traversed host node.

[0103] The device management unit compares the number of nodes with the value 1. When the number of nodes is greater than 1, it means that multiple different endoscope terminals have successively established a valid connection with the endoscope host terminal corresponding to the currently traversed host node throughout the entire process. The currently traversed host node is then identified as a shared host node.

[0104] A shared host node indicates that the endoscopic host terminal corresponding to the host node is used by multiple endoscopic terminals throughout the entire process. This endoscopic host terminal is a device that is allocated across examination rooms or shared across operating rooms.

[0105] When the number of nodes is equal to 1, it means that only one endoscope terminal has established a valid connection with the endoscope host terminal corresponding to the currently traversed host node throughout the entire process, and the currently traversed host node is determined as the exclusive host node.

[0106] An exclusive host node means that the endoscope host terminal corresponding to the host node is used by only one endoscope terminal throughout the entire process, and there is a fixed pairing relationship between the endoscope host terminal and the specific endoscope terminal.

[0107] The device management unit performs the above statistical and judgment process on each host node in the adjacency graph, summarizes all shared host nodes to form a shared host node list, and summarizes all exclusive host nodes to form an exclusive host node list.

[0108] Step 404: Generate a usage report based on shared host nodes and dedicated host nodes.

[0109] Optionally, the device management device constructs a usage record management tree based on the shared host node and the exclusive host node, and generates a usage report by using the record management tree, as described in steps 4041 to 4045.

[0110] This invention, by elevating each connection event to a graph-structured topology, achieves a leap from point-like tracing of a single usage record to mesh analysis of a global device association network. This solves the problem of discrepancies between device ownership records and actual usage caused by the static binding of the host and the examination room, and improves the traceability accuracy of endoscope lifecycle management.

[0111] Optionally, the processes of steps 4041 to 4045 include: Step 4041: Traverse each endoscope node in the adjacency graph and check the associated host nodes connected to the endoscope node. If the number of associated host nodes is 1 and it is an exclusive host node, then divide the endoscope node and its connected host nodes into a single-branch topology unit. If the number of associated host nodes is greater than 1, or at least one associated host node is a shared host node, then divide the endoscope node and all its connected host nodes into a multi-branch cross-link topology unit.

[0112] Optionally, the device management device sequentially extracts each endoscope node from the node set of the adjacency graph as the currently traversed endoscope node. For the currently traversed endoscope node, all edges in the edge set of the adjacency graph are traversed, and all edges that connect to the currently traversed endoscope node at one end are selected. The identifier of the host node connected to the other end of each selected edge is extracted, and all extracted host node identifiers are summarized into a set of associated host nodes corresponding to the currently traversed endoscope node. Since the elements in the set are unique, the number of elements in the set of associated host nodes is the number of nodes that are different associated host nodes connected to the currently traversed endoscope node.

[0113] The device management unit performs topology type determination on the set of associated host nodes corresponding to the currently traversed endoscope node. The rules for topology type determination are as follows: When the number of associated host nodes is equal to 1, and the unique associated host node is determined to be an exclusive host node in step 403, the currently traversed endoscope node and the exclusive host node connected to it are divided into single-branch topology units.

[0114] In this context, a single-branch topology unit indicates that the endoscope terminal has only established a valid connection with one endoscope host terminal throughout the entire process, and the endoscope host terminal has only established a valid connection with the endoscope terminal. There is a one-to-one fixed pairing relationship between the two.

[0115] When the number of associated host nodes is greater than 1, or when the number of associated host nodes is equal to 1 but the unique associated host node is determined to be a shared host node in step 403, the currently traversed endoscope node and all its connected associated host nodes are divided into multiple cross-link topology units. Multiple cross-link topology units indicate that the endoscope terminal has established effective connections with multiple endoscope host terminals throughout the entire process, or that although the endoscope terminal has only established an effective connection with one endoscope host terminal, that endoscope host terminal is simultaneously shared by other endoscope terminals, indicating a many-to-many or many-to-one cross-use relationship.

[0116] The equipment management device performs the above-mentioned topology type determination process on each endoscope node in the adjacency graph, summarizes all single-branch topology units into a single-branch topology unit list, and summarizes all multi-branch cross-link topology units into a multi-branch cross-link topology unit list.

[0117] Step 4042: For each single-branch topology unit, create a single-branch tree branch with the exclusive host node as the parent node and the endoscope node as the child node. For each multi-branch cross-chain topology unit, create a multi-branch subtree with the shared pool node as the root node and each endoscope node in the multi-branch cross-chain topology unit as the leaf node connected to the shared pool node, to obtain the initial usage record management tree.

[0118] Optionally, the device management device creates an empty tree structure as the root of the initial usage record management tree. The initial usage record management tree is a hierarchical tree structure data, consisting of a root node, intermediate nodes, and leaf nodes. The nodes are connected by directed edges to establish parent-child relationships.

[0119] For each single-branch topology unit in the list of single-branch topology units obtained in step 4041, the following creation process is performed: A new intermediate node is created in the initial usage record management tree. This intermediate node uses the host node identifier of the exclusive host node in the single-branch topology unit as its node identifier, and serves as the parent node. A new leaf node is created below this parent node. This leaf node uses the endoscope terminal identifier information of the endoscope node in the single-branch topology unit as its node identifier, and serves as the child node. A directed connection edge is created between the parent node and the child node, pointing from the parent node to the child node. This directed connection edge is accompanied by an empty data list, used in subsequent steps to store usage information of connection events between the endoscope terminal and the endoscope host terminal corresponding to the exclusive host node. Through the above creation process, a single-branch tree branch is created for each single-branch topology unit. The single-branch tree branch consists of a parent node (exclusive host node), a child node (endoscope node), and a directed connection edge between them.

[0120] For each multi-branch cross-chain topology unit in the list of multi-branch cross-chain topology units obtained in step 4041, the following creation process is performed: A new intermediate node is created in the initial usage record management tree. This intermediate node uses the shared pool node as its node type identifier and serves as the root node. The shared pool node is an aggregation node used to manage all endoscope nodes involved in the multi-branch cross-chain topology unit under the same subtree structure. Each endoscope node in the multi-branch cross-chain topology unit is created as a leaf node, and each leaf node is connected to the shared pool node through a directed connection edge. Each directed connection edge is accompanied by an empty sub-data slot mapping table, which uses the host node identifier as the key and the sub-data slot as the value. The sub-data slot is a data list used to store usage information of the connection events between the endoscope terminal corresponding to the leaf node and the host node corresponding to the key. Through the above creation process, a multi-branch subtree is created for each multi-branch cross-chain topology unit. A multi-branch subtree consists of a root node (shared pool node), multiple leaf nodes (endoscopic nodes), and multiple directed edges connecting the root node and each leaf node.

[0121] The equipment management device uniformly attaches all single tree branches and multiple subtrees to the root of the initial usage record management tree, thus obtaining the initial usage record management tree.

[0122] Step 4043: Traverse each connection event in the connection event sequence and locate the leaf node of the endoscope node corresponding to the connection event in the initial usage record management tree.

[0123] Optionally, the device management device may sequentially extract one connection event from the connection event sequence as the currently traversed connection event and read the endoscope terminal identification information from the currently traversed connection event.

[0124] The device management unit performs a node lookup process in the initial usage record management tree. Starting from the root node of the initial usage record management tree, it traverses all child nodes level by level, searching for leaf nodes whose node identifiers match the endoscope terminal identifier information in the currently traversed connection events. When a matching leaf node identifier is found in a single branch of the tree, the parent node of that leaf node is the exclusive host node. When a matching leaf node identifier is found in multiple subtrees, the parent node of that leaf node is the shared pool node.

[0125] The device management unit records the found leaf node as the target leaf node corresponding to the currently traversed connection event, and records the parent node type of the target leaf node.

[0126] Step 4044: If the parent node of the leaf node is the host node, add the usage information of the connection event to the data list of the connection edge between the leaf node and the parent node. If the parent node of the leaf node is the shared pool node, find or create a child data slot with the host node as the key on the connection edge between the leaf node and the shared pool node, add the usage information of the connection event to the child data slot, and generate the target usage record management tree. The usage information includes the start time of usage, the end time of usage, and the duration of usage.

[0127] Optionally, the device management device performs the following determination and addition process for each located target leaf node: When the parent node of the target leaf node is a host node, it indicates that the target leaf node belongs to a single-branch tree and its parent node is an exclusive host node. The usage information of the connection event is added to the data list attached to the directed connection edge between the target leaf node and its parent node. The addition method is to append a new record to the end of the data list, which contains three fields: usage start time, usage end time, and usage duration. When the parent node of the target leaf node is a shared pool node, it indicates that the target leaf node belongs to a multi-branch subtree and its parent node is a shared pool node. The endoscope host terminal identification information in the connection event is read. The sub-data slot mapping table attached to the directed connection edge between the target leaf node and the shared pool node is obtained. The sub-data slot with the endoscope host terminal identification information as the key is searched in the sub-data slot mapping table.

[0128] If a sub-data slot with the endoscope host terminal identifier as the key already exists in the sub-data slot mapping table, the usage information of the connection event is added to the data list of that sub-data slot. This is done by appending a new record to the end of the data list, containing three fields: start time, end time, and duration. If a sub-data slot with the endoscope host terminal identifier as the key does not exist in the sub-data slot mapping table, a new sub-data slot is created in the sub-data slot mapping table, using the endoscope host terminal identifier as the key and a new empty data list as the value. The usage information of the connection event is then added to the data list of the newly created sub-data slot. This is done by appending a new record to the data list, containing three fields: start time, end time, and duration.

[0129] After the device management device performs the above-mentioned judgment and addition process for each connection event in the connection event sequence, the data list or sub-data slot mapping table of all directed connection edges in the initial usage record management tree has been filled with the corresponding usage information. The initial usage record management tree after filling in the usage information is determined as the target usage record management tree.

[0130] Step 4045: Generate a usage report based on the target usage record management tree.

[0131] Optionally, the device management device generates a usage report based on the target usage record management tree, as described in steps 40451 to 40454.

[0132] This invention transforms scattered, individual connection events into a structured hierarchical management tree, solving the problems of mixed usage records between exclusive and shared devices and the inability to accurately isolate and statistically analyze usage data from multiple hosts in a shared scenario caused by the flat storage of device usage data. This improves the statistical analysis accuracy of usage reports in endoscope lifecycle management, thereby enhancing the traceability accuracy of endoscope lifecycle management.

[0133] Optionally, the processes of steps 40451 to 40454 include: Step 40451: Traverse the leaf nodes in the target usage record management tree. For leaf nodes whose parent node is a host node, accumulate the usage duration and number of data entries on the incident edges of the leaf node to obtain the cumulative usage duration and usage frequency of the endoscope terminal. For the leaf node group whose parent node is a shared pool node, accumulate the cumulative usage duration of each leaf node in the leaf node group to obtain the total load duration of the shared pool.

[0134] Optionally, the device management device performs a depth-first traversal starting from the root node of the target usage record management tree, and visits each leaf node in the target usage record management tree in turn. For each currently visited leaf node, the type of the parent node of the leaf node is determined.

[0135] When the parent node of the currently accessed leaf node is a host node, it indicates that the leaf node belongs to a single-branch tree. The data list attached to the directed connection edge (i.e., the incident edge) between the leaf node and its parent node is read, and the total number of data entries in the statistical data list is used as the usage frequency of the endoscope terminal corresponding to the leaf node. Usage frequency represents the cumulative number of valid connection events between the endoscope terminal and its fixed host endoscope terminal throughout the entire process. Each data entry in the data list is traversed, and the value corresponding to the usage duration field in each data entry is read. The usage duration values ​​of all data entries are summed, and the sum is used as the cumulative usage duration of the endoscope terminal corresponding to the leaf node. Cumulative usage duration represents the sum of the usage durations of all valid connection events between the endoscope terminal and its fixed host endoscope terminal throughout the entire process. The device management device associates and records the endoscope terminal identification information of the leaf node, the node identification of the associated parent node (i.e., the host node identification of the exclusive host node), the cumulative usage duration, and the usage frequency.

[0136] When the parent node of the currently accessed leaf node is a shared pool node, it indicates that the leaf node belongs to multiple subtrees. All leaf nodes in the target usage record management tree whose parent node is the same shared pool node are grouped into a single leaf node group. A leaf node group is the set of all leaf nodes belonging to the same multiple subtree. For each leaf node in the leaf node group, the device management device performs the following cumulative calculation process: It reads all key-value pairs from the sub-data slot mapping table attached to the directed connection edge between the leaf node and the shared pool node. For each key-value pair, it reads the data list in the corresponding sub-data slot, counts the total number of data entries in the data list, and uses this total number as the usage frequency of the leaf node under the endoscope host terminal corresponding to that key. It iterates through each data entry in the data list, reads the value corresponding to the usage duration field in each data entry, sums the usage duration values ​​in all data entries, and uses the sum as the cumulative usage duration of the leaf node under the endoscope host terminal corresponding to that key. The device management unit performs a double summation of the cumulative usage time of the leaf node under all endoscope host terminals corresponding to the key, and uses the result of the double summation as the cumulative usage time of the leaf node. The cumulative usage time of the node represents the sum of the usage time of all valid connection events between the endoscope terminal corresponding to the leaf node and all associated endoscope host terminals throughout the entire process.

[0137] After obtaining the cumulative usage time of each leaf node in the leaf node group, the device management device sums up the cumulative usage time of all leaf nodes in the leaf node group, and uses the sum as the total shared pool load time corresponding to that shared pool node. The total shared pool load time represents the sum of the usage time of all valid connection events between all endoscope terminals and all associated endoscope host terminals within the multi-branch cross-link topology unit, reflecting the overall usage load of the shared device pool throughout the entire process.

[0138] The device management unit performs the above-mentioned cumulative calculation process on each leaf node in the target usage record management tree, summarizing the endoscope terminal identification information, the host node identification of the exclusive host node, the cumulative usage time, and the usage frequency of all leaf nodes whose parent node is a host node to form a single-branch statistical data set. It then sums the endoscope terminal identification information, the host node identification of each associated host node, the cumulative usage time and usage frequency under each associated host node, and the total load time of the shared pool for each leaf node in the group of leaf nodes whose parent node is a shared pool node to form a multi-branch statistical data set.

[0139] Step 40452: Based on the endoscope node corresponding to each single branch in the target usage record management tree, as well as the associated host node, cumulative usage time, and usage frequency, generate a single branch detail table.

[0140] Optionally, the device management unit filters all single-branch branches from the target usage record management tree. For each single-branch branch, it reads the node identifier of the parent node as the host node identifier of the exclusive host node, and reads the node identifier of the child node as the endoscope terminal identifier information of the endoscope node. It then searches the single-branch statistical data set obtained in step 40451 for the cumulative usage time and usage frequency corresponding to the endoscope terminal identifier information and the host node identifier of the exclusive host node.

[0141] The device management unit reads each data entry from the data list attached to the directed connection edge between the parent node and the child node in the single tree branch, and extracts the start time of use, end time of use, and duration of use from each data entry.

[0142] The device management unit combines the host node identifier of the exclusive host node, the endoscope terminal identifier information, the start time, end time, and duration of each data entry, as well as the cumulative usage duration and frequency obtained from the aggregation, to generate a single branch detail record. The single branch detail record is a single row in the single branch detail table, recording detailed usage information and aggregated statistics for each connection event of a fixed set of endoscope terminals and endoscope host terminals throughout the entire process.

[0143] The equipment management device sorts the detailed records of each branch of a tree in ascending order from the earliest to the latest time of use, generating a detailed list of each branch.

[0144] The single-branch detail table is a structured data table containing columns for endoscope terminal identification information, host node identification of exclusive host node, start time of use, end time of use, duration of use, cumulative duration of use, and frequency of use.

[0145] Step 40453: Based on the structural information of multiple subtrees in the target usage record management tree, as well as the cumulative usage time, usage frequency, and total load time of each leaf node in the shared pool, generate a multi-branch cross-chain topology view.

[0146] Optionally, the device management unit filters all subtrees from the target usage record management tree, and for each subtree, performs the following generation process: The device management unit reads the node type identifier of the shared pool node of the multi-branch subtree, uses the shared pool node as the central node of the multi-branch cross-chain topology view, and extracts the node identifiers of all leaf nodes from the multi-branch subtree as the endoscope terminal nodes in the multi-branch cross-chain topology view.

[0147] The device management unit traverses all key-value pairs in the subdata slot mapping table attached to the directed connection edge between each leaf node and the shared pool node in the multi-branch subtree. For each key-value pair, the key is read as the host node identifier of the associated endoscope host terminal, and a host terminal node with the host node identifier is created in the multi-branch cross-chain topology view.

[0148] The device management system creates two types of connection lines in the multi-branch cross-chain topology view: The first type of connection line is from the shared pool node to each endoscope terminal node, and this connection line indicates the cumulative usage time of the endoscope terminal node. The second type of connection line is from each endoscope terminal node to its associated host terminal nodes, and this connection line indicates the cumulative usage time and usage frequency of the endoscope terminal node under the corresponding host terminal node.

[0149] The device management unit marks the total load duration of the shared pool in the node attributes of the shared pool nodes.

[0150] The device management unit groups and summarizes the start time, end time, and duration of use of all data entries in the multi-branch subtree according to the endoscope terminal identification information and host node identification, generating a multi-branch cross-chain usage detail list, and attaching the multi-branch cross-chain usage detail list to the multi-branch cross-chain topology view. The multi-branch cross-chain usage detail list is a structured data table containing columns for endoscope terminal identification information, host node identification, start time, end time, and duration of use.

[0151] All multi-branch cross-link topology views corresponding to multiple subtrees are aggregated into a multi-branch cross-link topology view set. Each multi-branch cross-link topology view in the multi-branch cross-link topology view set graphically displays the cross-relationship between each endoscope terminal and each endoscope host terminal within a multi-branch cross-link topology unit, as well as the usage duration and usage frequency statistics of each connection line.

[0152] Step 40454: Combine the single-branch detail table and the multi-branch cross-chain topology view to obtain the usage report.

[0153] Optionally, the device management unit creates an empty usage report document. The usage report document is a structured data report file composed of multiple independent report sections. A single-branch detail table is written into the usage report document as its exclusive device usage detail section. Each multi-branch cross-chain topology view from the multi-branch cross-chain topology view set, along with its corresponding multi-branch cross-chain usage detail list, is written into the usage report document as its multi-branch cross-chain topology view section.

[0154] The equipment management device filters all abnormal association records from the usage association result list. For each abnormal association record, it reads the endoscope terminal identification information, endoscope host terminal identification information, usage start time, usage end time, usage duration, and abnormal reason from that record, and combines these fields to generate an abnormal event log entry. An abnormal event log entry is a single line of data in the abnormal event log, recording detailed information about an associated abnormal event and its abnormal reason.

[0155] The equipment management device sorts all abnormal event log entries in ascending order from the start time of use to the latest time, generates an abnormal event log, and writes the abnormal event log into the usage report document as the abnormal event log section of the usage report.

[0156] The equipment management device will output a usage report document, which includes a detailed list of exclusive equipment usage, a topology view of multiple cross-chains, and an anomaly event log, to the terminal display interface of the endoscopy center or store it in a database for subsequent querying and analysis.

[0157] This invention enables refined management of normal connection events by category and centralized recording and attribution of abnormal connection events. It provides analytical basis with topological visualization capabilities for cross-examination room allocation optimization and abnormal fault investigation in endoscopy centers. It solves the problems of mixed presentation of usage data of exclusive and shared equipment due to the lack of topological structure in usage reports, unintuitive equipment relationships, and the inability to archive and trace abnormal events in a unified manner with normal usage records. This improves the traceability accuracy of endoscope lifecycle management.

[0158] Furthermore, the endoscope end-process management device based on Bluetooth AoA positioning described below and the endoscope end-process management method based on Bluetooth AoA positioning described above can be referred to in correspondence.

[0159] Optionally, refer to Figure 2 , Figure 2 This is a schematic diagram of the endoscope end-process management device based on Bluetooth AoA positioning provided by the present invention. The endoscope end-process management device based on Bluetooth AoA positioning includes: The signal parsing module 210 parses the first CTE signal and the second CTE signal to obtain the first position coordinate sequence of the endoscope terminal and the second position coordinate sequence and pin level transition sequence of the endoscope host terminal. The connection status determination module 220 determines the spatial distance sequence between the endoscope terminal and the endoscope host terminal based on the first and second position coordinate sequences, and determines the physical connection status sequence between the endoscope terminal and the endoscope host terminal based on the spatial distance sequence and the maximum physical connection length corresponding to the endoscope terminal model. The status matching module 230 performs status matching within a time window based on the physical connection status sequence and the pin level transition sequence to obtain the usage association result of the endoscope terminal during this usage process. The full usage process management module 240 generates a usage report for the endoscope terminal based on the usage association result of the endoscope terminal throughout the entire process.

[0160] The embodiments of the present invention realize a non-intrusive, high-precision, automated association and binding between the endoscope and the endoscope host based on physical geometric constraints and electrical connection characteristics, thereby improving the traceability accuracy of the endoscope's entire life cycle management.

[0161] Please see Figure 3 , Figure 3 An embodiment diagram of an electronic device provided in accordance with the present invention. For example... Figure 3 As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it implements the processes of steps 10 to 40.

[0162] Please see Figure 4 , Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with an embodiment of the present invention is shown. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400 on which a computer program 311 is stored. When the computer program 311 is executed by a processor, it implements the processes of steps 10 to 40.

[0163] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium, and which, when executed by a processor, implements the processes of steps 10 to 40.

[0164] The above device embodiments are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0165] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for endoscopy end-to-end procedure management based on Bluetooth AoA positioning, characterized in that, Multiple Bluetooth AoA base stations are deployed in the central space of the endoscope; a first Bluetooth beacon is deployed in the endoscope terminal for sending a first CTE signal to the Bluetooth AoA base stations; a second Bluetooth beacon is deployed in the endoscope host terminal for sending a second CTE signal to the Bluetooth AoA base stations; the method includes: By analyzing the first CTE signal and the second CTE signal, the first position coordinate sequence of the endoscope terminal and the second position coordinate sequence and pin level transition sequence of the endoscope host terminal are obtained. Based on the first position coordinate sequence and the second position coordinate sequence, the spatial distance sequence between the endoscope terminal and the endoscope host terminal is determined, and based on the spatial distance sequence and the maximum physical connection length corresponding to the model of the endoscope terminal, the physical connection status sequence between the endoscope terminal and the endoscope host terminal is determined. Based on the physical connection state sequence and the pin level transition sequence, state matching is performed within a time window to obtain the usage association result of the endoscope terminal in this usage process. Based on the usage correlation results of the endoscope terminal throughout the entire process, an endoscope terminal usage report is generated.

2. The endoscope end-process management method based on Bluetooth AoA positioning according to claim 1, characterized in that, The steps involved in generating a usage report for an endoscope terminal include: Using the normal association records in the usage association results of each usage process as the target usage records, sort them according to the usage start time of each target usage record to obtain the connection event sequence; Using the endoscope terminal ID of each connection event in the connection event sequence as the endoscope node and the endoscope host terminal ID as the host node, and using the connection events that have occurred between the endoscope terminal and the endoscope host terminal as edges, construct an adjacency graph of the endoscope terminal and the endoscope host terminal. Traverse each host node in the adjacency graph, count the number of different endoscope nodes connected to the host node, and determine the host node with a number of nodes greater than 1 as a shared host node, and the host node with a number of nodes equal to 1 as an exclusive host node. Usage reports are generated based on shared host nodes and dedicated host nodes.

3. The endoscope end-process management method based on Bluetooth AoA positioning according to claim 2, characterized in that, The generation of usage reports based on shared host nodes and dedicated host nodes includes: Traverse each endoscope node in the adjacency graph and check the associated host nodes connected to the endoscope node. If the number of associated host nodes is 1 and it is an exclusive host node, then divide the endoscope node and its connected host nodes into a single-branch topology unit. If the number of associated host nodes is greater than 1, or at least one associated host node is a shared host node, then divide the endoscope node and all its connected host nodes into a multi-branch cross-chain topology unit. For each single-branch topology unit, a single-branch tree branch is created with the exclusive host node as the parent node and the endoscope node as the child node. For each multi-branch cross-chain topology unit, a multi-subtree is created with the shared pool node as the root node and each endoscope node in the multi-branch cross-chain topology unit as the leaf node connected to the shared pool node, thus obtaining the initial usage record management tree. Traverse each connection event in the sequence of connection events and locate the leaf node of the endoscope node corresponding to the connection event in the initial usage record management tree; If the parent node of a leaf node is a host node, the usage information of the connection event is added to the data list of the connection edge between the leaf node and the parent node. If the parent node of a leaf node is a shared pool node, a child data slot with the host node as the key is found or created on the connection edge between the leaf node and the shared pool node, the usage information of the connection event is added to the child data slot, and the target usage record management tree is generated. The usage report is generated based on the target usage record management tree.

4. The endoscope end-process management method based on Bluetooth AoA positioning according to claim 3, characterized in that, The process of generating the usage report based on the target usage record management tree includes: Traverse each leaf node in the target usage record management tree. For leaf nodes whose parent node is a host node, accumulate the usage duration and number of data entries on the incident edge of the leaf node to obtain the cumulative usage duration and usage frequency of the endoscope terminal. For leaf node groups whose parent node is a shared pool node, accumulate the cumulative usage duration of each leaf node in the leaf node group to obtain the total load duration of the shared pool. Based on the endoscope node corresponding to each single branch in the target usage record management tree, as well as the associated host node, cumulative usage time, and usage frequency, a single branch detail table is generated. Based on the structural information of multiple subtrees in the target usage record management tree, as well as the cumulative usage time, usage frequency, and total load time of each leaf node in the shared pool, a multi-branch cross-chain topology view is generated. The usage report is obtained by combining a single-branch detail table and a multi-branch cross-chain topology view.

5. The endoscope end-process management method based on Bluetooth AoA positioning according to claim 1, characterized in that, The steps to obtain the usage correlation results of the endoscope terminal in this usage process include: The time period in the physical connection state sequence that is in the connection state is taken as the first target time period. Based on the physical connection start time and physical connection end time of each first target time period, the effective time interval of the physical connection is determined. The time period in the pin level state sequence that is in the electrical connection level state is taken as the second target time period. Based on the electrical conduction start time and electrical conduction end time of each second target time period, the effective electrical conduction time interval is determined. Traverse each physical connection time interval, take the electrical conduction time interval that overlaps with the physical connection time interval as the target time interval, and take the larger start time of each physical connection time interval and the target time interval as the intersection start time and the smaller end time as the intersection end time. If the start time of the intersection is earlier than the end time of the intersection, an initial spatiotemporal overlap time interval is generated, and matching is performed based on the duration of each initial spatiotemporal overlap time interval to obtain the association result.

6. The endoscope end-process management method based on Bluetooth AoA positioning according to claim 5, characterized in that, The matching based on the duration of each initial spatiotemporal overlap time interval to obtain the association result includes: Traverse each initial spatiotemporal overlap time interval. If the duration is less than the preset minimum signal recognition time, remove the initial spatiotemporal overlap time interval. If the duration is greater than or equal to the preset minimum signal recognition time, retain the initial spatiotemporal overlap time interval as the first target spatiotemporal overlap time interval. The time intervals of spatiotemporal overlap of each first target are sorted according to the chronological order to obtain the sorted time intervals of spatiotemporal overlap. Traverse the two adjacent first target spatiotemporal overlap time intervals in the sorted spatiotemporal overlap time intervals. If the time interval between the two adjacent first target spatiotemporal overlap time intervals is less than the preset operation interruption tolerance time, and the endoscope terminal IDs of the associated endoscope terminals of the two adjacent first target spatiotemporal overlap time intervals are the same, then merge the two adjacent first target spatiotemporal overlap time intervals to obtain the second target spatiotemporal overlap time interval. Otherwise, keep the two adjacent first target spatiotemporal overlap time intervals independent to obtain the usage process interval. The start time of the second target spatiotemporal overlap time interval is the start time of the previous first target spatiotemporal overlap time interval, and the end time is the end time of the next first target spatiotemporal overlap time interval. The usage association result is obtained by matching the second location information sequence of the endoscope host terminal that has been parsed within each usage process interval.

7. The endoscope end-process management method based on Bluetooth AoA positioning according to claim 6, characterized in that, The matching based on the second location information sequence of the endoscope host terminal parsed within each usage interval to obtain the usage association result includes: Based on each usage process interval and the endoscope terminal ID in the first position coordinate sequence of the endoscope terminal corresponding to the start time of each usage process interval, the target usage process record is obtained by association and binding. Then, each target usage process record is traversed, and the second position information sequence of the endoscope host terminal that has been parsed within the time period corresponding to the target usage process record is checked. If the second location information sequence is not empty and contains at least one location coordinate within the preset endoscope center working area, then a normal association record is generated based on the target usage process record; the normal association record includes at least usage record information, which includes at least the endoscope terminal ID, endoscope host terminal ID, usage start time, usage end time, and usage duration; If the second location information sequence is empty or the location coordinates in the second location information sequence are all outside the preset endoscope center working area, the connection is determined to be invalid, and an abnormal association record is generated based on the target usage process record; the abnormal association record includes at least usage record information and the reason for the abnormality; The usage association result is determined based on the normal association records and the abnormal association records.

8. An endoscope end-process management device based on Bluetooth AoA positioning, characterized in that, The device is used to implement the endoscope end-process management method based on Bluetooth AoA positioning as described in any one of claims 1 to 7; the endoscope end-process management device based on Bluetooth AoA positioning includes: The signal parsing module is used to parse the first CTE signal and the second CTE signal to obtain the first position coordinate sequence of the endoscope terminal and the second position coordinate sequence and pin level transition sequence of the endoscope host terminal. The connection status determination module is used to determine the spatial distance sequence between the endoscope terminal and the endoscope host terminal based on the first position coordinate sequence and the second position coordinate sequence, and to determine the physical connection status sequence between the endoscope terminal and the endoscope host terminal based on the spatial distance sequence and the maximum physical connection length corresponding to the model of the endoscope terminal. The state matching module is used to perform state matching within a time window based on the physical connection state sequence and the pin level transition sequence to obtain the usage association result of the endoscope terminal in this usage process. The full usage process management module is used to generate endoscope terminal usage reports based on the usage correlation results of the endoscope terminal throughout the entire process.

9. An electronic device, comprising: A memory for storing a computer program; a processor for reading and executing the computer program, characterized in that, when the processor executes the computer program, it implements the endoscope full-process management method based on Bluetooth AoA positioning as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the endoscope full-process management method based on Bluetooth AoA positioning as described in any one of claims 1 to 7.