A solar active region automatic detection method based on density clustering algorithm

The automatic detection method for solar active regions based on density clustering algorithm solves the problem of reliance on human factors in traditional detection methods, and achieves efficient and accurate detection of solar active regions, especially accurate identification under complex magnetic fields and large-scale data.

CN119091174BActive Publication Date: 2026-11-27NANJING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411228835.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2026-11-27
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

Existing methods for detecting solar active regions rely on human factors, resulting in incomplete detection and low efficiency, especially when processing large-scale data, making it difficult to meet the requirements for speed and accuracy.

Method used

An automatic detection method for solar active regions based on density clustering algorithm is adopted, including line-of-sight magnetograph preprocessing, two DBSCAN clustering operations, and clustering result integration. The DBSCAN algorithm is used to identify core points and clusters, reduce the dependence on empirical thresholds, separate complex magnetic field regions, and merge clusters of reasonable size.

Benefits of technology

It improves detection accuracy and efficiency, reduces false positives and false negatives, can identify small or diffuse activity areas, has high robustness and consistency, and is adaptable to data under different observation conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091174B_ABST
    Figure CN119091174B_ABST
Patent Text Reader

Abstract

The application discloses a solar active region automatic detection method based on a density clustering algorithm, and comprises the following steps: S1, acquiring a line-of-sight magnetogram; S2, pre-processing the line-of-sight magnetogram; S3, continuously performing selective DBSCAN clustering on the pre-processed line-of-sight magnetogram twice to obtain a solar active region clustering preliminary result; and S4, integrating and filtering the solar active region clustering preliminary result to obtain a final solar active region detection result. The method has the advantages of high detection precision, high detection efficiency and high robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of solar active region detection technology, specifically relating to an automatic solar active region detection method based on density clustering algorithm. Background Technology

[0002] Solar active regions (ARs) are areas on the solar surface where active bodies such as sunspots, flares, and prominences are frequently active. Solar activity exhibits complex spatial and temporal behavior from the photosphere to the corona. Sunspots were the first feature to serve as an indicator of AR intensity, appearing as dark spots on the solar photosphere in the visible light continuum, sometimes even visible to the naked eye. Since Galileo's invention of the telescope in the 17th century, systematic observations of sunspots have been conducted. Sunspots are three orders of magnitude cooler than the surrounding photosphere, but their magnetic flux is highly concentrated. The number of sunspots is an indicator of the frequency of solar activity generated by the solar dynamo, while the area of ​​a sunspot measures the amount of magnetic flux generated by the solar dynamo. Therefore, the number and area of ​​sunspots can be seen as long-term scales of solar activity. With the iterative updates of observational equipment and technology, we can define active regions using observational data of the solar magnetic field, which is more accurate and comprehensive than sunspots.

[0003] The long-term comprehensive catalog of solar flares (ARs) provided by the National Oceanic and Atmospheric Administration (NOAA) is one of the most widely used long-term AR catalogs. NOAA assigns a number to each AR containing at least one sunspot based on white-light images, either manually or with computer assistance. The catalog reports the location, area, and magnetic field configuration of sunspot groups. However, with advancements in observational technology and the increasing quantity and quality of synchronous observation data, traditional methods of manually detecting or labeling ARs cannot meet the speed and accuracy requirements when processing large amounts of data, especially in statistical studies of long-term data and modeling solar dynamics. Automated detection can objectively and consistently extract ARs, avoiding the subjectivity of manual inspection; therefore, a series of automated detection methods have been developed.

[0004] Early automated detection methods were primarily based on image processing techniques, such as thresholding and region growing. While these methods improved detection efficiency, they still suffered from limitations, including reliance on empirical threshold settings and difficulty in separating complex magnetic field regions in high-resolution images. With the development of machine learning methods in computer vision, they have gradually found applications in solar active region identification. One widely used machine learning method is Convolutional Neural Networks (CNNs), which excel in image feature extraction. CNNs are supervised learning algorithms, typically trained on labeled data by adjusting parameters until the model achieves the desired performance. Although these supervised learning models offer higher accuracy and generalization capabilities, they require large amounts of objective and consistent AR-annotated data, making it difficult to completely eliminate the subjectivity of human inspection. Summary of the Invention

