X-ray machine radiation dose adjustment method and device, electronic equipment and medium

By dynamically adjusting the X-ray machine's current value, artificial intelligence technology was used to achieve uniform control of the radiation dose, solving the problem of poor X-ray imaging quality and improving the imaging effect.

CN120036802BActive Publication Date: 2025-11-25ZHU HAI SHI QING FAN KE JI YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510028621.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-11-25
Estimated Expiration
2045-01-08

AI Technical Summary

Technical Problem

Existing X-ray machines have uneven radiation dose output during exposure, resulting in poor image quality.

Method used

By dynamically adjusting the current value output by the X-ray machine, and using artificial intelligence technology to sample and calculate the feedback current, the current is adjusted in real time to control the uniformity of the radiation dose.

Benefits of technology

This improves the uniformity of X-ray dose in the X-ray machine, thereby enhancing image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120036802B_ABST
    Figure CN120036802B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an X-ray machine radiation dose adjustment method and device, electronic equipment and medium, belonging to the field of artificial intelligence. The method comprises: in the case that the X-ray machine is in an exposure mode, inputting a first current to the X-ray machine to control the radiation dose of the X-ray machine; sampling the current fed back by the X-ray machine to obtain a set of sampling values of the current of the present iteration, the sampling values comprising current values of a plurality of second currents; determining a current adjustment value of the present iteration according to the current values of the plurality of second currents; determining a current value of a third current according to the current adjustment value of the present iteration; if the exposure time length of the exposure mode has not ended, taking the third current as the first current, jumping to the step of inputting the first current to the X-ray machine for execution until the exposure time length of the exposure mode ends. Embodiments of the present application can improve the uniformity of the radiation dose of the X-ray machine, thereby improving the imaging quality of the X-ray machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence, and in particular to a method, device, electronic device and medium for adjusting X-ray dose of an X-ray machine. Background Technology

[0002] Conventional X-ray machines control radiation dose by setting the voltage and current of the high-voltage tube. However, during the actual X-ray output process, the voltage and current can vary due to differences within the tube itself. Even with the same current and voltage values, the actual radiation dose output by the X-ray machine can deviate. Furthermore, during prolonged exposure, as the temperature of the X-ray machine's oil tank rises, the radiation dose emitted by the X-ray machine tends to increase or decrease linearly with the increase in exposure time. This results in uneven radiation dose output from the X-ray machine, thus affecting the imaging effect.

[0003] Therefore, existing X-ray machines suffer from uneven radiation dose output, resulting in poor X-ray imaging quality. Summary of the Invention

[0004] The main objective of this application is to provide an X-ray machine radiation dose adjustment method, device, electronic device, and medium that can dynamically adjust the input current value of the X-ray machine based on the output current value of the X-ray machine, thereby improving the uniformity of the X-ray dose and thus improving the imaging quality of the X-ray machine.

[0005] To achieve the above objectives, a first aspect of this application provides a method for adjusting the X-ray dose of an X-ray machine, the method comprising:

[0006] When the X-ray machine is in exposure mode, a first current is input to the X-ray machine to control the radiation dose of the X-ray machine;

[0007] The current fed back by the X-ray machine is sampled to obtain a set of sampled values ​​for this iteration, and the sampled values ​​include the current values ​​of multiple second currents;

[0008] Based on the current values ​​of multiple second currents, determine the current adjustment value for this iteration;

[0009] Based on the current adjustment value of this iteration, determine the current value of the third current;

[0010] If the exposure time of the exposure mode has not ended, the third current is used as the first current, and the process jumps to the step of inputting the first current into the X-ray machine until the exposure time of the exposure mode ends.

[0011] In some implementations, determining the current adjustment value for the current iteration based on the current values ​​of the plurality of second currents includes:

[0012] The difference between the current value of each second current and the current value of the target current is calculated to obtain multiple first differences, wherein the target current is the current first input to the X-ray machine in the exposure mode;

[0013] The current adjustment value for this iteration is determined based on multiple first differences.

[0014] In some implementations, determining the current adjustment value for the current iteration based on a plurality of first differences includes:

[0015] The sum of the multiple first differences obtained in this iteration is taken as the first value;

[0016] The second value is obtained by averaging the multiple first differences in this iteration;

[0017] The sum of the multiple first differences obtained in the previous iteration is used as the third value;

[0018] The first, second, and third values ​​are weighted and summed to obtain the current adjustment value for this iteration.

[0019] In some implementations, determining the value of the third current based on the current adjustment value of the current iteration includes:

[0020] Based on the current adjustment value of this iteration and the current operating time of the X-ray machine, the current value of the third current is obtained, where the current operating time is the duration during which the X-ray machine is in the exposure mode.

[0021] In some embodiments, before inputting the first current to the X-ray machine while the X-ray machine is in exposure mode, the method further includes:

[0022] Obtain a fourth current, which is a preset current used to start the X-ray machine;

[0023] A fourth current is input into the X-ray machine;

