Disclosure of Invention
The application provides a method and a device for removing abnormal scanning data and a PET system, which are used for improving the accuracy of the acquired scanning data when a PET device scans a detected body.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of embodiments of the present application, there is provided a method for removing abnormal scan data, the method being applied to a PET system, the method including: acquiring original scan data of an object during scanning of the object; detecting whether the object moves; determining a duration of a movement event when the movement event that the object moves is detected; and removing abnormal scanning data in the duration time from the original scanning data to obtain effective scanning data.
Further, the detecting whether the subject moves includes: acquiring a sequence of images of the subject; determining a difference value of position coordinates of corresponding feature points in two frames of images, wherein the two frames of images are two frames of images within a preset range in the sequence image; and when the difference value is larger than or equal to a preset value, judging that the detected object moves.
Further, the determining the movement of the subject when the difference is greater than or equal to a preset value includes: determining a body part where the feature points in the two frames of images are located; and when the body part where the characteristic point is located is a scanning part and the difference value is greater than or equal to a part preset value corresponding to the scanning part, judging that the detected object moves.
Further, the acquiring, when a movement event that the object moves is detected, a duration of the movement event includes: receiving a movement early warning at a preset frequency when a movement event that the object moves is detected; determining the starting time of a time window according to the first received mobile early warning; updating the end time of the time window according to the re-received mobile early warning; wherein the time within the time window is the duration of the movement event.
Further, the removing abnormal scanning data in the duration from the original scanning data to obtain valid scanning data includes: and removing abnormal scanning data in the time window from the original scanning data to obtain effective scanning data.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for removing abnormal scanning data. The device is applied to a PET system, and comprises:
a data acquisition module for acquiring original scanning data of a subject during scanning of the subject; the video monitoring module is used for detecting whether the detected object moves or not; the data processing module is used for determining the duration of a movement event when the video monitoring module detects the movement event that the object moves; and removing abnormal scanning data in the duration time from the original scanning data to obtain effective scanning data.
Further, the video monitoring module is configured to acquire a sequence of images of the subject; determining a difference value of position coordinates of corresponding feature points in two frames of images, wherein the two frames of images are two frames of images within a preset range in the sequence image; and when the difference value is larger than or equal to a preset value, judging that the detected object moves.
Further, the preset values include a number of part preset values corresponding to a number of body parts of the subject; the video monitoring module is used for determining the body part where the characteristic points in the two frames of images are located; and when the body part where the characteristic point is located is a scanning part and the difference value is greater than or equal to a part preset value corresponding to the scanning part, judging that the detected object moves.
Further, the data processing module is configured to receive a movement warning at a preset frequency when the video monitoring module detects a movement event that the subject moves; determining the starting time of a time window according to the first received mobile early warning; updating the end time of the time window according to the re-received mobile early warning; wherein the time within the time window is the duration of the movement event.
Further, the data processing module is configured to remove abnormal scanning data in the time window from the original scanning data to obtain valid scanning data.
According to a third aspect of embodiments herein, there is provided a PET system comprising a PET apparatus including a detector and an imaging device, and a console; the detector is used for detecting photon signals in the body of the detected body and converting the photon signals into electric signals in the process of scanning the detected body; the camera device is used for detecting whether the detected object moves or not; the console is used for determining original scanning data of the detected body according to the electric signals; when the imaging device detects a movement event that the object moves, determining the duration of the movement event; and removing abnormal scanning data in the duration time from the original scanning data to obtain effective scanning data.
According to a fourth aspect of embodiments herein, there is provided a computer storage medium storing computer-executable instructions for performing: acquiring original scan data of an object during scanning of the object; detecting whether the object moves; determining a duration of a movement event when the movement event that the object moves is detected; and removing abnormal scanning data in the duration time from the original scanning data to obtain effective scanning data.
According to the method and the device for removing abnormal scanning data and the PET system, whether the detected object moves or not is detected by using the camera device arranged on the detector, the duration time of the movement of the detected object is determined, and then the abnormal scanning data of the detected object collected in the duration time is removed from the original scanning data, so that the effective scanning data after the abnormal scanning data are removed is more accurate.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination".
Referring to fig. 1, fig. 1 is a schematic structural diagram of a PET system according to an example of the present application, the PET system including a PET device 10 and a console 20, the PET device being connected to the console 20 through an external interface. The PET apparatus 10 may include a detector 11(PET detector), a camera 12, and a scanning bed 13, among others. The detector 11 may be a ring detector, and as shown in fig. 1, the ring detector 11 includes a plurality of detection modules, each of which includes a detection crystal (including a plurality of scintillation crystal modules) and a photomultiplier tube connected in sequence. The scanning bed 13 can carry the object to the ring-shaped detector 11 for scanning.
By applying the PET system shown in fig. 1, before scanning, the subject can be injected with a tracer containing a radionuclide, during the scanning process, the radionuclide decays to generate positrons, the positrons annihilate with negative electrons around the subject to generate a pair of back-to-back gamma photons, the pair of gamma photons can be detected by a pair of detection crystals of a pair of detection modules in the detector 11, the detection crystals convert the detected photons into optical signals and then transmit the optical signals to the photomultiplier, and the photomultiplier converts the optical signals into electrical signals and then transmits the electrical signals to the console 20. The console 20 determines raw scan data of the subject from the electrical signal. The raw scan data includes time information of the detection module detecting the gamma photon.
In the embodiment of the present application, the image capturing device 12 may be mounted on the detector 11, and in particular, may be mounted in the inner wall of the annular detector 11 at a position corresponding to the scanning bed 13, so as to detect whether the subject lying on the scanning bed 13 moves. In the process of scanning the object, the imaging device 12 is used for detecting whether the object moves, and when the imaging device 12 detects a movement event of the object moving, the console 20 determines the duration of the movement event and removes abnormal scan data in the duration from the original scan data to obtain valid scan data.
In the embodiment of the application, during the scanning process of the PET apparatus 10, when the movement of the object is detected, the duration of the movement of the object is determined, and the abnormal scanning data of the object acquired within the duration is removed from the original scanning data, and the rest scanning data is valid scanning data, so that the obtained valid scanning data is more accurate.
One embodiment of the method of removing anomalous scan data of the present application is described in detail below in conjunction with the PET system shown in FIG. 1.
Referring to fig. 2, fig. 2 is a flowchart of a method for removing abnormal scanning data, which is applied to a PET system and may include the following steps:
in step 21, raw scan data of the subject is acquired during scanning of the subject.
Referring to fig. 1, in a process of scanning a subject by a PET apparatus in a PET system, a detection crystal of each detection module converts photons into optical signals and transmits the optical signals to a photomultiplier tube after detecting the photons, and the photomultiplier tube converts the optical signals into electrical signals and transmits the electrical signals to a console. The console determines raw scan data of the subject from the electrical signal.
In step 22, it is detected whether or not the subject has moved. In the embodiment of the present application, whether the object moves or not may be detected by an imaging device mounted on the probe, and the imaging device may include a camera configured to capture frame sequential images of the object and a processor configured to detect whether the object moves or not based on the frame sequential images. The processor in this embodiment may be integrated in the imaging device or in the console. If the movement of the subject is not detected in this step, the next detection is performed by continuing this step. If the movement of the subject is detected, the process proceeds to step 23.
In an alternative embodiment, step 22 includes substep 221, substep 222, and substep 223, as shown in FIG. 3. Wherein the content of the first and second substances,
in sub-step 221, a sequence of images of the subject is acquired. In the present embodiment, a sequence of images of the subject may be acquired at a preset operating frequency by a camera in the imaging device.
In sub-step 222, the difference in the position coordinates of the corresponding feature points in the two frame images is determined. The two frames of images are within a preset range in the sequence image. In this embodiment, two frames of images can be continuously selected from a preset range in the sequence of images by a processor in the image capturing apparatus, where the preset range can be set in a software program loaded in the processor, for example: the preset range may be a newly acquired 10 consecutive frames of images. The two selected frame images may be two adjacent frame images in a preset range, or two non-adjacent frame images in the preset range. Then, the same feature point is selected from the two images, specifically, the same corresponding feature point can be selected from the two images by using the existing feature point extraction algorithm (such as a Moravec operator, a Forstner operator, etc.), and then the position coordinates of the feature point in the two images and the difference value of the position coordinates of the feature point in the two images are respectively calculated. It should be noted that the preset range is not limited to the newly acquired 10 consecutive images, and may be specifically set according to actual needs, which is not limited in the embodiment of the present application.
In sub-step 223, when the difference is greater than or equal to a preset value, it is determined that the subject has moved. The preset value may be pre-stored in a software program loaded in the processor.
In an optional embodiment, the preset value is a uniform preset value, and when the difference is greater than or equal to the uniform preset value, it is determined that the object moves. Therefore, all body parts of the detected body are judged by adopting the unified preset value, and the method is simple and convenient.
In another alternative embodiment, the preset values include several body preset values corresponding to several body parts of the subject, such as a head preset value, a liver preset value, a leg preset value, and the like. The preset values of the plurality of parts can be different. Step 223 in this embodiment includes sub-step 2231 and sub-step 2232, as shown in FIG. 4. Wherein the content of the first and second substances,
in sub-step 2231, a body part where the feature points in the two frames of images are located is determined. In this embodiment, the body part where the feature point is located may be determined by an image recognition method.
In sub-step 2232, when the body part where the feature point is located is a scanning part and the difference is greater than or equal to a preset value of the part corresponding to the scanning part, it is determined that the subject has moved. In this embodiment, for example, when the body part where the selected feature point is located is a head part and the head part is a part being scanned, it is determined whether a difference value of position coordinates of the feature point in two frames of images is greater than or equal to a preset head value. If the difference is larger than or equal to the head preset value, the detected object is judged to move. In this embodiment, it may be determined that the object to be examined moves when it is detected that the amplitude of the movement of the scanned portion exceeds the preset value, and the non-scanned portion may not be referred to, that is, in this embodiment, the non-scanned portion may be allowed to move, so as to alleviate discomfort during the scanning process of the object to be examined, and improve the scanning experience.
In yet another alternative embodiment, a plurality of determination modes may be stored in advance, such as: a head scan determination mode, a heart scan determination mode, a liver scan determination mode, a leg scan determination mode, and the like. A corresponding decision mode can be initiated depending on the part being scanned, such as: when the head is detected to be scanned, a head scanning judgment mode can be started to judge whether the detected object moves; and when the part being scanned is detected to move to the heart, the system can be switched to a heart scanning judgment mode to judge whether the detected object moves, and the like. In this embodiment, each determination mode includes a plurality of preset body part values corresponding to a plurality of body parts. And the preset values of the corresponding parts in each judgment mode can be different. For example, the head preset value in the head scanning determination mode may be smaller than the head preset values in the other determination modes, and the leg preset value in the leg scanning determination mode may be smaller than the head preset values in the other determination modes, and so on. This can improve the detection accuracy of whether or not the subject moves, and can reduce the influence of the movement of the non-scanning portion.
With continued reference to fig. 2, in step 23, the duration of the movement event is determined. In an alternative embodiment, step 23 includes substep 231, substep 232, and substep 233, as shown in FIG. 5. Wherein the content of the first and second substances,
in sub-step 231, a movement alert is received at a predetermined frequency. In this embodiment, when the imaging device detects that the object moves, the movement event is continuously uploaded and the movement warning is triggered to the console, and the console receives the movement warning sent by the imaging device at a preset frequency.
In sub-step 232, a start time of the time window is determined based on the first received movement alert. In this embodiment, when the console receives the movement warning for the first time, a time window is generated, and the start time and the end time in the time window are both the time when the first movement event occurs.
In sub-step 233, the end time of the time window is updated based on the again received movement alert. In this embodiment, when the console receives the second movement alert, the end time in the time window is updated to the time when the second movement event occurs. In turn, the console may update the end time within the time window in turn according to the re-received movement alert until the movement alert is no longer received. The time in the time window is the duration of the movement event, and the scan data of the subject acquired in the time window is abnormal scan data.
In another alternative embodiment, when the console does not receive the movement warning of the movement event within a preset time (e.g., 3 seconds), the time update within the time window may be ended, and when the movement warning of the movement event is received again, a new time window may be regenerated, and the time for which the new movement event lasts is recorded. That is, when the subject moves a plurality of times, the time duration of each movement may be recorded in a plurality of time windows.
In yet another alternative embodiment, the duration of the movement event may also be calculated according to the frequency of sending the movement warning and the number of times the movement warning is sent. Such as: assuming that the frequency of sending the movement warning is 20 times/second and the number of sending the movement warning is 50 times, the duration of the movement event is 1/20 × 50 — 2.5 seconds. The frequency of sending the movement warning in this embodiment may be determined according to an actual situation, and is not limited in this embodiment.
However, in the embodiment of the present application, other timing methods may be used to determine the duration of the movement event, which is not limited in the embodiment of the present application.
In the embodiment of the application, when the console receives the movement warning, the voice broadcasting device can be triggered to play the pre-stored voice information to prompt the detected object not to move, so that the influence caused by the movement of the detected object can be reduced to the maximum extent.
With continued reference to FIG. 2, in step 24, the anomalous scan data over the duration is removed from the original scan data to obtain valid scan data. In an alternative embodiment, the abnormal scan data within the time window may be removed from the original scan data to obtain valid scan data. Specifically, the duration of the movement of the object may be recorded through a time window, and the scan data of the object acquired within the duration is abnormal scan data within the time window. And then according to the time recorded in the time window, removing abnormal scanning data in the time window from the original scanning data to obtain effective scanning data. In another alternative embodiment, when there are multiple time windows, i.e., when the subject moves multiple times, the time within each time window is the time for which each movement lasts. Abnormal scan data within each time window may be removed from the raw scan data to obtain valid scan data. The valid scan data can be used for image reconstruction to obtain more accurate image data.
According to the method for removing abnormal scanning data, whether the detected body moves or not is detected, the duration time of the movement of the detected body is determined, and then the abnormal scanning data of the detected body collected in the duration time are removed from the original scanning data, so that the effective scanning data after the abnormal scanning data are removed are more accurate.
The execution sequence of each step in the flow shown in fig. 2 to 5 is not limited to the sequence in the flow chart. Furthermore, the description of each step may be implemented in software, hardware or a combination thereof, for example, a person skilled in the art may implement it in the form of software code, and may be a computer executable instruction capable of implementing the corresponding logical function of the step. When implemented in software, the executable instructions may be stored in a memory and executed by a processor in the device.
Corresponding to the embodiment of the time correction method, the application also provides an embodiment of a device for removing abnormal scanning data.
Referring to fig. 6, fig. 6 is a block diagram illustrating an exemplary embodiment of an apparatus 50 for removing abnormal scan data, wherein the apparatus 50 is applied to a PET system. The apparatus 50 comprises: a data acquisition module 51, a video monitoring module 52 and a data processing module 53.
The data acquisition module 51 is configured to acquire raw scan data of the subject during scanning of the subject.
The video monitoring module 52 is used for detecting whether the subject moves.
The data processing module 53 is configured to, when the video monitoring module 52 detects a movement event that the object moves, determine a duration of the movement event; and removing abnormal scan data within the duration from the original scan data acquired by the data acquisition module 51 to obtain valid scan data.
In the embodiment of the present application, the functions of the data acquisition module 51 and the data processing module 53 may be implemented by a console in the PET system, and the function of the video monitoring module 52 may be implemented by the camera 12 in the PET system. In the present embodiment, the data acquisition module 51 determines raw scan data of the object according to the electrical signals transmitted by the detectors in the PET system, the data processing module 53 determines the duration of the movement event according to the movement event detected by the video monitoring module 52, and removes abnormal scan data within the duration from the raw scan data to obtain valid scan data.
Fig. 7 is a block diagram illustrating another apparatus 50 for removing abnormal scan data according to an exemplary embodiment. Referring to fig. 7, the video monitoring module 52 in the present embodiment may include a difference determination subunit 521 and a judgment subunit 522.
The difference determining subunit 521 is configured to acquire a sequence image of the subject, and determine a difference between the position coordinates of the corresponding feature points in two frames of images, where the two frames of images are within a preset range in the sequence image.
The judgment subunit 522 is configured to judge that the object moves when the difference determined by the difference determination subunit 521 is greater than or equal to a preset value.
Fig. 8 is a block diagram illustrating another apparatus 50 for removing abnormal scan data according to an exemplary embodiment. Referring to fig. 8, the video monitoring module 52 in this embodiment may further include: a position determining subunit 523.
The preset values in the present embodiment include a plurality of part preset values corresponding to a plurality of body parts of the subject.
The position determining subunit 523 is configured to determine the body part where the feature point in the two frames of images is located.
The body part where the feature point is located by the determining subunit 522 is a scanned part, and when the difference determined by the difference determining subunit 521 is greater than or equal to the preset value of the part corresponding to the scanned part, it is determined that the subject has moved.
Fig. 9 is a block diagram illustrating another apparatus 50 for removing abnormal scan data according to an exemplary embodiment. Referring to fig. 9, the data processing module 53 in the present embodiment may include: a mobile early warning receiving sub-unit 531, a start time determining sub-unit 532, and an end time determining sub-unit 533.
The movement warning receiving subunit 531 is configured to receive a movement warning at a preset frequency when the video monitoring module 52 detects a movement event that the object moves.
The start time determining subunit 532 is configured to determine a start time of the time window according to the first received moving warning by the moving warning receiving subunit 531.
An end time determining subunit 533, configured to update the end time of the time window according to the mobile warning received again by the mobile warning receiving subunit 531. Wherein the time within the time window is the duration of the movement event.
In another alternative embodiment, with continued reference to fig. 9, the data processing module 53 may further include: an abnormal data removal subunit 534.
And the abnormal data removing subunit 534 is configured to remove the abnormal scanning data within the time window from the original scanning data to obtain valid scanning data.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiment of the application also provides a computer storage medium. The storage medium has stored therein computer-executable instructions for performing:
in scanning a subject, raw scan data of the subject is acquired. Whether the subject moves or not is detected. Determining a duration of a movement event when the movement event that the object moves is detected; and removing abnormal scanning data in the duration from the original scanning data to obtain effective scanning data.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.