A method for intelligent recognition of DR image defects based on deep learning
Through deep learning technology, the DR image of the steel pipe welding part is analyzed and processed, and the number of filters is dynamically adjusted to solve the abnormal disturbance problem in the image, which improves the accuracy and performance of defect identification of the steel pipe welding part.
Patent Information
- Application Number
- CN202311743135.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-12-18
AI Technical Summary
The existing technology has the problem of abnormal disturbance in the DR image of the steel pipe welding part, which leads to poor abnormal cleaning performance for defect identification and cannot effectively remove the abnormal disturbance caused by the DR imaging plate equipment itself and external clutter.
Using the intelligent identification method of DR image defects based on deep learning, by obtaining the queue of DR image values, interval value sub-queues and residual queues, the residual expansion factor, fluctuation parameters and steep change parameters are calculated, the comprehensive maneuvering balance amount is dynamically adjusted and filtered number to improve image cleaning performance.
It improves the filtering performance of DR images, enhances the protection ability against abnormal disturbances, forms a more accurate and stable improved numerical queue, and improves the accuracy of defect identification of steel pipe welding parts.
Smart Images

Figure CN117788396B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of DR image defects, and specifically relates to a DR image defect intelligent recognition method based on deep learning. Background Art
[0002] DR is the abbreviation of digital direct radiography. Traditional X-ray film uses film to record images, while DR technology completely digitizes the process. It uses digital sensors to convert X-rays directly into digital signals through the sensor, which are then processed and displayed by a computer. This digital process makes DR image acquisition faster and more accurate, and the results can be displayed immediately on the computer screen.
[0003] Due to the above advantages of DR images, the existing technical solution with patent application number "CN202211228352.3" and patent name "A method for detecting defects in digital radiographic images of steel pipe welding" is generally used to identify defects in steel pipe welds. A number of DR images of steel pipe welds are obtained through a DR imaging plate set at the pipeline weld, and then an optimized network model is obtained after optimization. Then, the newly acquired DR images are input into the optimized network model to identify the defect properties of the steel pipe weld including the defect position.
[0004] However, the image values of the DR image of the steel pipe welding part obtained by the DR imaging plate often have abnormal disturbances due to problems with the DR imaging plate equipment itself or external clutter disturbances. Therefore, in order to accurately perform timely identification of defects in the steel pipe welding part on the DR image of the steel pipe welding part, it is very important to perform abnormal cleaning processing on the image values of the DR image of the steel pipe welding part. The current abnormal cleaning method uses a constant amount of filtering scale to perform abnormal cleaning processing on the image values of the DR image of the steel pipe welding part, resulting in poor DR image abnormal cleaning performance. Summary of the invention
[0005] In order to solve the defects in the prior art, the present invention proposes a DR image defect intelligent recognition method based on deep learning. First, a queue of DR image values of a DR image is obtained, and an interval value queue of each DR image value is obtained in the queue of DR image values, and the filtering number of each DR image value is actively determined; then, the residual queue of each DR image value is obtained respectively, and the arrangement of the difference quantity therein is analyzed to obtain the residual expansion factor representing the value difference quantity and dispersion amplitude in the corresponding interval range of the DR image value, and then the disturbance state of the value in the interval value queue of the DR image value is analyzed, and the residual expansion factor is aggregated to obtain the DR image fluctuation parameter; the difference quantity state of the value in the interval value queue of the DR image value is analyzed, and the residual expansion factor is combined to obtain the DR image steep change parameter, and the dynamic balance of the DR image value is obtained by combining the analysis value; finally, the corresponding filtering number size of each DR image value is determined according to the dynamic balance amount, and the filtering number size can be actively obtained according to the stability amplitude of the value in the interval range of the DR image value, so that the performance of filtering each DR image value using the filtering number size is good, and the improved value queue has better anti-abnormal disturbance performance.
[0006] The present invention uses the following technical solutions.
[0007] A DR image defect intelligent recognition device based on deep learning, comprising:
[0008] A DR imaging board is provided at the pipeline weld, and the DR imaging board is communicatively connected with the identification device;
[0009] The DR imaging plate is used to collect the image values of the DR image of the steel pipe welding part and transmit them to the recognition device for pre-processing. The recognition device is used to optimize the image values of the DR image of the steel pipe welding part after pre-processing to obtain an optimized network model, and then input the newly collected DR image into the optimized network model to identify the defect properties of the steel pipe welding part;
[0010] The modules running on the identification device include:
[0011] A forming module is used to obtain the image values of the DR images of the steel pipe welding part at different time points transmitted by the DR imaging plate during the defined time period, and form a queue of DR image values; obtain the interval values of each DR image value in the queue of DR image values and divide them into queues;
[0012] A separation module is used to perform separation on each interval value queue to obtain the corresponding residual queue of each DR image value; and to obtain the residual expansion factor of each DR image value according to the difference between the residual values in the residual queue of each DR image value;
[0013] A recognition module is used to obtain a DR image fluctuation parameter of each DR image value according to a residual expansion factor of each DR image value and a disturbance condition of a value in an interval value subqueue; obtain a DR image steep change parameter of each DR image value according to a residual expansion factor of each DR image value and a difference condition between adjacent values in an interval value subqueue; and recognize a dynamic balance amount of each DR image value according to the DR image fluctuation parameter and the DR image steep change parameter;
[0014] The filtering module is used to determine the corresponding filtering number size of each DR image value according to the mobile balance amount, and use the filtering number size to perform filtering processing on each DR image value in the queue of DR image values to obtain an improved value queue.
[0015] A DR image defect intelligent recognition method based on deep learning, comprising:
[0016] S1: Obtain image values of DR images of the steel pipe welding part at different time points transmitted by the DR imaging plate during a defined time period to form a queue of DR image values; obtain interval values of each DR image value in the queue of DR image values and divide them into queues;
[0017] S2: Separate each interval value queue to obtain the corresponding residue queue of each DR image value; and arrange the residue expansion factor of each DR image value according to the difference between the residue values in the residue queue of each DR image value;
[0018] S3: obtaining a DR image fluctuation parameter of each DR image value according to the residual expansion factor of each DR image value and the disturbance condition of the value in the interval value subqueue; obtaining a DR image steep change parameter of each DR image value according to the residual expansion factor of each DR image value and the difference condition between adjacent values in the interval value subqueue; determining a dynamic balance amount of each DR image value according to the DR image fluctuation parameter and the DR image steep change parameter;
[0019] S4: determining the corresponding filtering number size of each DR image value according to the dynamic balance amount, and using the filtering number size to perform filtering processing on each DR image value in the queue of DR image values to obtain an improved value queue.
[0020] Preferably, in S1, the DR image values at each time point in the defined time length form a queue of DR image values according to the order of the time points, and the values in the queue of DR image values are defined as DR image values;
[0021] An interval value queue of DR image values is formed based on the DR image values contained in the pre-defined time interval size initially obtained, wherein the pre-defined time interval size is lower than the size of the defined time length.
[0022] Preferably, in S2, the interval value queues of each DR image value are separated by using the STL algorithm to obtain the remainder queues of each DR image value;
[0023] For any DR image value, define any value in the remainder queue of the DR image value as a marked remainder value, obtain the average of the marked remainder value and the remainder values in its interval, and use it as an improved remainder value of the marked remainder value;
[0024] The Hants algorithm is used to purify the remainder queue and obtain an improved remainder queue.
[0025] By performing distinguishing quantity analysis on the purified remainder values, the average of all improved remainder values in the improved remainder queue is calculated, and the amount obtained by subtracting the highest amount from the lowest amount of the improved remainder values in the improved remainder queue is taken as factor one; any improved remainder value in the improved remainder queue is defined as a selected improved remainder value, and the modulus of the amount obtained by subtracting the selected improved remainder value from the average is taken as factor two; the amount obtained by dividing factor two by factor one is taken as the distinguishing quantity attribute value of the selected improved remainder value; the average of the distinguishing quantity attribute values of all improved remainder values in the improved remainder queue corresponding to the DR image value is calculated as the remainder expansion factor of the DR image value.
[0026] Preferably, the wth improved remainder value in the improved remainder queue is taken as the selected improved remainder value, and the equation of the remainder extension factor of the pth DR image value is:
[0027]
[0028] In the equation, σ p Represents the remainder expansion factor of the pth DR image value in the queue of DR image values, N p The total number of values contained in the improved remainder queue representing the p-th DR image value, γ p,w represents the wth improved remainder value in the improved remainder array of the pth DR image value, The average value of all improved remainder values in the improved remainder array representing the p-th DR image value, γ p,zg With γ p,zd They respectively represent the highest and lowest values of the improved remainder in the improved remainder queue of the p-th DR image value.
[0029] Preferably, the equation of the DR image fluctuation parameter of the pth DR image value is:
[0030]
[0031] Among them, βp The DR image fluctuation parameter representing the pth DR image value in the queue of DR image values, represents the standard deviation of all values in the interval value group of the p-th DR image value, ν p represents the average of all values in the interval value group of the p-th DR image value, σ p Represents the remainder expansion factor of the pth DR image value in the queue of DR image values.
[0032] Preferably, the method for obtaining the DR image steep change parameter of each DR image value comprises:
[0033] For any DR image value, according to the difference between adjacent values in the interval value group of the DR image value, a comparison group of the DR image value is obtained;
[0034] Obtaining the steep change factor of the DR image value according to the difference between the control values in the control cohort of the DR image value;
[0035] The DR image steep change parameter of the DR image value is obtained according to the steep change factor of the DR image value and the residual expansion factor; that is, the value obtained by multiplying the steep change factor of the DR image value by the residual expansion factor is used as the DR image steep change parameter of the DR image value.
[0036] Preferably, the method for obtaining a control queue of DR image values comprises:
[0037] A random value other than the last value in the interval value array of the DR image value is defined as a selected value, and a value obtained by subtracting the selected value from the next adjacent value is used as a reference value of the selected value;
[0038] The control values of all values in the interval value group of the DR image value form a control group of the DR image value.
[0039] Preferably, the equation for the maneuver balance of the pth DR image value is:
[0040]
[0041] In the equation, η p represents the maneuver balance of the pth DR image value in the queue of DR image values, β p The DR image fluctuation parameter representing the pth DR image value in the queue of DR image values, γ p The DR image steep change parameter representing the pth DR image value in the queue of DR image values, and e represents the Euler number.
[0042] Preferably, the method for obtaining the steep change factor of the DR image value according to the difference between the control values in the control queue of the DR image value comprises:
[0043] The control values whose amount of control values in the control queue of DR image values is not less than zero are defined as value type one, and the control values whose amount of control values is less than zero are defined as value type two; the number of different value types between each adjacent two control values in the control queue of DR image values is obtained, and the amount obtained by dividing the number by the total number of all control values in the control queue is used as the steep change factor of the DR image value.
[0044] Preferably, S4 specifically comprises:
[0045] Determining the corresponding filtering number of each DR image value according to the maneuvering balance amount;
[0046] Finally, each DR image value in the DR image value queue is taken as a starting point in order, and the corresponding number of DR image values thereafter is filtered to obtain an improved value queue, thereby achieving pre-processing.
[0047] Preferably, the method for determining the size of the corresponding filtering number of each DR image value according to the maneuvering balance amount comprises:
[0048] For any DR image value, a value obtained by multiplying a predefined value by a dynamic balance of the DR image value is calculated, and the value is rounded to obtain a filtering factor of an integer value;
[0049] The filter number size corresponding to the DR image value is obtained according to the filter number factor. The filter number size equation is:
[0050] M=2N+1
[0051] In the equation, M is the size of the filter number corresponding to the DR image value, and N is the filter number factor corresponding to the DR image value.
[0052] The beneficial effect of the present invention lies in that, compared with the prior art, the present invention initially obtains a queue of DR image values of a DR image, obtains an interval value sub-queue of each DR image value in the queue of DR image values, and is suitable for subsequently analyzing the value change status within the interval range of each DR image value, and actively identifying the filtering number of each DR image value; then, respectively obtain the remainder queue of each DR image value, and analyze the arrangement status of the difference quantity therein, obtain the remainder expansion factor representing the value difference quantity and dispersion amplitude in the corresponding interval range of the DR image value, then analyze the disturbance status of the value in the interval value sub-queue of the DR image value, aggregate the remainder expansion factor, obtain the DR image fluctuation parameter, and represent the corresponding The disturbance state of the values in the interval range of the DR image value is analyzed; the difference state of the values in the interval value queue of the DR image value is analyzed, and the residual expansion factor is combined to obtain the DR image steep change parameter, which represents the difference state of the values in the corresponding interval range of the DR image value, and the dynamic balance of the DR image value is obtained by combining the analyzed value, which represents the stability amplitude of the values in the corresponding interval range of the DR image value; finally, the corresponding filtering number size of each DR image value is determined according to the dynamic balance amount, and the filtering number size can be automatically obtained according to the stability amplitude of the values in the interval range of the DR image value, so that the performance of filtering each DR image value using the filtering number size is good, and the improved value queue has better anti-abnormal disturbance performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a module schematic diagram of the DR image defect intelligent recognition device based on deep learning described in the present invention;
[0054] Figure 2 It is an overall flow chart of the DR image defect intelligent recognition method based on deep learning described in the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely expressed in combination with the drawings in the embodiments of the present invention. The embodiments expressed in this application are only embodiments of a part of the present invention, not all embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.
[0056] like Figure 1 As shown, the DR image defect intelligent recognition device based on deep learning described in the present invention includes:
[0057] The DR imaging board set at the pipeline weld is connected to the recognition device in the mobile communication network; the recognition device can be a computer, and the DR imaging board can be a full-network DR imaging board.
[0058] The DR imaging plate is used to collect the image values of the DR image of the steel pipe welding part and transmit them to the recognition device. The recognition device is used to optimize the image values of the DR image of the steel pipe welding part after pre-treatment to obtain an optimized network model, and then input the newly collected DR image into the optimized network model to identify the defect properties of the steel pipe welding part;
[0059] The modules running on the identification device include:
[0060] A forming module is used to obtain the image values of the DR images of the steel pipe welding part at different time points transmitted by the DR imaging plate during the defined time period, and form a queue of DR image values; obtain the interval values of each DR image value in the queue of DR image values and divide them into queues;
[0061] A separation module is used to perform separation on each interval value queue to obtain the corresponding residual queue of each DR image value; and to obtain the residual expansion factor of each DR image value according to the difference between the residual values in the residual queue of each DR image value;
[0062] A recognition module is used to obtain a DR image fluctuation parameter of each DR image value according to a residual expansion factor of each DR image value and a disturbance condition of a value in an interval value subqueue; obtain a DR image steep change parameter of each DR image value according to a residual expansion factor of each DR image value and a difference condition between adjacent values in an interval value subqueue; and recognize a dynamic balance amount of each DR image value according to the DR image fluctuation parameter and the DR image steep change parameter;
[0063] The filtering module is used to determine the corresponding filtering number size of each DR image value according to the mobile balance amount, and use the filtering number size to perform filtering processing on each DR image value in the queue of DR image values to obtain an improved value queue.
[0064] like Figure 2 As shown, the DR image defect intelligent recognition method based on deep learning described in the present invention runs on a recognition device and includes:
[0065] S1: Obtain image values of DR images of the steel pipe welding part at different time points transmitted by the DR imaging plate during a defined time period to form a queue of DR image values; obtain interval values of each DR image value in the queue of DR image values and divide them into queues;
[0066] In a preferred but non-limiting embodiment of the present invention, in S1, initially, DR image values at different time points transmitted via the DR imaging board within a defined time period are obtained. In the present invention, the DR imaging board is used to collect the user's electrical energy as the DR image value.
[0067] In the present invention, the size of the defined time length is set to 16 hours, and the time interval between two adjacent time points is set to one minute. The controller can perform the definition according to the actual situation. The DR image values of each time point in the defined time length form a queue of DR image values according to the order of the time points, and the values in the queue of the DR image values are defined as DR image values;
[0068] The DR images of the steel pipe welding parts have different changing trends with the time point changes in different time lengths. In order to make the improved values after abnormal cleaning more accurate, the interval values of each DR image value in the queue of DR image values are obtained separately and divided into queues.
[0069] An interval numerical sub-queue of a target DR image value is formed based on the DR image value contained in the pre-defined time interval size at the beginning, and the pre-defined time interval size is lower than the size of the defined duration. In the present invention, the pre-defined time interval size is 0.5h, and the controller can define it according to the actual situation, such as taking the first DR image value in the queue of DR image values as the target DR image value, that is, the DR image value contained in 0.5h from the first time point of the defined duration, to form the interval numerical sub-queue of the first DR image value. The interval numerical sub-queue of other DR image values is similarly formed according to the DR image value contained in 0.5h from the time point of the DR image value.
[0070] S2: Separate each interval value queue to obtain the corresponding residue queue of each DR image value; and arrange the residue expansion factor of each DR image value according to the difference between the residue values in the residue queue of each DR image value;
[0071] In a preferred but non-restrictive embodiment of the present invention, in S2, the interval value queues of each DR image value are separated by using the STL algorithm to obtain the remainder queues of each DR image value; the STL algorithm can be used to obtain the trend component, period component and remainder according to the time point sequence, wherein the remainder is the remaining item after discarding the trend component and period component in the time point sequence, which is arbitrary and unknowable, and contains some abnormal disturbance conditions in the value, and based on this, the disturbance condition is analyzed for the interval value queues of each DR image value;
[0072] For any DR image value, an arbitrary value in the remainder queue of the DR image value is defined as a marker remainder value, and the average of the marker remainder value and the remainder values in its interval is obtained as an improved remainder value of the marker remainder value; in the present invention, the first two remainder values adjacent to the marker remainder value and the second two remainder values adjacent to the marker remainder value are taken as remainder values in the interval of the marker remainder value, just as, taking the jth remainder value in the remainder queue as the marker remainder value, then the remainder values in the interval of the jth remainder value are the j-2th remainder value, the j-1th remainder value, the j+1th remainder value and the j+2th remainder value respectively, then calculating the average of the 5 remainder values can obtain the improved remainder value of the jth remainder value.
[0073] The controller of the method for obtaining the remainder values in the interval of each remainder value can be defined according to the actual situation; and for the values at both ends of the remainder queue, it is impossible to obtain two remainder values that are adjacent to the remainder value before or after the remainder value, and the unobtainable values are replaced by defined values. In the present invention, the average of all remainder values in the remainder queue is used for replacement.
[0074] Because the remainder of the interval value division queue of the DR image value is random and unknowable, and has some abnormal disturbances, before the remainder is analyzed, it is necessary to perform purification treatment on the remainder values in the remainder queue, and perform purification treatment on the remainder components representing unknown elements in it differently, so as to reduce the negative effect of abnormal disturbances on the value quality; that is, in the present invention, the Hants algorithm is used to perform purification treatment on the remainder queue to obtain an improved remainder queue, and the number of remainder queues sent to the Hants algorithm at one time can be five, and the controller can define the number according to the actual situation;
[0075] By performing distinguishing quantity analysis on the purified remainder values, the average of all improved remainder values in the improved remainder queue is calculated, and the amount obtained by subtracting the highest amount from the lowest amount of the improved remainder values in the improved remainder queue is taken as factor one; any improved remainder value in the improved remainder queue is defined as a selected improved remainder value, and the modulus of the amount obtained by subtracting the selected improved remainder value from the average is taken as factor two; the amount obtained by dividing factor two by factor one is taken as the distinguishing quantity attribute value of the selected improved remainder value; the average of the distinguishing quantity attribute values of all improved remainder values in the improved remainder queue corresponding to the DR image value is calculated as the remainder expansion factor of the DR image value.
[0076] In a preferred but non-limiting embodiment of the present invention, the wth improved remainder value in the improved remainder queue is taken as the selected improved remainder value, and the equation of the remainder extension factor of the pth DR image value is:
[0077]
[0078] In the equation, σ p Represents the remainder expansion factor of the pth DR image value in the queue of DR image values, N p The total number of values contained in the improved remainder queue representing the p-th DR image value, γ p,w represents the wth improved remainder value in the improved remainder array of the pth DR image value, The average value of all improved remainder values in the improved remainder array representing the p-th DR image value, γ p,zg With γ p,zd They respectively represent the highest and lowest values of the improved remainder in the improved remainder queue of the p-th DR image value.
[0079] γ p,zg -γ p,zd is factor one, It is factor 2, which reflects the difference between the value of the wth improved remainder and the overall situation in the queue. The higher the value of factor 2, the higher the difference between the value of the wth improved remainder and the overall situation. It is the distinguishing attribute value of the w-th improved remainder value, representing the ratio of the distinguishing value between the w-th improved remainder value and the whole queue. The remainder expansion factor of the DR image value represents the distinguishing value between the remainder value in the corresponding remainder queue and the whole, reflecting the dispersion of the DR image value.
[0080] S3: obtaining a DR image fluctuation parameter of each DR image value according to the residual expansion factor of each DR image value and the disturbance condition of the value in the interval value subqueue; obtaining a DR image steep change parameter of each DR image value according to the residual expansion factor of each DR image value and the difference condition between adjacent values in the interval value subqueue; determining a dynamic balance amount of each DR image value according to the DR image fluctuation parameter and the DR image steep change parameter;
[0081] First, the interval values of each DR image value in the queue of DR image values are analyzed according to the change status of the values in the queue. In order to obtain very accurate purification values, when the disturbance amplitude of the values in the interval range of DR image values is not low and the dispersion amplitude is not low, the corresponding filtering number of the DR image value should be given. When the disturbance amplitude of the values in the interval range of DR image values is not high and the dispersion amplitude is not high, the corresponding filtering number of the DR image value can be given.
[0082] Therefore, the DR image fluctuation parameters of each DR image value are obtained according to the residual expansion factor of each DR image value and the disturbance condition of the values in the interval value grouping, and for any DR image value, the standard deviation and the mean of all the values in the interval value grouping of the DR image value are obtained respectively, and the DR image fluctuation parameters of the DR image value are obtained according to the corresponding standard deviation and mean and the residual expansion factor of the DR image value; the standard deviation and the residual expansion factor are directly proportional to the DR image fluctuation parameters, and the mean is inversely proportional to the DR image fluctuation parameters.
[0083] In a preferred but non-limiting embodiment of the present invention, the equation of the DR image fluctuation parameter of the pth DR image value is:
[0084]
[0085] Among them, β p The DR image fluctuation parameter representing the pth DR image value in the queue of DR image values, represents the standard deviation of all values in the interval value group of the p-th DR image value, ν p represents the average of all values in the interval value group of the p-th DR image value, σ p Represents the remainder expansion factor of the pth DR image value in the queue of DR image values.
[0086] Standard Deviation It reflects the numerical disturbance of the pth DR image value in the interval range, and the average value ν p It reflects the numerical balance of the pth DR image value in the interval range. The higher the value, the higher the numerical dispersion of the DR image value in the interval range, and the residual expansion factor σ p The higher the value, the higher the corresponding DR image fluctuation parameter value, indicating that the dispersion amplitude of the corresponding interval value group of the DR image value is higher, and the less filtering number is required.
[0087] In a preferred but non-limiting embodiment of the present invention, the method for obtaining the DR image abrupt change parameter of each DR image value comprises:
[0088] The change conditions between adjacent values within each DR image value interval are analyzed, and the DR image steep change parameters of each DR image value are obtained according to the residual expansion factor of each DR image value and the difference between adjacent values in the interval value group.
[0089] Specifically, for any DR image value, a comparison queue of DR image values is obtained according to the difference between adjacent values in the interval value queue of the DR image value;
[0090] In a preferred but non-limiting embodiment of the present invention, the method for obtaining a control cohort of DR image values comprises:
[0091] An arbitrary value other than the last value in the interval value array of the DR image value is defined as a selected value, and the value obtained by subtracting the selected value from the next adjacent value is used as a control value of the selected value; and the last value in the interval value array of the DR image value is the value with the next adjacent value, so it is replaced by a pre-defined value.
[0092] The average of all values in the interval value sub-queue of the DR image value is defined as the attribute average; for the last value in the interval value sub-queue of the DR image value, the amount obtained by subtracting the attribute average from the last value is used as the reference value of the last value; the reference values of all values in the interval value sub-queue of the DR image value form the reference queue of the DR image value.
[0093] Each DR image value in the DR image value queue corresponds to a control queue. The value in the control queue is defined as a control value. Then each value in the interval value sub-queue of the DR image value corresponds to a control value. The control value reflects the change status between two adjacent values in the interval value sub-queue. Therefore, by analyzing the difference between the control values, a parameter representing the change status of the value in the interval value sub-queue can be obtained, that is, the steep change factor of the DR image value can be obtained according to the difference between the control values in the control queue of the DR image value.
[0094] In a preferred but non-limiting embodiment of the present invention, a method for obtaining a steep change factor of a DR image value according to a difference between control values in a control queue of DR image values comprises:
[0095] The control values whose amount of control values in the control queue of DR image values is not less than zero are defined as value type one, and the control values whose amount of control values is less than zero are defined as value type two; the number of different value types between each adjacent two control values in the control queue of DR image values is obtained, and the amount obtained by dividing the number by the total number of all control values in the control queue is used as the steep change factor of the DR image value.
[0096] In the control queue of DR image values, when the amount of the control value is not less than zero, it indicates that the corresponding value in the interval value sub-queue is not lower than its adjacent subsequent value; when the amount of the control value is less than zero, it indicates that the corresponding value in the interval value sub-queue is not higher than its adjacent subsequent value. By comparing the positive and negative signs between each adjacent two control values in the control queue, the change status of the value can be obtained. When the value types between the two control values are different, it indicates that the change trend of the value in the interval value sub-queue has changed.
[0097] For the first control value and the second control value in the control queue for DR image values, if the value types of the first control value and the second control value are different, that is, one of the first control value and the second control value is lower than zero and the other control value is not lower than zero, the registered number is one; then the positive and negative sign changes between the second control value and the third control value are analyzed. If the value types of the second control value and the third control value are different, the registered number is three; by the same token, it can be inferred that the final number is obtained after all two adjacent control values in the control queue of DR image values are identified. This number reflects the frequency of changes between adjacent values in the interval value sub-queue of DR image values. The steep change factor of DR image values reflects the ratio of the number of changes. The higher its value is, the higher the change amplitude of DR image values in the interval range of DR image values is.
[0098] A DR image steep change parameter of the DR image value is obtained according to the steep change factor of the DR image value and the residual expansion factor; the steep change factor and the residual expansion factor are both proportional to the DR image steep change parameter. In the present invention, the amount obtained by multiplying the steep change factor of the DR image value by the residual expansion factor is used as the DR image steep change parameter of the DR image value.
[0099] The higher the steep change factor of the DR image value, the greater the variation range of the DR image value in the interval range of the DR image value; the higher the value of the residual expansion factor of the DR image value, the greater the dispersion range of the DR image value in the interval range of the DR image value; the higher the value of the corresponding DR image steep change parameter, the worse the numerical stability in the interval range of the DR image value and the greater the variation range.
[0100] Finally, the DR image fluctuation parameter of the DR image value reflects the numerical disturbance state of the DR image value in the interval range, and the DR image steep change parameter of the DR image value reflects the numerical change state of the DR image value in the interval range. By comprehensively analyzing the DR image steep change parameter of the DR image value and the DR image fluctuation parameter of the electrical quantity value, the smoothness state of each DR image value in the queue of DR image values is obtained, that is, the dynamic balance amount of each DR image value is determined according to the DR image fluctuation parameter and the DR image steep change parameter; in this way, for any DR image value, the amount obtained by adding the DR image fluctuation parameter of the DR image value to the DR image steep change parameter is subjected to normalization processing under inverse conditions to obtain the dynamic balance amount of the DR image value.
[0101] In a preferred but non-limiting embodiment of the present invention, the method for determining the motor balance amount of each DR image value according to the DR image fluctuation parameter and the DR image steep change parameter comprises: the equation of the motor balance amount of the p-th DR image value is:
[0102]
[0103] In the equation, η p represents the maneuver balance of the pth DR image value in the queue of DR image values, β p The DR image fluctuation parameter representing the pth DR image value in the queue of DR image values, γ p The DR image steep change parameter representing the pth DR image value in the queue of DR image values, and e represents the Euler number.
[0104] The higher the DR image fluctuation parameter is, the higher the disturbance amplitude of the values in the interval numerical sub-queue corresponding to the DR image value is; the higher the DR image steep change parameter is, the higher the variation amplitude of the values in the interval numerical sub-queue corresponding to the DR image value is; the lower the corresponding maneuvering balance is. The maneuvering balance reflects the amplitude of the stability of the values in the interval numerical sub-queue corresponding to the DR image value, that is, the amplitude of the stability of the DR image value in the interval range.
[0105] S4: determining the corresponding filtering number size of each DR image value according to the dynamic balance amount, and using the filtering number size to perform filtering processing on each DR image value in the queue of DR image values to obtain an improved value queue.
[0106] In a preferred but non-limiting embodiment of the present invention, S4 specifically comprises:
[0107] The lower the amount of the dynamic balance of each DR image value in the queue of DR image values, the lower the numerical stability within the interval range of the DR image values, the higher the disturbance amplitude, and the higher the variation amplitude. Correspondingly, when performing abnormal cleaning processing on the DR image value, a low filtering number is required (that is, the number of DR image values in the queue of DR images sent to the filtering algorithm at one time, and the DR image values in the queue of DR image values are sent to the filtering algorithm in batches according to the number of filtering processing to form an improved numerical queue after filtering processing). More accurate abnormality-cleaned values can be obtained, avoiding the situation where the filtering number is too high, resulting in excessive numerical purification. The higher the amount of the dynamic balance of each DR image value in the queue of DR image values, the better the numerical stability within the interval range of the DR image value. Correspondingly, when performing abnormal cleaning processing on the DR image value, a high filtering number is required to obtain more accurate abnormality-cleaned values.
[0108] Thus, the corresponding filtering number size of each DR image value is determined according to the maneuvering balance amount;
[0109] In a preferred but non-limiting embodiment of the present invention, the method for determining the size of the corresponding filtering number of each DR image value according to the maneuvering balance amount includes:
[0110] For any DR image value, a predefined value multiplied by the dynamic balance of the DR image value is calculated, and the value is rounded to obtain a filtering factor of an integer value; and the predefined value is higher than zero. In the present invention, the predefined value is four, and the controller can define it according to the actual situation.
[0111] The filter number size corresponding to the DR image value is obtained according to the filter number factor. The filter number size equation is:
[0112] M=2N+1
[0113] In the equation, M is the size of the filter number corresponding to the DR image value, and N is the filter number factor corresponding to the DR image value;
[0114] Finally, each DR image value in the queue of DR image values is taken as a starting point in order, and the corresponding DR image values of the filter number are filtered. In the present invention, the wavelet filtering method is used to perform filtering and obtain an improved numerical queue, thereby achieving pre-treatment. The improved numerical queue is optimized to obtain an optimized network model, and then the newly collected DR image is input into the optimized network model to identify the defect nature of the steel pipe welding part. This is the method of the prior art solution with the patent application number "CN202211228352.3" and the patent name "A method for detecting defects in digital radiographic images of steel pipe welding".
[0115] The beneficial effect of the present invention lies in that, compared with the prior art, the present invention initially obtains a queue of DR image values of a DR image, obtains an interval value sub-queue of each DR image value in the queue of DR image values, and is suitable for subsequently analyzing the value change status within the interval range of each DR image value, and actively identifying the filtering number of each DR image value; then, respectively obtain the remainder queue of each DR image value, and analyze the arrangement status of the difference quantity therein, obtain the remainder expansion factor representing the value difference quantity and dispersion amplitude in the corresponding interval range of the DR image value, then analyze the disturbance status of the value in the interval value sub-queue of the DR image value, aggregate the remainder expansion factor, obtain the DR image fluctuation parameter, and represent the corresponding The disturbance state of the values in the interval range of the DR image value is analyzed; the difference state of the values in the interval value queue of the DR image value is analyzed, and the residual expansion factor is combined to obtain the DR image steep change parameter, which represents the difference state of the values in the corresponding interval range of the DR image value, and the dynamic balance of the DR image value is obtained by combining the analyzed value, which represents the stability amplitude of the values in the corresponding interval range of the DR image value; finally, the corresponding filtering number size of each DR image value is determined according to the dynamic balance amount, and the filtering number size can be automatically obtained according to the stability amplitude of the values in the interval range of the DR image value, so that the performance of filtering each DR image value using the filtering number size is good, and the improved value queue has better anti-abnormal disturbance performance.
[0116] The present disclosure can be a system, method and / or computer program product. The computer program product can include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to achieve each aspect of the present disclosure.
[0117] The computer readable storage medium can be a tangible network capable of holding and storing instructions for use by the instruction execution network. The computer readable storage medium can be, but is not limited to, an electrical storage network, a magnetic storage network, an optical storage network, an electromagnetic storage network, a semiconductor storage network, or any suitable combination of the above. Further examples of computer readable storage media (non-exhaustive list) include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (HD-ROM), digital versatile disk (DXD), memory stick, floppy disk, mechanically encoded network, such as punch cards or raised structures in grooves with instructions stored thereon, and any suitable combination of the above. The computer readable storage medium used herein is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (such as, light pulses through a transmission line cable), or an electrical signal transmitted through a wire.
[0118] The computer readable program instructions expressed herein can be downloaded from a computer readable storage medium to each inference / processing grid line, or downloaded to an external computer or external storage grid line through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, power transmission line transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge service devices. The network adapter card or network interface in each inference / processing grid line receives the computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in each inference / processing grid line.
[0119] The computer program instructions for performing the operations of the present disclosure can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, conditional setting values, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Sdaletal A, H++, etc., and conventional procedural programming languages such as "H" language or similar programming languages. The computer-readable program instructions can be executed entirely on the client computer, partially on the client computer, as a separate software package, partially on the client computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the client computer through any other network, including a local area network (LAb) or a wide area network (WAb), or can be connected to an external computer (just like using an Internet service provider to connect through the Internet). In some embodiments, the electronic circuit is customized by using the status values of computer-readable program instructions, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), and the electronic circuit can execute the computer-readable program instructions to achieve each aspect of the present disclosure.
[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not deviate from the spirit and scope of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A DR image defect intelligent recognition method based on deep learning, characterized in that: include: S1: Obtain image values of DR images of the steel pipe welding part at different time points transmitted by the DR imaging plate during a defined time period to form a queue of DR image values; obtain interval values of each DR image value in the queue of DR image values and divide them into queues; S2: Separate each interval value queue to obtain the corresponding residue queue of each DR image value; and arrange the residue expansion factor of each DR image value according to the difference between the residue values in the residue queue of each DR image value; S3: obtaining a DR image fluctuation parameter of each DR image value according to the residual expansion factor of each DR image value and the disturbance condition of the value in the interval value subqueue; obtaining a DR image steep change parameter of each DR image value according to the residual expansion factor of each DR image value and the difference condition between adjacent values in the interval value subqueue; determining a dynamic balance amount of each DR image value according to the DR image fluctuation parameter and the DR image steep change parameter; S4: According to the mobile balance amount, the corresponding filter number size of each DR image value is determined, and the filter number size is used to perform filtering processing on each DR image value in the queue of DR image values to obtain an improved value queue, and the improved value queue is optimized to obtain an optimized network model, and then the newly collected DR image is input into the optimized network model to identify the defects of the steel pipe welding part; in S1, the DR image values at each time point in the defined time length are formed into a queue of DR image values according to the order of the time points, and the values in the queue of DR image values are defined as DR image values; Forming interval value queues of DR image values according to the DR image values contained in the predefined time interval size initially obtained, wherein the predefined time interval size is lower than the size of the defined time length; In S2, the interval numerical queues of each DR image value are separated by using the STL algorithm to obtain the remainder queues of each DR image value; For any DR image value, define any value in the remainder queue of the DR image value as a marked remainder value, obtain the average of the marked remainder value and the remainder values in its interval, and use it as an improved remainder value of the marked remainder value; The Hants algorithm is used to purify the remainder queue and obtain an improved remainder queue. By performing distinguishing quantity analysis on the purified remainder value, the average of all improved remainder values in the improved remainder queue is calculated, and the amount obtained by subtracting the highest amount from the lowest amount of the improved remainder values in the improved remainder queue is taken as factor one; any improved remainder value in the improved remainder queue is defined as a selected improved remainder value, and the modulus of the amount obtained by subtracting the selected improved remainder value from the average is taken as factor two; the amount obtained by dividing factor two by factor one is taken as the distinguishing quantity attribute value of the selected improved remainder value; the average of the distinguishing quantity attribute values of all improved remainder values in the improved remainder queue corresponding to the DR image value is calculated as the remainder expansion factor of the DR image value; Taking the wth improved remainder value in the improved remainder queue as the selected improved remainder value, the equation of the remainder expansion factor of the pth DR image value is: In the equation, σ p Represents the remainder expansion factor of the pth DR image value in the queue of DR image values, N p The total number of values contained in the improved remainder queue representing the p-th DR image value, γ p,w represents the wth improved remainder value in the improved remainder array of the pth DR image value, The average value of all improved remainder values in the improved remainder array representing the p-th DR image value, γ p,zg With γ p,z d Respectively represent the highest and lowest values of the improved remainder item in the improved remainder item queue of the p-th DR image value; The equation of the DR image fluctuation parameter of the pth DR image value is: Among them, β p The DR image fluctuation parameter representing the pth DR image value in the queue of DR image values, represents the standard deviation of all values in the interval value group of the p-th DR image value, ν p represents the average of all values in the interval value group of the p-th DR image value, σ p Residual expansion factor representing the p-th DR image value in the queue of DR image values; The method for obtaining the DR image steep change parameter of each DR image value comprises: For any DR image value, according to the difference between adjacent values in the interval value group of the DR image value, a comparison group of the DR image value is obtained; Obtaining the steep change factor of the DR image value according to the difference between the control values in the control cohort of the DR image value; Obtaining a DR image steep change parameter of the DR image value according to the steep change factor of the DR image value and the residual expansion factor; that is, taking the steep change factor of the DR image value multiplied by the residual expansion factor as the DR image steep change parameter of the DR image value; The method for obtaining a control cohort of DR image values comprises: A random value other than the last value in the interval value array of the DR image value is defined as a selected value, and a value obtained by subtracting the selected value from the next adjacent value is used as a reference value of the selected value; The control values of all values in the interval value division queue of the DR image value form a control queue of the DR image value; The equation for the maneuver balance of the pth DR image value is: In the equation, η p represents the maneuver balance of the pth DR image value in the queue of DR image values, β p The DR image fluctuation parameter representing the pth DR image value in the queue of DR image values, γ p represents the DR image steep change parameter of the p-th DR image value in the queue of DR image values, and e represents the Euler number; The method for obtaining the steep change factor of the DR image value according to the difference between the control values in the control queue of the DR image value comprises: The control values whose amount of control values in the control queue of DR image values is not less than zero are defined as value type one, and the control values whose amount of control values is less than zero are defined as value type two; the number of different value types between each two adjacent control values in the control queue of DR image values is obtained, and the value obtained by dividing the number by the total number of all control values in the control queue is used as the steep change factor of the DR image value; S4 specifically includes: Determining the corresponding filtering number of each DR image value according to the maneuvering balance amount; Finally, each DR image value in the queue of DR image values is taken as a starting point in order, and the DR image values of the corresponding filtering number are filtered to obtain an improved value queue, thereby realizing pre-processing; The method for determining the size of the corresponding filtering number of each DR image value according to the maneuvering balance amount includes: For any DR image value, a value obtained by multiplying a predefined value by a dynamic balance of the DR image value is calculated, and the value is rounded to obtain a filtering factor of an integer value; The filter number size corresponding to the DR image value is obtained according to the filter number factor. The filter number size equation is: M=2N+1 In the equation, M is the size of the filter number corresponding to the DR image value, and N is the filter number factor corresponding to the DR image value.
Citation Information
Patent Citations
Method for detecting defects in steel pipe welding digital ray image
CN115690001A
Train-ground numerical value sorting device and method for rail transit overhead line system operating vehicle
CN117009592A