[0024] The current fed back by the X-ray machine is sampled to obtain the current value of the fifth current;

[0025] Calculate the absolute value of the difference between the current value of the fifth current and the preset standard current value to obtain the second difference;

[0026] If the second difference is greater than the preset error value, the fourth current is adjusted according to the second difference to obtain the sixth current. The sixth current is then used as the fourth current, and the process jumps to the step of inputting the fourth current into the X-ray machine.

[0027] If the second difference is less than or equal to the preset error value, the fifth current is determined as the first current.

[0028] In some implementations, obtaining the value of the third current based on the current adjustment value of the current iteration and the current operating time of the X-ray machine includes:

[0029] Based on the pre-acquired first relationship, the target deviation slope corresponding to the current working time of the X-ray machine is determined. The first relationship includes the relationship between the current working time of the X-ray machine and the deviation slope. The deviation slope is used to indicate the degree of deviation between the radiation dose output by the X-ray machine and the standard radiation dose.

[0030] The sum of the current adjustment value of this iteration and the target deviation slope is taken as the current value of the third current.

[0031] In some implementations, determining the target deviation slope corresponding to the current operating time of the X-ray machine based on the pre-acquired first relationship includes:

[0032] If the current working time of the X-ray machine is less than a preset time threshold, the product of the current working time of the X-ray machine and a preset coefficient is used as the fourth value.

[0033] The sum of the fourth value and the preset minimum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine;

[0034] or,

[0035] If the current working time of the X-ray machine is greater than or equal to the preset time threshold, the preset maximum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine.

[0036] To achieve the above objectives, a second aspect of this application provides an X-ray machine dose adjustment device, the device comprising:

[0037] A current input module is used to input a first current into the X-ray machine when the X-ray machine is in exposure mode, so as to control the radiation dose of the X-ray machine;

[0038] The current sampling module is used to sample the current fed back by the X-ray machine to obtain a set of sampled values ​​for the current iteration, the sampled values ​​including the current values ​​of multiple second currents;

[0039] The first determining module is used to determine the current adjustment value for this iteration based on the current values ​​of multiple second currents;

[0040] The second determining module is used to determine the current value of the third current based on the current adjustment value of the current iteration.

[0041] The loop execution module is used to, if the exposure time of the exposure mode has not ended, take the third current as the first current and jump to the step of inputting the first current to the X-ray machine until the exposure time of the exposure mode ends.

[0042] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the X-ray machine dose adjustment method described in the first aspect.

[0043] To achieve the above objectives, a fourth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the X-ray machine dose adjustment method described in the first aspect.

[0044] The X-ray dose adjustment method, apparatus, electronic device, and medium proposed in this application, when the X-ray machine is in exposure mode, inputs a first current to the X-ray machine to control the X-ray dose; samples the current fed back by the X-ray machine to obtain a set of sampled values ​​for the current iteration, the sampled values ​​including the current values ​​of multiple second currents; determines the current adjustment value for the current iteration based on the multiple second current values; determines the current value of a third current based on the current adjustment value for the current iteration; if the exposure time of the exposure mode has not ended, the third current is used as the first current, and the process jumps to the step of inputting the first current to the X-ray machine until the exposure time of the exposure mode ends; the current value input to the X-ray machine is dynamically adjusted by the current value output by the X-ray machine to improve the uniformity of the X-ray dose, thereby improving the imaging quality of the X-ray machine. Attached Figure Description

[0045] Figure 1 This is a schematic flowchart of an X-ray machine dose adjustment method provided in an embodiment of this application;

[0046] Figure 2 This is another schematic flowchart of the X-ray dose adjustment method for X-ray machines provided in the embodiments of this application;

[0047] Figure 3 This is a schematic diagram of the X-ray dose adjustment device provided in the embodiments of this application;

[0048] Figure 4 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0050] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0052] Conventional X-ray machines control radiation dose by setting the voltage and current of the high-voltage tube. However, during the actual X-ray output process, the voltage and current can vary due to differences within the tube itself. Even with the same current and voltage values, the actual radiation dose output by the X-ray machine can deviate. Furthermore, during prolonged exposure, as the temperature of the X-ray machine's oil tank rises, the radiation dose emitted by the X-ray machine tends to increase or decrease linearly with the increase in exposure time. This results in uneven radiation dose output from the X-ray machine, thus affecting the imaging effect.

[0053] Therefore, existing X-ray machines suffer from uneven radiation dose output, resulting in poor X-ray imaging quality.

[0054] Based on this, embodiments of this application provide an X-ray machine radiation dose adjustment method, device, electronic device, and medium, which aim to dynamically adjust the input current value of the X-ray machine by using the current value output by the X-ray machine, so as to improve the uniformity of the X-ray machine radiation dose and thus improve the imaging quality of the X-ray machine.

[0055] The X-ray machine dose adjustment method, device, electronic equipment and medium provided in the embodiments of this application are specifically described through the following embodiments. First, the X-ray machine dose adjustment method in the embodiments of this application is described.