[0005] To address the aforementioned shortcomings in existing technologies, the automatic solar active region detection method based on density clustering algorithm provided by this invention solves the problems of incomplete detection of active regions caused by human factors and reliance on labeled data in existing related detection methods.

[0006] To achieve the aforementioned objectives, the technical solution adopted by this invention is as follows: an automatic detection method for solar active regions based on density clustering algorithm, comprising the following steps:

[0007] S1. Obtain the line-of-sight magnetograph;

[0008] S2. Preprocess the line-of-sight magnetogram;

[0009] S3. Perform two consecutive selective DBSCAN clustering operations on the preprocessed line-of-sight magnetograph to obtain preliminary clustering results of solar active regions.

[0010] S4. Integrate and filter the clustering results of solar active regions to obtain the final solar active region detection results.

[0011] Further, in step S2, the preprocessing is as follows: grayscale thresholding is performed on the line-of-sight magnetograph to obtain pixels with significant magnetic field strength, which are used as input data points for DBSCAN clustering.

[0012] Furthermore, in step S3, the method for performing the first DBSCAN clustering is specifically as follows:

[0013] S31. Calculate the neighborhood N of each input data point. ∈ (p);

[0014] N ∈ (p)={q∈D|dist(p,q)≤∈}

[0015] In the formula, q represents the pixel that meets the condition, D represents the pixel that is filtered out after threshold segmentation, dist(p,q) represents the distance between pixel p and q, and ∈ represents the selected distance threshold.

[0016] S32. Identify the core point based on the calculated ∈ neighborhood;

[0017] For any pixel p, determine whether |N∈(p)|≥minpts holds true; where minpts represents the minimum number of pixels required to form a dense cluster.

[0018] If so, then pixel p is designated as the core point p for recognition, and the core point p is added to the core object set ψ=ψ∪{p};

[0019] If not, no action will be taken;

[0020] S33. Determine whether the core object set ψ is empty;

[0021] If so, then end the first DBSCAN clustering;

[0022] If not, proceed to step S35;

[0023] S34. Randomly select a core point p in the core object set ψ, and update the current cluster core queue φ = {p};

[0024] S35. Based on the updated cluster core queue φ={p}, update the cluster sample set C=C∪{p} and the unvisited sample set D=D-{p};

[0025] S36. Select a core point in the current cluster core queue φ, find its corresponding subset N∈(p), and then update the current cluster sample set C=C∪N. ∈ (p) Cluster core queue φ=φ∪(N ∈ (p)∩ψ)-{p} and the core object set ψ=ψ-(N ∈ (p)∩ψ);

[0026] S37. Determine if the current cluster core queue φ is empty;

[0027] If so, the sample search for the current cluster sample set C is complete. Update the cluster sample set C and the core object set ψ to obtain the preliminary clustering results, and return to step S33.

[0028] If not, return to step S36.

[0029] Furthermore, in step S3, in the preliminary clustering results, for clustering results exceeding the set size, a second minpts2 parameter greater than minpts is set to perform a second DBSCAN clustering, thereby obtaining the distance results of the solar active region.

[0030] Further, step S4 specifically includes:

[0031] S41. Set the integration parameter ratio to classify the clustering results of solar active regions;

[0032] The parameter ratio refers to the proportion of points with positive magnetic field strength exceeding the proportion of points with negative magnetic field strength in each cluster of solar active regions, or the proportion of points with negative magnetic field strength exceeding the proportion of points with positive magnetic field strength; the types of clusters obtained by the classification include positive clusters, negative clusters, and neutral clusters.

[0033] S42. Calculate the distance between the nearest points on the solar surface between any two clusters;

[0034] S43. Define the distance coefficient between each two types of clusters, and multiply it by the distance between the nearest points of the clusters on the solar surface to obtain the weighted distance between different clusters;

[0035] S44. When the weighted distance between different clusters is less than the preset minimum merging distance, merge the corresponding two clusters and repeat steps S42 to S44 until they can no longer be merged to obtain the integrated clusters.

[0036] S45. In the integrated clusters, discard neutral clusters with a pixel count lower than the set size pixel threshold, and positive or negative clusters with a pixel count lower than four times the set size pixel threshold. Use the positive and negative polarity regions corresponding to the remaining clusters as the final identified solar active regions.

