An integrated hyperspectral image automatic processing method and system
The integrated hyperspectral image automatic processing method and system solves the problems of fragmented hyperspectral satellite data processing and difficulties in multi-scene synthesis, and realizes efficient and stable data preprocessing and multi-scene synthesis, generating structured spectrograms to support mineral identification and mineral exploration prediction.
Patent Information
- Application Number
- CN202611360885.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for hyperspectral satellite data processing suffer from fragmented workflows, difficulty in multi-scene synthesis, significant impact from banding and bad lines, low efficiency in pixel spectrum extraction, and insufficient binding of absorption peak parameters with spatial coordinates, resulting in poor consistency and low processing efficiency.
An integrated automatic hyperspectral image processing method and system is provided. By automatically constructing preprocessing task parameters, it achieves data format unification, strip and bad line detection and repair, geometric registration, radiometric calibration, atmospheric correction and study area cropping, generates a structured pixel spectrum table and extracts absorption peak parameters, and supports multi-scene synthesis and spatial coordinate binding.
It improves the efficiency and consistency of hyperspectral data processing, ensures the success rate of multi-scene synthesis, and provides structured spectrograms that can be directly used for spectral parameter calculation and mineral identification, supporting subsequent alteration zoning identification and mineral exploration prediction.
Smart Images