[0056] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0057] Foundational artificial intelligence technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0058] The X-ray dose adjustment method for X-ray machines provided in this application relates to the field of artificial intelligence. This method can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the X-ray dose adjustment method, but is not limited to the above forms.

[0059] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0060] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data required for the proper functioning of these embodiments acquired.

[0061] Figure 1 This is a flowchart illustrating the X-ray dose adjustment method for an X-ray machine provided in this application embodiment. Please refer to [link / reference]. Figure 1 The X-ray dose adjustment method provided in this application embodiment may include, but is not limited to, steps S101 to S105.

[0062] Step S101: When the X-ray machine is in exposure mode, a first current is input to the X-ray machine to control the radiation dose of the X-ray machine.

[0063] In this step, the X-ray machine's operating modes are divided into correction mode and exposure mode. The correction mode is used to correct the target current input to the X-ray machine in user mode (i.e., exposure mode) before the X-ray machine is used in the target application scenario. The exposure mode is the mode in which the X-ray machine is actually used in the target application scenario. The exposure mode can be started by sending an exposure mode start command to the X-ray machine through a host computer, or by a technician manually starting the X-ray machine's exposure mode. When the X-ray machine is in exposure mode, a first current and the voltage corresponding to the first current are input to the X-ray machine to control the radiation dose emitted by the X-ray machine. The first current is a pre-calibrated current that ensures the radiation dose emitted by the X-ray machine meets the requirements of the application scenario. The application scenario can be an X-ray machine on a security inspection machine, an X-ray machine in a hospital imaging system, or any device that takes pictures using an X-ray machine. There are no limitations here.

[0064] Step S102: Sample the current fed back by the X-ray machine to obtain a set of sampled values ​​for this iteration. The sampled values ​​include the current values ​​of multiple second currents.

[0065] In this step, after the current has climbed up and leveled out, the current fed back by the X-ray machine is sampled at preset sampling times to obtain multiple temporary second currents. Each temporary second current is filtered and denoised to obtain multiple current values. An iteration is performed according to the preset number of samplings. The current values ​​of the second currents corresponding to the N consecutively sampled temporary second currents are taken as a set of sample values. N is the preset number of samplings, and N is a positive integer. N can be set according to the actual situation.

[0066] For example, the preset sampling time is set to 1ms, that is, after the X-ray machine is in exposure mode for 20ms and the current has completed the ramp-up and leveling, the current fed back by the X-ray machine is sampled every 1ms. The preset number of sampling times is 5 times, that is, every five sampling times is regarded as one iteration, and the current value of the second current obtained from these five samplings is regarded as a set of sampling values.

[0067] Step S103: Determine the current adjustment value for this iteration based on the current values ​​of the multiple second currents.

[0068] In this step, the current adjustment value for this iteration is determined based on the difference between the current value of each second current obtained in this iteration and the current value input to the X-ray machine for the first time, and the difference between the current value of each second current obtained in the previous iteration and the current value input to the X-ray machine for the first time. The current value input to the X-ray machine is then adjusted using the current adjustment value.

[0069] Step S104: Determine the current value of the third current based on the current adjustment value of this iteration.

[0070] In this step, the current value input to the X-ray machine is adjusted using the current adjustment value of this iteration to determine the current value of the third current.

[0071] Step S105: If the exposure time of the exposure mode has not ended, the third current is used as the first current, and the process jumps to the step of inputting the first current into the X-ray machine until the exposure time of the exposure mode ends.

[0072] In this step, the exposure duration of the exposure mode can be set according to the exposure task. Before the exposure duration of the exposure mode ends, the third current is used as the first current, and the process of inputting the first current to the X-ray machine is repeated. The current fed back by the X-ray machine is sampled to obtain a set of sampled values ​​for this iteration. The sampled values ​​include the current values ​​of multiple second currents. Based on the current values ​​of multiple second currents, the current adjustment value for this iteration is determined. Based on the current adjustment value for this iteration, the current value of the third current is determined. The step of using the third current as the first current continues until the exposure duration of the exposure mode ends, that is, until the exposure task is completed.

[0073] Through steps S101 to S105 above, when the X-ray machine is in exposure mode, the electronic device inputs a first current to the X-ray machine to control the radiation dose of the X-ray machine; samples the current fed back by the X-ray machine to obtain a set of sampled values ​​for the current iteration, the sampled values ​​including the current values ​​of multiple second currents; determines the current adjustment value for the current iteration based on the multiple second current values; determines the current value of a third current based on the current adjustment value for the current iteration; if the exposure time of the exposure mode has not ended, the third current is used as the first current, and the process jumps to the step of inputting the first current to the X-ray machine until the exposure time of the exposure mode ends; the current value input to the X-ray machine is dynamically adjusted by the current value output by the X-ray machine to improve the uniformity of the X-ray dose, thereby improving the imaging quality of the X-ray machine.

