Outdoor insulator contamination degree detection method and system based on hyperspectral
By dividing the spectral curves in hyperspectral detection into band divisions and correcting the conversion matrix, the problem of poor outdoor adaptability of hyperspectral detection is solved, indoor and outdoor model sharing is realized, and detection accuracy and work efficiency are improved.
Patent Information
- Application Number
- CN202210654271.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-06-10
AI Technical Summary
Hyperspectral detection is easily affected by light, resulting in poor adaptability of spectral models for indoor and outdoor detection, making it difficult to apply in the field, and each detection requires remodeling, which consumes a lot of manpower and material resources.
By dividing the spectral curves of outdoor hyperspectral images and indoor images into band sub-intervals, calculating the degree of mutation, using the transformation matrix to correct the band with large mutation, reconstructing the outdoor spectrum, and using the indoor pollution level detection model for detection, the indoor and outdoor models are realized shared.
Effectively eliminate the impact of light, improve detection accuracy, and easily promote indoor detection models to outdoor applications, save manpower and material resources, and improve work efficiency.
Smart Images

Figure CN115165908B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power transmission and transformation equipment operation status maintenance, and in particular relates to a method and a system for detecting the contamination degree of an outdoor insulator based on a hyperspectral spectrum. Background Art
[0002] Accurate and rapid detection of the contamination status of insulators is a prerequisite for achieving pollution flashover warning and improving the reliability of power system operation. Hyperspectral technology has the advantages of unified graph and spectrum and can reflect the microscopic characteristics of materials in a refined manner. Compared with traditional detection methods, it is more conducive to quantitative analysis of the degree of insulator contamination. However, since hyperspectral detection is easily affected by light, different light intensities will affect the quality of hyperspectral imaging during indoor detection; during outdoor detection, due to the large difference in light intensity at different time periods or in different weather outdoors, the measured outdoor spectrum lines and indoor spectrum lines are quite different. This spectral model has poor adaptability, which will make it difficult to use the indoor contamination degree detection model that has been built with great effort in the laboratory in the field or in production practice; if the model is rebuilt every time a test is performed, it will cost a lot of manpower and material resources.
[0003] Therefore, it is necessary to propose a simple, effective and reliable method to eliminate the influence of light on hyperspectral detection, and to promote the indoor detection model to outdoor applications while establishing the optimal indoor detection model. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method and system for detecting the contamination level of outdoor insulators based on hyperspectral, which solves the problem that the existing indoor hyperspectral detection model cannot be applied to outdoor detection.
[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0006] In a first aspect, a method for detecting the degree of contamination of an outdoor insulator based on a hyperspectral spectrum is provided, comprising:
[0007] S1. Collect outdoor hyperspectral images of outdoor insulators to be tested, and obtain indoor hyperspectral images of known different pollution levels;
[0008] S2, dividing the full band intervals of the spectral curves of the indoor hyperspectral image and the outdoor hyperspectral image into a plurality of groups of band sub-intervals, and calculating the mutation degree of the spectrum of the outdoor band sub-interval relative to the spectrum of the indoor corresponding band sub-interval;
[0009] S3. When the mutation degree is less than a preset threshold, the outdoor band sub-interval is stored in the first set; when the mutation degree is greater than or equal to the preset threshold, the outdoor band sub-interval is stored in the second set;
[0010] S4, obtaining a conversion matrix, and using the conversion matrix to correct each wavelength point of the spectrum in the second set to obtain a third set;
[0011] S5. Reconstruct the outdoor spectrum using the first set and the third set, and detect the reconstructed outdoor spectrum using the indoor pollution level detection model to obtain the pollution level of the outdoor insulator.
[0012] Furthermore, the method of reconstructing the outdoor spectrum using the first set and the third set includes:
[0013] Sort the wavelengths of each band sub-interval of the first set and the third set in ascending order;
[0014] The least square method is used to perform curve fitting on the sorted wavelengths to obtain the reconstructed outdoor spectrum.
[0015] The beneficial effects of the above preferred scheme are: the least squares curve fitting principle is simple and easy to operate, and the difference between the reconstructed outdoor spectrum and the corresponding indoor pollution degree spectrum curve has been basically eliminated. In this way, the indoor pollution degree detection model can be used to directly detect the pollution degree of the insulator, thereby realizing indoor and outdoor model sharing.
[0016] Furthermore, the method for constructing the indoor pollution degree detection model includes:
[0017] A1. Select a pollution level from all pollution levels, and collect a preset number of indoor hyperspectral images of several insulator samples under different light intensities at the current pollution level;
[0018] A2, performing quality assessment on the indoor hyperspectral image collected in step A1 to obtain the optimal experimental light intensity;
[0019] A3. Collect the remaining pollution level hyperspectral data under the optimal experimental light intensity and divide them into standard set and test set, marking them as main 标 ,host 测 ;
[0020] A4. Use the standard set and the test set to train the neural network or support vector machine to obtain an indoor pollution level detection model.
[0021] The beneficial effect of the above preferred scheme is that this scheme can minimize the impact of light on the indoor pollution degree detection model by evaluating the quality of hyperspectral images under different light intensities, thereby ensuring the accuracy of subsequent outdoor hyperspectral image detection.
[0022] Furthermore, the A2 further comprises:
[0023] A21. Record the spectral line data with a reflectivity greater than 1 and waveform distortion as invalid spectral line data, and count the total number of pixel points b and the total number of invalid spectral line data a in each indoor hyperspectral image collected in step A1.
[0024] A22. Calculate the spectral line distortion degree c of each indoor hyperspectral image as c = (a / b) * 100%. When 0 < c < 30%, 30% < c < 60%, and c < 60%, the quality of the hyperspectral image is excellent, good, and poor, respectively.
[0025] A23. Count the number of images with excellent quality under each light intensity, and take the light intensity with the largest number as the best experimental light intensity.
[0026] A24. When the number of images with excellent quality is equal under multiple light intensities, calculate the average value of the spectral line distortion degrees of all images under each light intensity, and select the light intensity corresponding to the group with the smallest average value as the best experimental light intensity.
[0027] The beneficial effects of the above preferred solution are as follows: The hyperspectral differences of insulators with different pollution degrees are mainly reflected by the spectral reflectivity. The influence of light will cause the spectral curve to be distorted, thus directly affecting the modeling effect. This solution uses the spectral distortion degree to evaluate the imaging quality, and using the data with the best imaging quality for modeling can directly minimize the influence of light on the indoor pollution degree detection model.
[0028] Furthermore, the method for obtaining the preset threshold and the conversion matrix is as follows:
[0029] C1. Collect the outdoor hyperspectral images of the corresponding insulator samples in the main 标 and the main 测 , and record them as the secondary 标 , the secondary 测 .
[0030] C2. Divide the full wavelength range of the spectral curves of the indoor hyperspectral images in the main 标 and the main 测 , and the outdoor hyperspectral images in the secondary 标 and the secondary 测 into several sub-wavelength ranges respectively.
[0031] C3. Calculate the degree of spectral mutation of the secondary 标 relative to the main 标 and the degree of spectral mutation of the secondary 测 relative to the main 测 in the same sub-wavelength range.
[0032] C4. Judge whether the degree of mutation is less than the preset threshold. If so, store the spectra of the corresponding sub-wavelength ranges of the secondary 标 and the secondary 测 into the secondary 标Q1 and from 测 Q1; otherwise it will 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q2 and from 测 Q2;
[0033] C5. Get the main 标 In and From 标 The spectrum of the sub-interval of the band corresponding to Q2 is mainly 标 Q2, and adopt the main 标 Q2 and from 标 Q2 calculates the transformation matrix;
[0034] C6, using the conversion matrix 测 The spectrum in Q2 is corrected and the corrected band is stored in the data set Q3; 标 Q1. From 测 Q1 and data set Q3 reconstruct the outdoor spectrum and store it in data set Q4;
[0035] C7, use the pollution detection model to detect the data set Q4, obtain the outdoor detection result, and determine whether the error of the outdoor detection result relative to the indoor detection result is greater than the preset range. If so, proceed to C8, otherwise the model transfer fails, the preset threshold is reduced by the set value, and return to step C4;
[0036] C8. The model is transferred successfully and the latest preset threshold and conversion matrix are output.
[0037] The beneficial effect of the above preferred scheme is: this scheme can find the difference between the indoor spectrum and the outdoor spectrum in this way, and continuously use the model to evaluate the error degree of the detection result of the corrected spectrum, so that the outdoor spectrum gradually approaches the indoor spectrum. The preset threshold and conversion matrix obtained in this way can ensure the detection accuracy when applied to outdoor detection.
[0038] Furthermore, the calculation formula of the mutation degree is:
[0039]
[0040] Among them, λ r-i is the reflection value of the i-th band in the spectrum of the r-th indoor band sub-interval; λ′ r-i is the reflectance value of the i-th band in the spectrum of the r-th outdoor band sub-interval; n is the total number of bands of the spectrum curve; θ r is the mutation degree between the indoor and outdoor spectral vectors in the r-th band subinterval.
[0041] The beneficial effects of the above preferred scheme are as follows: the mutation of the outdoor spectral curve is mainly reflected in the change of reflectance value at different wavelengths. The similarity between the spectral curves can be described by calculating the angle between the spectral vectors, thereby achieving an effective evaluation of the degree of spectral line mutation. By dividing the band into sub-intervals, the intervals with smaller spectral mutations are directly retained, thereby improving the efficiency of subsequent calculations.
[0042] Furthermore, the main 标 Q2 and from 标 The formula for calculating the transformation matrix of Q2 is:
[0043] Among them, F is the conversion matrix, S1 is the main 标 The spectral data in Q2 and S2 are from 标 Spectral data in Q2, is the generalized inverse matrix of S2; S1 and S2 are both m×p dimensional spectral matrices, where m is the number of spectra and p is the number of wavelengths;
[0044] From 测 The calculation formula for the spectrum correction in Q2 is:
[0045] Q3=T (Q2) ×F
[0046] Among them, T (Q2) For 测 Q2 is the spectral data; Q3 is the corrected spectral data.
[0047] The beneficial effects of the above preferred scheme are: the conversion matrix F explains the difference between indoor and outdoor spectra, links the outdoor spectrum with the corresponding indoor spectrum, and acts on the spectral curve of the band group to be corrected, so as to correct each wavelength point in the full band of the spectrum to be measured, thereby achieving the purpose of eliminating the difference between indoor and outdoor spectra in the sub-band interval.
[0048] Furthermore, the method for acquiring the indoor hyperspectral image includes:
[0049] Adjust the hyperspectral imager to a distance of 1m from the insulator sample and shoot at a 45-degree angle;
[0050] Synchronously adjust the fill light intensity on both sides of the insulator sample until the hyperspectral image texture is clear, and mark the light intensity at this time as W min , the fill light intensity on both sides should be kept consistent during adjustment;
[0051] A hyperspectral image was collected every 1000 lux, and each insulator sample was collected three times at each light intensity until the light intensity was adjusted to the maximum value.
[0052] In a second aspect, a detection system for a method for detecting the degree of contamination of an outdoor insulator based on a hyperspectral spectrum is provided, comprising:
[0053] An acquisition module is used to acquire outdoor hyperspectral images of outdoor insulators to be inspected, and to obtain indoor hyperspectral images of known different pollution levels;
[0054] The mutation degree calculation module is used to divide the full band interval of the spectral curve of the indoor hyperspectral image and the outdoor hyperspectral image into a plurality of groups of band sub-intervals, and calculate the mutation degree of the spectrum of the outdoor band sub-interval relative to the spectrum of the indoor corresponding band sub-interval;
[0055] A judgment module, configured to store the outdoor band sub-intervals into a first set when the mutation degree is less than a preset threshold; and store the outdoor band sub-intervals into a second set when the mutation degree is greater than or equal to the preset threshold;
[0056] A correction module, used to obtain a conversion matrix, and use the conversion matrix to correct each wavelength point of the spectrum in the second set to obtain a third set;
[0057] The identification module is used to reconstruct the outdoor spectrum by using the first set and the third set, and detect the reconstructed outdoor spectrum by using the indoor pollution degree detection model to obtain the pollution degree of the outdoor insulator.
[0058] The beneficial effects of the present invention are as follows: this scheme determines the degree of mutation of the spectral lines of the outdoor hyperspectral image relative to the spectral lines of the indoor hyperspectral image, corrects the spectral lines with a relatively large mutation degree, reconstructs the outdoor spectral curve, and achieves the purpose of reducing the difference between indoor and outdoor spectra. It can well realize the sharing of indoor and outdoor models and effectively evaluate the degree of contamination of insulating materials. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 The figure is a flow chart of the method for detecting the contamination level of outdoor insulators based on hyperspectral. DETAILED DESCRIPTION
[0060] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0061] refer to Figure 1 , Figure 1 FIG. 4 shows a flow chart of a method for detecting the degree of contamination of outdoor insulators based on a hyperspectral spectrum; Figure 1 As shown, the method S includes steps S1 to S5.
[0062] In step S1, an outdoor hyperspectral image of an outdoor insulator to be inspected is collected, and indoor hyperspectral images of known different pollution levels are obtained.
[0063] In step S2, the full band intervals of the spectral curves of the indoor hyperspectral image and the outdoor hyperspectral image are divided into a plurality of groups of band sub-intervals, and the mutation degree of the spectrum of the outdoor band sub-interval relative to the spectrum of the indoor corresponding band sub-interval is calculated;
[0064] During implementation, the preferred calculation formula for the mutation degree in this solution is:
[0065]
[0066] Among them, λ r-i is the reflection value of the i-th band in the spectrum of the r-th indoor band sub-interval; λ′ r-i is the reflectance value of the i-th band in the spectrum of the r-th outdoor band sub-interval; n is the total number of bands of the spectrum curve; θ r is the mutation degree between the indoor and outdoor spectral vectors in the r-th band subinterval.
[0067] In step S3, when the mutation degree is less than a preset threshold, the outdoor band sub-interval is stored in the first set; when the mutation degree is greater than or equal to the preset threshold, the outdoor band sub-interval is stored in the second set;
[0068] In step S4, a conversion matrix is obtained, and each wavelength point of the spectrum in the second set is corrected using the conversion matrix to obtain a third set;
[0069] In one embodiment of the present invention, the method for obtaining the preset threshold and the conversion matrix is:
[0070] C1. Collect the preset number of 标 and the Lord 测 The outdoor hyperspectral image of the insulator sample is recorded as 标 ,from 测 ;
[0071] The method for acquiring outdoor hyperspectral images of insulator samples is as follows: select clear and cloudless weather, collect data in an open area at 12 noon, place the hyperspectrometer in the same position as indoors, and collect data three times for each group of samples. Since the outdoor light intensity is relatively stable at 12 noon, the hyperspectrometer is placed in the same position as indoors to prevent changes in other collection conditions from affecting the data.
[0072] C2, the main 标 and the Lord 测 Indoor hyperspectral images and 标 and from 测The full band interval of the spectral curve of the outdoor hyperspectral image is divided into several groups of band sub-intervals;
[0073] C3, respectively calculate from 标 Relative to the main 标 and from 测 Relative to the main 测 The degree of spectrum mutation in the same band sub-interval;
[0074] C4, determine whether the mutation degree is less than the preset threshold, if so, then 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q1 and from 测 Q1; otherwise it will 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q2 and from 测 Q2;
[0075] C5. Get the main 标 In and From 标 The spectrum of the sub-interval of the band corresponding to Q2 is mainly 标 Q2, and adopt the main 标 Q2 and from 标 Q2 calculates the transformation matrix:
[0076] Among them, F is the conversion matrix, S1 is the main 标 The spectral data in Q2 and S2 are from 标 Spectral data in Q2, is the generalized inverse matrix of S2; S1 and S2 are both m×p dimensional spectral matrices, where m is the number of spectra and p is the number of wavelengths;
[0077] C6, using the conversion matrix 测 The spectrum in Q2 is corrected:
[0078] Q3=T (Q2) ×F
[0079] Among them, T (Q2) For 测 Q2 is the spectral data; Q3 is the corrected spectral data.
[0080] The corrected bands are stored in the data set Q3; 标 Q1. From 测 Q1 and data set Q3 reconstruct the outdoor spectrum and store it in data set Q4;
[0081] C7. Use the pollution detection model to detect the data set Q4, obtain the outdoor detection result, and determine whether the error of the outdoor detection result relative to the indoor detection result is greater than the preset range (the preferred preset range of this scheme is 5%). If so, enter C8; otherwise, the model transfer fails, the preset threshold is reduced by the set value, and return to step C4.
[0082] C8. The model is transferred successfully and the latest preset threshold and conversion matrix are output.
[0083] In step S5, the first set and the third set are used to reconstruct the outdoor spectrum, and the indoor pollution level detection model is used to detect the reconstructed outdoor spectrum to obtain the pollution level of the outdoor insulator.
[0084] During implementation, the method for reconstructing the outdoor spectrum by using the first set and the third set preferably includes:
[0085] Sort the wavelengths of each band sub-interval of the first set and the third set in ascending order;
[0086] The least square method is used to perform curve fitting on the sorted wavelengths to obtain a reconstructed outdoor spectrum. In one embodiment of the present invention, the method for constructing the indoor pollution degree detection model includes:
[0087] A1. Select a pollution level from all pollution levels, and collect a preset number of indoor hyperspectral images of several insulator samples under different light intensities at the current pollution level.
[0088] During implementation, the method for acquiring the indoor hyperspectral image preferably includes:
[0089] Adjust the hyperspectral imager to a distance of 1m from the insulator sample and shoot at a 45-degree angle;
[0090] Synchronously adjust the fill light intensity on both sides of the insulator sample until the hyperspectral image texture is clear, and mark the light intensity at this time as W min , the fill light intensity on both sides should be kept consistent during adjustment;
[0091] A hyperspectral image was collected every 1000 lux, and each insulator sample was collected three times at each light intensity until the light intensity was adjusted to the maximum value.
[0092] A2, performing quality assessment on the indoor hyperspectral image collected in step A1 to obtain the optimal experimental light intensity;
[0093] In one embodiment of the present invention, the A2 further comprises:
[0094] A21. Record the spectral lines with reflectivity greater than 1 and waveform distortion as invalid spectral line data, and count the total number of pixel points b and the total number of invalid spectral line data a in each indoor hyperspectral image collected in step A1.
[0095] A22. Calculate the spectral line distortion degree c of each indoor hyperspectral image: c = (a / b) * 100%. When 0 < c < 30%, 30% < c < 60%, and c < 60%, the quality of the hyperspectral image is excellent, good, and poor respectively.
[0096] A23. Count the number of images with excellent quality under each light intensity, and take the group of light intensity with the largest number as the optimal experimental light intensity.
[0097] A24. When the number of images with excellent quality is equal under multiple light intensities, calculate the average value of the spectral line distortion degrees of all images under each light intensity, and select the group of light intensity corresponding to the smallest average value as the optimal experimental light intensity.
[0098] A3. Collect the remaining hyperspectral data of high pollution levels under the optimal experimental light intensity, and divide them into a standard set and a test set, which are respectively marked as main 标 、main 测 ;
[0099] A4. Use the standard set and the test set to train a neural network or a support vector machine to obtain an indoor pollution degree detection model.
[0100] This solution also provides a detection system applied to the detection method of outdoor insulator pollution degree based on hyperspectrum, which includes:
[0101] A collection module, which is used to collect the outdoor hyperspectral image of the outdoor insulator to be detected and obtain the indoor hyperspectral images of known different pollution levels.
[0102] A mutation degree calculation module, which is used to divide the full wavelength range of the spectral curves of the indoor hyperspectral image and the outdoor hyperspectral image into several sub-wavelength ranges respectively, and calculate the mutation degree of the spectrum of the outdoor sub-wavelength range relative to the spectrum of the corresponding indoor sub-wavelength range.
[0103] A judgment module, which is used to store the outdoor sub-wavelength range into the first set when the mutation degree is less than the preset threshold; and store the outdoor sub-wavelength range into the second set when the mutation degree is greater than or equal to the preset threshold.
[0104] A calibration module, which is used to obtain a conversion matrix and use the conversion matrix to calibrate each wavelength point of the spectrum in the second set to obtain a third set.
[0105] An identification module, which is used to reconstruct the outdoor spectrum using the first set and the third set, and use the indoor pollution degree detection model to detect the reconstructed outdoor spectrum to obtain the pollution degree of the outdoor insulator.
[0106] In summary, this scheme corrects the spectral curve of the sub-interval with a large mutation degree to reconstruct the outdoor spectrum, thereby eliminating the difference between indoor and outdoor spectra. In this way, the model constructed indoors is extended to outdoor applications, which improves work efficiency, saves manpower and material resources, and provides a technical reference for on-site insulator contamination degree detection, which has important theoretical significance and practical engineering value.
Claims
1. A method for detecting the degree of contamination of outdoor insulators based on hyperspectral, characterized in that: include: S1. Collect outdoor hyperspectral images of outdoor insulators to be tested, and obtain indoor hyperspectral images of known different pollution levels; S2, dividing the full band intervals of the spectral curves of the indoor hyperspectral image and the outdoor hyperspectral image into a plurality of groups of band sub-intervals, and calculating the mutation degree of the spectrum of the outdoor band sub-interval relative to the spectrum of the indoor corresponding band sub-interval; S3. When the mutation degree is less than a preset threshold, the outdoor band sub-interval is stored in the first set; when the mutation degree is greater than or equal to the preset threshold, the outdoor band sub-interval is stored in the second set; S4, obtaining a conversion matrix, and using the conversion matrix to correct each wavelength point of the spectrum in the second set to obtain a third set; S5, reconstructing the outdoor spectrum using the first set and the third set, and detecting the reconstructed outdoor spectrum using the indoor pollution level detection model to obtain the pollution level of the outdoor insulator; The method for obtaining the preset threshold and the conversion matrix is: C1. Collect the preset number of 标 and the Lord 测 The outdoor hyperspectral image of the insulator sample is recorded as 标 ,from 测 ; C2, the main 标 and the Lord 测 Indoor hyperspectral images and 标 and from 测 The full band interval of the spectral curve of the outdoor hyperspectral image is divided into several groups of band sub-intervals; C3, respectively calculate from 标 Relative to the main 标 and from 测 Relative to the main 测 The degree of spectrum mutation in the same band sub-interval; C4, determine whether the mutation degree is less than the preset threshold, if so, then 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q 1 and from 测 Q 1; otherwise, 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q 2 and from 测 Q 2; C5. Get the main 标 In and From 标 Q 2 The spectrum of the corresponding band sub-interval is mainly 标 Q 2, and adopt the main 标 Q 2 and from 标 Q 2 Calculate the transformation matrix; C6, using the conversion matrix 测 Q 2. Correct the spectrum and store the corrected bands in the data set Q 3. Adopt 标 Q 1. From 测 Q 1 and dataset Q 3. Reconstruct the outdoor spectrum and store it in the dataset Q 4; C7. Use indoor pollution degree detection model to analyze the data set Q 4. Perform detection to obtain outdoor detection results, and determine whether the error of the outdoor detection results relative to the indoor detection results is greater than a preset range. If so, proceed to C8. Otherwise, the model transfer fails, the preset threshold is reduced by a set value, and return to step C4. C8. The model is transferred successfully and the latest preset threshold and conversion matrix are output.
2. The method for detecting the degree of contamination of outdoor insulators according to claim 1, characterized in that: The method of reconstructing the outdoor spectrum using the first set and the third set includes: Sort the wavelengths of each band sub-interval of the first set and the third set in ascending order; The least square method is used to fit the reflectivity corresponding to each wavelength to obtain the reconstructed outdoor spectrum.
3. The method for detecting the degree of contamination of outdoor insulators according to claim 1 or 2, characterized in that: The method for constructing the indoor pollution degree detection model includes: A1. Select a pollution level from all pollution levels, and collect a preset number of indoor hyperspectral images of several insulator samples under different light intensities at the current pollution level; A2, performing quality assessment on the indoor hyperspectral image collected in step A1 to obtain the optimal experimental light intensity; A3. Collect the remaining pollution level hyperspectral data under the optimal experimental light intensity and divide them into standard set and test set, marking them as main 标 ,host 测 ; A4. Use the standard set and the test set to train the neural network or support vector machine to obtain an indoor pollution level detection model.
4. The method for detecting the degree of contamination of outdoor insulators according to claim 3, characterized in that: The A2 further comprises: A21. Record the reflectivity greater than 1 and the waveform distortion as invalid spectral line data, and count the total number of pixels in each indoor hyperspectral image collected in step A1. b Total number of invalid spectral line data a ; A22. Calculate the spectral distortion of each indoor hyperspectral image c =( a / b )*100%, when c 0< c <30%, 30%< c <60% and c When <60%, the quality of the hyperspectral image is excellent, good, and poor, respectively; A23. Count the number of images with good quality under each light intensity, and take the light intensity with the largest number as the best experimental light intensity; A24. When the number of images with good quality under multiple light intensities is equal, calculate the average value of the spectral distortion of all images under each light intensity, and select the corresponding light intensity with the smallest average value as the optimal experimental light intensity.
5. The method for detecting the degree of contamination of outdoor insulators according to claim 1, characterized in that: The calculation formula of the mutation degree is: in, For the In the spectrum of the indoor band sub-interval The reflectance value of the band; For the In the spectrum of the outdoor band sub-interval The reflectance value of the band; n is the total number of bands of the spectral curve; For the The degree of mutation between the indoor and outdoor spectral vectors in each band sub-interval.
6. The method for detecting the degree of contamination of outdoor insulators according to claim 1, characterized in that:Adopt the main 标 Q 2 and from 标 Q 2 The formula for calculating the transformation matrix is: ; in, F is the transformation matrix, S 1 is the main 标 Spectral data in Q2, S 2 is from 标 Spectral data in Q2, for S The generalized inverse matrix of 2; S 1 and S 2 are dimensional spectral matrix, m is the number of spectra, p is the number of wavelengths; From 测 Q The calculation formula for spectrum correction in 2 is: in, For 测 Q Spectral data in 2; is the spectral data after correction.
7. The method for detecting the degree of contamination of outdoor insulators according to claim 1, characterized in that: The method for acquiring the indoor hyperspectral image comprises: Adjust the hyperspectral imager to a distance of 1m from the insulator sample and shoot at a 45-degree angle; Synchronously adjust the fill light intensity on both sides of the insulator sample until the hyperspectral image texture is clear, and mark the light intensity at this time as W min , the fill light intensity on both sides should be kept consistent during adjustment; A hyperspectral image was collected every 1000 lux, and each insulator sample was collected three times at each light intensity until the light intensity was adjusted to the maximum value.
8. A detection system applied to the method for detecting the degree of contamination of outdoor insulators based on hyperspectral spectrum as described in any one of claims 1 to 7, characterized in that: include: An acquisition module is used to acquire outdoor hyperspectral images of outdoor insulators to be inspected, and to obtain indoor hyperspectral images of known different pollution levels; The mutation degree calculation module is used to divide the full band interval of the spectral curve of the indoor hyperspectral image and the outdoor hyperspectral image into a plurality of groups of band sub-intervals, and calculate the mutation degree of the spectrum of the outdoor band sub-interval relative to the spectrum of the indoor corresponding band sub-interval; A judgment module, configured to store the outdoor band sub-intervals into a first set when the mutation degree is less than a preset threshold; and store the outdoor band sub-intervals into a second set when the mutation degree is greater than or equal to the preset threshold; A correction module, used to obtain a conversion matrix, and use the conversion matrix to correct each wavelength point of the spectrum in the second set to obtain a third set; An identification module is used to reconstruct an outdoor spectrum using the first set and the third set, and detect the reconstructed outdoor spectrum using an indoor pollution degree detection model to obtain the pollution degree of the outdoor insulator; The method for obtaining the preset threshold and the conversion matrix is: C1. Collect the preset number of 标 and the Lord 测 The outdoor hyperspectral image of the insulator sample is recorded as 标 ,from 测 ; C2, the main 标 and the Lord 测 Indoor hyperspectral images and 标 and from 测 The full band interval of the spectral curve of the outdoor hyperspectral image is divided into several groups of band sub-intervals; C3, respectively calculate from 标 Relative to the main 标 and from 测 Relative to the main 测 The degree of spectrum mutation in the same band sub-interval; C4, determine whether the mutation degree is less than the preset threshold, if so, then 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q 1 and from 测 Q 1; otherwise it will be 标 and from 测 The corresponding band sub-interval spectrum is stored from 标 Q 2 and from 测 Q 2; C5. Get the main 标 In and From 标 Q 2 The spectrum of the corresponding band sub-interval is mainly 标 Q 2, and adopt the main 标 Q 2 and from 标 Q 2 Calculate the transformation matrix; C6, using the conversion matrix 测 Q 2. Correct the spectrum and store the corrected bands in the data set Q 3. Adopt 标 Q 1. From 测 Q 1 and dataset Q 3. Reconstruct the outdoor spectrum and store it in the dataset Q 4; C7. Use indoor pollution degree detection model to analyze the data set Q 4. Perform detection to obtain outdoor detection results, and determine whether the error of the outdoor detection results relative to the indoor detection results is greater than a preset range. If so, proceed to C8. Otherwise, the model transfer fails, the preset threshold is reduced by a set value, and return to step C4. C8. The model is transferred successfully and the latest preset threshold and conversion matrix are output.