Figure CN123161071A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of remote sensing geological survey, hyperspectral image processing, satellite data engineering application, and mineral resource exploration, and particularly to an integrated automatic hyperspectral image processing method and system. Background Art
[0002] Hyperspectral remote sensing data have continuous narrow-band imaging capabilities, which can record the fine spectral response of ground objects in the visible-near infrared-shortwave infrared range, and serve as an important data source for altered mineral identification, lithologic mapping, spectral parameter mapping, and mineral resource prediction. In recent years, domestic hyperspectral satellites such as GaoFen-5 and ZY-1 02D / 02E have provided stable data sources for large-scale geological surveys, and especially have high application potential in the identification of hydroxyl minerals, carbonate minerals, iron oxides, and hydrothermal alteration zoning.
[0003] However, to convert hyperspectral satellite data from original products into reflectance images that can be used for geological alteration analysis and spectral parameter extraction, multiple steps are usually required, including data opening, format conversion, stripe removal, geometric correction, radiometric calibration, atmospheric correction, bad band removal, cropping, and smoothing. Most existing workflows rely on manual repeated switching between different software and tools, which leads to complex parameter settings, long processing time, and poor result consistency. For beginners or batch projects, omission of any step or inconsistent parameter settings may cause significant deviations in subsequent mineral identification, absorption peak parameter extraction, and spatial interpolation analysis.
[0004] Meanwhile, in actual ore exploration prediction and regional surveys, a study area often covers multiple scenes of hyperspectral images. Different images may have problems such as different imaging times, different band counts, slight differences in wavelength centers, inconsistent projection coordinates, inconsistent data types, or inconsistent spectral responses in overlapping areas. When stitching multiple scenes of hyperspectral images, traditional software is prone to problems such as excessive memory usage, difficulty in compositing more than two scenes, loss of band information, and obvious boundary between stitched images, which limits the engineering application of hyperspectral satellite data in large-scale spectral parameter mapping and alteration analysis.
[0005] In addition, geological alteration analysis not only requires preprocessed images, but also needs to bind pixel spectral curves to spatial coordinates to facilitate the linkage analysis with ground samples, standard spectral libraries, and mineral parameters. In existing workflows, batch export of pixel spectra, construction of structured spectral tables, and extraction of absorption peak parameters usually require manual scripting or segmented completion with multiple tools, making it difficult to form an integrated technical chain from original hyperspectral satellite data to pixel-level spectral parameter results.
[0006] Therefore, there is an urgent need for a method and system that can automatically complete preprocessing, batch synthesis, pixel spectral conversion, absorption peak parameter extraction, and coordinate output for original hyperspectral satellite products, in order to reduce manual interaction, improve processing efficiency, and enhance the stability, repeatability, and interpretability of large-scale hyperspectral image processing, geological alteration analysis, and spectral parameter mapping results. Summary of the Invention
[0007] To address the problems existing in the prior art, the present invention aims to provide an integrated automatic hyperspectral image processing method and system, which solves the problems of scattered hyperspectral data preprocessing steps, difficulty in multi-scene synthesis, significant influence of stripes and bad lines, low efficiency of pixel spectrum export, and insufficient extraction of absorption peak parameters and binding of spatial coordinates in the prior art.
[0008] To achieve the above objectives, the present invention provides the following solution: An integrated automatic hyperspectral image processing method includes: Acquire one or more original hyperspectral satellite images of the study area, as well as optional auxiliary data, including reference images for geometric registration and boundary vectors for cropping the study area; The metadata files and header files of each scene of the original hyperspectral satellite product are parsed. Based on the parsing results, sensor parameter templates are matched, and preprocessing task parameters matching the corresponding scene are constructed. Based on the preprocessing task parameters, data format unification, strip noise and bad line detection and repair, geometric registration, radiometric calibration, atmospheric correction, bad band removal, study area cropping and spectral smoothing are sequentially performed on each scene of the original hyperspectral satellite product to obtain a single scene of standardized reflectance image. The number of the single-scene standardized reflectance images is determined. When the number is one scene, the single-scene standardized reflectance image is used as the target hyperspectral image. When the number is multiple scenes, the spectral axes, data types, invalid values, and projection coordinates of each single-scene standardized reflectance image are standardized and segmented and stitched together to obtain the target hyperspectral image. The target hyperspectral image is scanned pixel by pixel to construct a structured pixel spectrogram containing pixel spatial coordinates and reflectance values at each center wavelength. Based on the structured pixel spectrogram, the peak position, peak depth, and quality markers of absorption peaks near the target wavelength are extracted, and the peak position, peak depth, and quality markers of absorption peaks are associated with the corresponding pixel spatial coordinates to generate a spatial parameter table.
[0009] Optionally, parsing the product metadata file and header file of the original hyperspectral satellite product includes: Extract the sensor identifier, number of bands, center wavelength, half width at half maximum (WWHM), bad band marker, data arrangement, data type, invalid values, spatial reference information, pixel size, imaging time and spatial range from the product metadata file and the data header file; When the unit of the center wavelength is micrometer, the center wavelength is converted to nanometer and used as a unified spectral axis. According to the sensor identifier, a preset sensor parameter template is matched to obtain the original band rules, bad band rules, radiometric scaling factor, and atmospheric correction sensor model. At the same time, the target grid and the conversion relationship of pixel center coordinates are determined according to the spatial reference information and pixel size. Furthermore, according to the imaging time, reference image, boundary vector, and user-set or preset aerosol model, visibility, and spectral smoothing parameters, preprocessing task parameters including processing order, input and output paths, algorithm parameters, and anomaly handling rules are formed.
[0010] Optionally, the preprocessing task parameters include: Each scene of the original hyperspectral satellite product is exported as a full-band data cube with a unified data arrangement, and the number of bands, center wavelength, half width at half maximum, bad band marker, data type, invalid value and spatial reference information are retained in the data header file. The median brightness profile is calculated along the row and column directions for each band. A background profile is constructed using the moving median, and the difference between the median brightness profile and the background profile is used as the residual profile. The strip threshold is set using the robust deviation of the residual profile. At the same time, the standard deviation of the row or column, the proportion of all-zero pixels, and the proportion of finite values are combined to distinguish potential stripes and potential bad lines. In enhanced detection mode, a preset number of adjacent bands before and after the current band are read. The residuals of adjacent bands with the same abnormal direction and the same residual profile length are selected. The median of each position is taken and combined with the residual of the current band according to a preset weight. Threshold shrinkage is performed on the combined residuals to verify potential stripes. Potential bad lines are filled by interpolation of adjacent effective rows or columns. The strip deviation is calculated based on the verified residuals and the deviation is corrected to obtain destripped data. Strip and bad line processing reports and operation logs are generated simultaneously, and the input and output paths, abnormal bands, abnormal directions, abnormal locations, abnormal intensities, repair status, operation time, and error information are recorded.
[0011] Optionally, obtaining the single-scene normalized reflectance image includes: The striped data of each scene obtained from the preprocessing task parameters is used as the input for subsequent single-scene processing. Control points are generated by cross-correlation or mutual information matching using the reference image. After quality screening of the control points, geometric registration is completed by multinomial transformation and resampling. Based on the bad band markers in the data header file and the bad band rules in the sensor parameter template, water vapor absorption, edge noise, and low signal-to-noise ratio bands of the control points after geometric registration are removed. The study area is then cropped using the boundary vector, and each pixel is spectrally smoothed along a unified spectral axis to obtain the single-scene standardized reflectance image. When the reference image or boundary vector is not provided, the corresponding processing is skipped and recorded in the operation log.
[0012] Optionally, obtaining the target hyperspectral image includes: When the single-scene standardized reflectance image is multiple scenes, the image with the largest number of bands or the image specified by the user is selected as the template image. The center wavelength of the template image is used as the target spectral axis, and the other images are resampled pixel by pixel. The data type of the other images is uniformly converted to a preset floating-point type, and the number of bands, wavelength sequence, half width at half maximum, band name, invalid value and data header information are adjusted to be consistent with the template image. The EPSG number or projection band number in each image data header file is parsed, and images with different projection coordinates or different UTM bands are reprojected to the same coordinate reference. A unified resampling method, background value, and invalid value are used for block reading, block writing, and stitching to obtain the target hyperspectral image.
[0013] Optionally, the structured pixel spectral table includes: pixel number, row number, column number, X coordinate, Y coordinate, and reflectance values of each band arranged according to a unified spectral axis; the X coordinate and Y coordinate are calculated based on spatial reference information, pixel size, and reference pixel position.
[0014] Optionally, generating the spatial parameter table includes: The reflectance values of each pixel in the structured pixel spectral table in the retained band are sorted according to the center wavelength to form the reflectance spectrum to be measured. A wide window and a focusing window are set around the target wavelength. Invalid values are removed and interpolation is performed within the wide window. The background line of the continuum is constructed using the reflectance at both ends of the wide window. The absorption depth curve is calculated according to D(λ)=1-R(λ) / C(λ), where R(λ) is the interpolated value of the reflectance spectrum to be measured and C(λ) is the background value of the continuum. Within the focusing window, non-boundary local maxima are searched, and the significance P, absorption depth D, and distance Δλ = |λp - λt| from the target wavelength of the candidate peak are calculated. The significance P is the difference between the absorption depth of the candidate peak and the higher of the local baselines on both sides. Only candidate peaks with P not less than a preset minimum significance and D not less than a preset minimum absorption depth are retained. The optimal absorption peak is determined in order of absorption depth from large to small and distance from small to large. The spatial parameter table is generated using the peak position, peak depth, and quality marker of the optimal absorption peak.
[0015] Optionally, the target wavelength includes: 2200nm, 2250nm, 1900nm, 2350nm or other diagnostic absorption bands for hydroxyl, carbonate, iron oxide and hydrous minerals; the preset minimum significance, preset minimum absorption depth, wide window, focusing window and interpolation step size are input by the user or called by the diagnostic band parameter template; when the number of effective bands in the wide window is less than the preset number, the number of unique wavelength points is insufficient, interpolation fails, the number of points in the focusing window is insufficient, or there is no non-boundary local maximum that simultaneously satisfies the significance and absorption depth thresholds in the focusing window, it is determined that no effective absorption peak has been detected and the corresponding quality label is output.
[0016] Optionally, the method further includes: The system reads the latitude and longitude coordinate sequence or projected coordinate sequence input by the user, constructs geometric objects according to the point, line or surface geometric rules selected by the user and outputs an SHP file, or organizes the coordinate sequence into a KML file and compresses it into a KMZ file to generate coordinate vector results. The coordinate vector results generation step is independent of the spatial parameter table generation step and is used for rapid mapping of study area boundaries, field sample locations, anomaly points or results verification locations.
[0017] To achieve the above objectives, the present invention also provides an integrated automatic hyperspectral image processing system, comprising: The data access and metadata parsing module is used to acquire one or more original hyperspectral satellite products of the study area and optional auxiliary data. The optional auxiliary data includes reference images for geometric registration and boundary vectors for cropping the study area. The product metadata file and data header file of each scene of the hyperspectral satellite original product are parsed respectively. Based on the parsing results, sensor parameter templates are matched, and preprocessing task parameters that match the corresponding scene are constructed. The automatic preprocessing and multi-scene synthesis module is used to perform data format unification, strip noise and bad line detection and repair, geometric registration, radiometric calibration, atmospheric correction, bad band removal, study area cropping and spectral smoothing on each scene of the original hyperspectral satellite product based on the preprocessing task parameters, so as to obtain a single scene of standardized reflectance image. The number of the single-scene standardized reflectance images is determined. When the number is one scene, the single-scene standardized reflectance image is used as the target hyperspectral image. When the number is multiple scenes, the spectral axes, data types, invalid values, and projection coordinates of each single-scene standardized reflectance image are standardized and segmented and stitched together to obtain the target hyperspectral image. The pixel spectral database construction module is used to perform pixel-by-pixel scanning on the target hyperspectral image and construct a structured pixel spectral table containing pixel spatial coordinates and reflectance values of each center wavelength. The absorption peak parameter and spatial result output module is used to extract the peak position, peak depth and quality marker of the absorption peak near the target wavelength based on the structured pixel spectrum table, and associate the absorption peak position, peak depth and quality marker with the corresponding pixel spatial coordinates to generate a spatial parameter table.
[0018] The beneficial effects of this invention are as follows: First, this invention automatically constructs preprocessing task parameters based on product metadata and sensor parameter templates, integrating the multi-step processing of hyperspectral satellite data from raw products to reflectance results into a repeatable workflow. Second, this invention improves the quality of hyperspectral data by automatically identifying and repairing stripes and bad lines based on robust statistical profiles, bad line discrimination indicators, and residual verification of adjacent bands. Third, this invention improves the success rate and consistency of multi-scene synthesis through spectral axis, projection, data type, invalid value standardization, and block read / write. Fourth, this invention forms a structured spectrogram that can be directly used for spectral parameter calculation, mineral identification, and machine learning modeling by binding pixel-by-pixel spectra with geographic coordinates. Fifth, this invention achieves batch output of peak positions and depths in diagnostic bands such as 2200nm, 2250nm, and 2350nm through candidate peak threshold screening, quality marking, and spatial coordinate association, providing basic parameters for subsequent kriging interpolation, alteration zoning discrimination, and mineral exploration prediction. Sixth, this invention improves the efficiency of mapping study area boundaries, field sample locations, and anomaly point results through rapid conversion of coordinate sequences to SHP, KML, or KMZ. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0020] Figure 1 This is a schematic diagram of the overall process of an integrated hyperspectral image automatic processing method according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the automatic preprocessing sub-process of an embodiment of the present invention; Figure 3 This is a schematic diagram of the multi-scene compositing and standardization process according to an embodiment of the present invention; Figure 4 This is a schematic diagram of the module structure of an integrated hyperspectral image automatic processing system according to an embodiment of the present invention. Detailed Implementation
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0023] like Figure 1 As shown, this embodiment discloses an integrated automatic hyperspectral image processing method, including the following steps: S1. Obtain one or more original hyperspectral satellite images of the study area, along with optional auxiliary data. The original hyperspectral satellite images include Gaofen-5 AHSI, Ziyuan-1 02D / 02E AHSI, or similar hyperspectral images with continuous spectral bands and metadata files; the optional auxiliary data includes reference images for geometric registration and study area boundary vectors for study area cropping or pixel range filtering. S2 reads the product metadata file and data header file of each original product scene, and uniformly parses the sensor identifier, number of bands, center wavelength, half width at half maximum (WHM), bad band marker, data arrangement, data type, invalid value, spatial reference, pixel size, imaging time and spatial range; uniformly converts the center wavelength to nanometers, matches the sensor parameter template according to the sensor identifier, and constructs the preprocessing task parameters for the corresponding scene in combination with the reference image, the study area boundary vector and user settings; S3, based on the preprocessing task parameters for each scene, converts the original product into a full-band data cube, automatically completes stripe noise and bad line detection and repair, and invalid cell masking, and outputs destriped data as input to S4; at the same time, it generates a stripe and bad line processing report and writes the input and output paths, processing parameters, running status, time consumption and error information into the running log; S4. Using the striped data of each scene as input, call the preset remote sensing image processing operator interface or local algorithm library, and use the reference image and the boundary vector of the study area to complete geometric registration, radiometric calibration, atmospheric correction, bad band removal, study area cropping and spectral smoothing to obtain the corresponding single-scene standardized reflectance image. S5, determine the number of single-scene standardized reflectance images; when the number is one scene, skip multi-scene synthesis and use the image as the target hyperspectral image; when the number is multiple scenes, standardize the spectral axes, data types, invalid values and projection coordinates of each image and synthesize them in blocks to obtain the target hyperspectral image covering the study area. S6, perform pixel-by-pixel scanning on the target hyperspectral image, calculate the spatial coordinates of the effective pixels based on spatial reference information, pixel size and reference pixel position, and bind the pixel number, row and column number, spatial coordinates and reflectance values corresponding to each center wavelength to construct a structured pixel spectrum table; S7. Based on the structured pixel spectrum, interpolate, construct a continuum and calculate the absorption depth for each reflectance spectrum to be measured around the target wavelength specified by the user, generate candidate peaks that meet the significance and absorption depth threshold, and determine the best absorption peak according to the rule of absorption depth first and distance from the target wavelength second best, and output the peak position, peak depth and quality label. S8. Associate the peak position, peak depth, and quality marker with the pixel number, X coordinate, and Y coordinate in the structured pixel spectrum table to generate a spatial parameter table that can be directly used for kriging interpolation, absorption peak parameter mapping, and alteration zoning analysis.
[0024] Furthermore, the metadata parsing in S2 includes: reading sensor identifier, number of bands, center wavelength, full width at half maximum (FWHM), bad band marker, data arrangement, data type, invalid values, spatial reference, pixel size, imaging time, and spatial range from the product metadata file and data header file; automatically converting the center wavelength unit from micrometers to nanometers, and using the center wavelength as the unified spectral axis for subsequent band selection, spectral resampling, and absorption peak extraction. Sensor parameter templates are matched according to the sensor identifier to determine the original band rules, bad band rules, radiometric scaling factor, and atmospheric correction sensor model; where invalid values are used for invalid pixel masking, and spatial reference and pixel size are used to determine the target grid and the conversion relationship between pixel row and column numbers and geographic coordinates.
[0025] Furthermore, the strip noise and bad line detection in S3 includes: calculating the median brightness profile along the row and column directions of the image for each band, constructing a background profile using the moving median, calculating the residual between the brightness profile and the background profile, and setting a strip threshold based on the robust deviation of the residual; when the proportion of all-zero pixels in a row or column is higher than a preset proportion, the proportion of finite values is lower than a preset proportion, or its standard deviation is lower than a preset proportion of the median of the overall standard deviation and the residual exceeds the extreme threshold, it is determined as a potential bad line, and the remaining positions where the residual exceeds the strip threshold are determined as potential stripes. In enhanced detection mode, adjacent bands within a preset number of bands before and after the current band, with the same anomaly direction and the same residual profile length, are selected. The median of the residuals of adjacent bands is taken position by position, and a verification residual is formed according to r′=αr+(1-α)median(rj), where r is the residual of the current band, rj is the residual of the adjacent band, and α is a preset weight between 0 and 1, preferably 0.65. Soft threshold shrinkage is performed on the verification residual. Components below the preset threshold are not corrected, and components above the preset threshold are treated as strip deviation.
[0026] Furthermore, the stripe repair and bad line filling include: filling the rows or columns corresponding to potential bad lines using interpolation of neighboring valid rows or columns; correcting the deviation of the rows or columns corresponding to potential stripes according to the verified stripe deviation amount, and interpolating the bad line positions again to maintain the original spatial structure of ground features and the spectral morphology between bands. After repair, destriped data is output, which serves as the input for S4; simultaneously, stripe and bad line processing reports in CSV and JSON formats are generated, recording the band number, anomaly direction, stripe score, number of stripes, number of bad lines, anomaly location, and repair status. These processing reports are part of the operation log, which also records the input / output paths, parameters, time consumption, and error information for each processing step.
[0027] Furthermore, the geometric registration in S4 includes: using the reference image acquired in S1, or automatically acquiring the reference image based on the spatial range of the original product; generating initial control points using a cross-correlation method, and switching to a mutual information method to regenerate control points when the number of control points is lower than a preset number; after screening the control points based on matching scores, spatial distribution, and residual quality, completing the registration using multinomial transformation and resampling. When there are insufficient control points or registration fails, the destriped data output in S3 is retained and abnormal information is recorded in the operation log.
[0028] Furthermore, the bad band removal in S4 is automatically executed according to the sensor parameter template. Specifically, for Gaofen-5 AHSI data, water vapor absorption, edge noise, and low signal-to-noise ratio bands are removed based on the bad band marker and a preset band range. For ZY-1 02D / 02E AHSI data, corresponding noise bands are removed based on the band arrangement relationship of the visible, near-infrared, and short-wave infrared detectors. After removal, the wavelength, half-width at half-maximum (WHM), bad band marker, and band name are updated synchronously.
[0029] Furthermore, the spectral smoothing employs the Savitzky-Golay smoothing method or an equivalent spectral smoothing algorithm to filter each pixel along the wavelength direction, and supports setting the number of points in the left and right windows, the polynomial order, and the derivative order; when the preset remote sensing image processing operator is unavailable, it automatically switches to local numerical calculation.
[0030] Furthermore, the standardization of spectral axis and data header information in S5 includes: selecting the image with the largest number of bands or the image specified by the user as the template image, using the center wavelength of the template image as the target spectral axis, and performing pixel-by-pixel spectral resampling on other images; when the data type, number of bands, wavelength sequence, half width at half maximum, band name, or invalid value of the input image are inconsistent, they are uniformly converted to a preset floating-point type and written with data header information consistent with the template image.
[0031] Further, the projection coordinate unification and synthesis in S5 includes: parsing the EPSG number or projection zone number from the data header file of each input image, and reprojecting multiple input images to the same coordinate reference when it is detected that they are in different projection coordinates or different UTM zones; then, a unified resampling method, background value and invalid value are adopted, and block-by-block reading and block-by-block writing are used to construct a multi-scene synthetic image, so as to reduce the memory occupation in the synthesis process of large-format hyperspectral images.
[0032] Further, the structured pixel spectrum table in S6 includes pixel number, row number, column number, X coordinate, Y coordinate and reflectance value of each band; the X coordinate and Y coordinate are calculated according to the reference pixel position, reference coordinate and pixel size in the data header file. The pixel-by-pixel extraction supports full pixel output, sampling output according to a fixed step size and random sampling output, and supports outputting only valid pixels within the boundary according to the boundary vector of the study area.
[0033] Further, the reflectance spectrum to be measured in S7 refers to a one-dimensional spectral vector composed of the reflectance values of a certain pixel in the structured pixel spectrum table on the retained bands after preprocessing in the order of central wavelength, rather than the digital quantization value in the original hyperspectral satellite product. A wide window and a focused window are set around the target wavelength input by the user, invalid values are removed in the wide window, interpolation is performed after sorting according to the central wavelength and removing repeated wavelength points; a continuum background line C(λ) is constructed by using the reflectance at both ends of the wide window, and the absorption depth curve is calculated according to D(λ)=1-R(λ) / C(λ), where R(λ) is the interpolated value of the reflectance spectrum to be measured.
[0034] Further, non-boundary local maxima are searched in the focused window as candidate peaks; the significance P of the candidate peak is the difference between the absorption depth of the candidate peak and the higher one of the local basins on both sides of the candidate peak, the absorption depth of the candidate peak is D(λp), and the distance from the candidate peak to the target wavelength is Δλ=|λp-λt|. The preset minimum significance Pmin, preset minimum absorption depth Dmin, wide window, focused window and interpolation step are input by the user or called by the diagnostic band parameter template; candidate peaks with P<Pmin or D<Dmin are first removed, and then the best absorption peak is determined in the order of D from large to small and Δλ from small to large. Only after the candidate peaks pass the above threshold screening is the best peak ranking performed; when there are insufficient effective bands, too few unique wavelength points, interpolation failure, insufficient number of focused window points, or no non-boundary local maxima passing the threshold screening, quality marks such as insufficient bands, insufficient unique wavelength points, interpolation failure, insufficient window points or no effective peaks are output.
[0035] Furthermore, the method also includes a coordinate vector result auxiliary generation step that is independent of the main processing chains S1 to S8: reading the latitude and longitude coordinate sequence or projected coordinate sequence input by the user, constructing point, line or surface geometric objects according to the user's selection and writing them into an SHP file; or organizing the coordinate sequence into a KML file and compressing it into a KMZ file for rapid mapping of the study area boundary, field sample location, mineralization anomaly location or result verification location.
[0036] In one possible implementation, this embodiment first reads one or more scenes of original hyperspectral satellite products and their metadata, automatically identifies the sensor type and matches the sensor parameter template, and generates preprocessing task parameters for each scene by combining reference images, study area boundary vectors, and user settings. Subsequently, a unified task queue is used to call a preset remote sensing image processing operator interface and a local spectral algorithm to sequentially complete the original data conversion, strip and bad line repair, geometric registration, radiometric calibration, atmospheric correction, bad band removal, study area cropping, and spectral smoothing for each scene of data, resulting in a single-scene standardized reflectance image. When multiple scenes of images exist, further standardization of spectral axes, data types, invalid values, and projection coordinates, as well as block synthesis, are carried out. Finally, a structured pixel spectral table with spatial coordinates is constructed by scanning pixel by pixel, extracting the peak position, peak depth, and quality markers of absorption peaks near the target wavelength, and forming a spatial parameter table that can be used for spatial interpolation and parametric mapping. The coordinate text to SHP, KML, or KMZ conversion is performed as an independent auxiliary function.
[0037] like Figure 2 As shown, the automatic preprocessing of hyperspectral satellite imagery is as follows: In this embodiment, the user inputs the original product folder, product XML file, or converted ENVI format data from Gaofen-5 AHSI, Ziyuan-1 02D / 02E AHSI, or similar hyperspectral satellites. The system retrieves and reads the product metadata file and header file, uniformly extracting sensor identification, number of bands, center wavelength, half-width at half-maximum (HWHM), bad band markers, data arrangement, data type, invalid values, spatial reference, pixel size, imaging time, and spatial range. The system matches sensor parameter templates based on the sensor identification; for example, Gaofen-5 AHSI is identified using 330 original bands, and Ziyuan-1 02D / 02E is identified using 166 original bands. For similar hyperspectral data, the number of bands, wavelength range, bad band rules, radiometric scaling factor, and atmospheric correction sensor model can be configured through sensor parameter templates. The system then combines reference images, study area boundary vectors, aerosol models, visibility, destriping intensity, and spectral smoothing parameters to generate preprocessing task parameters that include the processing step sequence, input / output paths, algorithm parameters, and failure handling rules.
[0038] The system then exports each original image as a full-band data cube with a uniform data arrangement, retaining the number of bands, center wavelength, full width at half maximum (FWHM), bad band markers, data type, invalid values, and spatial reference information in the header file. For stripe noise and bad lines, the system reads the image band by band, calculates the median brightness profile along both row and column directions, uses the moving median as the background profile, and calculates the residuals and their robust deviations. When the proportion of all zeros in a row or column is higher than 98%, the proportion of finite values is lower than 80%, or its standard deviation is lower than 15% of the overall median standard deviation and the residual exceeds the extreme threshold, it is identified as a potential bad line; other positions where the residual exceeds the robustness threshold are identified as potential stripes. In enhanced detection mode, the system reads the residual profiles of the two adjacent bands before and after the current band, retains residuals with consistent anomaly directions and lengths, takes their positional medians, and combines them with the current band residuals with weights of 0.35 and 0.65, respectively. Soft thresholding is then applied to the combined residuals to verify and calculate the stripe correction amount.
[0039] For potential bad lines, the system uses interpolation of adjacent valid rows or columns to fill them; for potential stripes, the system performs deviation correction based on the verified strip correction amount and interpolates the bad line position again. After repair, the system outputs destriped data, which is directly used as input for geometric registration, radiometric calibration, and atmospheric correction. The system also outputs strip and bad line processing reports in CSV and JSON formats, recording the band number, anomaly direction, strip score, number of stripes, number of bad lines, anomaly location, and repair status; this processing report is part of the operation log, and the unified task queue also records the input path, output path, parameters, operation status, time consumption, and error information for each processing step.
[0040] During the geometric registration process, users can specify Landsat, Sentinel, or other reference images. When no reference image is specified, the system generates or acquires a reference grid image based on the spatial extent of the original product. The system prioritizes using the cross-correlation method to generate control points. When the number of control points falls below a preset limit, it switches to the mutual information method to regenerate control points. After being filtered by matching score, spatial distribution, and residual quality, the control points are used for multinomial registration and resampling. If the number of control points is still insufficient or the registration process fails, the system retains the destriped data output by S3 and records the reason for the failure in the operation log to prevent subsequent tasks from having no input or the process from being abnormally interrupted.
[0041] In the radiometric calibration and atmospheric correction stages, the sensor type and imaging time are automatically read from the product metadata file. The radiometric calibration scaling factor and atmospheric correction sensor model are obtained from parameter templates matching the sensor identifier. The aerosol model, visibility, and atmospheric correction scaling factor are set by the user or preset values are invoked. In one embodiment, the radiometric calibration scaling factor is set to 0.10, the atmospheric correction scaling factor is set to 1.0, the aerosol model is set to Rural, and the visibility is set to 40 km; all of the above parameters can be adjusted according to the data product description or the atmospheric conditions of the study area. The system performs radiance conversion and surface reflectance inversion based on these parameters. After atmospheric correction is completed, the system removes water vapor absorption, edge noise, and low signal-to-noise ratio bands based on the bad band markers in the data header file and the sensor parameter template.
[0042] Finally, the system can crop the image based on the user-input SHP file of the study area and perform spectral smoothing on each pixel along the wavelength direction using the Savitzky-Golay method. Smoothing parameters include the number of points in the left and right windows, the polynomial order, and the derivative order. If the preset remote sensing image processing operator interface is unavailable, the system automatically calls a local numerical calculation algorithm to complete the smoothing process, ensuring fault tolerance in the workflow.
[0043] like Figure 3 As shown, the system automatically synthesizes multiple hyperspectral images: In this embodiment, the user inputs multiple pre-processed or partially pre-processed hyperspectral images at once. The system first reads the .dat / .hdr files of each image one by one, checking the number of samples, rows, bands, wavelength sequence, data type, data arrangement, invalid values, and projection coordinates. The system selects the image with the largest number of bands or the one specified by the user as the template image, and uses the center wavelength of the template image as the target spectral axis.
[0044] For input images with inconsistent band numbers or center wavelengths, the system performs pixel-by-pixel spectral resampling according to wavelength position to ensure that the band number, wavelength sequence, full width at half maximum (FWHM), and band name are consistent with the template image. For input images with inconsistent data types or invalid values, the system uniformly converts them to preset floating-point data and writes the same header information as the template image. This processing can avoid band mismatches, invalid value conflicts, and data type errors when directly stitching images from different sensors, different batches, or different processing stages.
[0045] The system further analyzes the projection information of each image. When multiple images are located at different projection coordinates or different UTM bands, the system reprojects them uniformly to the same coordinate reference. After the projection is unified, the system constructs a stitching task according to a unified background value and invalid values, and uses a block-based reading and writing method to reduce memory usage, enabling stable synthesis of multiple large-format hyperspectral images.
[0046] After stitching, the system outputs a unified DAT / HDR format composite image and generates a log recording the standardized steps, resampling status, projection status, and composite output path for each image scene. The composite result can be directly used for regional-scale alteration analysis, mineral identification, band ratio analysis, spectral angle mapping, principal component analysis, spectral parameter extraction, and machine learning prediction.
[0047] Pixel spectral shift and structured spectrogram construction: In this embodiment, the user selects a single-scene normalized reflectance image or a multi-scene composite image. The system reads the center wavelength, spatial reference, reference pixel location, reference coordinates, and pixel size from the header file and scans the image row by row and column by column. For each valid pixel, the system extracts the reflectance value of that pixel in all preserved bands and calculates the geographic coordinates corresponding to the pixel center based on the spatial reference information and pixel size.
[0048] The system offers three output options based on user selection: First, full-pixel output, which exports the spectral curves of all valid pixels; second, output with a fixed step size, which extracts one pixel every certain number of rows and columns to reduce data volume; and third, random sampling output, which extracts valid pixels according to a specified sample size and a random seed. For tasks with study area boundaries, the system can output only the pixels within the boundary area and automatically create subfolders based on vector names.
[0049] The output includes pixel-by-pixel TXT spectral files, TSG-style CSV matrix tables, or general pixel-level CSV tables. Each record includes at least the pixel number, X coordinate, Y coordinate, row number, column number, and reflectance value corresponding to each center wavelength. This structured spectral table can be used for matching with measured spectral libraries, as direct input for extracting absorption peak parameters, and for subsequent spatial interpolation, machine learning training, and verification of mineral identification results.
[0050] Automatic extraction of diagnostic absorption peak parameters: In this embodiment, the user inputs a structured pixel spectrum and the target absorption wavelength, such as 2200nm, 2250nm, 1900nm, or 2350nm. The system defines the reflectance values arranged according to the center wavelength in each record as the reflectance spectrum to be measured, and automatically retrieves the spectrum based on the target wavelength, or allows the user to set the wide window, focus window, interpolation step size, minimum significance, and minimum absorption depth. For example, when the target wavelength is 2200nm, the wide window can be set to around 2180–2220nm, and the focus window can be set to around 2190–2210nm.
[0051] The system extracts each reflectance spectrum within a wide window, removes invalid values, sorts them by wavelength, and removes duplicate wavelengths. It then uses piecewise cubic Hermite interpolation, cubic spline interpolation, or linear interpolation to form an equally spaced spectral sequence. A continuum background line C(λ) is constructed using the reflectance at both ends of the wide window, and the absorption depth curve is calculated according to D(λ) = 1 - R(λ) / C(λ). Within the focusing window, non-boundary local maxima are searched. The significance P of a candidate peak is taken as the difference between the absorption depth of the candidate peak and the higher of the local baselines on either side. The absorption depth of the candidate peak is taken as D(λp), and the distance from the target wavelength is taken as Δλ = |λp - λt|. The system first filters out candidate peaks that do not meet the conditions using Pmin and Dmin, and then determines the optimal absorption peak in order of decreasing absorption depth and increasing distance.
[0052] For pixels that meet the above conditions, the system outputs the absorption peak center position, absorption depth, and blank quality label. For pixels that do not meet the conditions, the system outputs quality labels such as insufficient bands, too few unique wavelength points, interpolation failure, insufficient number of focus window points, or no effective peak, depending on the failure stage. The optimal absorption peak is determined only after the candidate peaks pass the significance and absorption depth threshold screening. Therefore, when there are no local peaks that pass the threshold screening, a "no effective peak" label will still be output, thus avoiding the misjudgment of noise or smooth curves as effective absorption peaks based solely on proximity to the target wavelength.
[0053] In mineral exploration applications, absorption peaks near 2200 nm can be used for parameter analysis of Al-OH minerals such as muscovite, sericite, and illite; absorption peaks near 2250 nm can be used for the analysis of minerals related to chlorite, epidote, Mg-OH, or Fe-Mg-OH; and absorption peaks near 2350 nm can be used for parameter analysis of carbonate minerals. The system retains the pixel number, X-coordinate, Y-coordinate, row number, and column number from the structured pixel spectral table, and appends the target absorption peak position, peak depth, and quality markers to the same record to form a spatial parameter table. This spatial parameter table can be directly used as input for kriging interpolation, long and short wave zoning mapping, anomaly intensity mapping, and the construction of mineral exploration prediction factors.
[0054] The coordinate results are quickly output as an independent auxiliary function: the user inputs the inflection point of the study area, the sample location, the abnormal location, or other coordinate sequence. The system recognizes the latitude and longitude coordinates or projected coordinates according to the input format, and constructs point, line, or surface geometric objects according to the user's selection. This function does not depend on the absorption peak extraction results of S7, nor does it change the main processing chain of S1 to S8.
[0055] When the output is in SHP format, the system writes the geometric objects and attribute fields and generates a corresponding projection file; when the output is in KML format, the system organizes Placemark, LineString, or Polygon nodes according to the KML specification; when the output is in KMZ format, the system compresses the KML file to form a KMZ result. In one embodiment, when the user inputs no fewer than three WGS84 latitude and longitude inflection points, the system automatically closes the beginning and end coordinates and generates a planar SHP, KML, or KMZ result for the study area.
[0056] Industrial Applicability: This invention can be deployed on ordinary desktop computers or workstations and is suitable for batch preprocessing of hyperspectral satellite data, geological alteration analysis in mineral resource exploration, mapping of rock and mineral spectral parameters in geological surveys, remote sensing teaching and training, and mapping of engineering project results. This method integrates fragmented manual processing workflows into a repeatable software-based process, possessing strong engineering applicability and widespread application value.
[0057] like Figure 4 As shown in the figure, this embodiment discloses an integrated hyperspectral image automatic processing system to perform the above method, including: a data access and metadata parsing module, an automatic preprocessing task arrangement module, a multi-scene standardization and stitching module, a pixel spectral database construction module, an absorption peak parameter extraction module, a spatial parameter and coordinate vector result output module, and a visualization interaction and log management module.
[0058] The automatic preprocessing task orchestration module generates the task sequence and parameters for each scenario based on the metadata parsing results and sensor parameter templates. It calls the local algorithm library and preset remote sensing image processing operator interfaces through a unified task queue, and records the input path, output path, algorithm parameters, running status, time consumption, and error information for each processing step. The absorption peak parameter extraction module associates peak position, peak depth, and quality markers with pixel spatial coordinates to generate a spatial parameter table. The spatial parameter and coordinate vector output module also provides independent conversion of coordinate sequences to SHP, KML, or KMZ. The visualization interaction and log management module provides progress display, image preview, pixel spectral curve display, before and after smoothing comparison, and batch processing result management.
[0059] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.
Claims
1. An integrated hyperspectral image automatic processing method, characterized in that, include: Acquire one or more original hyperspectral satellite images of the study area, as well as optional auxiliary data, including reference images for geometric registration and boundary vectors for cropping the study area; The product metadata file and data header file of each scene of the hyperspectral satellite original product are parsed respectively. Based on the parsing results, sensor parameter templates are matched, and preprocessing task parameters that match the corresponding scene are constructed. Based on the preprocessing task parameters, each scene of the original hyperspectral satellite product is sequentially processed with data format unification, strip noise and bad line detection and repair, geometric registration, radiometric calibration, atmospheric correction, bad band removal, study area cropping and spectral smoothing to obtain a single scene of standardized reflectance image. The number of the single-scene standardized reflectance images is determined. When the number is one scene, the single-scene standardized reflectance image is used as the target hyperspectral image. When the number is multiple scenes, the spectral axes, data types, invalid values, and projection coordinates of each single-scene standardized reflectance image are standardized and segmented and stitched together to obtain the target hyperspectral image. The target hyperspectral image is scanned pixel by pixel to construct a structured pixel spectrogram containing pixel spatial coordinates and reflectance values at each center wavelength. Based on the structured pixel spectrogram, the peak position, peak depth, and quality markers of absorption peaks near the target wavelength are extracted, and the peak position, peak depth, and quality markers of absorption peaks are associated with the corresponding pixel spatial coordinates to generate a spatial parameter table.
2. The integrated hyperspectral image automatic processing method according to claim 1, characterized in that, Parsing the product metadata file and header file of the original hyperspectral satellite product includes: Extract the sensor identifier, number of bands, center wavelength, half width at half maximum (WWHM), bad band marker, data arrangement, data type, invalid values, spatial reference information, pixel size, imaging time and spatial range from the product metadata file and the data header file; When the unit of the center wavelength is micrometer, the center wavelength is converted to nanometer and used as a unified spectral axis. According to the sensor identifier, a preset sensor parameter template is matched to obtain the original band rules, bad band rules, radiometric scaling factor, and atmospheric correction sensor model. At the same time, the target grid and the conversion relationship of pixel center coordinates are determined according to the spatial reference information and pixel size. Furthermore, according to the imaging time, reference image, boundary vector, and user-set or preset aerosol model, visibility, and spectral smoothing parameters, preprocessing task parameters including processing order, input and output paths, algorithm parameters, and anomaly handling rules are formed.
3. The integrated hyperspectral image automatic processing method according to claim 2, characterized in that, The preprocessing task parameters include: Each scene of the original hyperspectral satellite product is exported as a full-band data cube with a unified data arrangement, and the number of bands, center wavelength, half width at half maximum, bad band marker, data type, invalid value and spatial reference information are retained in the data header file. The median brightness profile is calculated along the row and column directions for each band. A background profile is constructed using the moving median, and the difference between the median brightness profile and the background profile is used as the residual profile. The strip threshold is set using the robust deviation of the residual profile. At the same time, the standard deviation of the row or column, the proportion of all-zero pixels, and the proportion of finite values are combined to distinguish potential stripes and potential bad lines. In enhanced detection mode, a preset number of adjacent bands before and after the current band are read. The residuals of adjacent bands with the same abnormal direction and the same residual profile length are selected. The median of each position is taken and combined with the residual of the current band according to a preset weight. Threshold shrinkage is performed on the combined residuals to verify potential stripes. Potential bad lines are filled by interpolation of adjacent effective rows or columns. The strip deviation is calculated based on the verified residuals and the deviation is corrected to obtain destripped data. Strip and bad line processing reports and operation logs are generated simultaneously, and the input and output paths, abnormal bands, abnormal directions, abnormal locations, abnormal intensities, repair status, operation time, and error information are recorded.
4. The integrated automatic hyperspectral image processing method according to claim 3, characterized in that, Obtaining the single-scene normalized reflectance image includes: The striped data of each scene obtained from the preprocessing task parameters is used as the input for subsequent single-scene processing. Control points are generated by cross-correlation or mutual information matching using the reference image. After quality screening of the control points, geometric registration is completed by multinomial transformation and resampling. Based on the bad band markers in the data header file and the bad band rules in the sensor parameter template, water vapor absorption, edge noise, and low signal-to-noise ratio bands of the control points after geometric registration are removed. The study area is then cropped using the boundary vector, and each pixel is spectrally smoothed along a unified spectral axis to obtain the single-scene standardized reflectance image. When the reference image or boundary vector is not provided, the corresponding processing is skipped and recorded in the operation log.
5. The integrated automatic hyperspectral image processing method according to claim 4, characterized in that, Obtaining the target hyperspectral image includes: When the single-scene standardized reflectance image is multiple scenes, the image with the largest number of bands or the image specified by the user is selected as the template image. The center wavelength of the template image is used as the target spectral axis, and the other images are resampled pixel by pixel. The data type of the other images is uniformly converted to a preset floating-point type, and the number of bands, wavelength sequence, half width at half maximum, band name, invalid value and data header information are adjusted to be consistent with the template image. The EPSG number or projection band number in each image data header file is parsed, and images with different projection coordinates or different UTM bands are reprojected to the same coordinate reference. A unified resampling method, background value, and invalid value are used for block reading, block writing, and stitching to obtain the target hyperspectral image.
6. The integrated hyperspectral image automatic processing method according to claim 1, characterized in that, The structured pixel spectral table includes: pixel number, row number, column number, X coordinate, Y coordinate, and reflectance values of each band arranged according to a unified spectral axis; the X coordinate and Y coordinate are calculated based on spatial reference information, pixel size, and reference pixel position.
7. The integrated automatic hyperspectral image processing method according to claim 1, characterized in that, Generating the spatial parameter table includes: The reflectance values of each pixel in the structured pixel spectral table in the retained band are sorted according to the center wavelength to form the reflectance spectrum to be measured. A wide window and a focusing window are set around the target wavelength. Invalid values are removed and interpolation is performed within the wide window. The background line of the continuum is constructed using the reflectance at both ends of the wide window. The absorption depth curve is calculated according to D(λ)=1-R(λ) / C(λ), where R(λ) is the interpolated value of the reflectance spectrum to be measured and C(λ) is the background value of the continuum. Within the focusing window, non-boundary local maxima are searched, and the significance P, absorption depth D, and distance Δλ = |λp - λt| from the target wavelength of the candidate peak are calculated. The significance P is the difference between the absorption depth of the candidate peak and the higher of the local baselines on both sides. Only candidate peaks with P not less than a preset minimum significance and D not less than a preset minimum absorption depth are retained. The optimal absorption peak is determined in order of absorption depth from large to small and distance from small to large. The spatial parameter table is generated using the peak position, peak depth, and quality marker of the optimal absorption peak.
8. The integrated automatic hyperspectral image processing method according to claim 7, characterized in that, The target wavelengths include: 2200nm, 2250nm, 1900nm, 2350nm or other diagnostic absorption bands for hydroxyl, carbonate, iron oxide and hydrous minerals; the preset minimum significance, preset minimum absorption depth, wide window, focusing window and interpolation step size are input by the user or called by the diagnostic band parameter template; when the number of effective bands in the wide window is less than the preset number, the number of unique wavelength points is insufficient, interpolation fails, the number of points in the focusing window is insufficient, or there is no non-boundary local maximum that simultaneously satisfies the significance and absorption depth thresholds in the focusing window, it is determined that no effective absorption peak has been detected and the corresponding quality label is output.
9. The integrated automatic hyperspectral image processing method according to claim 1, characterized in that, The method also includes: The system reads the latitude and longitude coordinate sequence or projected coordinate sequence input by the user, constructs geometric objects according to the point, line or surface geometric rules selected by the user and outputs an SHP file, or organizes the coordinate sequence into a KML file and compresses it into a KMZ file to generate coordinate vector results. The coordinate vector results generation step is independent of the spatial parameter table generation step and is used for rapid mapping of study area boundaries, field sample locations, anomaly points or results verification locations.
10. An integrated automatic hyperspectral image processing system implemented by the method according to any one of claims 1-9, characterized in that, include: The data access and metadata parsing module is used to acquire one or more original hyperspectral satellite products of the study area and optional auxiliary data. The optional auxiliary data includes reference images for geometric registration and boundary vectors for cropping the study area. The product metadata file and data header file of each scene of the hyperspectral satellite original product are parsed respectively. Based on the parsing results, sensor parameter templates are matched, and preprocessing task parameters that match the corresponding scene are constructed. The automatic preprocessing and multi-scene synthesis module is used to perform data format unification, strip noise and bad line detection and repair, geometric registration, radiometric calibration, atmospheric correction, bad band removal, study area cropping and spectral smoothing on each scene of the original hyperspectral satellite product based on the preprocessing task parameters, so as to obtain a single scene of standardized reflectance image. The number of the single-scene standardized reflectance images is determined. When the number is one scene, the single-scene standardized reflectance image is used as the target hyperspectral image. When the number is multiple scenes, the spectral axes, data types, invalid values, and projection coordinates of each single-scene standardized reflectance image are standardized and segmented and stitched together to obtain the target hyperspectral image. The pixel spectral database construction module is used to perform pixel-by-pixel scanning on the target hyperspectral image and construct a structured pixel spectral table containing pixel spatial coordinates and reflectance values of each center wavelength. The absorption peak parameter and spatial result output module is used to extract the peak position, peak depth and quality marker of the absorption peak near the target wavelength based on the structured pixel spectrum table, and associate the absorption peak position, peak depth and quality marker with the corresponding pixel spatial coordinates to generate a spatial parameter table.