[0074] In some implementations, determining the current adjustment value for the current iteration based on the current values ​​of the plurality of second currents in step S103 may include, but is not limited to, the following steps:

[0075] The difference between the current value of each second current and the current value of the target current is calculated to obtain multiple first differences, wherein the target current is the current first input to the X-ray machine in the exposure mode;

[0076] The current adjustment value for this iteration is determined based on multiple first differences.

[0077] In this implementation, the target current is pre-calibrated and is the current that makes the X-ray dose emitted by the X-ray machine meet the requirements of the application scenario. In each iteration, the difference between the current value of each second current and the target current is calculated to obtain the first difference. The current adjustment value of the current iteration is determined by the first difference corresponding to each second current in each iteration.

[0078] For example, the target current is 3mA, and this iteration includes five second currents with current values ​​of 2.7mA, 2.8mA, 2.6mA, 2.7mA, and 2.5mA, respectively. The difference between each second current and the target current is calculated, and the first difference corresponding to each second current is 0.3mA, 0.2mA, 0.4mA, 0.3mA, and 0.5mA. Based on the above multiple first differences, the current adjustment value for this iteration is determined.

[0079] In this embodiment, by continuously calculating the difference between each second current and the target current, the radiation dose of the X-ray machine can be controlled more precisely to meet the needs of specific application scenarios; and through iteration, the current of the X-ray machine gradually approaches the target current in each iteration, eliminating the need for manual operation and improving operational efficiency.

[0080] In some implementations, determining the current adjustment value for the current iteration based on multiple first differences may include, but is not limited to, the following steps:

[0081] The sum of the multiple first differences obtained in this iteration is taken as the first value;

[0082] The second value is obtained by averaging the multiple first differences in this iteration;

[0083] The sum of the multiple first differences obtained in the previous iteration is used as the third value;

[0084] The first, second, and third values ​​are weighted and summed to obtain the current adjustment value for this iteration.

[0085] In this implementation, the multiple first differences obtained in the current iteration are added together to obtain a first value; the average of the multiple first differences obtained in the current iteration is calculated to obtain a second value; the multiple first differences obtained in the previous iteration are added together to obtain a third value; and the first value, second value, and third value are multiplied by the corresponding coefficients to obtain the current adjustment value for the current iteration.

[0086] Specifically, the formula for calculating the above current adjustment value is as follows:

[0087] PID=pid.Kp*error+pid.Ki*pid.integral+pid.Kd*derivative

[0088] Wherein, PID represents the current adjustment value, error represents the first value, pid.integral represents the second value, derivative represents the third value, pid.Kp represents the coefficient corresponding to the first value, pid.Ki represents the coefficient corresponding to the second value, and pid.Kd represents the coefficient corresponding to the third value.

[0089] It should be noted that pid.Kp, pid.Ki, and pid.Kd can all be set according to the actual situation, and no restrictions are imposed here.

[0090] In this embodiment, the sum of the differences between the current iteration and the previous iteration, as well as the average of the differences in the current iteration, are used to reduce fluctuations in the current adjustment process, making the current adjustment smoother. Furthermore, by calculating multiple first differences, the impact of individual outliers on the current adjustment value is reduced, thereby improving the accuracy of the current adjustment.

[0091] In some implementations, determining the value of the third current based on the current adjustment value of the current iteration in step S104 may include, but is not limited to, the following steps:

[0092] Based on the current adjustment value of this iteration and the current operating time of the X-ray machine, the current value of the third current is obtained, where the current operating time is the duration during which the X-ray machine is in the exposure mode.

[0093] In this implementation, the length of time the X-ray machine is in exposure mode is recorded, that is, the current working time of the X-ray machine. Since the working time of the X-ray machine will cause changes in equipment performance, such as thermal drift and component aging, the compensation current parameters of the X-ray machine are determined based on the working time of the X-ray machine.

[0094] Based on the current adjustment parameters of this iteration and the compensation current parameters corresponding to the current working time of the X-ray machine, the current value of the third current is obtained, and the current value of the third current is used as the current value input to the X-ray machine at the beginning of the next iteration.

[0095] Specifically, the formula for calculating the value of the third current is as follows:

[0096] I = PID + f(x)

[0097] Where I represents the current value of the third current, PID represents the current adjustment parameter of this iteration, and f(x) represents the compensation current parameter corresponding to the current working time of the X-ray machine.

[0098] In this embodiment, by using the current operating time of the X-ray machine, performance changes caused by prolonged operation of the X-ray machine can be predicted and compensated more accurately, thereby improving the control accuracy of radiation dose. Furthermore, by adjusting the current in real time, the operating performance of the X-ray machine can be optimized to ensure that the radiation dose of the X-ray machine can be stably output under different operating times, thereby providing the best imaging effect.

[0099] In some implementations, such as Figure 2 As shown, when the X-ray machine is in exposure mode in step S101, before the first current is input to the X-ray machine, the X-ray dose adjustment method provided in this application embodiment may include, but is not limited to, steps S201 to S206.

