Forest fire real-time detection method based on SLIC superpixels
Through the method of SLIC super-pixel segmentation and representative point selection, the problem of excessive sample size and block mode destroying image integrity in forest fire recognition is solved, and efficient and fast forest fire detection is achieved, achieving a recognition rate of more than 98.2%. and rapid detection times.
Patent Information
- Application Number
- CN202410821552.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
AI Technical Summary
Existing forest fire recognition methods are difficult to train classifiers when the sample size is too large, and the rigid blocking of the matrix blocking mode will destroy the integrity of the image target, resulting in low recognition efficiency and high false alarm rate.
A real-time forest fire detection method based on SLIC superpixels is adopted. Pixels with adjacent positions and similar colors are divided into superpixels through image superpixel segmentation. Representative points are selected and compared with supervisory information for flame detection. The mean, median and other values are combined. Representative points are constructed in combination to improve noise immunity.
It achieves high recognition rate and fast detection time, taking into account the high detection rate of pixel mode and the fast detection capability of block mode. It can complete the detection within 1/10 seconds and shows superiority in the recognition rate of more than 98.2%. .
Smart Images

Figure CN118736256A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine learning technology, and in particular to a real-time forest fire detection method based on SLIC superpixels. Background Art
[0002] Forest fires are sudden and destructive, and they seriously threaten the forest resources and forest ecosystems on which human beings depend for survival. Establishing an early warning system is one of the important means of forest fire prevention. The current monitoring systems mainly include satellite monitoring, infrared monitoring, and visible light monitoring. Among them, the visible light monitoring system has become the most important forest fire monitoring technology due to its low cost, strong real-time performance, long monitoring distance, and high resolution.
[0003] As for forest fire recognition methods, current research is still mainly focused on fine-grained pixel patterns, mainly including two types of methods: one is based on inference rule methods, such as YCbCr rules; the other is based on machine learning methods, such as Qiang et al. proposed a forest fire recognition method based on neural networks to avoid the drawbacks caused by the long distance and large area characteristics of outdoor forest fires in traditional fire detection methods. It combines multiple parameters and shapes of flames to distinguish flames, which is superior to traditional methods in terms of anti-interference ability. However, the sample capacity of samples represented by pixel-by-pixel vector patterns is often hundreds of thousands to millions, which undoubtedly increases the difficulty of training classifiers: if the training set is too small, the classifier cannot be fully trained; and if the training set is too large, the training time is too long. To alleviate the above problems, Yang et al. proposed a semi-supervised learning algorithm based on matrix block Semi-MHKS, which uses a bilinear discriminant function and designs a semi-supervised learning algorithm for forest fire problems. The algorithm converts the data set from a vector pattern to a matrix block pattern, which can greatly shorten the training and recognition time, and also make the sample category labeling more accurate. Similar block methods are also used in fire prediction. For example, Sanjuan et al. divided forest fire images into blocks and then solved them to shorten the prediction time, and imposed a certain degree of overlap between the blocks to avoid the problem of boundary effect. In recent years, many forest fire recognition methods based on deep learning have also emerged. For example, Wang et al. proposed a forest fire recognition algorithm based on convolutional neural network, using an adaptive pooling method to avoid learning invalid features in convolutional neural network. Experiments have shown that it has better performance and higher recognition rate. The Adaboost classifier based on HOG features makes a preliminary prediction of the fire area image, and then uses convolutional neural network and support vector machine to identify the fire area twice. Under the condition of uneven distribution of forest fire samples and small number of samples, a higher recognition rate and lower false alarm rate are obtained. Although the coarse-grained matrix block mode representation can reduce the size of the data set, its rigid block division is easy to destroy the integrity of the image target, especially the vectorization of the blocks (pulling into vectors after block division) destroys the spatial structure information between pixels in the image. In view of this, this application intends to start with superpixel segmentation and re-examine the problem of rapid forest fire detection. The concept of superpixel originates from the pixel grouping proposed by Ren et al., which divides the image into several blocks according to similar features such as texture, color, brightness, etc. between pixels, called superpixels. By extracting meaningful superpixels from the image instead of hard blocks, it is beneficial to subsequent image processing tasks.Commonly used superpixel segmentation methods are divided into two categories: one is based on graph theory, such as the Superpixel-Latice method, Normalized cuts (N-cuts), Graph-baesd method, etc.; the other is based on gradient methods, such as Quick Shift (QS), Turbopixels algorithm, watershed algorithm, Mean-Shift algorithm and Simple linear iterative clustering algorithm (SLIC).
[0004] Image segmentation is a basic step in forest fire image processing, which aims to extract the part of the image that people are interested in for subsequent processing and analysis. Commonly used image segmentation methods include threshold segmentation, edge segmentation, and region segmentation. From the perspective of image pattern representation, there are mainly pixel patterns and matrix block patterns. At present, most of the research on forest fire image segmentation is based on the vector pattern of the image. The main difficulty comes from calculation, because the kernel-based learning method cannot train large-scale samples. If the training set is small, it is very easy to cause insufficient training (under-fitting). Although the matrix pattern forest fire recognition method effectively shortens the training and recognition time of the model, it is subject to the rigid division of blocks and easily destroys the integrity of the image target. Inspired by superpixel image segmentation, such as SLIC, it has high segmentation quality in terms of computing speed, object contour extraction, and superpixel shape.
[0005] In order to preserve the structural information of the image space and reduce the size of the data set to reduce the burden of subsequent model training, this application intends to use the above-mentioned significant advantages of superpixels in image representation and introduce them into the forest fire recognition task. To verify the effectiveness of the method of this application, experiments were conducted on forest fire images of various scenes, and its performance was evaluated using forest fire recognition rate and detection time. It is expected that this method will not only have a high recognition rate, but also meet real-time requirements. Summary of the invention
[0006] The forest fire detection method based on pixel (vector) mode has a high flame detection rate, but there is a problem that the sample set is too large to train the model; and the matrix block mode is easy to train and has a fast detection speed, but the rigid block will inevitably destroy the incompleteness of the target. This application takes into account the high detection rate of the pixel mode and the fast detection capability of the block mode, adopts a "soft" block method to maintain the integrity of the target, and proposes a real-time forest fire detection algorithm based on SLIC superpixels. This method first performs superpixel segmentation on the forest fire image, and divides pixels with adjacent positions and similar colors into several superpixels; due to the problem of different numbers of pixels in superpixels, it is impossible to directly use vector mode or matrix block mode for model training. In view of the good target boundary consistency of superpixels, this article equates superpixels to pixels, that is, selects or constructs representative points from pixels, and then compares them with the introduced supervision information to complete flame detection.
[0007] The present application provides a real-time forest fire detection method based on SLIC superpixels, comprising the following steps:
[0008] (1) Image superpixel segmentation: SLIC superpixel segmentation is first performed on the forest fire image to divide pixels with adjacent positions and similar colors into several superpixels;
[0009] (2) Representative point selection: Given the good target boundary consistency of superpixels, superpixels are equivalent to pixels, and representative points are selected or constructed from pixels;
[0010] (3) Introducing supervisory information: Compare the representative points with the introduced supervisory information to complete flame detection.
[0011] Preferably, in step (1), the step of image superpixel segmentation, the SLIC algorithm steps of image superpixel segmentation deformation using the SLIC algorithm are as follows:
[0012] Step 1: Initialize the cluster center: Initialize on an S*S rectangular grid K cluster centers, among which K The number of superpixels, N is the total number of pixels; select the direction with the minimum gradient in the neighborhood of the pixel to update the cluster center, and the gradient is calculated as follows:
[0013]
[0014] Among them, l(x,y) represents the pixel value on a single color channel;
[0015] Step 2: Similarity measurement: Based on formula (1), the similarity measurement between pixels is changed to
[0016]
[0017] in, Indicates the color distance between pixels; Indicates the spatial distance of pixels; the smaller the d(i,k) value, the higher the similarity between the two; m is a balance factor, which is used to balance the proportion of color information and spatial information in the similarity measurement;
[0018] Step 3: Clustering algorithm changes cluster centers: According to SLIC, in the 2S×2S area, all pixels are clustered into the cluster with the closest cluster center according to similarity, and the cluster center is updated;
[0019] Step 4: Repeat steps 2 to 3 until convergence: After obtaining a new cluster, reselect the class mean of each class as the new cluster center, re-cluster, repeat the iteration, and calculate the distance d between the two cluster centers. If d is less than the set threshold or reaches the maximum number of iterations (generally set to 10), clustering ends;
[0020] Step 5: Form superpixels: assign the most similar cluster center labels to pixels to form K superpixels;
[0021] After the above steps, the forest fire image is segmented into K superpixels. Figure 1 The figure shows the superpixel segmentation result, where the number of superpixel blocks is set to 500;
[0022] SLIC segmentation can be completed in linear time, and the iteration scale is limited to 2S×2S sub-regions. The segmentation speed is fast and the details are clear. This application will construct representative points based on this; the judgment rule is: if the representative point is judged to be a flame, then the area will be judged as a fire area, otherwise it will be judged as a no-fire area.
[0023] As a preference, step (2), the specific steps of representative point selection are:
[0024] One superpixel corresponds to one area, which describes one image in a coarse-grained manner. If a representative point similar to a pixel pattern can be constructed from it to represent the area, not only can the existing forest fire detection results based on pixel patterns be utilized, but also the number of samples can be greatly reduced, which can play an advantage in training forest fire classifiers and improving the speed of forest fire detection. The representative points have mean and median. The mean has good noise resistance and the median can effectively resist wild values. The representative point problem is considered from the following three aspects, and the representative point is denoted as fp. The number of pixels in the area where the current superpixel is located is n, and the pixel set in the area is: {P i |P i =(r i ,g i ,b i ),i=1,2,L,n};
[0025] Let fp be represented by the mean m,
[0026] Let fp be expressed as the median med:
[0027] Use the combination of mean and median to represent fp: fp = λ*m+(1-λ)*med,λ∈[0,1];
[0028] Among them, λ is the balance factor between the two representative points. Due to the forest fire images in real scenes, they may contain noise and outliers due to the data collection and transmission process. The combination of mean and median is expected to achieve the purpose of both noise resistance and outlier resistance. After the representative point is selected, the representative point is used to fill the area indicated by the superpixel. Since the supervision information of the flame has not been introduced at this time, the flame and its non-fire background still appear at the same time in the effect image, but the boundary between the fire area and the non-fire area is very obvious, which is conducive to the detection of flames, and the detection accuracy reaches the pixel level.
[0029] Preferably, in step (3), supervisory information is introduced: the two categories of "with fire" and "without fire" in the superpixel samples are used to verify the representative points.
[0030] Beneficial effects of the present invention:
[0031] The present invention constructs representative points with the mean, median and combination of the mean and median of superpixels, and conducts experimental verification on 12 forest fire images of various scenes. Compared with the vector and matrix block mode representation methods, the forest fire recognition rate of the method in this paper on 10 images has reached the highest, and the average recognition rate is above 98.2%. In terms of detection time, this method has the shortest detection time, and even if the KNN classifier is used, it can complete the detection within 1 / 10 second. The real-time forest fire detection algorithm based on superpixels takes into account the advantages of the two sample representation modes, and has the characteristics of high flame detection rate and fast detection speed, and is expected to be used for high-resolution image processing. Secondly, in the selection of representative points for the forest fire recognition problem, compared with the mean and median, the combination of the two has the best effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0033] Figure 1 Schematic diagram of SLIC segmentation results;
[0034] Figure 2 The segmentation effect of three representative points;
[0035] Among them, (a) to (d) represent the original image, the segmentation effect diagram using the mean, median and combined value as representative points respectively.
[0036] Figure 3 Forest fire images and their annotated images;
[0037] (a) Forest fire image; (b) Annotated image; (c) Forest fire image; (d) Annotated image;
[0038] Figure 4 is the recognition rate of different representative points;
[0039] Figure 5 is the recognition rate based on different levels;
[0040] Figure 6 Recognition time for different modes. DETAILED DESCRIPTION
[0041] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0042] 1 Research Methods
[0043] When only considering the image pixel information, the mapping (transformation) from RGB space to YCbCr is linear, and the linear transformation has the distance preservation property, so the separability between pixels is exactly the same, and the pixel separability in these two color spaces is higher than that of HSV, HSI and Lab color spaces after nonlinear transformation. In view of this, this application proposes to construct features directly in RGB space, that is, V = (r, g, b, x, y). Following the SLIC method, the similarity of the five-dimensional pattern is measured from the space and color.
[0044] 1.1 Deformed SLIC algorithm
[0045] The modified SLIC algorithm steps are as follows:
[0046] Step 1: Initialize the cluster centers on an S*S rectangular grid. K cluster centers, among which K The number of superpixels, N is the total number of pixels. Select the direction with the minimum gradient in the neighborhood of the pixel to update the cluster center. The gradient is calculated as follows:
[0047]
[0048] Among them, l(x,y) represents the pixel value on a single color channel.
[0049] Step 2: Similarity measurement. Based on formula (1), the similarity measurement between pixels is changed to
[0050]
[0051] in, Indicates the color distance between pixels; Indicates the spatial distance of pixels. The smaller the d(i,k) value, the higher the similarity between the two. m is a balance factor, which is used to balance the weight of color information and spatial information in the similarity measurement.
[0052] Step 3: Clustering algorithm changes cluster centers. According to SLIC, in the 2S×2S area, all pixels are clustered into the cluster with the closest cluster center according to similarity, and the cluster center is updated.
[0053] Step 4: Repeat steps 2 to 3 until convergence. After obtaining the new cluster, reselect the class mean of each class as the new cluster center, re-cluster, repeat the iteration, calculate the distance d between the previous and next cluster centers, and if d is less than the set threshold or reaches the maximum number of iterations (set to 10), clustering ends.
[0054] Step 5: Form superpixels. Assign the most similar cluster center labels to the pixels to form K superpixels.
[0055] After the above steps, the forest fire image is segmented into K superpixels. Figure 1 Shown is the superpixel segmentation result, where the number of superpixel blocks is set to 500.
[0056] SLIC segmentation can be completed in linear time, and the iteration scale is limited to 2S×2S sub-regions. The segmentation speed is fast and the details are clear. This application will construct representative points based on this. The judgment rule is: if the representative point is judged to be a flame, the area will be judged as a fire area, otherwise it will be judged as no fire.
[0057] 1.2 Representative point selection
[0058] One superpixel corresponds to one area and can describe one image in a coarse-grained manner. If it is possible to construct a representative point similar to a pixel pattern to represent the area, not only can the existing forest fire detection results based on pixel patterns be utilized, but the number of samples can also be greatly reduced, which will be advantageous in training forest fire classifiers and improving the speed of forest fire detection. Typical representative points include the mean and the median. For example, Hamza et al. suggested that the mean has good noise resistance, and the median can effectively resist outliers. In view of this, the present application considers the representative point problem from the following three aspects, and the representative point is denoted as fp. The number of pixels in the area where the current superpixel is located is n, and the set of pixels in the area is: {P i |P i =(r i ,g i ,b i ),i=1,2,L,n}.
[0059] Let fp be represented by the mean m,
[0060] Let fp be expressed as the median med:
[0061] Express fp as a combination of mean and median: fp = λ*m+(1-λ)*med, λ∈[0,1].
[0062] Among them, λ is the balance factor between the two representative points. Due to the data collection and transmission process, the forest fire images in real scenes may contain both noise and outliers. The combination of mean and median is expected to achieve the purpose of both noise resistance and outlier resistance. The segmentation effects of the three representative points are shown in the figure. Figure 2 When the representative point is selected, the area indicated by the superpixel is filled with the representative point. Figure 2 b-2d are the renderings using the mean, median, and a combination of the two. Since the supervision information of the flame has not yet been introduced, the flame and its non-fire background still appear at the same time in the rendering, but the boundary between the fire area and the non-fire area is very obvious, which is undoubtedly very conducive to detecting the flame, and the detection accuracy can reach the pixel level.
[0063] 2 Results and analysis
[0064] The experimental environment of this study uses mac OS15.5.5 system, CPU main frequency 2.6Ghz, processor is Intel(R)Core(TM)i7-8850H, memory 16GB, forest fire classification experiment is carried out on Matlab R2017b platform, and the training time is timed by Matlab's CPUtime function. The experiment is divided into two parts. The first part is a comparative experiment on the selection of representative points of superpixel blocks. By comparison, the representative points with good performance are selected; the second part is a comparative experiment based on the nearest neighbor classifier. In order to explore the forest fire recognition ability of the classifier at different levels such as pixels, matrix blocks, and superpixels, the recognition rate is used to measure the classification ability. The recognition rate refers to the ratio of the number of samples whose predicted labels of the classifier are the same as the pixel labels on the labeled image to the total number of samples in the test set.
[0065] 2.1 Data Preparation
[0066] To verify the performance of the algorithm, it is tested on static forest fire images. Figure 3 As shown in the figure, in order to highlight the particularity of forest fires and the complexity of forest scenes, the selected images are all taken from real forest scenes. Representative features include: large areas of white smoke (such as fire2 and fire3), false targets that resemble fire (such as the red firefighter suit in fire5), yellow-white flame cores (such as fire5 and fire6, which are similar to bright non-fire targets such as the sky), and small flame areas (such as fire8 and fire9, which face unbalanced classification problems). The basic situation is shown in Table 1, and superpixel samples are divided into two categories: "fire" and "no fire".
[0067] Table 1 Sample information of forest fire images
[0068]
[0069] The purpose of forest fire monitoring is to detect fires at the early stage of a fire. Therefore, the number of samples in the two categories in this experiment is mostly unbalanced, and the proportion of "fire" samples in the image is significantly smaller than that of "no fire". The SLIC block size selected in the experiment is 6×8, and it is stipulated that if the proportion of flame pixels in a rectangular block is greater than 0.1, the block is marked as having fire, otherwise it is a no fire block.
[0070] According to the similarity defined in formula (2), the SLIC method is used to segment the image into several superpixel blocks of similar size, and then three types of representative points are used to represent the superpixels. In the forest fire data, its performance is verified on images of different resolutions, including possible under-learning and over-learning problems. The superpixel information of the forest fire dataset is shown in Table 2.
[0071] Table 2 Sample information based on superpixels
[0072]
[0073] 2.2 Comparative test
[0074] According to the description in Section 2.1, the RGB image is divided into two categories: "fire" and "no fire". Considering the problems of class imbalance and independent and identically distributed assumptions that may be encountered in classification, the KNN (k nearest neighbor) classifier based on the KD tree is used for forest fire detection experiments. KNN is one of the classic machine learning algorithms with stable performance and is applicable to data classification problems with arbitrary distribution, including the independent and identically distributed assumptions commonly required in machine learning methods. The training process is to generate a KD tree for storing training samples. During recognition, only one neighbor query of the test point on the KD tree is required.
[0075] Table 3 and Figure 4 The superpixel recognition rate of the KNN algorithm at three representative points is shown. Figure 4 The data sets F1 to F12 in correspond to the above images respectively. In terms of recognition rate comparison, the classification performance of the methods using the mean and median as representative points is not much different, but the representative point method of the combined value shows higher recognition performance than other representative points on 9 data. This group of experiments shows that selecting representative points of combined values can effectively overcome the interference of wild values, and at the same time has a certain anti-noise ability, and achieves relatively good results. Therefore, it is more appropriate to use combined values as representative points in different level comparison experiments.
[0076] Table 3 Classification results of forest fire identification
[0077]
[0078] To further explore the characteristics of superpixel flexible blocking, the comparison method selected pixel mode and matrix hard blocking mode, and the classifier still selected KNN. The results showed that the superpixel method showed a higher recognition rate in most images. Even on fire4 and fire12, the superpixel mode was only weaker than the pixel mode and matrix blocking mode by a small difference of 0.23% and 0.32% (Table 3, Figure 5 ). This shows that superpixels use similarity metrics to divide blocks, fully utilizing the spatial structure information of the original image, retaining the overall integrity of the target in the image, and having significant advantages in classification accuracy.
[0079] In terms of real-time performance, the matrix block and superpixel modes are significantly better than the pixel-vector mode (Table 3, Figure 6 ), which shows that both hard and adaptive block partitioning can significantly reduce the scale of learning tasks and recognition time. The superpixel mode has a similar test time to the matrix mode, but the recognition accuracy is higher than the matrix mode. Therefore, superpixels not only speed up the training of classifiers and effectively improve the recognition speed, but also achieve ideal recognition accuracy, which has certain advantages in forest fire recognition.
[0080] 3 Conclusion
[0081] This application proposes a real-time forest fire recognition algorithm based on superpixels. Compared with the traditional vector mode, this method avoids the risk of samples being mislabeled and makes the supervision information more accurate. At the same time, this method can also greatly reduce the number of samples and can be applied to process high-resolution images. Due to the significant reduction in the number of samples, the training speed of the classifier is improved. In addition, compared with rigid matrix division, this mode can effectively avoid the destruction of the target, retain the structural information of the image space to a greater extent, and facilitate the excavation of more discriminant information hidden in the image structure.
[0082] 4. Discussion
[0083] Classic forest fire recognition methods, such as the aforementioned rule-based methods and machine learning model methods, all require pixel-by-pixel detection. Their main shortcomings are as follows: (1) It is difficult to label flames, especially high-precision image labeling. (2) The recognition speed is slow. The rule-based method requires multiple rule verifications for each pixel and cannot be processed in batches. Although the machine learning method can be detected in batches, it is still subject to the pixel pattern and faces the problem of real-time detection. (3) Model training problem: Although the rule-based method does not require model training, the performance of this "universal" rule is unreliable and cannot adapt to all forest scenes. The phenomenon of flame missed detection is serious. The recognition method based on machine learning has strong flame detection capabilities because the training data of the model comes from the monitoring scene, but there are difficulties in model training, such as the data imbalance problem, under-learning and over-learning problems mentioned in the article. The forest fire detection method of the block mode can alleviate the common problems of the pixel mode to a certain extent, especially the real-time detection capability can be significantly improved, but there are also the following problems that need further study: (1) Whether regular block (equal number of pixels in each block) or irregular block (unequal number of pixels) is used, the size of the block will obviously affect the recognition performance. The paper only verifies the block from the experiment, but there is still a lack of reliable basis; (2) The block method may be effective for large flames or near-field targets, but for distant flames or linearly distributed "fire lines", there may be a problem of missed flame detection, and the irregular SLIC block method is also the same. In terms of detection methods, this application uses a KNN model with relatively stable performance, but its detection speed is still slow, and its time complexity is greater than linear time. Its performance on other models also needs further study. In addition, the current forest fire recognition methods are all based on "fire" forest scenes for model training, while for a specific monitoring point, "fire" category samples are extremely rare or unavailable, and it is obviously inappropriate to start model training after a fire occurs. From a practical perspective, how to train a model that matches the monitoring scenario in the absence of fire is also an issue that deserves further study.
[0084] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.
Claims
1. A real-time forest fire detection method based on SLIC superpixels, comprising the following steps: (1) Image superpixel segmentation: SLIC superpixel segmentation is first performed on the forest fire image to divide pixels with adjacent positions and similar colors into several superpixels; (2) Representative point selection: Given the good target boundary consistency of superpixels, superpixels are equivalent to pixels, and representative points are selected or constructed from pixels; (3) Introducing supervisory information: Compare the representative points with the introduced supervisory information to complete flame detection.
2. The method according to claim 1, characterized in that: Step (1), the step of image superpixel segmentation, uses the SLIC algorithm to perform image superpixel segmentation The modified SLIC algorithm steps are as follows: Step 1: Initialize the cluster center: Initialize on an S*S rectangular grid K cluster centers, among which K The number of superpixels, N is the total number of pixels; select the direction with the minimum gradient in the neighborhood of the pixel to update the cluster center, and the gradient is calculated as follows: Among them, l(x,y) represents the pixel value on a single color channel; Step 2: Similarity measurement: Based on formula (1), the similarity measurement between pixels is changed to in, Indicates the color distance between pixels; Indicates the spatial distance of pixels; the smaller the d(i,k) value, the higher the similarity between the two; m is a balance factor, which is used to balance the proportion of color information and spatial information in the similarity measurement; Step 3: Clustering algorithm changes cluster centers: According to SLIC, in the 2S×2S area, all pixels are clustered into the cluster with the closest cluster center according to similarity, and the cluster center is updated; Step 4: Repeat steps 2 to 3 until convergence: After obtaining a new cluster, reselect the class mean of each class as the new cluster center, re-cluster, repeat the iteration, and calculate the distance d between the two cluster centers. If d is less than the set threshold or reaches the maximum number of iterations, clustering ends; Step 5: Form superpixels: assign the most similar cluster center labels to pixels to form K superpixels; After the above steps, the forest fire image is segmented into K superpixels. Figure 1 shows the superpixel segmentation result, and the number of superpixel blocks is set to 500; SLIC segmentation can be completed in linear time, and the iteration scale is limited to 2S×2S sub-regions. The segmentation speed is fast and the details are clear. This application will construct representative points based on this; the judgment rule is: if the representative point is judged to be a flame, then the area will be judged as a fire area, otherwise it will be judged as a no-fire area.
3. The method according to claim 2, characterized in that: Step (2), the specific steps of representative point selection: One superpixel corresponds to one area, which describes one image in a coarse-grained manner. If a representative point similar to a pixel pattern can be constructed from it to represent the area, not only can the existing forest fire detection results based on pixel patterns be utilized, but also the number of samples can be greatly reduced, which can play an advantage in training forest fire classifiers and improving the speed of forest fire detection. The representative points have mean and median. The mean has good noise resistance and the median can effectively resist wild values. The representative point problem is considered from the following three aspects, and the representative point is denoted as fp. The number of pixels in the area where the current superpixel is located is n, and the pixel set in the area is: {P i |P i =(r i ,g i ,b i ),i=1,2,L,n}; Let fp be represented by the mean m, Let fp be expressed as the median med: Use the combination of mean and median to represent fp: fp = λ*m+(1-λ)*med,λ∈[0,1]; Among them, λ is the balance factor between the two representative points. Due to the forest fire images in real scenes, they may contain noise and outliers due to the data collection and transmission process. The combination of mean and median is expected to achieve the purpose of both noise resistance and outlier resistance. After the representative point is selected, the representative point is used to fill the area indicated by the superpixel. Since the supervision information of the flame has not been introduced at this time, the flame and its non-fire background still appear at the same time in the effect image, but the boundary between the fire area and the non-fire area is very obvious, which is conducive to the detection of flames, and the detection accuracy reaches the pixel level.
4. The method according to claim 3, characterized in that: Step (3) introduces supervision information: the two categories of "fire" and "no fire" in the superpixel samples are used to verify the representative points.
Citation Information
Patent Citations
Mountain fire detection method based on intelligent image analysis
CN104573719A
Color recognition method based on improved SLIC super-pixel segmentation algorithm
CN105354599A
Super-pixel spectral clustering color image segmentation method based on semi-supervision
CN109584247A
Forest fire smoke detection method based on image segmentation
CN110222644A
Cited By
Distributed quail breeding environment control system
CN119620812A