[0037] Furthermore, in step S43, the distance coefficient of the central cluster is greater than the distance coefficients of the positive and negative clusters.

[0038] The beneficial effects of this invention are as follows:

[0039] 1. Improve detection accuracy:

[0040] Effective Separation of Complex Magnetic Field Regions: Traditional image processing methods and some supervised learning algorithms perform poorly in separating complex magnetic field regions in high-resolution images, often resulting in false positives and false negatives. The DBSCAN algorithm used in this invention effectively processes and separates complex magnetic field regions, reducing false positives and false negatives. For example, by performing secondary clustering on excessively large clusters after initial clustering, the DBSCAN algorithm can accurately segment them into smaller clusters, avoiding the incomplete recognition results caused by excessively large clusters in traditional methods.

[0041] Sensitivity to regions with weak and small magnetic field strength and diffuse magnetic fields: The DBSCAN algorithm exhibits high sensitivity in detecting small or dispersed active areas (ARs), enabling it to identify small or diffuse ARs that may be overlooked by other algorithms or manual detection methods. By adjusting the ∈ and minpts parameters, the DBSCAN algorithm can identify regions with weak magnetic field strength and classify them as ARs.

[0042] 2. Improve detection efficiency

[0043] Reducing reliance on empirical thresholds: Traditional image processing methods typically rely on empirical threshold settings, requiring extensive experimentation and adjustments. This invention, however, uses the DBSCAN algorithm for clustering, eliminating the need for pre-set thresholds, reducing manual intervention, and improving detection efficiency. After threshold segmentation, two DBSCAN clustering processes quickly filter out noise points and form reasonable clusters.

[0044] Rapid Processing of Large-Scale Data: Traditional methods fall short in terms of speed and consistency when processing large-scale observational data. This invention employs the DBSCAN algorithm, which, through image preprocessing and two clustering operations, can rapidly and efficiently process large amounts of daily observational image data.

[0045] 3. Improve robustness

[0046] Robustness to Noise Points and Outliers: The DBSCAN algorithm exhibits strong robustness to noise points and outliers, adapting to data under varying observation conditions. Through two clustering processes, the first step filters out noise points after threshold segmentation, while the second step processes oversized clusters and integrates clusters of reasonable size, ultimately yielding stable AR detection results.

[0047] Consistency and Objectivity: The method of this invention avoids the subjectivity of manual inspection. Through automated detection, it can objectively and consistently extract ARs, ensuring consistency in long-term data statistical research and modeling of solar generator models. Compared with the NOAA catalog, the number of ARs detected by this invention shows a high correlation in annual trends and can identify more ARs, especially in smaller and more diffuse areas. Attached Figure Description

[0048] Figure 1 The flowchart of the automatic detection method for solar active regions based on density clustering algorithm provided by the present invention is shown.

[0049] Figure 2 A schematic diagram of distance coefficient settings provided by this invention.

[0050] Figure 3 This is a schematic diagram illustrating the process from image preprocessing to final clustering and integration provided by the present invention.

[0051] Figure 4 A schematic diagram comparing the method provided by this invention and classical image processing methods in the detection of solar active regions.

[0052] Figure 5 A schematic diagram showing the annual changes in the number of ARs detected by the NOAA catalog using the method provided in this invention. Detailed Implementation

[0053] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.

[0054] This invention provides an automatic detection method for solar active regions based on density clustering algorithms, such as... Figure 1 As shown, it includes the following steps:

[0055] S1. Obtain the line-of-sight magnetograph;

[0056] S2. Preprocess the line-of-sight magnetogram;

[0057] S3. Perform two consecutive selective DBSCAN clustering operations on the preprocessed line-of-sight magnetograph to obtain the clustering results of solar active regions.

[0058] S4. Integrate and filter the clustering results of solar active regions to obtain the final solar active region detection results.

[0059] In one example of an embodiment of the present invention, in step S1, using the line-of-sight magnetograph acquired by the Helioseismic and Magnetic Field Imager (HMI) at the Solar Dynamics Observatory (SDO), one image is selected for each day, covering the period from May 2010 to December 2023.