[0100] Step S201: Obtain a fourth current, which is a preset current used to start the X-ray machine.

[0101] Step S202: Input the fourth current into the X-ray machine.

[0102] Step S203: Sample the current fed back by the X-ray machine to obtain the current value of the fifth current.

[0103] Step S204: Calculate the absolute value of the difference between the current value of the fifth current and the preset standard current value to obtain the second difference.

[0104] Step S205: If the second difference is greater than the preset error value, adjust the fourth current according to the second difference to obtain the sixth current, use the sixth current as the fourth current, and jump to the step of inputting the fourth current into the X-ray machine.

[0105] Step S206: If the second difference is less than or equal to the preset error value, the fifth current is determined as the first current.

[0106] In this implementation, the fourth current is a preset current used to start the X-ray machine. The fourth current can be set according to actual conditions and is not limited here. The fourth current and the corresponding voltage are input into the X-ray machine to start it. The current fed back after the X-ray machine starts is sampled to obtain the current value of the fifth current. The difference between the current value of the fifth current and the preset standard current value is calculated, and its absolute value is taken to obtain the second difference value.

[0107] The process involves determining whether the second difference is greater than a preset error value. If the second difference is greater than the preset error value, it indicates that the current is not within the expected range. The fourth current is adjusted based on the second difference to obtain a new current, namely the sixth current. The sixth current is used as the fourth current, and the process of inputting the fourth current into the X-ray machine is repeated. The current fed back by the X-ray machine is sampled to obtain the current value of the fifth current. The absolute value of the difference between the current value of the fifth current and the preset standard current value is calculated to obtain the second difference. If the second difference is greater than the preset error value, the fourth current is adjusted based on the second difference to obtain the sixth current. The process of using the sixth current as the fourth current continues until the second difference is less than the preset error value. The fifth current is then used as the first current mentioned above. In other words, the fifth current is the current that enables the X-ray dose emitted by the X-ray machine to meet the requirements of the application scenario.

[0108] It should be noted that the preset error value and preset standard current can be set according to the actual situation, and there are no restrictions here.

[0109] For example, a preset standard current value of 2mA is set, and the exposure time is set to 100ms. A sampling period of 20ms to 80ms is set, and a preset error value of 0.5mA is set. The current value fed back from the X-ray machine during the 20ms to 80ms period is captured, and the current within the above sampling period is calculated using the median averaging method to obtain the current value of the fifth current. The difference between the current value of the fifth current and the preset standard current value is calculated. If the absolute value of the difference between the current value of the fifth current and the preset standard current value is greater than 0.5mA, based on the previous current value input to the X-ray machine, the current value of the fifth current is adjusted according to the difference between the current value of the fifth current and the preset standard current value. The standard current value difference is adjusted accordingly. For example, if the difference between the fifth current value and the preset standard current value is greater than 0.5mA, the current value input to the X-ray machine is adaptively reduced based on the previous current value input to the X-ray machine. If the difference between the fifth current value and the preset standard current value is less than -0.5mA, the current value input to the X-ray machine is adaptively increased based on the previous current value input to the X-ray machine, until the absolute value of the difference between the fifth current value and the preset standard current value is less than 0.5mA. At this point, the fifth current is taken as the target current and takes effect when the X-ray machine is in exposure mode.

[0110] In this embodiment, the target current input to the X-ray machine's exposure mode is corrected, which compensates for the error in the radiation dose emitted by the X-ray machine caused by hardware differences between different batches of X-ray machines, thus greatly improving the consistency of X-ray machine products.

[0111] In some implementations, the current value of the third current is obtained based on the current adjustment value of the current iteration and the current operating time of the X-ray machine, which may include, but is not limited to, the following steps:

[0112] Based on the pre-acquired first relationship, the target deviation slope corresponding to the current working time of the X-ray machine is determined. The first relationship includes the relationship between the current working time of the X-ray machine and the deviation slope. The deviation slope is used to indicate the degree of deviation between the radiation dose output by the X-ray machine and the standard radiation dose.

[0113] The sum of the current adjustment value of this iteration and the target deviation slope is taken as the current value of the third current.

[0114] In this implementation, the length of time the X-ray machine is in exposure mode is recorded, which is the current working time of the X-ray machine. Since the working time of the X-ray machine will cause changes in equipment performance, such as thermal drift and component aging, the deviation slope of the X-ray machine is determined based on the working time of the X-ray machine, which is the compensation current parameter of the X-ray machine.

[0115] Based on the current adjustment parameters of this iteration and the deviation slope corresponding to the current working time of the X-ray machine, the current value of the third current is obtained, and the current value of the third current is used as the current value input to the X-ray machine at the beginning of the next iteration.

