Damage assessment method, system, device and storage medium based on image analysis
Through image correction and feature extraction, combined with the Gaussian mixture model, the problem of low target damage assessment efficiency and large calculation amount in the existing technology is solved, and efficient and accurate damage assessment in small equipment is achieved, which is suitable for different angles and zooms. image.
Patent Information
- Application Number
- CN202210465292.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-29
AI Technical Summary
The existing technology is inefficient in target damage assessment, requires a large amount of calculation, is difficult to adapt to different shapes of targets and image rotation changes, and is difficult to apply in small equipment.
Through the calculation of image correction, grayscale difference map and correlation coefficient map, the target damage characteristics are extracted, and the Gaussian mixture model is used to evaluate the damage degree. It is suitable for images of different angles and zooms, and the calculation amount is small.
It achieves efficient and accurate target damage assessment in small equipment, is robust to image rotation and scaling, and meets the requirements of real-time and accuracy.
Smart Images

Figure CN114841956B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of damage assessment technology, and in particular to a damage assessment method, system, device and storage medium based on image analysis. Background Art
[0002] Image-based damage assessment means obtaining images of damaged targets through aviation, aerospace, human reconnaissance and other means after a strike on a target or target-related area, and using methods such as manual discrimination, image processing, and mathematical modeling to analyze changes in target images before and after the strike, assess the degree or level of damage to the target after the strike, and provide important support for commanders in formulating subsequent combat plans.
[0003] Foreign countries started research on target damage assessment early, and initially mainly assessed the target damage degree through manual discrimination. The manual discrimination method is inefficient and cannot meet the requirements of modern warfare for real-time and accuracy of damage assessment. At present, foreign countries mainly study the method of automatic image discrimination for target damage assessment. China has also carried out a lot of research on image-based target damage assessment methods. Common target damage assessment methods include methods based on the area of the explosion point and methods based on the gray-level co-occurrence matrix. The method based on the explosion point area determines the degree of damage by detecting the area of the explosion point in the image. This method is more intuitive and has a small amount of calculation, but the reliability is not high and it is difficult to adapt to the damage assessment of targets of different shapes. The method based on the gray-level co-occurrence matrix usually calculates the rate of change of features such as entropy and contrast based on the gray-level co-occurrence matrix of the image, and then judges the damage level based on the distribution range of the feature change rate. The gray-level co-occurrence matrix has a large amount of calculation and is affected by the rotation of the image. With the development of deep learning, methods based on convolutional neural networks have also been applied to target damage assessment. Deep learning models such as convolutional neural networks require a large number of training images, and in the military field, it is very difficult to obtain a large number of target damage images. In addition, convolutional neural networks require a large amount of calculation, which places high demands on the hardware computing power of the target damage assessment system. These factors make it difficult to apply the convolutional neural network method in scenarios such as missile-borne equipment and small drones. Summary of the invention
[0004] The purpose of the present invention is to provide a damage assessment method, system, device and storage medium based on image analysis, which only requires a small amount of training images. At the same time, the proposed target damage features require less calculation and are robust to image rotation and image scaling, so as to accurately assess the degree of target damage.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] A damage assessment method based on image analysis, comprising:
[0007] Using the image of the target before it is damaged, the image of the target after it is damaged is corrected;
[0008] The target area images are respectively intercepted from the image before the target is damaged and the corrected image after the target is damaged;
[0009] Calculate the grayscale difference map and correlation coefficient map between the target area image before the target is damaged and the target area image after the target is damaged;
[0010] Combining the grayscale difference map with the correlation coefficient map to obtain target damage characteristics;
[0011] The target damage characteristics are used to assess the target damage degree.
[0012] A damage assessment system based on image analysis, comprising:
[0013] An image correction unit, used to correct an image of the target after it is damaged by using the image before the target is damaged;
[0014] A target area image capture unit, used to capture target area images from the image before the target is damaged and the corrected image after the target is damaged;
[0015] A grayscale difference map and correlation coefficient map calculation unit, used to calculate a grayscale difference map and a correlation coefficient map between a target area image before target damage and a target area image after target damage;
[0016] A target damage feature acquisition unit, used to obtain a target damage feature by combining the grayscale difference map and the correlation coefficient map;
[0017] A target damage assessment unit is used to assess the target damage degree using the target damage characteristics.
[0018] A processing device, comprising: one or more processors; a memory for storing one or more programs;
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the aforementioned method.
[0020] A readable storage medium stores a computer program, which implements the above method when the computer program is executed by a processor.
[0021] It can be seen from the technical solution provided by the present invention that the target damage features are extracted by using image analysis technology. The target damage features are robust to image rotation and image scaling, and are therefore suitable for target images taken at different heights and angles. According to the target damage features, the target damage degree can be accurately estimated through a trained Gaussian mixture model. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0023] Figure 1 A flowchart of a damage assessment method based on image analysis provided by an embodiment of the present invention;
[0024] Figure 2 A schematic diagram of an uncorrected image of a target before and after damage provided by an embodiment of the present invention;
[0025] Figure 3 A schematic diagram of images of a target before and after being corrected and damaged provided by an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of a captured target area image provided by an embodiment of the present invention;
[0027] Figure 5 A schematic diagram of a grayscale difference diagram between an image before and after damage provided by an embodiment of the present invention;
[0028] Figure 6 A schematic diagram of a correlation coefficient image between an image before and after damage provided by an embodiment of the present invention;
[0029] Figure 7 A schematic diagram of a damage assessment system based on image analysis provided by an embodiment of the present invention;
[0030] Figure 8 A schematic diagram of a processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0032] First, the terms that may be used in this article are explained as follows:
[0033] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.
[0034] The scheme provided by the present invention is described in detail below. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professionals in the field. If the specific conditions are not specified in the embodiments of the present invention, they are carried out according to the conventional conditions in the field or the conditions recommended by the manufacturer. If the manufacturers are not specified in the reagents or instruments used in the embodiments of the present invention, they are all conventional products that can be purchased commercially.
[0035] Embodiment 1
[0036] like Figure 1 FIG. 1 is a flowchart of a damage assessment method based on image analysis provided by an embodiment of the present invention, which mainly includes the following steps:
[0037] Step 1: Use the image of the target before it is damaged to correct the image of the target after it is damaged.
[0038] The preferred implementation of this step is as follows:
[0039] 1) Obtain the images before and after the target is damaged, and calculate the SURF (Speed Up Robust Feature) features of the two images respectively. For the image before the target is damaged, the lth SURF feature is recorded as r l For the damaged image of the target, the hth SURF feature is recorded as s h .
[0040] 2) According to the Manhattan distance between the SURF features, the nearest neighbor ratio method is used to match the SURF features on the two images to obtain the initial pairing of SURF features.
[0041] The specific process is:
[0042] For r l , calculate the Manhattan distance d(r l ,s h ):
[0043] d(r l ,s h )=||r l -s h ||1
[0044] By comparing the Manhattan distance between SURF features, we can find the target with the same image as r in the damaged image. l The SURF feature s1 of the nearest neighbor, and the SURF feature s2 of the next nearest neighbor. l ,s1) and d(r l ,s2) is less than the given threshold, it means r l Matched successfully with s1, and got a pair (r l ,s1). Other SURF feature pairs can be found in the same way. These pairs are the initial pairs of SURF features, denoted by (r k ,s k ), k = 1, 2, ..., K, K is the number of pairs. SURF feature r k and k The pixel coordinates of the corresponding feature points in the image are recorded as q(r k ) and q(s k ).
[0045] 3) Use the random sampling consistent sampling method to optimize the initial pairing of SURF features, and use the image before the target is damaged as a reference to calculate the perspective transformation matrix of the image after the target is damaged.
[0046] The specific process is:
[0047] Select K1 (K1 < K) pairs from the initial feature pairs, and calculate the perspective transformation matrix H by minimizing the projection error of the feature points of these pairs on the image plane. In the form of homogeneous coordinates, the projection error is:
[0048]
[0049] H is a 2×3 matrix. After H is obtained by the least squares method, the projection errors of the remaining K-K1 pairs are calculated based on H. Paired points whose projection errors are within the threshold are called inliers, otherwise they are called outliers. Repeat this step. When the number of inliers is the largest, the corresponding matrix H is the solved perspective transformation matrix.
[0050] 4) Performing perspective transformation on the damaged target image using the perspective transformation matrix to obtain a corrected damaged target image.
[0051] like Figure 2 As shown in the figure, it is the acquired uncorrected target image. The left and right images are the images before and after the target is damaged. Figure 3 As shown, it is a corrected target image, and the left and right images are respectively the image before the target is damaged and the image after the target is damaged after correction.
[0052] Step 2: respectively capture the target area image from the image before the target is damaged and the corrected image after the target is damaged.
[0053] In an embodiment of the present invention, in the original image before damage, the image is intercepted according to the circumscribed rectangle of the target area to obtain a normalized target area image I1 before target damage; according to the same circumscribed rectangle, a rectangular area is intercepted from the corrected image after target damage to obtain a normalized target area image I2 after target damage.
[0054] like Figure 4 As shown, it is a captured target area image, and the left and right parts are the target area image I1 before the target is damaged and the target area image I2 after the target is damaged, respectively.
[0055] Step 3: Calculate the grayscale difference map and correlation coefficient map between the target area image before the target is damaged and the target area image after the target is damaged.
[0056] 1) Calculate the grayscale difference map I diff :Let (x, y) represent the horizontal and vertical coordinates of the pixel of the image, then the grayscale difference I of the pixel at the position (x, y) diff The calculation method of (x,y) is as follows:
[0057]
[0058] Among them, I1 and I2 represent the target area image before and after target damage, respectively; (u, v) is the coordinate of the pixel point at the (x, y) position in the square neighborhood, L is the side length of the square neighborhood, and g(u, v) is the Gaussian smoothing window.
[0059] like Figure 5 The figure shows an example of a grayscale difference image between an image before and after damage.
[0060] 2) Calculate the correlation coefficient graph:
[0061] First, calculate the correlation coefficient matrix A(x,y), expressed as:
[0062]
[0063] in,
[0064]
[0065]
[0066] Since the value of the correlation coefficient matrix A(x,y) is between -1 and 1, and the smaller the difference between the image before and after damage, the larger the correlation coefficient. Therefore, the correlation coefficient matrix A(x,y) is scaled to between 0 and 255 and inverted to obtain the correlation coefficient graph I coef , the correlation coefficient value I of the pixel at the (x, y) position coef The calculation method of (x,y) is as follows:
[0067]
[0068] As shown in Figure 6, it is an example of the correlation coefficient image between the image before and after damage.
[0069] Step 4: Combine the grayscale difference map and the correlation coefficient map to obtain target damage characteristics.
[0070] In an embodiment of the present invention, after the pixel values of the grayscale difference map and the correlation coefficient map are quantized and compressed respectively, the histogram distribution of the grayscale difference map and the correlation coefficient map after quantization and compression is calculated, and the obtained two parts of the histogram vector are connected in series to obtain the target damage characteristics.
[0071] Exemplarily, after the pixel values of the grayscale difference map and the correlation coefficient map are quantized and compressed, the image pixel values are scaled from 0 to 255 to 0 to 63, and then the 64-dimensional histogram vectors corresponding to the grayscale difference map and the correlation coefficient map are obtained by calculating the histogram distribution, and the two histogram vectors are connected in series to obtain a 128-dimensional feature vector, which is used as the target damage feature. The target damage feature is robust to the rotation and scaling of the target.
[0072] Step 5: Use the target damage characteristics to assess the target damage degree.
[0073] The preferred implementation of this step is as follows:
[0074] 1) Use a Gaussian mixture model to perform offline modeling on the probability distribution of the target damage characteristics, expressed as:
[0075]
[0076] Among them, P(f|λ) is the Gaussian mixture model, λ is the parameter set of the mixed Gaussian model, including the mixing coefficient w m , mean μ m and variance∑ m ; M is the number of mixed states, N(f; μ m ,∑ m ) is a Gaussian function, and f represents the target damage characteristic;
[0077] The damage level is divided into C levels, and each damage level corresponds to a mixed Gaussian model, that is, the probability distribution of damage characteristics of the c-th damage level can be expressed by the mixed Gaussian model P(f|λ c ) indicates that λ c is the parameter c∈[0,1,2,...,C-1] of the c-th Gaussian mixture model. For example, the damage level can be divided into four levels: no damage, slight damage, moderate damage, and severe damage, that is, C=4. c represents the c-th Gaussian mixture model P(f|λ c ) parameters, which need to be obtained by offline training using training samples, and only need to be trained once. The damage level of the training samples can be obtained by manual interpretation by experts.
[0078] 2) For the target damage feature f, calculate the probability p(λ c |f), that is, the posterior probability that damage feature f belongs to the cth damage level. p(λ c |f) is calculated as:
[0079]
[0080] where P(f|λ c ) is the c-th Gaussian mixture model, p(λ c ) is the prior distribution of the cth Gaussian mixture model. p(f) is the prior distribution of the damage feature f. The damage category discrimination result is finally given by maximizing the posterior probability criterion, expressed as:
[0081]
[0082] in, represents the damage level obtained after evaluating the image. Since p(f) is consistent for all damage categories, the posterior probability p(λ c |f) is equivalent to p(f|λ c )p(λ c ). At the same time, the prior distributions of the C Gaussian mixture models can also be considered to be basically the same, so the damage level can be finally determined by the following formula:
[0083]
[0084] In the embodiment of the present invention, a training set is pre-constructed to train Gaussian mixture models of different damage levels, that is, to obtain parameter sets of Gaussian mixture models of different damage levels. The preferred implementation is as follows:
[0085] 1) Based on expert knowledge, the damage level of the existing images of the target before and after damage is judged as training samples of the corresponding damage level, and the training samples are expanded using data enhancement.
[0086] Since there are usually few training images of damaged images, the present invention uses image rotation, scaling, and adding Gaussian noise to expand the training samples. Training samples of different damage levels constitute a training set. During subsequent training, for Gaussian mixture models of different damage levels, training samples of corresponding damage levels are extracted for training.
[0087] 2) For any damage level, the Gaussian mixture model is combined with the corresponding training samples and the expectation maximization method is used to obtain the corresponding parameter set.
[0088] Assume that any damage level contains N training samples, that is, N pairs of images of the target before and after damage. Each training sample corresponds to a target damage feature (obtained through the above steps 1 to 4). Assume that the target damage feature f corresponding to the i-th training sample is i The probability of belonging to the mth hidden state in the Gaussian mixture model is p(m|f i ,λ), expressed as:
[0089]
[0090] Then, the parameters of the Gaussian mixture model are updated using the following formula:
[0091]
[0092]
[0093]
[0094] According to the method in 2) above, the parameter sets of Gaussian mixture models with different damage levels are obtained.
[0095] Embodiment 2
[0096] Another embodiment of the present invention further provides a damage assessment system based on image analysis, which is mainly used to implement the method provided in the above embodiment, such as Figure 7 As shown, the system mainly includes:
[0097] An image correction unit, used to correct an image of the target after it is damaged by using the image before it is damaged;
[0098] A target area image capture unit, used to capture target area images from the image before the target is damaged and the corrected image after the target is damaged;
[0099] A grayscale difference map and correlation coefficient map calculation unit, used to calculate a grayscale difference map and a correlation coefficient map between a target area image before target damage and a target area image after target damage;
[0100] A target damage feature acquisition unit, used to obtain a target damage feature by combining the grayscale difference map and the correlation coefficient map;
[0101] A target damage assessment unit is used to assess the target damage degree using the target damage characteristics.
[0102] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.
[0103] It should be noted that the main principles of each unit of the above system have been introduced in detail in the previous method embodiments, so they will not be repeated here.
[0104] Embodiment 3
[0105] Another embodiment of the present invention further provides a processing device, such as Figure 8 As shown, it mainly includes: one or more processors; a memory for storing one or more programs; wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the methods provided in the aforementioned embodiments.
[0106] Furthermore, the processing device also includes at least one input device and at least one output device; in the processing device, the processor, memory, input device, and output device are connected via a bus.
[0107] In the embodiment of the present invention, the specific types of the memory, input device and output device are not limited; for example:
[0108] The input device may be a touch screen, an image acquisition device, a physical button or a mouse, etc.;
[0109] The output device may be a display terminal;
[0110] The memory may be a random access memory (RAM) or a non-volatile memory, such as a disk memory.
[0111] Embodiment 4
[0112] Another embodiment of the present invention further provides a readable storage medium storing a computer program, which implements the method provided in the above embodiment when the computer program is executed by a processor.
[0113] In the embodiment of the present invention, the readable storage medium is a computer-readable storage medium and can be set in the aforementioned processing device, for example, as a memory in the processing device. In addition, the readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk, etc., which can store program codes.
[0114] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A damage assessment method based on image analysis, characterized in that: include: Using the image of the target before it is damaged, the image of the target after it is damaged is corrected; The target area images are respectively intercepted from the image before the target is damaged and the corrected image after the target is damaged; Calculate the grayscale difference map and correlation coefficient map between the target area image before the target is damaged and the target area image after the target is damaged; Combining the grayscale difference map with the correlation coefficient map to obtain target damage characteristics; Assessing the degree of target damage using the target damage characteristics; The step of calculating the grayscale difference map and the correlation coefficient map between the target area image before the target is damaged and the target area image after the target is damaged comprises: Calculate grayscale difference map I diff :Let (x, y) represent the horizontal and vertical coordinates of the pixel of the image, then the grayscale difference I of the pixel at the position (x, y) diff The calculation method of (x,y) is as follows: Among them, I1 and I2 represent the target area image before and after target damage, respectively; (u, v) is the coordinate of the pixel point at the (x, y) position in the square neighborhood, L is the side length of the square neighborhood, and g(u, v) is the Gaussian smoothing window; Calculate the correlation coefficient plot: Calculate the correlation coefficient matrix A(x,y), expressed as: in, Scale the correlation coefficient matrix A(x,y) to between 0 and 255 and invert it to get the correlation coefficient graph I coef , the correlation coefficient value I of the pixel at the (x, y) position coef The calculation method of (x,y) is as follows: The use of the target damage feature to assess the target damage degree comprises: The probability distribution of the target damage characteristics is modeled offline using a Gaussian mixture model, which is expressed as: Among them, P(f|λ) is the Gaussian mixture model, λ is the parameter set of the mixed Gaussian model, including the mixing coefficient w m , mean μ m and variance∑ m ; M is the number of mixed states, N(f; μ m ,∑ m ) is a Gaussian function, and f represents the target damage characteristic; The damage level is divided into C levels. Based on expert knowledge and training images, C Gaussian mixture models are used to estimate the distribution P of target damage characteristics for images of C levels. c (f|λ c ), c represents the c-th damage level, each damage level corresponds to a Gaussian mixture model, c = [0, 1, 2, ..., C-1]; For the target damage feature f, calculate the probability p(λ c |f), that is, the posterior probability that the damage feature f belongs to the cth damage level, is calculated as: Among them, P(f|λ c ) represents the c-th Gaussian mixture model, p(λ c ) is the prior distribution of the c-th Gaussian mixture model, p(f) represents the prior distribution of the damage feature f; The result of damage category determination is finally given by the maximum a posteriori probability criterion, which is expressed as:
2. The damage assessment method based on image analysis according to claim 1, characterized in that: The correcting the image of the target after it is damaged by using the image of the target before it is damaged comprises: Obtain images of the target before and after damage, and calculate the SURF features of the two images respectively; According to the Manhattan distance between SURF features, the nearest neighbor ratio method is used to match the SURF features on the two images to obtain the initial pairing of SURF features; The random sampling consistent sampling method is used to optimize the initial pairing of SURF features, and the image before the target is damaged is used as a reference to calculate the perspective transformation matrix of the image after the target is damaged. The perspective transformation matrix is used to perform perspective transformation on the damaged target image to obtain a corrected damaged target image.
3. The damage assessment method based on image analysis according to claim 1, characterized in that: The capturing of the target area image from the image before the target is damaged and the corrected image after the target is damaged respectively comprises: In the original pre-damage image, the image is intercepted according to the circumscribed rectangle of the target area to obtain a normalized target area image I1 before the target is damaged; according to the same circumscribed rectangle, a rectangular area is intercepted from the corrected target post-damage image to obtain a normalized target area image I2 after the target is damaged.
4. The damage assessment method based on image analysis according to claim 1, characterized in that: Combining the grayscale difference map with the correlation coefficient map to obtain target damage characteristics includes: After the pixel values of the grayscale difference image and the correlation coefficient image are quantized and compressed respectively, the histogram distribution of the grayscale difference image and the correlation coefficient image after quantization and compression is calculated, and the two parts of the histogram vectors are connected in series to obtain the target damage characteristics.
5. The damage assessment method based on image analysis according to claim 1, characterized in that: The method further includes: judging the damage level for the existing images of the target before and after damage according to expert knowledge, taking them as training samples of the corresponding damage level, and expanding the training samples by using a data enhancement method; For any damage level Gaussian mixture model combined with the corresponding training samples, the expectation maximization method is used to obtain the corresponding parameter set: Assume that any damage level contains N training samples, that is, N pairs of images of the target before and after damage. Each training sample corresponds to a target damage feature. Assume that the target damage feature f corresponding to the i-th training sample is i The probability of belonging to the mth hidden state in the Gaussian mixture model is p(m|f i ,λ), expressed as: The following formula is used to update the parameters of the Gaussian mixture model:
6. A damage assessment system based on image analysis, characterized in that: For implementing the method described in any one of claims 1 to 5, the system comprises: An image correction unit, used to correct an image of the target after it is damaged by using the image before it is damaged; A target area image capture unit, used to capture target area images from the image before the target is damaged and the corrected image after the target is damaged; A grayscale difference map and correlation coefficient map calculation unit, used to calculate a grayscale difference map and a correlation coefficient map between a target area image before target damage and a target area image after target damage; A target damage feature acquisition unit, used to obtain a target damage feature by combining the grayscale difference map and the correlation coefficient map; A target damage assessment unit is used to assess the target damage degree using the target damage characteristics.
7. A processing device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