[0060] In step S2 of this embodiment of the invention, the preprocessing is as follows: grayscale thresholding is performed on the line-of-sight magnetograph to obtain pixels with significant magnetic field strength, which are used as input data points for DBSCAN clustering.

[0061] In one example of this embodiment, a grayscale threshold of 150 Gauss is set to capture pixels with significant magnetic field strength. In the image after thresholding, white and black patches can be used to identify positive and negative magnetic field regions, respectively, as shown below:

[0062] I threshold ={p∈I|B(p)>150Gauss}

[0063] Where I represents the original image and B(p) represents the magnetic field strength of pixel p.

[0064] Based on this, a wide distribution of noise is still observed on the solar disk, affecting the identification of solar active regions.

[0065] In step S3 of this embodiment of the invention, the DBSCAN clustering method is used to cluster the input data points. This method is used to identify clusters of arbitrary shapes in spatial data. Unlike other clustering methods that require the number of clusters to be specified in advance, the DBSCAN clustering method classifies according to the density of points, thereby effectively handling noise and outliers. Therefore, it can classify magnetic field regions into different active regions without having to declare the number of active regions in advance.

[0066] Specifically, in step S3 of this embodiment, the method for performing the first DBSCAN clustering is as follows:

[0067] S31. Calculate the neighborhood N of each input data point. ∈ (p);

[0068] N ∈ (p)={q∈D|dist(p,q)≤∈}

[0069] In the formula, q represents the pixel that meets the condition, D represents the pixel that is filtered out after threshold segmentation, dist(p,q) represents the distance between pixel p and q, and ∈ represents the selected distance threshold.

[0070] S32. Identify the core point based on the calculated ∈ neighborhood;

[0071] For any pixel p, determine whether |N∈(p)|≥minpts holds true; where minpts represents the minimum number of pixels required to form a dense cluster.

[0072] If so, then pixel p is designated as the core point p for recognition, and the core point p is added to the core object set ψ=ψ∪{p};

[0073] If not, no action will be taken;

[0074] Alternatively, the following formula can be used to identify the core points:

[0075]

[0076] In the formula, Core point(p) This represents a boolean variable used to determine whether point p is a core point. True indicates that point p is indeed a core point, and False indicates that point p is not a core point.

[0077] S33. Determine whether the core object set ψ is empty;

[0078] If so, then end the first DBSCAN clustering;

[0079] If not, proceed to step S35;

[0080] S34. Randomly select a core point p in the core object set ψ, and update the current cluster core queue φ = {p};

[0081] S35. Based on the updated cluster core queue φ={p}, update the cluster sample set C=C∪{p} and the unvisited sample set D=D-{p};

[0082] S36. Select a core point in the current cluster core queue φ, find its corresponding subset N∈(p), and then update the current cluster sample set C=C∪N. ∈ (p) Cluster core queue φ=φ∪(N ∈ (p)∩ψ)-{p} and the core object set ψ=ψ-(N ∈ (p)∩ψ);

[0083] S37. Determine if the current cluster core queue φ is empty;

[0084] If so, the sample search for the current cluster sample set C is complete. Update the cluster sample set C and the core object set ψ to obtain the preliminary clustering results, and return to step S33.

[0085] If not, return to step S36.

[0086] The purpose of the first DBSCAN clustering is to filter out noise points and form preliminary clustering results.

[0087] In step S3 of this embodiment, in the preliminary clustering results, for clustering results that exceed the set size threshold, a second minpts2 parameter greater than minpts is set to perform a second DBSCAN clustering, thereby obtaining the distance results of the solar active region.

[0088] Specifically, in the second DBSCAN clustering, a larger minpts parameter is set to more accurately divide the clustering results that are too large into regions.

[0089] For example, taking the line-of-sight magnetograph obtained in step S1 as an example, in the second DBSCAN clustering, the set size threshold is set to 3000Mm. 2 When the cluster size exceeds this value, re-cluster using a larger minpts parameter to split into smaller, more accurate clusters.

[0090] In step S4 of this embodiment of the invention, after the aforementioned steps, relatively dispersed clusters are obtained. Based on this, it is necessary to integrate some clusters that are relatively small and / or have only unipolar regions into a complete active region as the final solar active region identification result.