[0116] In this embodiment, by using the current operating time of the X-ray machine, performance changes caused by prolonged operation of the X-ray machine can be predicted and compensated more accurately, thereby improving the control accuracy of radiation dose. Furthermore, by adjusting the current in real time, the operating performance of the X-ray machine can be optimized to ensure that the radiation dose of the X-ray machine can be stably output under different operating times, thereby providing the best imaging effect.

[0117] In some implementations, determining the target deviation slope corresponding to the current operating time of the X-ray machine based on the pre-acquired first relationship may include, but is not limited to, the following steps:

[0118] If the current working time of the X-ray machine is less than a preset time threshold, the product of the current working time of the X-ray machine and a preset coefficient is used as the fourth value.

[0119] The sum of the fourth value and the preset minimum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine;

[0120] or,

[0121] If the current working time of the X-ray machine is greater than or equal to the preset time threshold, the preset maximum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine.

[0122] In this implementation, if the current working time of the X-ray machine is less than a preset time threshold, the current working time of the X-ray machine is multiplied by a preset coefficient to obtain a fourth value. The fourth value is then added to a preset minimum error value to obtain the target deviation slope corresponding to the current working time of the X-ray machine. If the current working time of the X-ray machine is greater than or equal to the preset time threshold, the preset maximum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine.

[0123] Specifically, when the current operating time of the X-ray machine is less than a preset time threshold, the formula for calculating the target deviation slope of the X-ray machine can be shown as follows:

[0124] f(x)=a(x)*t+f(x)min

[0125] Where f(x) represents the target deviation slope, a(x) represents the preset coefficient, t represents the current working time of the X-ray machine, and f(x)min represents the preset minimum error value.

[0126] When the current operating time of the X-ray machine is greater than or equal to a preset time threshold, the formula for calculating the target deviation slope of the X-ray machine can be expressed as follows:

[0127] f(x)=f(x)max

[0128] Where f(x)max represents the preset maximum error value.

[0129] For example, the preset duration threshold is 250s, the preset coefficient is 0.0018, the preset minimum error value is 0.2, and the preset maximum error value is 0.65.

[0130] When the current operating time of the X-ray machine is less than 250 seconds, the target deviation slope of the X-ray machine can be calculated using the following formula:

[0131] f(x) = 0.0018 * t + 0.2

[0132] When the current operating time of the X-ray machine is greater than or equal to 250 seconds, the target deviation slope of the X-ray machine can be calculated using the following formula:

[0133] f(x) = 0.65

[0134] It should be noted that the preset coefficients, preset minimum error value, and preset maximum error value can be set according to the actual situation, and are not limited here.

[0135] In this embodiment, during the initial operation of the X-ray machine, using a smaller target deviation slope can avoid over-adjustment and maintain the stable performance of the X-ray machine. As the X-ray machine operates for longer periods, appropriately increasing the target deviation slope can compensate for the degradation of the X-ray machine's performance, thereby improving the precision of current control and enhancing the stability and accuracy of the X-ray machine's output radiation dose.

[0136] Figure 3 This is a schematic diagram of the X-ray dose adjustment device for an X-ray machine provided in an embodiment of this application. Please refer to [link / reference]. Figure 3 This application embodiment also provides an X-ray machine dose adjustment device 800, which can realize the above-mentioned X-ray machine dose adjustment method. The X-ray machine dose adjustment device 800 includes:

[0137] The current input module 801 is used to input a first current to the X-ray machine when the X-ray machine is in exposure mode, so as to control the radiation dose of the X-ray machine;

[0138] The current sampling module 802 is used to sample the current fed back by the X-ray machine to obtain a set of sampled values ​​for the current iteration, wherein the sampled values ​​include the current values ​​of multiple second currents;

[0139] The first determining module 803 is used to determine the current adjustment value for the current iteration based on the current values ​​of multiple second currents;

[0140] The second determining module 804 is used to determine the current value of the third current based on the current adjustment value of the current iteration.

[0141] The loop execution module 805 is used to, if the exposure time of the exposure mode has not ended, take the third current as the first current and jump to the step of inputting the first current to the X-ray machine until the exposure time of the exposure mode ends.

[0142] In some implementations, the first determining module 803 includes:

[0143] The first calculation submodule is used to calculate the difference between the current value of each second current and the current value of the target current to obtain multiple first differences, wherein the target current is the current first input to the X-ray machine in the exposure mode;

[0144] The first determining submodule is used to determine the current adjustment value for this iteration based on multiple first differences.

[0145] In some implementations, the first determining submodule includes:

[0146] The first calculation unit is used to take the sum of the multiple first differences obtained in this iteration as the first value;

[0147] The second calculation unit is used to calculate the average of the multiple first differences in this iteration to obtain the second value;

[0148] The third calculation unit is used to take the sum of the multiple first differences obtained in the previous iteration as the third value;

[0149] The first determining unit is used to perform a weighted summation of the first value, the second value, and the third value to obtain the current adjustment value for the current iteration.

[0150] In some implementations, the second determining module 804 includes:

[0151] The second determining unit is used to obtain the current value of the third current based on the current adjustment value of the current iteration and the current working time of the X-ray machine, wherein the current working time is the duration during which the X-ray machine is in the exposure mode.

[0152] In some embodiments, the X-ray machine dose adjustment device 800 further includes:

[0153] The first acquisition module is used to acquire a fourth current, which is a preset current used to start the X-ray machine;

[0154] The first input module is used to input the fourth current into the X-ray machine;

[0155] The first sampling module is used to sample the current fed back by the X-ray machine to obtain the current value of the fifth current;

[0156] The first calculation module is used to calculate the absolute value of the difference between the current value of the fifth current and the preset standard current value to obtain the second difference.

[0157] The third determining module is used to adjust the fourth current according to the second difference if the second difference is greater than the preset error value, to obtain a sixth current, and to use the sixth current as the fourth current, and then jump to the step of inputting the fourth current into the X-ray machine.

[0158] The fourth determining module is used to determine the fifth current as the first current if the second difference is less than or equal to the preset error value.

[0159] In some embodiments, the second determining unit includes:

[0160] The first determining subunit is used to determine the target deviation slope corresponding to the current working time of the X-ray machine according to the pre-acquired first relationship. The first relationship includes the relationship between the current working time of the X-ray machine and the deviation slope. The deviation slope is used to indicate the degree of deviation between the radiation dose output by the X-ray machine and the standard radiation dose.

[0161] The second determining subunit takes the sum of the current adjustment value of the current iteration and the target deviation slope as the current value of the third current.

[0162] In some implementations, the first determining subunit includes:

[0163] The first calculation sub-unit is used to take the product of the current working time of the X-ray machine and a preset coefficient as the fourth value when the current working time of the X-ray machine is less than a preset time threshold.

[0164] The second calculation sub-unit is used to sum the fourth value and the preset minimum error value as the target deviation slope corresponding to the current working time of the X-ray machine.

[0165] or,

[0166] The third-level subunit is used to take the preset maximum error value as the target deviation slope corresponding to the current working time of the X-ray machine when the current working time of the X-ray machine is greater than or equal to the preset time threshold.

[0167] The specific implementation of the X-ray machine dose adjustment device 800 is the same as the specific embodiment of the X-ray machine dose adjustment method described above, and will not be repeated here.

[0168] When the X-ray machine is in exposure mode, a first current is input to the X-ray machine to control the radiation dose. The current fed back by the X-ray machine is sampled to obtain a set of sampled values ​​for the current iteration, which includes the current values ​​of multiple second currents. Based on the current values ​​of the multiple second currents, a current adjustment value for the current iteration is determined. Based on the current adjustment value for the current iteration, a third current value is determined. If the exposure time of the exposure mode has not ended, the third current is used as the first current, and the process jumps to the step of inputting the first current to the X-ray machine until the exposure time of the exposure mode ends. The current value input to the X-ray machine is dynamically adjusted by the current value output by the X-ray machine to improve the uniformity of the X-ray dose, thereby improving the imaging quality of the X-ray machine.

[0169] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described X-ray machine dose adjustment method. This electronic device can be any smart terminal, including desktop computers, tablets, mobile phones, and in-vehicle computers.

[0170] Please see Figure 4 , Figure 4 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device includes:

[0171] The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0172] The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 to execute the X-ray machine dose adjustment method of the embodiments of this application.

[0173] The input / output interface 903 is used to implement information input and output;

[0174] The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0175] Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904);

[0176] The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.

[0177] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described X-ray machine dose adjustment method.

[0178] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0179] The X-ray dose adjustment method, apparatus, electronic device, and medium provided in this application embodiment, when the X-ray machine is in exposure mode, inputs a first current to the X-ray machine to control the X-ray dose; samples the current fed back by the X-ray machine to obtain a set of sampled values ​​for the current iteration, the sampled values ​​including the current values ​​of multiple second currents; determines the current adjustment value for the current iteration based on the multiple second current values; determines the current value of a third current based on the current adjustment value for the current iteration; if the exposure time of the exposure mode has not ended, the third current is used as the first current, and execution jumps to the step of inputting the first current to the X-ray machine until the exposure time of the exposure mode ends; the current value input to the X-ray machine is dynamically adjusted by the current value output by the X-ray machine to improve the uniformity of the X-ray dose, thereby improving the imaging quality of the X-ray machine.

[0180] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0181] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0182] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0183] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0184] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0185] It should be understood that in this application, "at least one (item)" means one or more, and "multiple" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can represent: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item) below" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a, b and c", where a, b, c can be single or multiple.

[0186] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the above division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.

