CN-116224411-B - Method, device, equipment and storage medium for processing scintillation pulse
Abstract
The application discloses a method, a device, equipment and a storage medium for processing scintillation pulse. The processing method comprises the steps of performing multi-threshold sampling on the scintillation pulse to obtain sampling data, performing reference transformation on first sampling time of the scintillation pulse passing through the sampling threshold for the first time based on time reference data to obtain target time, performing data compression on the target time to obtain target compression time, and transmitting the sampling data and the target compression time to external equipment so that the external equipment can determine energy information and/or time information of the scintillation pulse based on the sampling data and the target compression time. The application can process the original sampling data to realize data compression and then transmit the data, can reduce the load of a data transmission network and lighten the consumption of the computing resources of a server.
Inventors
- HU YUN
- FANG LEI
- YANG LINGLI
- CHEN WEICAO
- HUANG WENLUE
Assignees
- 合肥锐世数字科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20221230
Claims (20)
- 1. A method of processing a scintillation pulse, the method comprising: performing multi-threshold sampling on the scintillation pulse to obtain sampling data, wherein the scintillation pulse corresponds to an energy event and a time event; Performing reference transformation on a first sampling time of a scintillation pulse which is included in the sampling data and passes a sampling threshold value for the first time based on time reference data, and obtaining target time, wherein the time reference data includes a first trigger time corresponding to a first time event; performing data compression on the target time to obtain target compression time, wherein the target time comprises a first time component and a second time component, and the data compression on the target time comprises data compression on the first time component; Transmitting the sampled data and the target compression time to an external device, so that the external device can determine energy information and/or time information of the scintillation pulse based on the sampled data and the target compression time.
- 2. The method of processing a scintillation pulse of claim 1, wherein the acquiring sample data when performing multi-threshold sampling comprises: presetting a plurality of thresholds; Comparing the scintillation pulse with the threshold value for each threshold value, and determining a state change signal when the scintillation pulse passes through the threshold value; a plurality of threshold-time pairs are specified to form the sample data.
- 3. The method of processing a scintillation pulse of claim 2, wherein the spacing between the plurality of thresholds is equal.
- 4. The method of processing a scintillation pulse of claim 1, wherein the scintillation pulse is one of a plurality of scintillation pulses arranged in a sequence based on a first sampling time at which a sampling threshold is first crossed.
- 5. The method of processing scintillation pulses of claim 4, wherein data compressing the first temporal composition comprises: Acquiring a previous first time component of a previous target time corresponding to a previous scintillation pulse in sequence; Designating a second time difference between the first time component and the preceding first time component as a compressed first time component, wherein the number of bytes used to accommodate the compressed first time component is less than the number of bytes used to accommodate the bytes of the first time component.
- 6. The method of processing scintillation pulses of claim 4, wherein data compressing the first temporal composition comprises: Determining a size between a time bit width of the first temporal composition corresponding to a predetermined byte length or an integer multiple of the time bit width; if the first time component is smaller than the time bit width, accommodating the first time component by utilizing the predetermined byte length; If the first time composition is greater than the time bit width or an integer multiple of the time bit width, determining a third time difference between the first time composition and the time bit width or the integer multiple of the time bit width as a compressed first time composition, and accommodating the compressed first time composition by using the predetermined byte length.
- 7. The method of processing scintillation pulses of claim 4, wherein data compressing the first temporal composition comprises: Determining a difference in bytes of the first temporal composition corresponding to a preceding first temporal composition in ordering, the preceding first temporal composition corresponding to a preceding target time of a preceding scintillation pulse in ordering; Based on the difference, data compression is performed on the first temporal composition.
- 8. The method of processing scintillation pulses as recited in claim 7, wherein the bytes are represented in a plurality of byte numbers arranged in a sequence, and wherein the determining the difference comprises: Sequentially comparing whether the first time composition is the same as the byte number corresponding to the previous first time composition; If the byte numbers are the same, removing the byte numbers which are sequenced in front and correspond to the first time component; If the current byte number and the subsequent byte number are different, stopping comparing and reserving the current byte number and the subsequent byte number corresponding to the first time component, and taking the current byte number and the subsequent byte number as the difference.
- 9. The method of processing scintillation pulses of claim 8, wherein data compressing the first temporal composition based on the difference comprises: the difference is specified to represent a first temporal composition after compression.
- 10. A method of processing a scintillation pulse, the method comprising: Acquiring sampling data of scintillation pulses; Acquiring target compression time corresponding to first sampling time when a scintillation pulse passes through a sampling threshold for the first time, wherein the scintillation pulse is one of a plurality of scintillation pulses arranged in sequence, and the target compression time is obtained after data compression is carried out on the target time corresponding to the scintillation pulse, wherein the target time comprises a first time component and a second time component, and the compressed first time component obtained by carrying out data compression on the first time component of the target time is combined with the second time component to form the target compression time; determining whether the scintillation pulse corresponds to a real single event based on the sampling data; if yes, determining target time corresponding to the scintillation pulse based on the target compression time, and determining time information of the real single event based on the target time.
- 11. The method of processing a scintillation pulse of claim 10, wherein the determining whether the scintillation pulse corresponds to a true single event based on the sampling data comprises: determining an objective function corresponding to the scintillation pulse based on the sampling data; integrating the objective function to determine an energy value of the scintillation pulse; determining whether the energy value is within a preset energy range; if yes, determining that the scintillation pulse corresponds to a real single event.
- 12. The method for processing the scintillation pulse of claim 10, wherein the determining the target time for the scintillation pulse based on the target compression time comprises: Acquiring a previous first time component of a previous target time corresponding to a previous scintillation pulse in sequence; designating the sum of the previous first time composition and the compressed first time composition as the first time composition.
- 13. The method for processing the scintillation pulse of claim 10, wherein the determining the target time for the scintillation pulse based on the target compression time comprises: Acquiring a multiple relation between the first time component and a time bit width corresponding to a preset byte length; And determining the first time composition based on the time bit width, the multiple relation and the compressed first time composition.
- 14. The method for processing the scintillation pulse of claim 10, wherein the determining the target time for the scintillation pulse based on the target compression time comprises: Acquiring a plurality of byte numbers of bytes corresponding to a previous first time component, the previous first time component corresponding in order to a previous target time of a previous scintillation pulse; The first temporal composition is determined based on a number of bytes of the bytes corresponding to the previous first temporal composition and the compressed first temporal composition.
- 15. The method of processing a scintillation pulse of any one of claims 12-14, wherein the determining time information for the real single event based on the target time comprises: Acquiring a plurality of first trigger times corresponding to a plurality of time events; respectively comparing whether the time difference between the target time and the plurality of first trigger times is within a preset time range; If yes, determining the first triggering time as the time information of the real single event corresponding to the scintillation pulse.
- 16. A processing device for scintillation pulses, the processing device comprising: The sampling module is configured to perform multi-threshold sampling on the scintillation pulse to obtain sampling data, wherein the scintillation pulse corresponds to an energy event and a time event; The system comprises a sampling module, a conversion module, a target time acquisition module and a data compression module, wherein the sampling module is configured to acquire a sampling time of a sampling threshold value, the sampling time is used for sampling the sampling time of a flash pulse which is included in the sampling data and passes through the sampling threshold value for the first time, the time reference data comprises a first trigger time corresponding to a first time event; the compression module is configured to compress the data of the target time to obtain target compression time; And the transmission module is configured to transmit the sampling data and the target compression time to an external device so that the external device can determine energy information and/or time information of the scintillation pulse based on the sampling data and the target compression time.
- 17. The scintillation pulse processing apparatus of claim 16, wherein to perform multi-threshold sampling to obtain sampled data, the sampling module is configured to: presetting a plurality of thresholds; Comparing the scintillation pulse with the threshold value for each threshold value, and determining a state change signal when the scintillation pulse passes through the threshold value; a plurality of threshold-time pairs are specified to form the sample data.
- 18. The apparatus for processing scintillation pulses of claim 17, wherein the spacing between the plurality of thresholds is equal.
- 19. The apparatus for processing the scintillation pulse of claim 16, wherein the scintillation pulse is one of a plurality of scintillation pulses arranged in a sequence based on a first sampling time at which a sampling threshold is first crossed.
- 20. The apparatus for processing scintillation pulses of claim 19, wherein to data compress the first temporal composition, the compression module is configured to: Acquiring a previous first time component of a previous target time corresponding to a previous scintillation pulse in sequence; Designating a second time difference between the first time component and the preceding first time component as a compressed first time component, wherein the number of bytes used to accommodate the compressed first time component is less than the number of bytes used to accommodate the bytes of the first time component.
Description
Method, device, equipment and storage medium for processing scintillation pulse Technical Field The present application relates to the field of data processing, and in particular, to a method, apparatus, device, and storage medium for processing scintillation pulse. Background In Positron Emission Tomography (PET) applications, gamma rays are converted by a scintillation crystal into a visible light signal, which is further converted by a photoelectric conversion device into a scintillation pulse signal, which is then sampled and processed to obtain a series of application images or energy spectrum information. Among these, sampling of scintillation pulses and processing of sampled data are two very critical processes. High quality sampling can provide accurate raw data for subsequent processing, while fast, efficient and stable processing is a guarantee of excellent presentation of the final results. Currently, after sampling the scintillation pulse, the sampled data is packaged and sent from the detection device to a processing device, such as a server, via a network. The server processes the received sampled data to obtain relevant energy information. But in general the amount of sampled data is very large. For example, during a PET scan, the detection device continuously detects a large number of scintillation pulses and outputs sampled data. Despite the compression method adopted in the data transmission process, a large amount of bandwidth is still required for data transmission. The server also needs to consume a large amount of computing resources for output processing after receiving the sampled data. This inevitably increases the load of the network transmission, affecting the computing power of the server processor. Disclosure of Invention The technical problem to be solved by the embodiment of the application is how to reduce the network transmission load of data transmission in the pulse sampling process and reduce the calculation resource consumption of a server. In order to solve the problems, the application discloses a method, a device, equipment and a storage medium for processing scintillation pulse. According to a first aspect of the present application, a method of processing scintillation pulses is provided. The processing method comprises the steps of performing multi-threshold sampling on the scintillation pulse to obtain sampling data, performing reference transformation on first sampling time when the scintillation pulse passes through a sampling threshold for the first time based on time reference data to obtain target time, performing data compression on the target time to obtain target compression time, and transmitting the sampling data and the target compression time to external equipment so that the external equipment can determine energy information and/or time information of the scintillation pulse based on the sampling data and the target compression time. According to some embodiments of the application, when performing multi-threshold sampling, the acquiring sampled data includes presetting a plurality of thresholds, comparing the scintillation pulse with the thresholds for each threshold, determining a state change signal when the scintillation pulse crosses the threshold, digitizing time sampling the state change signal to acquire corresponding threshold-time pairs, and designating a plurality of threshold-time pairs to form the sampled data. According to some embodiments of the application, the intervals between the plurality of thresholds are equal. According to some embodiments of the application, the scintillation pulse is one of a plurality of scintillation pulses arranged in sequence based on a first sampling time that first crosses a sampling threshold, the time reference data includes a first trigger time corresponding to a first time event, and the acquiring the target time includes designating a first time difference between the first sampling time and the first trigger time as the target time. According to some embodiments of the application, the target time includes a first time component and a second time component, the data compressing the target time includes data compressing the first time component, including obtaining a previous first time component of a previous target time corresponding to a previous scintillation pulse in order, designating a second time difference between the first time component and the previous first time component as a compressed first time component, wherein a number of bytes to accommodate the compressed first time component is less than a number of bytes to accommodate bytes of the first time component. According to some embodiments of the application, the target time includes a first time component and a second time component, the data compressing the target time includes data compressing the first time component, including determining a size between a time bit width corresponding to a predetermined byte length or an intege