[0091] In this embodiment, step S4 specifically includes:

[0092] S41. Set the integration parameter ratio to classify the clustering results of solar active regions;

[0093] The parameter ratio refers to the proportion of points with positive magnetic field strength exceeding the proportion of points with negative magnetic field strength in each cluster of solar active regions, or the proportion of points with negative magnetic field strength exceeding the proportion of points with positive magnetic field strength; the types of clusters obtained by the classification include positive clusters, negative clusters, and neutral clusters.

[0094] For example, in this embodiment, the proportion parameter is set to 10 based on the recall rate of the detected active region relative to NOAA; furthermore, a cluster is defined as a "positive cluster" if the number of points with positive magnetic field strength exceeds the number of points with negative magnetic field strength; similarly, a "negative cluster" can be defined. Clusters that do not belong to either of these two categories are referred to as a third category, "neutral clusters".

[0095] S42. Calculate the distance between the nearest points on the solar surface between any two clusters;

[0096] For example, in this embodiment, the nearest point between two clusters on the image is found, and then their distance on the sun's surface is calculated as the distance value;

[0097] S43. Define the distance coefficient between each two types of clusters, and multiply it by the distance between the nearest points of the clusters on the solar surface to obtain the weighted distance between different clusters;

[0098] In this embodiment, the distance coefficient of the central cluster is greater than the distance coefficients of the positive and negative clusters.

[0099] For example, this embodiment provides an example of the setting value of the distance coefficient, such as... Figure 2 As shown.

[0100] S44. When the weighted distance between different clusters is less than the preset minimum merging distance, merge the corresponding two clusters and repeat steps S42 to S44 until they can no longer be merged to obtain the integrated clusters.

[0101] For example, taking the line-of-sight magnetogram obtained in step S1 as an example, the preset minimum merging distance is 50 mm.

[0102] S45. In the integrated clusters, discard neutral clusters with a pixel count lower than the set size pixel threshold, and positive or negative clusters with a pixel count lower than four times the set size pixel threshold. Use the positive and negative polarity regions corresponding to the remaining clusters as the final identified solar active regions.

[0103] In this embodiment, the pixel threshold for the size of positive or negative clusters is set to four times that of neutral clusters because these clusters exhibit unipolar regions. In reality, these regions are typically decaying active areas, where one polarity region is relatively dispersed or weakened, resulting in appropriately sized clusters that reasonably match the positive and negative polarity regions. These clusters are then identified as the final solar active regions.

[0104] For example, taking the line-of-sight magnetograph obtained in step S1 as an example, the size pixel threshold is set to 75 μm. 2 .

[0105] In one example of this embodiment, the line-of-sight magnetograph obtained in step S1 is used as an example. Figure 3 The diagram illustrates the process from preprocessing to obtaining the final clustering result based on the above steps, including the original image (a), threshold segmentation result (b), preliminary clustering result (c), secondary clustering result (d), and final detection result (e); specifically, from such... Figure 3 (c) shows a relatively large cluster on the northwest side, which actually contains several active areas; Figure 3 (c) The relatively large cluster on the northwest side of the solar disk has been divided into several smaller clusters; from Figure 3 (d) It can be seen that some clusters are relatively small and / or have only single-pole regions, which need to be integrated into a complete active region; Figure 3 (e) is the final result of solar active region identification.

[0106] Furthermore, Figure 3 (f) shows example images of solar active regions identified by NOAA on the same day for comparison. In addition to NOAA AR 13140, 13141, and 13145, the method of this invention also detected five other active regions, labeled 1 to 5. NOAA AR 13142, 13143, and 13144 were weaker and more dispersed, and therefore discarded by our method. Figure 3 (e) and Figure 3 In (f), the ARs detected by the DBSCAN algorithm (labeled as 1, 3, 4 and 5) are not marked in the NOAA catalog, but these regions do exist in the solar magnetogram, demonstrating the advantage of this method in the detection of small and diffuse active regions.

[0107] In one example of this embodiment, Figure 4The comparison between the proposed method and classical image processing in detecting solar active regions shows that the DBSCAN algorithm in this invention can better segment adjacent complex AR regions, while classical image processing methods, due to algorithmic limitations, often incorrectly connect different AR regions together, or result in smaller detected AR areas through morphological operations.