[0187] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0188] In addition, in each embodiment of this application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0189] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0190] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method for adjusting X-ray dose in an X-ray machine, characterized in that, The method includes: When the X-ray machine is in exposure mode, a first current is input to the X-ray machine to control the radiation dose of the X-ray machine; The current fed back by the X-ray machine is sampled to obtain a set of sampled values ​​for this iteration, and the sampled values ​​include the current values ​​of multiple second currents; Based on the current values ​​of multiple second currents, determine the current adjustment value for this iteration; Based on the current adjustment value of this iteration, determine the current value of the third current; If the exposure time of the exposure mode has not ended, the third current is used as the first current, and the process jumps to the step of inputting the first current into the X-ray machine until the exposure time of the exposure mode ends. The step of determining the current value of the third current based on the current adjustment value of the current iteration includes: Based on the current adjustment value of this iteration and the current working time of the X-ray machine, the current value of the third current is obtained, where the current working time is the duration during which the X-ray machine is in the exposure mode. The process of obtaining the third current value based on the current adjustment value of the current iteration and the current operating time of the X-ray machine includes: Based on the pre-acquired first relationship, the target deviation slope corresponding to the current working time of the X-ray machine is determined. The first relationship includes the relationship between the current working time of the X-ray machine and the deviation slope. The deviation slope is used to indicate the degree of deviation between the radiation dose output by the X-ray machine and the standard radiation dose. The deviation slope is a compensation current parameter for the X-ray machine. The sum of the current adjustment value of this iteration and the target deviation slope is taken as the current value of the third current. The step of determining the target deviation slope corresponding to the current working time of the X-ray machine based on the pre-acquired first relationship includes: If the current working time of the X-ray machine is greater than or equal to a preset time threshold, the preset maximum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine.

2. The method according to claim 1, characterized in that, The step of determining the current adjustment value for this iteration based on the current values ​​of multiple second currents includes: The difference between the current value of each second current and the current value of the target current is calculated to obtain multiple first differences, wherein the target current is the current first input to the X-ray machine in the exposure mode; The current adjustment value for this iteration is determined based on multiple first differences.

3. The method according to claim 2, characterized in that, The step of determining the current adjustment value for this iteration based on multiple first differences includes: The sum of the multiple first differences obtained in this iteration is taken as the first value; The second value is obtained by averaging the multiple first differences in this iteration; The sum of the multiple first differences obtained in the previous iteration is used as the third value; The first, second, and third values ​​are weighted and summed to obtain the current adjustment value for this iteration.

4. The method according to claim 1, characterized in that, Before inputting the first current to the X-ray machine while the X-ray machine is in exposure mode, the method further includes: Obtain a fourth current, which is a preset current used to start the X-ray machine; A fourth current is input into the X-ray machine; The current fed back by the X-ray machine is sampled to obtain the current value of the fifth current; Calculate the absolute value of the difference between the current value of the fifth current and the preset standard current value to obtain the second difference; If the second difference is greater than the preset error value, the fourth current is adjusted according to the second difference to obtain the sixth current. The sixth current is then used as the fourth current, and the process jumps to the step of inputting the fourth current into the X-ray machine. If the second difference is less than or equal to the preset error value, the fifth current is determined as the first current.

5. An X-ray machine dose adjustment device, characterized in that, The device includes: A current input module is used to input a first current into the X-ray machine when the X-ray machine is in exposure mode, so as to control the radiation dose of the X-ray machine; The current sampling module is used to sample the current fed back by the X-ray machine to obtain a set of sampled values ​​for the current iteration, the sampled values ​​including the current values ​​of multiple second currents; The first determining module is used to determine the current adjustment value for this iteration based on the current values ​​of multiple second currents; The second determining module is used to determine the current value of the third current based on the current adjustment value of the current iteration. The loop execution module is used to, if the exposure time of the exposure mode has not ended, take the third current as the first current and jump to the step of inputting the first current into the X-ray machine until the exposure time of the exposure mode ends. The second determining module is further configured to obtain the current value of the third current based on the current adjustment value of the current iteration and the current working time of the X-ray machine, wherein the current working time is the duration during which the X-ray machine is in the exposure mode; The process of obtaining the third current value based on the current adjustment value of the current iteration and the current operating time of the X-ray machine includes: Based on the pre-acquired first relationship, the target deviation slope corresponding to the current working time of the X-ray machine is determined. The first relationship includes the relationship between the current working time of the X-ray machine and the deviation slope. The deviation slope is used to indicate the degree of deviation between the radiation dose output by the X-ray machine and the standard radiation dose. The deviation slope is a compensation current parameter for the X-ray machine. The sum of the current adjustment value of this iteration and the target deviation slope is taken as the current value of the third current. The step of determining the target deviation slope corresponding to the current working time of the X-ray machine based on the pre-acquired first relationship includes: If the current working time of the X-ray machine is greater than or equal to a preset time threshold, the preset maximum error value is used as the target deviation slope corresponding to the current working time of the X-ray machine.

6. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the X-ray dose adjustment method of any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the X-ray dose adjustment method of any one of claims 1 to 4.

Citation Information

Patent Citations

  • X-ray machine exposure dose control method and electronic device

    CN116035602A

  • X-ray automatic exposure control method and device, computer equipment and storage medium

    CN117939764A