Collision detection method and device of medical system, medical system and computer readable storage medium
By determining the reference line and collision detection cross-section in the target object envelope surface in medical equipment, combined with the comparison of preset boundary profiles, the problem of distance sensor affecting the work of equipment in traditional technology is solved, and the collision of infection-free equipment is achieved Testing improves detection accuracy and safety.
Patent Information
- Application Number
- CN202411198212.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-28
AI Technical Summary
In existing medical equipment, collision detection in the housing cavity requires a distance sensor to be set to affect the normal operation of the equipment, and the sensor accuracy is reduced or damaged in a high magnetic field and radiation environment, making it difficult to effectively avoid collisions.
By determining the detection point on the envelope surface of the target object, determining the reference line and collision detection cross-section based on the detection point, and combining with the comparison of preset boundary contours, we can judge whether a collision occurs, without the need to set an additional distance sensor.
It realizes collision detection without affecting the normal operation of the equipment in medical equipment, avoids damage to the equipment by sensors, and improves the accuracy and safety of collision detection.
Smart Images

Figure CN119055375A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical system control technology, and in particular to a collision detection method and device for a medical system, a medical system, and a computer-readable storage medium. Background Art
[0002] With the continuous advancement of technology, a variety of medical devices with cavities have emerged to provide patients with high-precision, real-time guided non-invasive diagnosis and treatment solutions. However, due to the hardware structure of medical devices, patients and medical beds must always be in the cavities of medical devices, rather than in free and open spaces. Therefore, it is particularly important to avoid collisions in the cavities during diagnosis and treatment.
[0003] In the conventional technology, a distance sensor is arranged on the inner wall of the accommodating cavity to directly detect and warn of the collision. However, since the distance sensor is arranged within the working range of the medical device, it will affect the normal operation of the medical device. Summary of the invention
[0004] Based on this, it is necessary to provide a collision detection method, device, medical system and computer-readable storage medium for the medical system that can prevent the normal operation of the medical equipment from being affected in order to solve the above technical problems.
[0005] In a first aspect, the present application provides a collision detection method for a medical system, the medical system comprising: a medical device and a medical bed, the medical device being provided with a receiving cavity, the medical bed having a bed board capable of moving in the receiving cavity;
[0006] The method comprises: determining a target object; obtaining a target object detection point; the target object detection point is on an envelope surface of the target object; determining a target object reference line based on the target object detection point; wherein the target object reference line is parallel to the bed board and passes through the target object detection point; obtaining a target object collision detection section; wherein the target object collision detection section is perpendicular to the axis of the accommodating cavity; determining a target object collision detection point based on an intersection of the target object reference line and the target object collision detection section; and determining whether a collision occurs according to a positional relationship between the target object collision detection point and a preset boundary contour.
[0007] In some embodiments, the target object includes the object to be detected and / or the bed board.
[0008] In some embodiments, when the target object is the object to be measured and the bed board, the target object envelope surface is a fused envelope surface obtained by fusion of the envelope surface of the object to be measured and the envelope surface of the bed board.
[0009] In some embodiments, determining the target object reference line based on the target object detection point includes: obtaining relative position information of the target object detection point relative to the bed board; obtaining posture information of the bed board relative to the medical device; performing coordinate transformation on the relative position information based on the posture information to obtain absolute position information of the target object detection point relative to the medical device; and determining the target object reference line based on the absolute position information.
[0010] In some embodiments, the target object collision detection section includes a section tangent to an end surface of an envelope surface of the target object and / or a section tangent to an end surface of the accommodating cavity.
[0011] In some embodiments, the step of determining whether a collision occurs based on the positional relationship between the target object collision detection point and a preset boundary contour includes: if the target object collision detection point exceeds the preset boundary contour, determining that a collision occurs; if the target object collision detection point is within the preset boundary contour, determining that no collision occurs.
[0012] In some embodiments, the preset boundary contour is in the target object collision detection section, and the preset boundary contour is smaller than the boundary contour between the accommodating cavity and the target object collision detection section.
[0013] In a second aspect, the present application provides a collision detection device for a medical system. The medical system comprises: a medical device and a medical bed, the medical device is provided with a receiving cavity, and the medical bed has a bed board capable of moving in the receiving cavity;
[0014] The collision detection device includes: an object determination module, which is used to determine the target object; a detection point determination module, which is used to obtain the target object detection point; the target object detection point is on the target object envelope surface; a reference line determination module, which is used to determine the target object reference line based on the target object detection point; wherein the target object reference line is parallel to the bed board and passes through the target object detection point; a detection section determination module, which is used to obtain the target object collision detection section; wherein the target object collision detection section is perpendicular to the axis of the accommodating cavity; a detection point determination module, which is used to determine the target object collision detection point based on the intersection of the target object reference line and the target object collision detection section; and a collision detection module, which is used to determine whether a collision occurs according to the positional relationship between the target object collision detection point and a preset boundary contour.
[0015] In the third aspect, the present application also provides a medical system, which includes: a medical device and a medical bed, wherein the medical device is provided with a receiving cavity, the medical bed has a bed board capable of moving in the receiving cavity, and the bed board is used to carry an object to be tested, the medical system also includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the collision detection method of the medical system described in the embodiment of the first aspect are implemented.
[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the medical system collision detection method described in the first aspect of the embodiment.
[0017] The collision detection method, device, medical system and computer-readable storage medium of the medical system described above determine the target object reference line by detecting the target object point on the target object envelope surface, and then determine the target object collision detection point by combining the preset target object collision detection section. The target object collision detection point can represent the position of the target object reference line in the target object collision detection section. Finally, the positional relationship between the target object collision detection point and the preset boundary contour is compared to determine whether the target object will collide with the accommodating cavity. The present application performs collision detection by comparing the positional relationship between the target object collision detection point and the preset boundary contour, without the need to additionally set up a distance sensor, thereby avoiding affecting the normal operation of the medical device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of the structure of a medical system in some embodiments of the present application;
[0019] Figure 2 A schematic flow chart of a collision detection method when the target object is an object to be detected in some embodiments of the present application;
[0020] Figure 3 A schematic diagram of a reference line of an object to be measured in some embodiments of the present application;
[0021] Figure 4 A schematic diagram of detection points of an object to be detected in some embodiments of the present application;
[0022] Figure 5 A schematic diagram of a collision detection point of an object to be detected and a preset boundary contour in some embodiments of the present application;
[0023] Figure 6 Schematic diagram of collision detection points of an object to be detected and a preset boundary contour in some other embodiments of the present application;
[0024] Figure 7A schematic diagram of a process for determining a reference line of an object to be measured in some embodiments of the present application;
[0025] Figure 8 A schematic diagram of a coordinate system of an envelope surface of an object to be measured in some embodiments of the present application;
[0026] Fig. 9 A schematic diagram of a collision detection cross section of an object to be detected in some embodiments of the present application;
[0027] Fig.10 Schematic diagram of a collision detection cross section of an object to be detected in some other embodiments of the present application;
[0028] Fig.11 A schematic flow chart of a collision detection method when the target object is a bed board in some embodiments of the present application;
[0029] Fig.12 A schematic diagram of a bed board reference line in some embodiments of the present application;
[0030] Fig.13 A schematic diagram of bed board detection points in some embodiments of the present application;
[0031] Fig.14 A schematic diagram of a bed board collision detection point and a preset boundary contour in some embodiments of the present application;
[0032] Fig.15 Schematic diagram of bed board collision detection points and preset boundary contours in other embodiments of the present application;
[0033] Fig.16 A schematic diagram of a process for determining a bed board reference line in some embodiments of the present application;
[0034] Fig.17 A schematic diagram of a coordinate system of a bed board envelope surface in some embodiments of the present application;
[0035] Fig.18 A schematic flow chart of a collision detection method when the target object is an object to be detected and a bed board in some embodiments of the present application;
[0036] Fig.19 A schematic diagram of fusing collision detection points with preset boundary contours in some embodiments of the present application;
[0037] Fig. 20 A schematic diagram of fusing collision detection points with preset boundary contours in other embodiments of the present application;
[0038] Fig.21 A schematic diagram of a process for determining a fusion reference line in some embodiments of the present application;
[0039] Fig. 22A schematic diagram of a fused collision detection section in some embodiments of the present application;
[0040] Fig.23 A schematic diagram of fused collision detection sections in other embodiments of the present application;
[0041] Fig.24 A schematic diagram of a module of a collision detection device in some embodiments of the present application;
[0042] Description of reference numerals:
[0043] Medical equipment 110, accommodating cavity 111, medical bed 120, bed board 121, detection point 131 of the object to be measured, envelope surface 132 of the object to be measured, reference line 133 of the object to be measured, collision detection section 134 of the object to be measured, preset boundary contour 135, first detection section 136, second detection section 137, third detection section 138, fourth detection section 139, bed board detection point 141, bed board envelope surface 142, bed board reference line 143, bed board collision detection section 144, fused envelope surface 151, fused collision detection section 152. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The collision detection method of the medical system provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. The medical system includes: a medical device 110 and a medical bed 120, the medical device 110 is provided with a receiving cavity 111, and the medical bed 120 has a bed board 121 that can move in the receiving cavity 111. The medical device 110 is a medical device 110 with a receiving cavity 111 of a specific size and suitable for a specific medical scene. It is widely used in multiple medical fields such as radiotherapy, imaging diagnosis, and physical therapy. For example, CT (Computed Tomography, electronic computer tomography) equipment, MRI (Magnetic Resonance Imaging, magnetic resonance imaging) equipment, PET-MR (Positron Emission Tomography-Magnetic Resonance, positron emission computed tomography) equipment, etc. The bed board 121 in the medical bed 120 can move freely in the receiving cavity 111 under the control of the moving component. For example, the bed board 121 can move forward and backward, up and down, left and right, pitch, yaw, roll, etc. relative to the receiving cavity 111. By adjusting the posture of the bed board 121 , the lesion of the object to be detected on the bed board 121 can be aligned with the detector or treatment device of the medical device 110 , thereby improving the accuracy of the detection result or the precision of the treatment.
[0046] However, as described in the background art, when the medical device 110 is working, the object to be tested and the bed board 121 need to be in the accommodating chamber 111, rather than in a free and open space. During the movement of the bed board 121, the object to be tested or the bed board 121 may collide with the inner wall of the accommodating chamber 111, thereby causing damage to the medical device 110. When a distance sensor is set on the inner wall of the accommodating chamber 111, the object to be tested or the bed board 121 to detect the collision, the distance sensor will affect the normal operation of the medical device 110, and the high magnetic field and radiation environment of the medical device 110 will also affect the accuracy of the distance sensor, and even cause damage to the distance sensor.
[0047] Based on this, the present application proposes a collision detection method, device, medical system and computer-readable storage medium for a medical system, which can detect the collision of the accommodating cavity 111 in the medical device 110 without setting up additional physical sensors, and will not affect the normal operation of the medical device 110.
[0048] Since the bed board 121 in different medical systems has different types of movement, when the object to be detected is located on the bed board 121 and the bed board 121 moves in the accommodating cavity 111, there may be situations where only the object to be detected collides with the accommodating cavity 111, only the bed board 121 collides with the accommodating cavity 111, or both the object to be detected and the bed board 121 collide with the accommodating cavity 111. For situations where different collisions may occur, the determination of the target object during collision detection is different, and the target object includes: the object to be detected and / or the bed board 121.
[0049] In one embodiment, Figure 2 As shown, a collision detection method for a medical system is provided, which is described by taking a target object as an object to be detected as an example, and includes the following steps:
[0050] Step S210, determining that the target object is an object to be tested.
[0051] Specifically, when the bed board 121 of this embodiment moves in the accommodating cavity 111, there is only a situation where the object to be tested located on the bed board 121 collides with the accommodating cavity 111. When determining the target object, the medical system determines that the target object is the object to be tested based on the type of medical equipment 110 and / or medical bed 120. The object to be tested is a human body, an animal body or a water model, etc. located on the bed board 121.
[0052] Step S220, obtaining detection points of the object to be detected.
[0053] Specifically, after the medical system determines the target object, it obtains the target object detection point, and the target object detection point is on the target object envelope surface. Figure 3 As shown, when it is determined that the target object is the object to be measured, the acquired target object detection point is the object to be measured detection point 131 , and the object to be measured detection point 131 is on the envelope surface 132 of the object to be measured.
[0054] The envelope surface 132 of the object to be measured is used to indicate the size of the space occupied by the object to be measured in the accommodating cavity 111. The envelope surface 132 of the object to be measured completely covers the object to be measured and may be greater than or equal to the object to be measured, so as to provide redundancy for collision detection of the object to be measured. In some embodiments, the envelope surface 132 of the object to be measured is set as a cylinder. In some other embodiments, when the object to be measured is a human body, since the width of the human shoulder is greater than the height of the chest cavity, the envelope surface 132 of the object to be measured is set as an elliptical cylinder. When determining the envelope surface 132 of the object to be measured, the medical system can determine the specific size range of the envelope surface 132 of the object to be measured according to parameters such as the height and chest circumference of the human body.
[0055] After determining the envelope surface 132 of the object to be tested, the detection point 131 of the object to be tested is obtained on the envelope surface 132 of the object to be tested. The detection point 131 of the object to be tested is the position on the envelope surface 132 of the object to be tested that is most likely to collide with the accommodating cavity 111, which can be obtained by presetting. Figure 4 As shown, the envelope surface 132 of the object to be tested is set as an elliptical cylinder, and the envelope surface 132 of the object to be tested does not completely cover the bed plate 121. The detection points p1 to p13 of the object to be tested 131 are all set on a cross section perpendicular to the axis of the elliptical cylinder. Since the bottom of the envelope surface 132 of the object to be tested is the bed plate 121, the detection points 131 of the object to be tested are not set near the bottom. Since the probability of left and right collision of the object to be tested is relatively large, the detection points 131 of the object to be tested are set more densely at the position with a small radius of curvature. Through this setting, it is possible to detect whether the object to be tested collides with the accommodating cavity 111 through subsequent steps. It can be understood that the more the number of detection points 131 of the object to be tested is, the higher the accuracy of the collision detection of the object to be tested is, but at the same time, the amount of calculation during collision detection is also greater.
[0056] Step S230: determining a reference line of the object to be measured based on the detection points of the object to be measured.
[0057] Specifically, after the medical system determines the target object detection point, it determines the target object reference line based on the target object detection point. The target object reference line is parallel to the bed board 121 and passes through the target object detection point. Figure 3 As shown, when the target object is determined to be the object to be detected, the target object reference line determined based on the object detection point 131 is the object to be detected reference line 133 , and the object to be detected reference line 133 is parallel to the bed board 121 and passes through the object detection point 131 .
[0058] When determining the reference line 133 of the object to be measured, since the position of the detection point 131 of the object to be measured on the envelope surface 132 of the object to be measured is determined, and the position of the envelope surface 132 of the object to be measured relative to the bed board 121 is determined, the reference line 133 of the object to be measured can be determined by calculating a straight line parallel to the bed board 121 and passing through the detection point 131 of the object to be measured.
[0059] Step S240, obtaining a collision detection cross section of the object to be detected.
[0060] Specifically, the medical system will also obtain the target object collision detection cross section, the target object collision detection cross section is perpendicular to the axis of the accommodating cavity 111, and the target object collision detection cross section is at least tangent to one end surface of the target object envelope surface. Figure 3As shown, when the target object is determined to be the object to be measured, the obtained collision detection section of the target object is the collision detection section 134 of the object to be measured, and the collision detection section 134 of the object to be measured is perpendicular to the axis of the accommodating cavity 111, and the collision detection section 134 of the object to be measured is tangent to at least one end face of the envelope surface 132 of the object to be measured.
[0061] The medical system can determine the specific position of the collision detection section 134 of the object to be detected according to the position of the envelope surface 132 of the object to be detected in the accommodating cavity 111. It can be understood that since the collision detection section 134 of the object to be detected is perpendicular to the axis of the accommodating cavity 111, and one end surface of the envelope surface 132 of the object to be detected is not necessarily perpendicular to the axis of the accommodating cavity 111, the collision detection section 134 of the object to be detected can pass through the envelope surface 132 of the object to be detected.
[0062] Step S250: determining a collision detection point of the object to be detected based on an intersection of the reference line of the object to be detected and a collision detection section of the object to be detected.
[0063] Specifically, after determining the target object reference line and the target object collision detection section, the medical system will determine the target object collision detection point based on the intersection of the target object reference line and the target object collision detection section. When the target object is determined to be the object to be measured, the medical system will determine the object to be measured collision detection point based on the intersection of the object to be measured reference line 133 and the object to be measured collision detection section 134.
[0064] When the position of the reference line 133 of the object to be measured relative to the accommodating cavity 111 is determined, and the position of the collision detection section 134 of the object to be measured relative to the accommodating cavity 111 is determined, the intersection position of the reference line 133 of the object to be measured and the collision detection section 134 of the object to be measured can be determined, that is, the collision detection point of the object to be measured can be determined.
[0065] Step S260, determining whether a collision occurs based on the positional relationship between the collision detection point of the object to be detected and the preset boundary contour.
[0066] Specifically, after determining the collision detection point of the target object, the medical system will determine whether a collision occurs based on the positional relationship between the collision detection point of the target object and the preset boundary contour 135. When the target object is determined to be the object to be measured, the medical system will determine whether a collision occurs based on the positional relationship between the collision detection point of the object to be measured and the preset boundary contour 135.
[0067] The preset boundary contour 135 is determined by the inner diameter of the accommodating cavity 111. In order to ensure the redundancy of the collision detection of the object to be detected, the preset boundary contour 135 can be smaller than the inner diameter of the accommodating cavity 111, that is, the preset boundary contour 135 is smaller than the boundary contour of the accommodating cavity 111 and the collision detection section 134 of the object to be detected. The preset boundary contour 135 is in the collision detection section 134 of the object to be detected, and the collision detection point of the object to be detected is also in the collision detection section 134 of the object to be detected. According to the positional relationship between the collision detection point of the object to be detected and the preset boundary contour 135, it can be determined whether the object to be detected collides with the accommodating cavity 111. In some embodiments, if the collision detection point of the object to be detected exceeds the preset boundary contour 135, it is determined that a collision occurs; if the collision detection point of the object to be detected is within the preset boundary contour 135, it is determined that no collision occurs.
[0068] Specific examples, such as Figure 5 As shown in some embodiments Figure 4 The intersection of the object reference line 133 determined by p1 to p13 in the object detection points 131 and the object collision detection section 134, that is, the object collision detection points are Q1 to Q13. Since there is no object collision detection point beyond the preset boundary contour 135, it is determined that the object does not collide with the accommodating cavity 111. Figure 6 As shown, Figure 4 The intersections of the object reference line 133 determined by p1 to p13 in the object detection points 131 of the embodiment and the object collision detection section 134, namely the object collision detection points Q1 to Q13, and the object collision detection points Q3 to Q5 exceed the preset boundary contour 135, and therefore, it is determined that the object to be tested collides with the accommodating cavity 111. In some embodiments, when it is detected that the object to be tested collides with the accommodating cavity 111, the medical system can restrict the bed board 121 from continuing to move.
[0069] In the above-mentioned collision detection method of the medical system, when the target object is the object to be detected, the reference line 133 of the object to be detected is determined by the detection point 131 of the object to be detected on the envelope surface 132 of the object to be detected, and then the collision detection point of the object to be detected is determined by combining the preset collision detection section 134 of the object to be detected. The collision detection point of the object to be detected can represent the position of the reference line 133 of the object to be detected in the collision detection section 134 of the object to be detected. Finally, the positional relationship between the collision detection point of the object to be detected and the preset boundary contour 135 is compared to determine whether the object to be detected will collide with the accommodating cavity 111. In this embodiment, collision detection is performed by comparing the positional relationship between the collision detection point of the object to be detected and the preset boundary contour 135, without the need to set up an additional distance sensor, thereby avoiding affecting the normal operation of the medical device 110.
[0070] In one embodiment, Figure 7 As shown, when the target object is an object to be detected, in step S230, determining a reference line of the object to be detected based on the detection points of the object to be detected includes:
[0071] Step S231, obtaining the relative position information of the detection point of the object to be detected relative to the bed board.
[0072] Specifically, the position of the detection point 131 of the object to be detected on the envelope surface 132 of the object to be detected is determined. When the relative position of the envelope surface 132 of the object to be detected and the bed board 121 is determined, the relative position information of the detection point 131 of the object to be detected relative to the bed board 121 can be determined. For example, Figure 8 As shown, assuming that the coordinate system of the envelope surface 132 of the object to be measured is C, and the coordinate system of the bed board 121 is B, when obtaining the detection point 131 of the object to be measured, what is obtained is the position of the detection point 131 of the object to be measured in the coordinate system C. Since the relative position of the coordinate system C and the coordinate system B is also determined, the position of the detection point 131 of the object to be measured in the coordinate system C can be converted into the position of the detection point 131 of the object to be measured in the coordinate system B through coordinate conversion, thereby obtaining the relative position information of the detection point 131 of the object to be measured relative to the bed board 121.
[0073] Step S232, obtaining the posture information of the bed board relative to the medical device.
[0074] Specifically, when obtaining the posture information of the bed board 121, it can be obtained by calculation according to the posture feedback device of the medical bed 120. Through the posture information of the bed board 121, the current position of the bed board 121 relative to the medical device 110 can be determined. For a specific example, let the coordinate system of the medical device 110 be A. Since the bed board 121 can move freely in the accommodating cavity 111, the displacement of the bed board 121 on the three axes of X, Y, and Z and the angular deflection of the bed board 121 can be known, that is, the posture information of the bed board 121 relative to the medical device 110, which is recorded as (pitch, roll, yaw, x, y, z) A , where pitch is the pitch angle, roll is the rotation angle, and yaw is the yaw angle.
[0075] Step S233, coordinate transformation is performed on the relative position information based on the posture information to obtain the absolute position information of the detection point of the object to be measured relative to the medical device.
[0076] Specifically, after obtaining the posture information of the bed board 121 relative to the medical device 110, coordinate transformation is performed on the relative position information of the detection point 131 of the object to be measured relative to the bed board 121 through the posture information, so as to map the position information relative to the bed board 121 to the position information relative to the medical device 110, thereby obtaining the absolute position information of the detection point 131 of the object to be measured relative to the medical device 110. For example, after obtaining the current posture information of the bed board 121 relative to the medical device 110, the coordinate transformation matrix of the coordinate system B of the bed board 121 relative to the coordinate system A of the medical device 110 can be determined, and the relative position information can be transformed through the coordinate transformation matrix, so that the relative position information of the detection point 131 of the object to be measured in the coordinate system B can be converted into the absolute position information of the detection point 131 of the object to be measured in the coordinate system A. The calculation method of the coordinate transformation can be calculated by trigonometric functions, Euler angles, quaternions, etc.
[0077] Step S234: determining a reference line of the object to be measured based on the absolute position information.
[0078] Specifically, after obtaining the absolute position information of the detection point 131 of the object to be measured relative to the medical device 110, the reference line 133 of the object to be measured can be determined according to the positional relationship between the reference line 133 of the object to be measured and the bed board 121. In a specific example, the absolute position information is the position information of the detection point 131 of the object to be measured in the coordinate system A. When determining the reference line 133 of the object to be measured that is parallel to the bed board 121 and passes through the detection point 131 of the object to be measured, the position information of the reference line 133 of the object to be measured obtained is also the position information in the coordinate system A. Through the coordinate transformation step of this embodiment, the position information in different coordinate systems can be unified, which is convenient for the subsequent calculation step of determining the collision detection point of the object to be measured.
[0079] In one embodiment, when the target object is an object to be measured, in step S240, a collision detection section of the object to be measured is obtained, including: when the envelope surface 132 of the object to be measured is entirely located within the accommodating cavity 111, the first detection section 136 and the second detection section 137 are used as the collision detection section 134 of the object to be measured; wherein the first detection section 136 is tangent to one end face of the envelope surface 132 of the object to be measured, and the second detection section 137 is tangent to the other end face of the envelope surface 132 of the object to be measured.
[0080] Specifically, Fig. 9As shown, the moving mechanism on the medical bed 120 can change the position of the object to be tested, and accordingly, the position of the envelope surface 132 of the object to be tested relative to the accommodating cavity 111 will also change. When the medical device 110 detects that the envelope surface 132 of the object to be tested is entirely located in the accommodating cavity 111, the two end faces of the envelope surface 132 of the object to be tested may collide with the accommodating cavity 111. Therefore, a first detection section 136 tangent to one end face of the envelope surface 132 of the object to be tested is set, and a second detection section 137 tangent to the other end face of the envelope surface 132 of the object to be tested is set. When performing collision detection of the object to be tested, the reference line 133 of the object to be tested will generate collision detection points of the object to be tested on the first detection section 136 and the second detection section 137, respectively. At the same time, preset boundary contours 135 are respectively set on the first detection section 136 and the second detection section 137. When the collision detection point of the object to be tested on any detection section exceeds the preset boundary contour 135, it can be determined that the corresponding end face of the envelope surface 132 of the object to be tested has collided.
[0081] In one embodiment, when the target object is an object to be measured, in step S240, a collision detection section of the object to be measured is obtained, including: when the envelope surface 132 of the object to be measured is partially located in the accommodating cavity 111, the third detection section 138 and the fourth detection section 139 are used as the collision detection section 134 of the object to be measured; wherein, the third detection section 138 is tangent to the first detection end face of the accommodating cavity 111, the fourth detection section 139 is tangent to the second detection end face of the envelope surface 132 of the object to be measured, the first detection end face of the accommodating cavity 111 is the end face passing through the envelope surface 132 of the object to be measured, and the second detection end face of the envelope surface 132 of the object to be measured is the end face located in the accommodating cavity 111.
[0082] Specifically, Fig.10 As shown, the moving mechanism on the medical bed 120 can change the position of the object to be tested, and accordingly, the position of the envelope surface 132 of the object to be tested relative to the accommodating cavity 111 will also change. When the medical device 110 detects that the envelope surface 132 of the object to be tested is partially located in the accommodating cavity 111, one end surface and side surface of the envelope surface 132 of the object to be tested may collide with the accommodating cavity 111. Therefore, a third detection section 138 tangent to the first detection end surface of the accommodating cavity 111 is set, and a fourth detection section 139 tangent to the second detection end surface of the envelope surface 132 of the object to be tested is set. When performing collision detection of the object to be tested, the reference line 133 of the object to be tested will generate collision detection points of the object to be tested on the third detection section 138 and the fourth detection section 139 respectively. At the same time, the third detection section 138 and the fourth detection section 139 are respectively provided with preset boundary contours 135. When the collision detection point of the object to be tested on any detection section exceeds the preset boundary contour 135, it can be determined that the corresponding envelope surface 132 of the object to be tested has collided.
[0083] In one embodiment, Fig.11 As shown, a collision detection method for a medical system is provided, which is described by taking the target object as a bed board 121 as an example, and includes the following steps:
[0084] Step S310, determining that the target object is a bed board.
[0085] Specifically, when the bed board 121 of this embodiment moves in the accommodating cavity 111, there is only a situation where the bed board 121 collides with the accommodating cavity 111. When determining the target object, the medical system determines that the target object is the bed board 121 based on the type of the medical device 110 and / or the medical bed 120.
[0086] Step S320, obtaining bed board detection points.
[0087] Specifically, after the medical system determines the target object, it obtains the target object detection point, and the target object detection point is on the target object envelope surface. Fig.12 As shown, when it is determined that the target object is the bed board 121 , the acquired target object detection point is the bed board detection point 141 , and the bed board detection point 141 is on the bed board envelope surface 142 .
[0088] The bed board envelope surface 142 is used to indicate the size of the space occupied by the bed board 121 in the accommodating cavity 111. The bed board envelope surface 142 completely covers the bed board 121 and can be greater than or equal to the bed board 121 to provide redundancy for collision detection of the bed board 121. The bed board envelope surface 142 can be pre-set. In some embodiments, the bed board envelope surface 142 is set to a semi-cylinder, a cuboid, etc.
[0089] After the bed board envelope surface 142 is determined, a bed board detection point 141 is obtained on the bed board envelope surface 142. The bed board detection point 141 is the position on the bed board envelope surface 142 that is most likely to collide with the accommodating cavity 111, which can be obtained by presetting. Fig.13 As shown, the bed board envelope surface 142 is set as a semi-cylinder, and R1 to R5 of the bed board detection points 141 are all set on a cross section perpendicular to the axis of the elliptical cylinder. Since the top surface of the bed board 121 is used to carry the object to be tested and is not easy to collide with the accommodating cavity 111, the bed board detection point 141 is not set at the corresponding position on the bed board envelope surface 142. Through this setting, it is possible to detect whether the bed board 121 collides with the accommodating cavity 111 in subsequent steps. It can be understood that the more the number of bed board detection points 141, the higher the accuracy of the bed board 121 collision detection, but at the same time, the greater the calculation amount during collision detection.
[0090] Step S330: determining the bed board reference line based on the bed board detection points.
[0091] Specifically, after the medical system determines the target object detection point, it determines the target object reference line based on the target object detection point. The target object reference line is parallel to the bed board 121 and passes through the target object detection point. Fig.12 As shown, when the target object is determined to be the bed board 121 , the target object reference line determined based on the bed board detection point 141 is the bed board reference line 143 , and the bed board reference line 143 is parallel to the bed board 121 and passes through the bed board detection point 141 .
[0092] When determining the bed board reference line 143, since the position of the bed board detection point 141 on the bed board envelope surface 142 is determined, and the position of the bed board envelope surface 142 relative to the medical device 110 is determined, the bed board reference line 143 can be determined by calculating a straight line parallel to the bed board 121 and passing through the bed board detection point 141.
[0093] Step S340, obtaining a bed board collision detection section.
[0094] Specifically, the medical system will also obtain the target object collision detection cross section, the target object collision detection cross section is perpendicular to the axis of the accommodating cavity 111, and the target object collision detection cross section is at least tangent to one end surface of the target object envelope surface. Fig.12 As shown, when it is determined that the target object is the bed board 121 , the acquired target object collision detection section is the bed board collision detection section 144 , and the bed board collision detection section 144 is perpendicular to the axis of the accommodating cavity 111 .
[0095] The medical system can determine the specific position of the bed board collision detection section 144 according to the specific movement mode of the bed board 121. In some embodiments, since the length of the bed board 121 is generally greater than the length of the accommodating cavity 111, the bed board collision detection section 144 is set to two sections, and the two sections are tangent to the two end faces of the accommodating cavity 111 respectively. In some embodiments, one end of the bed board 121 may be set to be fixed. In this case, only the unfixed end may collide with the accommodating cavity 111. Therefore, the bed board collision detection section 144 is set to be a section tangent to one end face of the accommodating cavity 111.
[0096] Step S350: determining a bed board collision detection point based on the intersection of the bed board reference line and the bed board collision detection section.
[0097] Specifically, after determining the target object reference line and the target object collision detection section, the medical system will determine the target object collision detection point based on the intersection of the target object reference line and the target object collision detection section. When the target object is determined to be the bed board 121, the medical system will determine the bed board 121 collision detection point based on the intersection of the bed board reference line 143 and the bed board collision detection section 144.
[0098] When the position of the bed board reference line 143 relative to the accommodating cavity 111 is determined, and the position of the bed board collision detection section 144 relative to the accommodating cavity 111 is determined, the intersection position of the bed board reference line 143 and the bed board collision detection section 144 can be determined, that is, the collision detection point of the bed board 121 can be determined.
[0099] Step S360, determining whether a collision occurs based on the positional relationship between the bed board collision detection point and the preset boundary contour.
[0100] Specifically, after determining the collision detection point of the target object, the medical system will determine whether a collision occurs based on the positional relationship between the collision detection point of the target object and the preset boundary contour 135. When the target object is determined to be the bed board 121, the medical system will determine whether a collision occurs based on the positional relationship between the collision detection point of the bed board 121 and the preset boundary contour 135.
[0101] The preset boundary contour 135 is determined by the inner diameter of the accommodating cavity 111. In order to ensure the redundancy of the collision detection of the bed board 121, the preset boundary contour 135 can be smaller than the inner diameter of the accommodating cavity 111, that is, the preset boundary contour 135 is smaller than the boundary contour of the accommodating cavity 111 and the bed board collision detection section 144. The preset boundary contour 135 is in the bed board collision detection section 144, and the collision detection point of the bed board 121 is also in the bed board collision detection section 144. According to the positional relationship between the collision detection point of the bed board 121 and the preset boundary contour 135, it can be determined whether the bed board 121 collides with the accommodating cavity 111. In some embodiments, if the collision detection point of the bed board 121 exceeds the preset boundary contour 135, it is determined that a collision occurs; if the collision detection point of the bed board 121 is within the preset boundary contour 135, it is determined that no collision occurs.
[0102] Specific examples, such as Fig.14 As shown in some embodiments Fig.13 The intersection of the bed board reference line 143 determined by R1 to R5 in the bed board detection points 141 and the bed board collision detection section 144, that is, the bed board 121 collision detection points are S1 to S5. Since there is no bed board 121 collision detection point that exceeds the preset boundary contour 135, it is determined that the bed board 121 does not collide with the accommodating cavity 111. Fig.15 As shown, Fig.13 The intersections of the bed board reference line 143 determined by R1 to R5 in the bed board detection points 141 in the embodiment and the bed board collision detection section 144 are the bed board 121 collision detection points S1 to S5. Since the bed board 121 collision detection point S5 exceeds the preset boundary contour 135, it is determined that the bed board 121 collides with the accommodating cavity 111. In some embodiments, when the collision between the bed board 121 and the accommodating cavity 111 is detected, the medical system can restrict the bed board 121 from continuing to move.
[0103] In the above-mentioned collision detection method for the medical system, when the target object is the bed board 121, the bed board reference line 143 is determined by the bed board detection point 141 on the bed board envelope surface 142, and then the bed board 121 collision detection point is determined by combining the preset bed board collision detection section 144. The bed board 121 collision detection point can represent the position of the bed board reference line 143 in the bed board collision detection section 144. Finally, the positional relationship between the bed board 121 collision detection point and the preset boundary contour 135 is compared to determine whether the bed board 121 will collide with the accommodating cavity 111. In this embodiment, collision detection is performed by comparing the positional relationship between the bed board 121 collision detection point and the preset boundary contour 135, without the need to additionally set up a distance sensor, thereby avoiding affecting the normal operation of the medical device 110.
[0104] In one embodiment, Fig.16 As shown, when the target object is the bed board 121, in step S330, the bed board reference line is determined based on the bed board detection points, including:
[0105] Step S331, obtaining the relative position information of the bed board detection point relative to the bed board.
[0106] Specifically, the position of the bed board detection point 141 on the bed board envelope surface 142 is determined. When the relative position of the bed board envelope surface 142 and the bed board 121 is determined, the relative position information of the bed board detection point 141 relative to the bed board 121 can be determined. For example, Fig.17 As shown, assuming that the coordinate system of the bed board envelope surface 142 is D, and the coordinate system of the bed board 121 is B, the coordinate system B and the coordinate system D can have the same coordinate base point. At this time, when the bed board detection point 141 is obtained, the relative position information of the bed board detection point 141 relative to the bed board 121 can be directly obtained.
[0107] Step S332, obtaining the posture information of the bed board relative to the medical device.
[0108] Specifically, when obtaining the posture information of the bed board 121, it can be obtained by calculation according to the posture feedback device of the medical bed 120. Through the posture information of the bed board 121, the current position of the bed board 121 relative to the medical device 110 can be determined. For a specific example, let the coordinate system of the medical device 110 be A. Since the bed board 121 can move freely in the accommodating cavity 111, the displacement of the bed board 121 on the three axes of X, Y, and Z and the angular deflection of the bed board 121 can be known, that is, the posture information of the bed board 121 relative to the medical device 110, which is recorded as (pitch, roll, yaw, x, y, z) A , where pitch is the pitch angle, roll is the rotation angle, and yaw is the yaw angle.
[0109] Step S333: coordinate transformation is performed on the relative position information based on the posture information to obtain the absolute position information of the bed board detection point relative to the medical device.
[0110] Specifically, after obtaining the posture information of the bed board 121 relative to the medical device 110, the relative position information of the bed board detection point 141 relative to the bed board 121 is transformed by the posture information, so as to map the position information relative to the bed board 121 to the position information relative to the medical device 110, thereby obtaining the absolute position information of the bed board detection point 141 relative to the medical device 110. For example, after obtaining the current posture information of the bed board 121 relative to the medical device 110, the coordinate transformation matrix of the coordinate system B of the bed board 121 relative to the coordinate system A of the medical device 110 can be determined, and the relative position information can be transformed by the coordinate transformation matrix, so that the relative position information of the bed board detection point 141 in the coordinate system B can be converted into the absolute position information of the bed board detection point 141 in the coordinate system A. The calculation method of the coordinate transformation can be calculated by trigonometric functions, Euler angles, quaternions, etc.
[0111] Step S334: determining the bed board reference line based on the absolute position information.
[0112] Specifically, after obtaining the absolute position information of the bed board detection point 141 relative to the medical device 110, the bed board reference line 143 can be determined according to the positional relationship between the bed board reference line 143 and the bed board 121. In a specific example, the absolute position information is the position information of the bed board detection point 141 in the coordinate system A. When determining the bed board reference line 143 parallel to the bed board 121 and passing through the bed board detection point 141, the position information of the bed board reference line 143 obtained is also the position information in the coordinate system A. Through the coordinate transformation step of this embodiment, the position information in different coordinate systems can be unified, which is convenient for the subsequent calculation step of determining the collision detection point of the bed board 121.
[0113] In one embodiment, Fig.18 As shown, a collision detection method for a medical system is provided, which is described by taking the target objects as the object to be detected and the bed board 121 as an example, and includes the following steps:
[0114] Step S410, determining that the target object is the object to be detected and the bed board.
[0115] Specifically, when the bed board 121 of this embodiment moves in the accommodating cavity 111, there is a situation where both the object to be measured and the bed board 121 may collide with the accommodating cavity 111. When determining the target object, the medical system determines that the target object is the object to be measured and the bed board 121 according to the type of the medical device 110 and / or the medical bed 120.
[0116] Step S420, obtaining fusion detection points.
[0117] Specifically, after the medical system determines the target object, it obtains the target object detection point, and the target object detection point is on the target object envelope surface. When the target object is determined to be the object to be measured and the bed board 121, the target object detection point obtained is the fusion detection point, and the target object envelope surface is the fusion envelope surface 151 after the fusion of the envelope surface 132 of the object to be measured and the envelope surface 142 of the bed board, and the fusion detection point is on the fusion envelope surface 151. The fusion envelope surface 151 is used to indicate the size of the space occupied by the object to be measured and the bed board 121 in the accommodating cavity 111. The fusion envelope surface 151 completely covers the object to be measured and the bed board 121 and can be greater than or equal to the object to be measured and the bed board 121 to provide redundancy for collision detection. In some embodiments, the envelope surface 132 of the object to be measured is set to a cylinder. In some other embodiments, when the object to be measured is a human body, since the shoulder width of the human body is greater than the height of the chest cavity, the envelope surface 132 of the object to be measured is set to an elliptical cylinder. When determining the envelope surface 132 of the object to be measured, the medical system can determine the specific size range of the envelope surface 132 of the object to be measured according to parameters such as the height and chest circumference of the human body. The bed board envelope surface 142 can be pre-set. In some embodiments, the bed board envelope surface 142 is set to a semi-cylinder, a cuboid, etc.
[0118] After the fusion envelope surface 151 is determined, the fusion detection points are obtained on the fusion envelope surface 151. The fusion detection points include: the detection points 131 of the object to be detected and the detection points 141 of the bed board, which can be obtained by presetting.
[0119] Step S430: determining a fusion reference line based on the fusion detection points.
[0120] Specifically, after the medical system determines the target object detection point, the target object reference line is determined based on the target object detection point, and the target object reference line is parallel to the bed board 121 and passes through the target object detection point. When the target object is determined to be the object to be measured and the bed board 121, the target object reference line determined based on the fusion detection point is the fusion reference line, and the fusion reference line is parallel to the bed board 121 and passes through the fusion detection point. The fusion reference line includes: the object to be measured reference line 33 and the bed board reference line 43.
[0121] When determining the fusion reference line, since the position of the fusion detection point on the fusion envelope surface 151 is determined, and the position of the fusion envelope surface 151 relative to the medical device 110 is determined, the fusion reference line can be determined by calculating a straight line parallel to the bed board 121 and passing through the fusion detection point.
[0122] Step S440, obtaining a fused collision detection section.
[0123] Specifically, the medical system will also obtain the target object collision detection section, which is perpendicular to the axis of the accommodating cavity 111 and tangent to at least one end surface of the target object envelope surface. When the target object is determined to be the object to be measured and the bed board 121, the obtained target object collision detection section is the fused collision detection section 152, which is perpendicular to the axis of the accommodating cavity 111 and includes: the object to be measured collision detection section 134 and the bed board collision detection section 144.
[0124] The medical system can determine the specific position of the fusion collision detection section 152 according to the specific movement mode of the bed board 121. The fusion collision detection section 152 includes a section tangent to the end surface of the envelope surface 132 of the object to be detected and a section tangent to the end surface of the accommodating cavity 111.
[0125] Step S450: determining a fusion collision detection point based on the intersection of the fusion reference line and the fusion collision detection section.
[0126] Specifically, after determining the target object reference line and the target object collision detection section, the medical system will determine the target object collision detection point based on the intersection of the target object reference line and the target object collision detection section. When the target object is determined to be the object to be tested and the bed board 121, the medical system will determine the fusion collision detection point based on the intersection of the fusion reference line and the fusion collision detection section 152.
[0127] When the position of the fusion reference line relative to the accommodating cavity 111 is determined, and the position of the fusion collision detection section 152 relative to the accommodating cavity 111 is determined, the intersection position of the fusion reference line and the fusion collision detection section 152 can be determined, that is, the fusion collision detection point is determined. The fusion collision detection point includes: the collision detection point of the object to be detected and the collision detection point of the bed board 121.
[0128] Step S460: determining whether a collision occurs based on the positional relationship between the fused collision detection point and the preset boundary contour.
[0129] Specifically, after determining the collision detection point of the target object, the medical system determines whether a collision occurs based on the positional relationship between the collision detection point of the target object and the preset boundary contour 135. When the target object is determined to be the object to be tested and the bed board 121, the medical system determines whether a collision occurs based on the positional relationship between the fused collision detection point and the preset boundary contour 135.
[0130] The preset boundary contour 135 is determined by the inner diameter of the accommodating cavity 111. In order to ensure the redundancy of collision detection, the preset boundary contour 135 can be smaller than the inner diameter of the accommodating cavity 111, that is, the preset boundary contour 135 is smaller than the boundary contour between the accommodating cavity 111 and the fused collision detection section 152. The preset boundary contour 135 is in the fused collision detection section 152, and the fused collision detection point is also in the fused collision detection section 152. According to the positional relationship between the fused collision detection point and the preset boundary contour 135, it can be determined whether the object to be detected and the bed board 121 collide with the accommodating cavity 111. In some embodiments, if the fused collision detection point exceeds the preset boundary contour 135, it is determined that a collision occurs; if the fused collision detection point is within the preset boundary contour 135, it is determined that no collision occurs.
[0131] Specific examples, such as Fig.19 As shown in FIG. 1 , it is a schematic diagram of the positions of the fused collision detection points and the preset boundary contour 135 in some embodiments. The fused collision detection points are T1 to T16. Since there is no fused collision detection point beyond the preset boundary contour 135, it is determined that the object to be detected and the bed board 121 do not collide with the accommodating cavity 111. Fig. 20 As shown, it is a schematic diagram of the positions of the fused collision detection points and the preset boundary contour 135 in other embodiments. The fused collision detection points are T1 to T16. Since the fused collision detection points T15 and T16 exceed the preset boundary contour 135, and the fused collision detection points T15 and T16 are both collision detection points of the bed board 121, it is determined that the bed board 121 collides with the accommodating cavity 111.
[0132] In the above-mentioned collision detection method for the medical system, when the target objects are the object to be detected and the bed board 121, the fusion reference line is determined by the fusion detection point on the fusion envelope surface 151, and then the fusion collision detection point is determined by combining the preset fusion collision detection section 152. The fusion collision detection point can represent the position of the fusion reference line in the fusion collision detection section 152, and finally the position relationship of the fusion collision detection point and the preset boundary contour 135 is compared to determine whether the object to be detected and the bed board 121 will collide with the accommodating cavity 111. In this embodiment, collision detection is performed by comparing the position relationship between the fusion collision detection point and the preset boundary contour 135, without the need to set up an additional distance sensor, thereby avoiding affecting the normal operation of the medical device 110.
[0133] In one embodiment, Fig.21 As shown, when the target object is the object to be detected and the bed board 121, in step S430, the bed board reference line is determined based on the fused detection points, including:
[0134] Step S431, obtaining the relative position information of the fused detection point relative to the bed board.
[0135] Specifically, the position of the fused detection point on the fused envelope surface 151 is determined. When the relative position of the fused envelope surface 151 and the bed board 121 is determined, the relative position information of the fused detection point relative to the bed board 121 can be determined. For example, since the envelope surface 132 of the object to be detected in the fused envelope surface 151 will change position relative to the bed board envelope surface 142, when determining the relative position information of the fused detection point relative to the bed board 121, the fused detection point is divided into the detection point 131 of the object to be detected and the bed board detection point 141 for separate determination. Assume that the coordinate system of the envelope surface 132 of the object to be measured is C, the coordinate system of the envelope surface 142 of the bed board is D, and the coordinate system of the bed board 121 is B. When obtaining the detection point 131 of the object to be measured, the position of the detection point 131 of the object to be measured in the coordinate system C is obtained. Since the relative position of the coordinate system C and the coordinate system B is determined, the position of the detection point 131 of the object to be measured in the coordinate system C can be converted into the position of the detection point 131 of the object to be measured in the coordinate system B through coordinate conversion, thereby obtaining the relative position information of the detection point 131 of the object to be measured relative to the bed board 121. When obtaining the object detection point of the bed board 121, the coordinate system B and the coordinate system D can have the same coordinate base point. At this time, the relative position information of the bed board detection point 141 relative to the bed board 121 can be directly obtained.
[0136] Step S432, obtaining the posture information of the bed board relative to the medical device.
[0137] Specifically, when obtaining the posture information of the bed board 121, it can be obtained by calculation according to the posture feedback device of the medical bed 120. Through the posture information of the bed board 121, the current position of the bed board 121 relative to the medical device 110 can be determined. For a specific example, let the coordinate system of the medical device 110 be A. Since the bed board 121 can move freely in the accommodating cavity 111, the displacement of the bed board 121 on the three axes of X, Y, and Z and the angular deflection of the bed board 121 can be known, that is, the posture information of the bed board 121 relative to the medical device 110, which is recorded as (pitch, roll, yaw, x, y, z) A, where pitch is the pitch angle, roll is the rotation angle, and yaw is the yaw angle.
[0138] Step S433, coordinate transformation is performed on the relative position information based on the posture information to obtain the absolute position information of the fused detection point relative to the medical device.
[0139] Specifically, after obtaining the posture information of the bed board 121 relative to the medical device 110, coordinate transformation is performed on the relative position information of the detection point 131 of the object to be measured and the detection point 141 of the bed board relative to the bed board 121 according to the posture information, so as to map the position information relative to the bed board 121 to the position information relative to the medical device 110, thereby obtaining the absolute position information of the detection point 131 of the object to be measured and the detection point 141 of the bed board relative to the medical device 110. For a specific example, after obtaining the current posture information of the bed board 121 relative to the medical device 110, the coordinate transformation matrix of the coordinate system B of the bed board 121 relative to the coordinate system A of the medical device 110 can be determined, and the relative position information can be transformed by using the coordinate transformation matrix, so that the relative position information of the detection point 131 of the object to be measured and the detection point 141 of the bed board in the coordinate system B can be converted into the absolute position information of the detection point 131 of the object to be measured and the detection point 141 of the bed board in the coordinate system A. The coordinate transformation can be calculated using trigonometric functions, Euler angles, quaternions, etc.
[0140] Step S434: determine a fusion reference line based on the absolute position information.
[0141] Specifically, after obtaining the absolute position information of the detection point 131 of the object to be measured and the detection point 141 of the bed board relative to the medical device 110, the reference line 133 of the object to be measured and the reference line 143 of the bed board, that is, the fusion reference line, can be determined according to the positional relationship between the reference line 133 of the object to be measured and the reference line 143 of the bed board and the bed board 121. In a specific example, the absolute position information includes the position information of the detection point 131 of the object to be measured and the detection point 141 of the bed board in the coordinate system A. When determining the fusion reference line parallel to the bed board 121 and passing through the fusion detection point, the position information of the fusion reference line obtained is also the position information in the coordinate system A. Through the coordinate transformation step of this embodiment, the position information in different coordinate systems can be unified, which is convenient for the subsequent calculation and determination of the fusion collision detection point step.
[0142] In one embodiment, when the target objects are the object to be measured and the bed board 121, in step S440, a fused collision detection section is obtained, including: when the envelope surface 132 of the object to be measured is entirely located within the accommodating cavity 111, a section tangent to two end faces of the envelope surface 132 of the object to be measured and a section tangent to two end faces of the accommodating cavity 111 are used as the fused collision detection section 152.
[0143] Specifically, Fig. 22As shown, the moving mechanism on the medical bed 120 can change the position of the object to be tested, and accordingly, the position of the envelope surface 132 of the object to be tested relative to the accommodating cavity 111 will also change. When the medical device 110 detects that the envelope surface 132 of the object to be tested is entirely located in the accommodating cavity 111, the two end surfaces of the envelope surface 132 of the object to be tested and the two end surfaces of the bed board envelope surface 142 may collide with the accommodating cavity 111. Therefore, the cross section tangent to the two end surfaces of the envelope surface 132 of the object to be tested and the cross section tangent to the two end surfaces of the accommodating cavity 111, a total of four cross sections are used as the fused collision detection cross sections 152. When performing collision detection between the object to be tested and the bed board 121, the fused reference line will generate fused object collision detection points on the corresponding detection cross sections respectively. At the same time, preset boundary contours 135 are respectively set on the detection cross sections. When the fused collision detection points on any detection cross section exceed the preset boundary contour 135, it can be determined that the corresponding end surface has collided.
[0144] In one embodiment, when the target objects are the object to be measured and the bed board 121, in step S440, a fused collision detection section is obtained, including: when the envelope surface 132 of the object to be measured is partially located in the accommodating cavity 111, a section tangent to the end face of the envelope surface 132 of the object to be measured located in the accommodating cavity 111 and a section tangent to the two end faces of the accommodating cavity 111 are used as the fused collision detection section 152.
[0145] Specifically, Fig.23 As shown, the moving mechanism on the medical bed 120 can change the position of the object to be tested, and accordingly, the position of the envelope surface 132 of the object to be tested relative to the accommodating cavity 111 will also change. When the medical device 110 detects that the envelope surface 132 of the object to be tested is partially located in the accommodating cavity 111, one end surface of the envelope surface 132 of the object to be tested and two end surfaces of the bed board envelope surface 142 may collide with the accommodating cavity 111. Therefore, the section tangent to the end surface of the envelope surface 132 of the object to be tested located in the accommodating cavity 111 and the section tangent to the two end surfaces of the accommodating cavity 111, a total of three sections are used as the fused collision detection section 152. When performing collision detection between the object to be tested and the bed board 121, the fused reference line will generate fused object collision detection points on the corresponding detection sections respectively. At the same time, preset boundary contours 135 are respectively set on the detection sections. When the fused collision detection points on any detection section exceed the preset boundary contour 135, it can be determined that the corresponding end surface has collided.
[0146] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0147] Based on the same inventive concept, the embodiment of the present application also provides a medical system collision detection device for implementing the medical system collision detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more medical system collision detection devices provided below can refer to the limitations of the medical system collision detection method above, and will not be repeated here.
[0148] In one embodiment, Fig.24 As shown, a collision detection device for a medical system is provided, comprising: an object determination module 510, a detection point determination module 520, a reference line determination module 530, a detection section determination module 540, a detection point determination module 550 and a collision detection module 560, wherein:
[0149] An object determination module 510 is used to determine a target object;
[0150] The detection point determination module 520 is used to obtain the target object detection point; the target object detection point is on the target object envelope surface;
[0151] A reference line determination module 530 is used to determine a target object reference line based on the target object detection point; wherein the target object reference line is parallel to the bed board 121 and passes through the target object detection point;
[0152] A detection section determination module 540 is used to obtain a target object collision detection section; wherein the target object collision detection section is perpendicular to the axis of the accommodating cavity 111, and the target object collision detection section is tangent to at least one end surface of the target object envelope surface;
[0153] A detection point determination module 550, for determining a target object collision detection point based on an intersection of a target object reference line and a target object collision detection section;
[0154] The collision detection module 560 is used to determine whether a collision occurs according to the positional relationship between the collision detection point of the target object and the preset boundary contour 135 .
[0155] In one embodiment, the target object includes an object to be detected and / or a bed board 121 .
[0156] In one embodiment, when the target object is the object to be measured and the bed board 121 , the target object envelope surface is a fused envelope surface 151 obtained by merging the envelope surface 132 of the object to be measured and the envelope surface 142 of the bed board.
[0157] In one embodiment, the reference line determination module 530 is also used to obtain the relative position information of the target object detection point relative to the bed board 121; obtain the posture information of the bed board 121 relative to the medical device 110; perform coordinate transformation on the relative position information based on the posture information to obtain the absolute position information of the target object detection point relative to the medical device 110; and determine the target object reference line based on the absolute position information.
[0158] In one embodiment, the target object collision detection section includes a section tangent to an end surface of the target object envelope surface and / or a section tangent to an end surface of the accommodating cavity 111 .
[0159] In one embodiment, the collision detection module 560 is further configured to determine that a collision occurs if the collision detection point of the target object exceeds the preset boundary contour 135 ; and to determine that no collision occurs if the collision detection point of the target object is within the preset boundary contour 135 .
[0160] In one embodiment, the preset boundary contour 135 is in the target object collision detection section, and the preset boundary contour 135 is smaller than the boundary contour between the accommodating cavity 111 and the target object collision detection section.
[0161] In some embodiments, a medical system is also proposed, which includes: a medical device 110 and a medical bed 120, the medical device 110 is provided with a accommodating cavity 111, the medical bed 120 has a bed board 121 that can move in the accommodating cavity 111, and the bed board 121 is used to carry an object to be tested. The medical system also includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the collision detection method of the above-mentioned medical system are implemented.
[0162] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored, and when the processor executes the computer program, the steps of the collision detection method for the medical system are implemented.
[0163] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0164] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A collision detection method for a medical system, the medical system comprising: A medical device and a medical bed, wherein the medical device is provided with a receiving cavity, and the medical bed has a bed board capable of moving in the receiving cavity, wherein the method comprises: Identify the target audience; Acquire a target object detection point; the target object detection point is on the target object envelope surface; Based on the target object detection point, determine a target object reference line; wherein the target object reference line is parallel to the bed board and passes through the target object detection point; Acquire a target object collision detection cross section; wherein the target object collision detection cross section is perpendicular to the axis of the accommodating cavity; Determining a target object collision detection point based on an intersection of the target object reference line and the target object collision detection section; Whether a collision occurs is determined based on the positional relationship between the collision detection point of the target object and a preset boundary contour.
2. The collision detection method for a medical system according to claim 1, characterized in that: The target object includes the object to be detected and / or the bed board.
3. The collision detection method of the medical system according to claim 2, characterized in that: When the target object is the object to be measured and the bed board, the target object envelope surface is a fused envelope surface obtained by fusion of the envelope surface of the object to be measured and the envelope surface of the bed board.
4. The collision detection method for a medical system according to claim 1, characterized in that: The determining of the target object reference line based on the target object detection point comprises: Acquiring relative position information of the target object detection point relative to the bed board; Acquiring posture information of the bed board relative to the medical device; Performing coordinate transformation on the relative position information based on the posture information to obtain absolute position information of the target object detection point relative to the medical device; Based on the absolute position information, the target object reference line is determined.
5. The collision detection method for a medical system according to claim 1, characterized in that: The target object collision detection section includes a section tangent to an end surface of the target object envelope surface and / or a section tangent to an end surface of the accommodating cavity.
6. The collision detection method for a medical system according to claim 1, characterized in that: The step of determining whether a collision occurs according to the positional relationship between the collision detection point of the target object and the preset boundary contour comprises: If the collision detection point of the target object exceeds the preset boundary contour, it is determined that a collision occurs; If the target object collision detection point is within the preset boundary contour, it is determined that no collision occurs.
7. The collision detection method for a medical system according to claim 1, characterized in that: The preset boundary contour is in the target object collision detection section, and the preset boundary contour is smaller than the boundary contour between the accommodating cavity and the target object collision detection section.
8. A collision detection device for a medical system, the medical system comprising: A medical device and a medical bed, wherein the medical device is provided with a receiving cavity, and the medical bed has a bed plate capable of moving in the receiving cavity, wherein the collision detection device comprises: An object determination module, used for determining a target object; A detection point determination module is used to obtain a target object detection point; the target object detection point is on the target object envelope surface; A reference line determination module, used to determine a target object reference line based on the target object detection point; wherein the target object reference line is parallel to the bed board and passes through the target object detection point; A detection section determination module, used to obtain a target object collision detection section; wherein the target object collision detection section is perpendicular to the axis of the accommodation cavity; A detection point determination module, used to determine a target object collision detection point based on an intersection of the target object reference line and the target object collision detection section; The collision detection module is used to determine whether a collision occurs according to the positional relationship between the collision detection point of the target object and a preset boundary contour.
9. A medical system, characterized in that: The medical system comprises: a medical device and a medical bed, wherein the medical device is provided with a receiving cavity, and the medical bed has a bed board capable of moving in the receiving cavity, and the bed board is used to carry an object to be tested. It is characterized in that the medical system also comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the collision detection method of the medical system described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the collision detection method for a medical system according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for collision detection of radiotherapy equipment
CN111529969A
Anti-collision protection device for radiotherapy equipment
CN213667593U
Method and apparatus for detecting position, and radiotherapy system
US20200368555A1
Radiotherapy apparatus for delivering radiation to a subject
US20220339469A1
Radiotherapy apparatus for delivering radiation to a subject
US20230031538A1