[0108] In one example of this embodiment, Figure 5 This paper shows a comparison of the annual variation in the number of solar active regions (ARs) detected by this method between 2010 and 2023, using the method of this invention for solar active region detection, with the results compared to those detected in the NOAA catalog. In this process, 4984 full-surface magnetographs were processed using this method, and 25178 ARs were detected. To remove duplication, a constraint of ±6° was applied near the central meridian of the solar disk, ultimately detecting 2863 ARs. Comparison with the NOAA-labeled active regions in the same area demonstrates the efficiency and consistency of this method when processing large-scale data.

[0109] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

[0110] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical teachings disclosed in this invention without departing from the spirit of the invention, and these modifications and combinations are still within the scope of protection of this invention.

Claims

1. An automatic detection method for solar active regions based on density clustering algorithm, characterized in that, Includes the following steps: S1. Obtain the line-of-sight magnetograph; S2. Preprocess the line-of-sight magnetogram; S3. Perform DBSCAN clustering twice on the preprocessed line-of-sight magnetograph to obtain the clustering results of solar active regions. S4. Integrate and filter the clustering results of solar active regions to obtain the final solar active region detection results; In step S3, the method for performing the first DBSCAN clustering is as follows: S31. Calculate each input data point Neighborhood ; In the formula, This represents the pixels that meet the criteria. This represents the pixels selected after threshold segmentation. This represents the distance between pixels p and q. Indicates the selected distance threshold; S32, based on calculation The core of neighborhood identification; Where, for any pixel p, determine |N (p)|≥minpts is true; where minpts represents the minimum number of points required to form a dense cluster. If so, then pixel p is designated as the core point p for recognition, and core point p is added to the core object set. ; If not, no action will be taken; S33, Determine the core object set Is it empty? If so, then end the first DBSCAN clustering; If not, proceed to step S35; S34, in the core object collection Randomly select a core point p in the cluster and update the current cluster core queue. ; S35, Based on the updated cluster core queue Update the cluster sample set and unvisited sample sets ; S36, In the current cluster core queue Select a core point and find its corresponding N. A subset of (p) is used to update the current cluster sample set. Cluster core queue and core object collection ; S37. Determine the current cluster core queue. Is it empty? If so, then the current cluster sample set The sample search is complete; update the cluster sample set. and core object collection The preliminary clustering results are obtained, and the process returns to step S33; If not, return to step S36; In step S3, for clustering results exceeding a set size, a second DBSCAN clustering is performed with a second parameter greater than minpts2 to obtain the distance results of solar active regions. Step S4 specifically involves: S41. Set the integration parameter ratio to classify the clustering results of solar active regions; The parameter ratio refers to the proportion of points with positive magnetic field strength exceeding the proportion of points with negative magnetic field strength in each cluster of solar active regions, or the proportion of points with negative magnetic field strength exceeding the proportion of points with positive magnetic field strength; the types of clusters obtained by the classification include positive clusters, negative clusters, and neutral clusters. S42. Calculate the distance between the nearest points on the solar surface between any two clusters; S43. Define the distance coefficient between each two types of clusters, and multiply it by the distance between the closest points of the two clusters on the solar surface to obtain the weighted distance between different clusters. S44. When the weighted distance between different clusters is less than the preset minimum merging distance, merge the corresponding two clusters and repeat steps S42 to S44 until they can no longer be merged to obtain the integrated clusters. S45. In the integrated clusters, discard neutral clusters with a pixel count lower than the set size pixel threshold, and positive or negative clusters with a pixel count lower than four times the set size pixel threshold. Use the positive and negative polarity regions corresponding to the remaining clusters as the final identified solar active regions.

2. The automatic detection method for solar active regions based on density clustering algorithm according to claim 1, characterized in that, In step S2, the preprocessing is as follows: performing image grayscale thresholding on the line-of-sight magnetograph to obtain pixels with significant magnetic field strength, which are used as input data points for DBSCAN clustering.

3. The automatic detection method for solar active regions based on density clustering algorithm according to claim 1, characterized in that, In step S43, the distance coefficient of the neutral cluster is greater than the distance coefficients of the positive and negative clusters.