Auxiliary positioning method, device and equipment for tumor radiotherapy and storage medium
The fusion features generated by RGB-D lidar cameras and deep learning algorithms solve the problem of positioning mismatch in tumor radiotherapy, improve the efficiency and accuracy of positioning, and achieve consistent positioning of the radiotherapy room and CT room. sex.
Patent Information
- Application Number
- CN202410997956.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-20
AI Technical Summary
The existing positioning methods in tumor radiotherapy have problems such as discomfort, position deviation, high complexity and low efficiency. In particular, the mismatch between the positioning of the radiotherapy room and the CT room leads to insufficient treatment accuracy and efficiency.
An RGB-D lidar camera is used to acquire patient images, and the improved DeepLab-V3 algorithm is combined with the improved DeepLab-V3 algorithm for outer contour recognition and the PFLD algorithm for feature extraction to generate fusion features. The offset results of the radiotherapy room and CT room are displayed through the AR display device to guide treatment. The teacher performs precise positioning.
It improves the efficiency and accuracy of positioning, reduces human errors, ensures the consistency of the positioning of the radiotherapy room and CT room, and simplifies the complex spatial positioning process.
Smart Images

Figure CN118662801A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of radiotherapy assistance, and in particular to an auxiliary positioning method, device, equipment and storage medium for tumor radiotherapy. Background Art
[0002] Tumor radiotherapy is a treatment method that is carried out in steps, usually requiring 5-35 sessions to complete. Since ionizing radiation is damaging to normal tissues, accurate repeated positioning is required to keep the patient's position and location consistent with the first treatment each time, so as to ensure that the target area receives sufficient dose while protecting the surrounding normal tissues to the greatest extent. Currently, the commonly used positioning method mainly relies on laser cross lines on the patient's body surface or fixed mold to repeat the position. This method has the following problems: 1. Physical marks need to be drawn on the patient's body surface for positioning during radiotherapy, which may cause discomfort to the patient; 2. There is a certain gap between the human body and fixed molds such as thermoplastic films, which may cause the relative position of the two to change, thereby causing the tumor center to shift during positioning; 3. External changes in the patient's geometry and incorrect attachment positions cannot be corrected by instrument adjustment alone, and may distort the patient's internal anatomical structure; 4. It is impossible to measure the change in the center position of the tumor due to patient weight loss during treatment; 5. The positioning process is complicated, inefficient, and heavily dependent on the experience of the therapist.
[0003] With the development of science and technology, some new positioning technologies have been proposed and applied. For example, optical surface monitoring systems (OSMS) such as AlignRT use active infrared radiation to illuminate the patient's body surface for real-time verification of body position. However, this system presents some reconstructed images or image holograms to the therapist, lacks intuitive image guidance, and the operation is still cumbersome.
[0004] On the other hand, augmented reality (AR) technology is increasingly being used in the medical field. Some researchers have tried to apply AR technology to radiotherapy positioning. For example, Talbot et al. used two monocular cameras combined with ARTool Kit to develop an augmented reality system to adjust the patient's position according to the virtual model. Cosentino et al. developed AR software for radiotherapy positioning based on the HoloLens camera. Although these methods have improved the intuitiveness of positioning, there is still room for improvement in accuracy and efficiency.
[0005] In view of this, this application is filed. Summary of the invention
[0006] The invention discloses an auxiliary positioning method, device, equipment and storage medium for tumor radiotherapy, aiming to solve the problem that the positioning of patients in a radiotherapy room and a CT room may not match.
[0007] The first embodiment of the present invention provides an auxiliary positioning method for tumor radiotherapy, comprising:
[0008] Acquire a patient image captured by an RGB-D laser radar camera on a radiotherapy bed, and preprocess the patient image; wherein the patient image includes a color image and three-dimensional depth information;
[0009] Calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate an outer contour edge of the patient;
[0010] Calling the PFLD algorithm to perform feature extraction on the preprocessed patient image to generate three-dimensional coordinate data of target feature points;
[0011] The outer contour edge and the three-dimensional coordinate data are fused to generate a fusion feature, the fusion feature is compared with the patient feature in the CT positioning room, and the offset result of the CT positioning room and the radiotherapy room is displayed on an AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room.
[0012] Preferably, before acquiring the patient image captured by the RGB-D laser radar camera on the radiotherapy bed and preprocessing the patient image, the method further includes:
[0013] Calibrate the central axis laser lines of the treatment beds in the CT positioning room and the radiotherapy room, and keep the coordinate systems consistent;
[0014] The axis coordinate systems of the RGB-D lidar camera in the CT positioning room and the RGB-D lidar camera in the radiotherapy room are adjusted to coincide with the central axis laser line of the corresponding treatment bed, and the RGB-D lidar camera is calibrated using the CT simulated laser quality control phantom and laser positioning line.
[0015] Preferably, the calling of the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient is specifically as follows:
[0016] Classifying each pixel in the color image based on the improved DeepLab-V3 algorithm to generate a portrait mask, wherein the pixels of the human body part in the portrait mask are 1, and the pixels of the background part are 0;
[0017] The portrait mask and the color image are fused in a certain ratio to generate the outer contour edge of the patient, wherein the fusion expression is:
[0018] Result=picture*α+Mask*(1-α)
[0019] Wherein, Result is the outer contour edge of the patient, Picture is the color image, α is the weight coefficient, and Mask is the portrait mask.
[0020] Preferably, before calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient, the method further includes: training the improved DeepLab-V3 algorithm;
[0021] Initialize the improved DeepLab-V3 model and use the SGD optimizer for model training. The batch size is 8, the momentum is set to 0.9, the momentum decay is 1e-4, the initial learning rate is set to 0.0001, and the learning rate update strategy is adopted. The learning rate is updated once after each iteration. Through continuous hyperparameter adjustment, the optimal hyperparameter combination is determined.
[0022] Preferably, the axis coordinate systems of the RGB-D laser radar camera in the CT positioning room and the RGB-D laser radar camera in the radiotherapy room are adjusted to coincide with the central axis laser line of the corresponding treatment bed, and the RGB-D laser radar camera is calibrated by using the CT simulated laser quality control phantom and the laser positioning line, specifically:
[0023] In the CT positioning room, an RGB-D camera was used to shoot the CT simulated laser quality control phantom, and the three-dimensional coordinates (a1, a2, a3), (b1, b2, b3), and (c1, c2, c3) of the three cross points A, B, and C on the phantom were recorded.
[0024] In the radiotherapy room, an RGB-D camera was used to shoot the CT simulated laser quality control phantom, and the three-dimensional coordinates of the three cross points A', B', and C' on the phantom were recorded (a'1, a'2, a'3), (b'1, b'2, b'3), and (c'1, c'2, c'3).
[0025] According to the laser positioning line, points B and B' are located at the intersection of the axes of the laser positioning line, and their x and y coordinates are both 0;
[0026] Calculate the coordinate system offset of the CT positioning room and the radiotherapy room, offset (off_x, off_y, 0), where: off_x = a1-a'1, off_y = a2-a'2, the z coordinate of the offset is 0,
[0027] Apply the calculated offset to the camera coordinate system of the two rooms:
[0028] The camera coordinate system adjustment in the CT positioning room includes: all captured three-dimensional coordinates plus the offset;
[0029] The camera coordinate system adjustment in the radiotherapy room includes: subtracting the offset from all captured three-dimensional coordinates.
[0030] A second embodiment of the present invention provides an auxiliary positioning device for tumor radiotherapy, comprising:
[0031] A preprocessing unit, used to obtain a patient image captured by an RGB-D laser radar camera on a radiotherapy bed, and preprocess the patient image; wherein the patient image includes a color image and three-dimensional depth information;
[0032] An outer contour edge generating unit, used for calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate an outer contour edge of the patient;
[0033] A three-dimensional coordinate data generating unit, used for calling the PFLD algorithm to extract features from the pre-processed patient image to generate three-dimensional coordinate data of target feature points;
[0034] A fusion unit is used to fuse the outer contour edge and the three-dimensional coordinate data to generate a fusion feature, compare the fusion feature with the patient feature in the CT positioning room, and display the offset result of the CT positioning room and the radiotherapy room on an AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room.
[0035] The third embodiment of the present invention provides a downhill assistance device for a pure electric vehicle, including a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement an auxiliary positioning method for tumor radiotherapy as described in any one of the above.
[0036] A fourth embodiment of the present invention provides a computer-readable storage medium, characterized in that a computer program is stored therein, and the computer program can be executed by a processor of a device where the computer-readable storage medium is located to implement an auxiliary positioning method for tumor radiotherapy as described in any one of the above items.
[0037] Based on the auxiliary positioning method, device, equipment and storage medium for tumor radiotherapy provided by the present invention, the patient image collected by the RGB-D laser radar camera on the radiotherapy bed is first obtained, and the patient image is preprocessed; then, the improved DeepLab-V3 algorithm is called to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient; then, the PFLD algorithm is called to extract features of the preprocessed patient image to generate three-dimensional coordinate data of the target feature point; finally, the outer contour edge and the three-dimensional coordinate data are fused to generate a fusion feature, and the fusion feature is compared with the patient feature in the CT positioning room, and the offset results of the CT positioning room and the radiotherapy room are displayed on the AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room. The problem that the positioning of the patient in the radiotherapy room and the CT room may not match is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flowchart of an auxiliary positioning method for tumor radiotherapy provided by the first embodiment of the present invention;
[0039] Figure 2 It is a module schematic diagram of an auxiliary positioning device for tumor radiotherapy provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0042] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0044] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0045] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0046] The "first\second" mentioned in the embodiments is only to distinguish similar objects, and does not represent a specific order for the objects. It is understandable that the "first\second" can be interchanged with the specific order or sequence where permitted. It should be understood that the objects distinguished by "first\second" can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.
[0047] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0048] The invention discloses an auxiliary positioning method, device, equipment and storage medium for tumor radiotherapy, aiming to solve the problem that the positioning of patients in a radiotherapy room and a CT room may not match.
[0049] See also Figure 1 The first embodiment of the present invention provides an auxiliary positioning method for tumor radiotherapy, which can be performed by an auxiliary positioning device for tumor radiotherapy (hereinafter referred to as auxiliary device), and in particular, is performed by one or more processors in the auxiliary device to at least implement the following steps:
[0050] S101, acquiring a patient image captured by an RGB-D laser radar camera on a radiotherapy bed, and preprocessing the patient image; wherein the patient image includes a color image and three-dimensional depth information;
[0051] In this embodiment, the auxiliary device can be a terminal with data processing capabilities such as a laptop computer, desktop computer, workstation, server, etc., which can communicate with the equipment in the CT room and the radiotherapy room. Furthermore, the auxiliary device can be installed with a corresponding operating system and application software, and the functions required by this embodiment can be implemented through the combination of the operating system and application software.
[0052] It should be noted that the main function of the CT room is to fix the patient's position and scan the treatment range. The radiotherapy room is the place for the entire treatment process of the patient. Treatment is carried out according to the relevant data of the CT positioning room, especially the fixation and repetition of the position. The patient needs to repeat the state of CT positioning as much as possible so that radiotherapy can be carried out more accurately. In this embodiment, the RGB-D lidar camera combines the imaging technology of RGB (color image) and D (depth information) and is an imaging device with depth perception capability. The RGB camera captures standard color images, and each pixel contains information of three colors: red, green, and blue. The lidar sensor is used to obtain the depth information of objects in the scene. It calculates the distance between the object and the camera by sending laser pulses and measuring their return time, and in this way the distance information of each pixel can be obtained, thereby creating a depth map of the objects in the scene.
[0053] In this embodiment, the preprocessing process may include: (1) synchronizing and aligning the RGB image and the depth image in time and space so that the position of each pixel in the two images is consistent; (2) cropping the collected RGB and depth images into n*n pixels to unify the size of the input image, wherein the main part of the patient's body is kept in the center of the image during the cropping process; (3) fusing the RGB image and the depth image into a multi-channel input tensor, and the fusion method can be directly adding the depth information as the fourth channel to the RGB image to form a four-channel input data.
[0054] S102, calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate an outer contour edge of the patient;
[0055] It should be noted that the improvements to the DeepLab-V3 algorithm include: adjustment of the expansion factor of the Atrous Spatial Pyramid Pooling (ASPP), where the expansion factor R in the ASPP module is changed to better capture multi-scale contextual information, thereby improving the model's ability to recognize contour details of different scales. And increasing the number of model layers and attention mechanisms: adding a CBAM (Convolutional Block Attention Module) attention mechanism to the model, by fusing channel and spatial attention, the model's attention to important features is enhanced, and the ability to extract patient edge contour details is improved.
[0056] Classifying each pixel in the color image based on the improved DeepLab-V3 algorithm to generate a portrait mask, wherein the pixels of the human body part in the portrait mask are 1, and the pixels of the background part are 0;
[0057] The portrait mask and the color image are fused in a certain ratio to generate the outer contour edge of the patient, wherein the fusion expression is:
[0058] Result=picture*α+Mask*(1-α)
[0059] Wherein, Result is the outer contour edge of the patient, Picture is the color image, α is the weight coefficient, and Mask is the portrait mask.
[0060] It should be noted that, in this embodiment, the balance between the original image and the mask can be adjusted by introducing a weight coefficient α so that the system can adapt to different clinical scenarios and image qualities. Furthermore, the fusion of the original color image and the binary mask not only retains the detail information of the original image, but also highlights the contour of the patient, making it have clear edges and contain rich visual information.
[0061] S103, calling the PFLD algorithm to extract features from the preprocessed patient image to generate three-dimensional coordinate data of target feature points;
[0062] It should be noted that, in this embodiment, the detection range of the PFLD algorithm can be expanded so that it can identify and locate key points of the whole body, including but not limited to the joints of the head, neck, shoulders, torso, limbs and other anatomical landmarks, and can combine RGB images and depth information to calculate accurate three-dimensional spatial coordinates for each detected feature point.
[0063] Furthermore, in this embodiment, the selection and weight of feature points can be dynamically adjusted according to the needs of different radiotherapy sites. For example, for head and neck tumors, the weight of facial and neck feature points is increased; for chest and abdominal tumors, more emphasis is placed on trunk feature points.
[0064] S104, fusing the outer contour edge and the three-dimensional coordinate data to generate a fusion feature, comparing the fusion feature with the patient feature in the CT positioning room, and displaying the offset result of the CT positioning room and the radiotherapy room on an AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room.
[0065] It should be noted that in this embodiment, by combining the patient's outer contour edge and three-dimensional coordinate data, the system is able to create a highly detailed and accurate representation of the patient's features. Among them, the fusion feature not only contains the geometric information of the patient's body surface, but also incorporates the spatial position of key anatomical landmarks, thereby providing a comprehensive and three-dimensional description of the patient's posture. By intelligently comparing this fusion feature with the reference feature obtained in the CT positioning room, the system can accurately quantify and visualize the patient's position deviation in the radiotherapy room. By intuitively presenting these offset results on the AR display device, the therapist can quickly and accurately understand the position adjustments that need to be made, greatly improving the efficiency and accuracy of the positioning. This embodiment not only simplifies complex spatial positioning problems, but also provides therapists with real-time, interactive visual guidance, effectively reducing the risk of human error, while significantly improving the accuracy and consistency of treatment.
[0066] In a possible embodiment of the present invention, before acquiring a patient image captured by an RGB-D laser radar camera on a radiotherapy bed and preprocessing the patient image, the method further includes:
[0067] Calibrate the central axis laser lines of the treatment beds in the CT positioning room and the radiotherapy room, and keep the coordinate systems consistent;
[0068] The axis coordinate systems of the RGB-D lidar camera in the CT positioning room and the RGB-D lidar camera in the radiotherapy room were adjusted to coincide with the central axis laser line of the corresponding treatment bed, and the RGB-D lidar camera was calibrated using the CT simulated laser quality control phantom and laser positioning line.
[0069] It should be noted that by first calibrating the central axis laser lines of the treatment beds in the CT positioning room and the radiotherapy room, and keeping the coordinate systems of the two rooms consistent, a unified reference frame is established to provide a benchmark for all subsequent measurements and positioning. Furthermore, in this embodiment, the axis coordinate system of the RGB-D lidar camera is precisely adjusted to coincide with the central axis laser lines of the respective treatment beds, ensuring the alignment between the image acquisition system and the treatment equipment, and reducing the accumulation of system errors. Furthermore, the additional calibration steps using the CT simulated laser quality control phantom and the laser positioning line effectively eliminate minor offsets that may be caused by inherent equipment errors or installation deviations.
[0070] In a possible embodiment of the present invention, before calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient, the method further includes: training the improved DeepLab-V3 algorithm;
[0071] Initialize the improved DeepLab-V3 model, use the SGD optimizer for model training, batch size 8, momentum set to 0.9, momentum decay to 1e-4, initial learning rate set to 0.0001, adopt the learning rate update strategy, update the learning rate after each iteration, and continuously adjust the hyperparameters until the optimal hyperparameter combination is determined. Its training process can significantly improve the performance of the model, making it perform better in extracting the details of the patient's outer contour and focusing on the contour of the area of interest, while maintaining high accuracy and robustness when processing a variety of patient images, thereby providing accurate auxiliary positioning for subsequent tumor radiotherapy.
[0072] In a possible embodiment of the present invention, the axis coordinate systems of the RGB-D laser radar camera in the CT positioning room and the RGB-D laser radar camera in the radiotherapy room are adjusted to coincide with the central axis laser line of the corresponding treatment bed, and the RGB-D laser radar camera is calibrated by using the CT simulated laser quality control phantom and the laser positioning line, specifically:
[0073] In the CT positioning room, an RGB-D camera was used to shoot the CT simulated laser quality control phantom, and the three-dimensional coordinates (a1, a2, a3), (b1, b2, b3), and (c1, c2, c3) of the three cross points A, B, and C on the phantom were recorded.
[0074] In the radiotherapy room, an RGB-D camera was used to shoot the CT simulated laser quality control phantom, and the three-dimensional coordinates of the three cross points A', B', and C' on the phantom were recorded (a'1, a'2, a'3), (b'1, b'2, b'3), and (c'1, c'2, c'3).
[0075] According to the laser positioning line, points B and B' are located at the intersection of the axes of the laser positioning line, and their x and y coordinates are both 0;
[0076] Calculate the coordinate system offset of the CT positioning room and the radiotherapy room, offset (off_x, off_y, 0), where: off_x = a1-a'1, off_y = a2-a'2, the z coordinate of the offset is 0,
[0077] Apply the calculated offset to the camera coordinate system of the two rooms:
[0078] The camera coordinate system adjustment in the CT positioning room includes: all captured three-dimensional coordinates plus the offset;
[0079] The camera coordinate system adjustment in the radiotherapy room includes: subtracting the offset from all captured three-dimensional coordinates.
[0080] It should be noted that this process ensures that the coordinate systems of the RGB-D lidar cameras in the CT positioning room and the radiotherapy room coincide with the central axis laser lines of their respective treatment beds, so that the three-dimensional coordinate data of the patient captured in the two rooms have a consistent coordinate system. By applying the calculated offset to the camera coordinate systems of the two rooms, the system achieves perfect alignment of the virtual space, effectively eliminating systematic errors caused by differences in equipment installation and room layout.
[0081] See also Figure 2 The second embodiment of the present invention provides an auxiliary positioning device for tumor radiotherapy, comprising:
[0082] A preprocessing unit 201 is used to obtain a patient image captured by an RGB-D laser radar camera on a radiotherapy bed, and preprocess the patient image; wherein the patient image includes a color image and three-dimensional depth information;
[0083] An outer contour edge generating unit 202 is used to call the improved DeepLab-V3 algorithm to perform outer contour recognition on the pre-processed patient image to generate an outer contour edge of the patient;
[0084] A three-dimensional coordinate data generating unit 203 is used to call the PFLD algorithm to extract features from the pre-processed patient image to generate three-dimensional coordinate data of target feature points;
[0085] The fusion unit 204 is used to fuse the outer contour edge and the three-dimensional coordinate data to generate a fusion feature, compare the fusion feature with the patient feature in the CT positioning room, and display the offset result of the CT positioning room and the radiotherapy room on the AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room.
[0086] The third embodiment of the present invention provides a downhill assistance device for a pure electric vehicle, including a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement an auxiliary positioning method for tumor radiotherapy as described in any one of the above.
[0087] A fourth embodiment of the present invention provides a computer-readable storage medium, characterized in that a computer program is stored therein, and the computer program can be executed by a processor of a device where the computer-readable storage medium is located to implement an auxiliary positioning method for tumor radiotherapy as described in any one of the above items.
[0088] Based on the auxiliary positioning method, device, equipment and storage medium for tumor radiotherapy provided by the present invention, the patient image collected by the RGB-D laser radar camera on the radiotherapy bed is first obtained, and the patient image is preprocessed; then, the improved DeepLab-V3 algorithm is called to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient; then, the PFLD algorithm is called to extract features of the preprocessed patient image to generate three-dimensional coordinate data of the target feature point; finally, the outer contour edge and the three-dimensional coordinate data are fused to generate a fusion feature, and the fusion feature is compared with the patient feature in the CT positioning room, and the offset results of the CT positioning room and the radiotherapy room are displayed on the AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room. The problem that the positioning of the patient in the radiotherapy room and the CT room may not match is solved.
[0089] Exemplarily, the computer program described in the third and fourth embodiments of the present invention may be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the auxiliary positioning device for implementing a tumor radiotherapy. For example, the device described in the second embodiment of the present invention.
[0090] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the auxiliary positioning method for tumor radiotherapy, and uses various interfaces and lines to connect the various parts of the auxiliary positioning method for tumor radiotherapy.
[0091] The memory can be used to store the computer program and / or module, and the processor realizes various functions of an auxiliary positioning method for tumor radiotherapy by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, a text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0092] Wherein, if the implemented module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0093] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0094] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An auxiliary positioning method for tumor radiotherapy, It is characterized in that include: Acquire a patient image captured by an RGB-D laser radar camera on a radiotherapy bed, and preprocess the patient image; wherein the patient image includes a color image and three-dimensional depth information; Calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate an outer contour edge of the patient; Calling the PFLD algorithm to perform feature extraction on the preprocessed patient image to generate three-dimensional coordinate data of target feature points; The outer contour edge and the three-dimensional coordinate data are fused to generate a fusion feature, the fusion feature is compared with the patient feature in the CT positioning room, and the offset result of the CT positioning room and the radiotherapy room is displayed on an AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room.
2. The auxiliary positioning method for tumor radiotherapy according to claim 1, It is characterized in that Before obtaining the patient image captured by the RGB-D laser radar camera on the radiotherapy bed and preprocessing the patient image, the method further includes: Calibrate the central axis laser lines of the treatment beds in the CT positioning room and the radiotherapy room, and keep the coordinate systems consistent; The axis coordinate systems of the RGB-D lidar camera in the CT positioning room and the RGB-D lidar camera in the radiotherapy room are adjusted to coincide with the central axis laser line of the corresponding treatment bed, and the RGB-D lidar camera is calibrated using the CT simulated laser quality control phantom and laser positioning line.
3. The auxiliary positioning method for tumor radiotherapy according to claim 1, It is characterized in that The improved DeepLab-V3 algorithm is called to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient, specifically: Classifying each pixel in the color image based on the improved DeepLab-V3 algorithm to generate a portrait mask, wherein the pixels of the human body part in the portrait mask are 1, and the pixels of the background part are 0; The portrait mask and the color image are fused in a certain ratio to generate the outer contour edge of the patient, wherein the fusion expression is: Result=picture*α+Mask*(1-α) Among them, Result is the outer contour edge of the patient, picture is the color image, α is the weight coefficient, and Mask is the portrait mask.
4. The auxiliary positioning method for tumor radiotherapy according to claim 1, It is characterized in that Before calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate the outer contour edge of the patient, the method also includes: training the improved DeepLab-V3 algorithm; Initialize the improved DeepLab-V3 model and use the SGD optimizer for model training. The batch size is 8, the momentum is set to 0.9, the momentum decay is 1e-4, the initial learning rate is set to 0.0001, and the learning rate update strategy is adopted. The learning rate is updated once after each iteration. Through continuous hyperparameter adjustment, the optimal hyperparameter combination is determined.
5. The auxiliary positioning method for tumor radiotherapy according to claim 2, It is characterized in that The axis coordinate systems of the RGB-D laser radar camera in the CT positioning room and the RGB-D laser radar camera in the radiotherapy room are adjusted to coincide with the central axis laser line of the corresponding treatment bed, and the RGB-D laser radar camera is calibrated by using the CT simulated laser quality control phantom and the laser positioning line, specifically: In the CT positioning room, use an RGB-D camera to shoot the CT simulated laser quality control phantom and record the three-dimensional coordinates (a1, a2, a3), (b1, b2, b3) and (c1, c2, c3) of the three cross points A, B and C on the phantom; In the radiotherapy room, use an RGB-D camera to shoot the CT simulation laser quality control phantom and record the three-dimensional coordinates of the three cross points A', B', and C' on the phantom (a'1, a'2, a'3), (b'1, b'2, b'3), and (c'1, c'2, c'3); According to the laser positioning line, points B and B' are located at the intersection of the axes of the laser positioning line, and their x and y coordinates are both 0; Calculate the coordinate system offset of the CT positioning room and the radiotherapy room, offset (off_x, off_y, 0), where: off_x = a1-a'1, off_y = a2-a'2, and the z coordinate of the offset is 0; Apply the calculated offset to the camera coordinate system of the two rooms: The camera coordinate system adjustment in the CT positioning room includes: all captured three-dimensional coordinates plus the offset; The camera coordinate system adjustment in the radiotherapy room includes: subtracting the offset from all captured three-dimensional coordinates.
6. An auxiliary positioning device for tumor radiotherapy, It is characterized in that include: A preprocessing unit, used to obtain a patient image captured by an RGB-D laser radar camera on a radiotherapy bed, and preprocess the patient image; wherein the patient image includes a color image and three-dimensional depth information; An outer contour edge generation unit, used for calling the improved DeepLab-V3 algorithm to perform outer contour recognition on the preprocessed patient image to generate an outer contour edge of the patient; A three-dimensional coordinate data generating unit, used for calling the PFLD algorithm to extract features from the pre-processed patient image to generate three-dimensional coordinate data of target feature points; A fusion unit is used to fuse the outer contour edge and the three-dimensional coordinate data to generate a fusion feature, compare the fusion feature with the patient feature in the CT positioning room, and display the offset result of the CT positioning room and the radiotherapy room on an AR display device, wherein the offset result is used to instruct the therapist to position the patient in the radiotherapy room.
7. A downhill assist device for a pure electric vehicle, It is characterized in that It comprises a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement an auxiliary positioning method for tumor radiotherapy as described in any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that A computer program is stored, and the computer program can be executed by a processor of the device where the computer-readable storage medium is located to implement an auxiliary positioning method for tumor radiotherapy as described in any one of claims 1 to 5.
