Fire monitoring method and system
By clustering and updating the attention mechanism of the multi-scale feature map of video frames, the problem that the fire monitoring system is difficult to operate efficiently in resource-constrained environments is solved, and the effect of efficient fire monitoring on low-resource equipment is achieved.
Patent Information
- Application Number
- CN202411721448.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-14
AI Technical Summary
Existing fire monitoring technologies are difficult to achieve efficient operation in resource-constrained environments, especially when computing power, storage space and power consumption are limited. How to ensure the efficient operation of the model on low-resource equipment while ensuring identification accuracy is an urgent problem.
By obtaining the multi-scale feature map of the video frame, segmenting it into feature map tiles and extracting feature vectors, clustering to determine the target feature sequence, and updating the target feature sequence using the attention mechanism until the preset conditions are met, the update is stopped, and finally the clustered feature vector is input to the decoder for fire monitoring.
When the recognition accuracy is met, the calculation amount of the encoder is reduced, the calculation burden of the decoder is reduced, and the efficient operation of the fire monitoring system on resource-constrained equipment is achieved.
Smart Images

Figure CN119625615A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a fire monitoring method and system. Background Art
[0002] Traditional fire monitoring technologies mainly rely on equipment such as smoke sensors, temperature sensors or gas detectors. Although these methods are stable in specific environments, they are difficult to meet the real-time and universal requirements of modern fire monitoring due to their high deployment and maintenance costs, long response time, and lack of adaptability to complex environments. In recent years, with the rapid development of computer vision and deep learning, image and video-based fire monitoring technology has gradually become a research hotspot. In particular, with the support of efficient models, automatic fire monitoring can be achieved by real-time analysis of flame and smoke characteristics in surveillance videos.
[0003] For fire monitoring, one method is to transmit the captured video to a server, etc., and have the server run a model for recognition, and the other method is to run the model locally for recognition. The former method is easily affected by the network, such as network disconnection, and cannot be recognized in real time. Although the latter can be recognized locally, local resources are limited. In a resource-limited environment, the fire monitoring system needs to operate efficiently under conditions of limited computing power, storage space, and power consumption, such as deploying detection models in monitoring equipment in remote areas, drone monitoring, or embedded sensor nodes. However, the use of artificial intelligence model recognition usually has high computational complexity and large model parameters, making it difficult to adapt to the operating requirements of low-resource devices. How to ensure the efficient operation of the model on resource-constrained devices while ensuring recognition accuracy is an urgent problem to be solved in this field. Summary of the invention
[0004] The purpose of the present invention is to solve the shortcomings in the prior art and to propose a fire monitoring method and system.
[0005] In order to achieve the above object, the present invention adopts the following technical solution: a fire monitoring method, the method comprising the following steps: Obtain a multi-scale feature map of the captured video frame, divide each feature map into multiple feature map blocks, and obtain a feature vector for each feature map block. All feature vectors constitute a feature sequence. Cluster the feature sequence, determine the target feature sequence according to the silhouette coefficient of the cluster and the feature graph where the feature vector is located, use the target feature sequence as the query, and use the feature sequence as the key and value to update the target feature sequence using the attention mechanism; stop updating when the silhouette coefficient and the number of clusters in the cluster meet the preset conditions; The feature vector of each cluster after the last update is obtained, and the average value is input into the decoder and passed through the detection head to obtain the fire monitoring result.
[0006] As a further solution of the present invention, the target feature sequence is determined according to the silhouette coefficient of the cluster and the feature graph where the feature vector is located, specifically: If the silhouette coefficient of a cluster is greater than a preset value, the feature vectors in the cluster belonging to the same feature map are divided into a group, and the feature vector closest to the cluster center in each group is used as the target feature vector; If the silhouette coefficient of the cluster is not greater than the preset value, all the eigenvectors in the cluster are used as target eigenvectors; The target feature vectors of all clusters constitute the target feature sequence.
[0007] As a further solution of the present invention, the updating is stopped when the silhouette coefficient and the number of clusters in the clustering meet the preset conditions, specifically: Get the number of object query vectors in the decoder; If the number of updates is less than the threshold, if the silhouette coefficient of each cluster is greater than a preset value and the number of clusters is equal to the number of object query vectors, then the update is stopped; otherwise, the update is continued; If the number of updates is not less than the threshold, if the number of clusters is less than the number of object query vectors, the cluster with the smallest silhouette coefficient is divided into two clusters, and the process is repeated until the number of clusters is equal to the number of object query vectors; if the number of clusters is greater than the number of object query vectors, the clustering parameters are adjusted so that the number of clusters is equal to the number of object query vectors; if the number of clusters is equal to the number of object query vectors, the update is stopped.
[0008] As a further solution of the present invention, the feature vector of each cluster after the last update is obtained, specifically: The k value is obtained based on the silhouette coefficient of the cluster, the k nearest neighbors of the center position of the cluster are obtained, and the average value of the k nearest neighbors is used as the feature vector of the cluster; wherein k is a positive integer.
[0009] As a further solution of the present invention, the k value is obtained based on the cluster-based silhouette coefficient, specifically: The maximum and minimum values of k are obtained, and the value of 1 minus the silhouette coefficient is calculated as a weight. The difference between the maximum and minimum values is weighted by the weight to obtain an increment, and the sum of the increment and the minimum value is used as the k value.
[0010] In addition, a fire monitoring system is provided, the system comprising the following modules: The feature acquisition module is used to obtain multi-scale feature maps of the captured video frames, divide each feature map into multiple feature map blocks, and obtain the feature vector of each feature map block. All feature vectors constitute a feature sequence. The encoding module is used to cluster the feature sequence, determine the target feature sequence according to the silhouette coefficient of the clustered cluster and the feature map where the feature vector is located, use the target feature sequence as a query, and use the feature sequence as a key and value, and use the attention mechanism to update the target feature sequence; stop updating when the silhouette coefficient and the number of clusters in the cluster meet the preset conditions; The decoding and identification module is used to obtain the feature vector of each cluster after the last update, input the average value into the decoder and obtain the fire monitoring result through the detection head.
[0011] As a further solution of the present invention, the target feature sequence is determined according to the silhouette coefficient of the cluster and the feature graph where the feature vector is located, specifically: If the silhouette coefficient of a cluster is greater than a preset value, the feature vectors in the cluster belonging to the same feature map are divided into a group, and the feature vector closest to the cluster center in each group is used as the target feature vector; If the silhouette coefficient of the cluster is not greater than the preset value, all the eigenvectors in the cluster are used as target eigenvectors; The target feature vectors of all clusters constitute the target feature sequence.
[0012] As a further solution of the present invention, the updating is stopped when the silhouette coefficient and the number of clusters in the clustering meet the preset conditions, specifically: Get the number of object query vectors in the decoder; If the number of updates is less than the threshold, if the silhouette coefficient of each cluster is greater than a preset value and the number of clusters is equal to the number of object query vectors, then the update is stopped; otherwise, the update is continued; If the number of updates is not less than the threshold, if the number of clusters is less than the number of object query vectors, the cluster with the smallest silhouette coefficient is divided into two clusters, and the process is repeated until the number of clusters is equal to the number of object query vectors; if the number of clusters is greater than the number of object query vectors, the clustering parameters are adjusted so that the number of clusters is equal to the number of object query vectors; if the number of clusters is equal to the number of object query vectors, the update is stopped.
[0013] As a further solution of the present invention, the feature vector of each cluster after the last update is obtained, specifically: The k value is obtained based on the silhouette coefficient of the cluster, the k nearest neighbors of the center position of the cluster are obtained, and the average value of the k nearest neighbors is used as the feature vector of the cluster; wherein k is a positive integer.
[0014] As a further solution of the present invention, the k value is obtained based on the cluster-based silhouette coefficient, specifically: The maximum and minimum values of k are obtained, and the value of 1 minus the silhouette coefficient is calculated as a weight. The difference between the maximum and minimum values is weighted by the weight to obtain an increment, and the sum of the increment and the minimum value is used as the k value.
[0015] Compared with the prior art, the advantages and positive effects of the present invention are: 1. Cluster the feature vectors of each feature block of the multi-scale feature map, determine the target feature sequence according to the silhouette coefficient of the clustered cluster and the feature map where the feature vector is located, and update it according to the update conditions, thereby reducing the amount of calculation of the encoder while meeting the recognition accuracy; 2. In the decoder, the number of target query vectors of the decoder is smaller than the number of elements in the feature sequence. By clustering the updated feature sequence, the number of clusters is made the same as the number of target query vectors in the decoder, thus reducing the computational complexity of the decoder. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of Embodiment 1; Figure 2 Flowchart for obtaining target feature sequence; Figure 3 A flowchart for stopping update judgment; Figure 4 This is a structural diagram of the second embodiment. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0018] See also Figure 1 , a fire monitoring method, the method comprising the following steps: S1: Obtain a multi-scale feature map of the captured video frame, divide each feature map into multiple feature map blocks, and obtain a feature vector for each feature map block. All feature vectors constitute a feature sequence. First, the captured video frames are obtained from the video, and multi-scale feature maps are extracted through deep convolutional neural networks such as ResNet, VGG and other backbone networks. Each feature map is divided into multiple feature blocks of the same size, and then each feature block is further processed to extract their feature vectors. In one embodiment, since each feature block has the same size, each feature block is exhibited as a feature vector of the feature block. In another embodiment, the position information of the feature block is also added to the feature vector, and the position information includes but is not limited to the feature map where the feature block is located and the sequence number in the feature map. For example, if a feature block is the third feature block of the second feature map, 2 and 3 are added to the feature vector. Specifically, the feature map number and feature block number are added to the head of the feature vector. Each feature block has a feature vector, and all feature sequences constitute a feature sequence.
[0019] S2: Cluster the feature sequence, determine the target feature sequence according to the silhouette coefficient of the cluster and the feature map where the feature vector is located, use the target feature sequence as the query, and use the feature sequence as the key and value to update the target feature sequence using the attention mechanism; stop updating when the silhouette coefficient and the number of clusters in the cluster meet the preset conditions; There are many feature vectors in the feature sequence. By clustering, the feature vectors are divided into multiple clusters, and the silhouette coefficient of each cluster is calculated to determine the clustering quality. Combined with the position of the feature vector in the feature map, the target feature sequence is determined and used as a query. The target feature sequence is a subset of the feature sequence. At the same time, the entire feature sequence is used as the key and value, and the target feature sequence is updated using the attention mechanism. In one embodiment, a key-aware deformable attention method is adopted. The attention mechanism can dynamically adjust the weight of the target feature sequence to highlight key information. When the new target feature sequence is obtained after calculating the attention, the new target feature sequence is used to update the original feature sequence. Specifically, the new target feature vector replaces the original target feature vector. For example, there are 20 feature vectors in the feature sequence, of which the 3rd and 15th are target feature vectors, that is, the target feature sequence is the 3rd and 15th feature vectors in the feature sequence. After calculating the attention, the new 3rd and 15th feature vectors are obtained, and the new 3rd and 15th feature vectors are used to replace the original 3rd and 15th feature vectors in the feature sequence. The above updating process will be performed at least once. When the silhouette coefficient and the number of clusters in the clustering meet the preset conditions, the updating is stopped, that is, the encoder encoding is finished.
[0020] In an alternative embodiment, see Figure 2 , the target feature sequence is determined according to the silhouette coefficient of the cluster and the feature map where the feature vector is located, specifically: S211: If the silhouette coefficient of the cluster is greater than a preset value, the feature vectors belonging to the same feature map in the cluster are divided into a group, and the feature vector closest to the cluster center in each group is used as the target feature vector; S212: If the silhouette coefficient of the cluster is not greater than a preset value, all feature vectors in the cluster are used as target feature vectors; S213: The target feature vectors of all clusters constitute a target feature sequence.
[0021] If the silhouette coefficient of the cluster is greater than the preset value, it means that the clustering effect is good and the points are dense, that is, the difference of the target feature vectors in the cluster is not large. In this case, the feature vectors belonging to the same feature map in the cluster are divided into a group, and the feature vector closest to the cluster center in each group is used as the target vector. If the silhouette coefficient of the cluster is not greater than the preset value, the clustering effect is not good. At this time, all the feature vectors in the cluster are used as target feature vectors. The target feature vectors obtained through the above process constitute the target feature sequence. In high-quality clustering, only the feature vector closest to the cluster center is selected, which can not only highlight the key feature vectors, but also reduce redundancy. At the same time, in low-quality clustering, all feature vectors are retained to ensure information integrity. In another embodiment, the preset value changes with the change of the number of updates. Specifically, the preset value continues to decrease with the increase of the number of updates. In this way, as the update proceeds, more and more feature vectors will be gathered, which is convenient for finally selecting the feature vector from the feature vector to be input into the decoder.
[0022] Among them, the silhouette coefficient of a cluster is the average of the silhouette coefficients of all elements in the cluster. Similarly, the silhouette coefficient involving clustering below is also obtained by averaging all the silhouette coefficients in the cluster.
[0023] When the silhouette coefficient and the number of clusters meet the preset conditions, the target feature sequence is considered stable and stops updating, thereby obtaining a more accurate target representation.
[0024] In an alternative embodiment, only all feature vectors in the cluster whose silhouette coefficient is not greater than a preset value are used as target feature vectors, which can further reduce the amount of calculation.
[0025] In an alternative embodiment, see Figure 3 , when the silhouette coefficient and the number of clusters in the clustering meet the preset conditions, the updating is stopped, specifically: S221: Obtain the number of object query vectors in the decoder; S222: If the number of updates is less than the threshold, then if the silhouette coefficient of each cluster is greater than a preset value and the number of clusters is equal to the number of object query vectors, then stop updating; otherwise, continue updating; S223: If the number of updates is not less than the threshold, if the number of clusters is less than the number of object query vectors, the cluster with the smallest silhouette coefficient is divided into two clusters, and the process is repeated until the number of clusters is equal to the number of object query vectors; if the number of clusters is greater than the number of object query vectors, the clustering parameters are adjusted so that the number of clusters is equal to the number of object query vectors; if the number of clusters is equal to the number of object query vectors, the updating is stopped.
[0026] The number of object query vectors (object query) in the decoder is often large, for example, 100. Each object query vector represents a possible detection target. Too many object query vectors also bring about a large amount of calculation. Generally, the number of vectors output by the encoder is the same as the number of object query vectors in the decoder. In order to reduce the amount of calculation, the present invention sets a small number of object query vectors. Without loss of generality, the number of object query vectors is less than the number of feature vectors in the feature sequence. More specifically, the number of object query vectors is 10% of the number of feature vectors in the feature sequence.
[0027] When the number of updates is less than the threshold, for example, the threshold is 8 times, if the silhouette coefficient of each cluster is greater than a preset value, such as 0.5, and the number of clusters is equal to the number of object query vectors, no further updates are performed. If the number of updates is not less than the threshold, in order to reduce the amount of calculation, the number of clusters in the cluster after the last update, such as the 8th update, is determined. If the number of clusters is less than the number of object query vectors, the cluster with the smallest silhouette coefficient is divided into two clusters, for example, the feature vectors in the cluster with the smallest silhouette coefficient are clustered into two categories, and it is determined whether the number of clusters is equal to the number of object query vectors. If it is equal, the update is stopped, otherwise, the cluster with the smallest silhouette coefficient is continued to be found and divided into two clusters again until the number of clusters is equal to the number of object query vectors. If the number of clusters is greater than the number of object query vectors, the number of clusters is equal to the number of object query vectors by adjusting the parameters of the clustering method. If the number of updates is not less than the threshold, if the number of clusters is equal to the number of object query vectors, the update is stopped directly.
[0028] S3: Obtain the feature vector of each cluster after the last update, input the average value into the decoder and obtain the fire monitoring result through the detection head.
[0029] After the last update, the number of clusters after clustering the feature sequence is equal to the number of object query vectors, and the feature vector of the cluster is further obtained according to the elements in the cluster, that is, the feature vector. In an optional embodiment, the feature vector of each cluster after the last update is obtained, specifically: The k value is obtained based on the silhouette coefficient of the cluster, the k nearest neighbors of the center position of the cluster are obtained, and the average value of the k nearest neighbors is used as the feature vector of the cluster; wherein k is a positive integer.
[0030] More specifically, the calculation process of k is: obtain the maximum and minimum values of k, and calculate 1 minus the value of the silhouette coefficient as a weight, use the weight to weight the difference between the maximum and minimum values to obtain an increment, and use the sum of the increment and the minimum value as the k value.
[0031] The k value is dynamically determined based on the silhouette coefficient of the cluster. k represents the number of neighboring points taken from the center of the cluster. The larger the silhouette coefficient, the better the clustering effect. Using a smaller k, only the nearest few points are focused on to ensure the accuracy of the feature vector. The smaller the silhouette coefficient, the worse the clustering of the cluster. The information of more neighboring points is integrated to alleviate the instability caused by uneven data distribution or noise. Assuming that the maximum and minimum values of k are 10 and 3 respectively, if the silhouette coefficient of the cluster is 0.4, the weight is 0.6, the increment is 4.2, and the sum of the increment and the minimum value is 7.2, which is rounded to 7. That is, the k value is 7. The 7 feature vectors closest to the center of the cluster are taken as the k nearest neighbors, and the average of the 7 feature vectors is taken as the feature vector of the cluster.
[0032] If a fire is detected, and multiple consecutive frames or the proportion of frames in which a fire is detected is greater than a certain value, a fire warning is issued. The present invention can be applied to forest fire monitoring, residential area fire monitoring, office area fire monitoring, factory area fire monitoring, logistics park fire monitoring, storage center fire monitoring, parking lot fire monitoring, etc.
[0033] See also Figure 4 , provides a fire monitoring system, the system comprising the following modules: The feature acquisition module is used to obtain multi-scale feature maps of the captured video frames, divide each feature map into multiple feature map blocks, and obtain the feature vector of each feature map block. All feature vectors constitute a feature sequence. The encoding module is used to cluster the feature sequence, determine the target feature sequence according to the silhouette coefficient of the clustered cluster and the feature map where the feature vector is located, use the target feature sequence as a query, and use the feature sequence as a key and value, and use the attention mechanism to update the target feature sequence; stop updating when the silhouette coefficient and the number of clusters in the cluster meet the preset conditions; The decoding and identification module is used to obtain the feature vector of each cluster after the last update, input the average value into the decoder and obtain the fire monitoring result through the detection head.
[0034] Finally, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first embodiment is implemented.
[0035] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0036] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0037] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A fire monitoring method, characterized in that: The method comprises the following steps: Obtain a multi-scale feature map of the captured video frame, divide each feature map into multiple feature map blocks, and obtain a feature vector for each feature map block. All feature vectors constitute a feature sequence. Cluster the feature sequence, determine the target feature sequence according to the silhouette coefficient of the cluster and the feature graph where the feature vector is located, use the target feature sequence as the query, and use the feature sequence as the key and value to update the target feature sequence using the attention mechanism; stop updating when the silhouette coefficient and the number of clusters in the cluster meet the preset conditions; The feature vector of each cluster after the last update is obtained, and the average value is input into the decoder and passed through the detection head to obtain the fire monitoring result.
2. The method according to claim 1, characterized in that The target feature sequence is determined according to the silhouette coefficient of the cluster and the feature map where the feature vector is located, specifically: If the silhouette coefficient of a cluster is greater than a preset value, the feature vectors in the cluster belonging to the same feature map are divided into a group, and the feature vector closest to the cluster center in each group is used as the target feature vector; If the silhouette coefficient of the cluster is not greater than the preset value, all the eigenvectors in the cluster are used as target eigenvectors; The target feature vectors of all clusters constitute the target feature sequence.
3. The method according to claim 1, characterized in that When the silhouette coefficient and the number of clusters in the clustering meet the preset conditions, the updating is stopped, specifically: Get the number of object query vectors in the decoder; If the number of updates is less than the threshold, if the silhouette coefficient of each cluster is greater than a preset value and the number of clusters is equal to the number of object query vectors, then the update is stopped; otherwise, the update is continued; If the number of updates is not less than the threshold, then if the number of clusters is less than the number of object query vectors, the cluster with the smallest silhouette coefficient is divided into two clusters, and the process is repeated until the number of clusters is equal to the number of object query vectors; If the number of clusters is greater than the number of object query vectors, adjusting clustering parameters so that the number of clusters is equal to the number of object query vectors; If the number of clusters is equal to the number of object query vectors, the updating is stopped.
4. The method according to claim 1, characterized in that The feature vector of each cluster after the last update is obtained, specifically: The k value is obtained based on the silhouette coefficient of the cluster, the k nearest neighbors of the center position of the cluster are obtained, and the average value of the k nearest neighbors is used as the feature vector of the cluster; wherein k is a positive integer.
5. The method according to claim 4, characterized in that The k value is obtained based on the cluster-based silhouette coefficient, specifically: The maximum and minimum values of k are obtained, and the value of 1 minus the silhouette coefficient is calculated as a weight. The difference between the maximum and minimum values is weighted by the weight to obtain an increment, and the sum of the increment and the minimum value is used as the k value.
6. A fire monitoring system, characterized in that: The system includes the following modules: The feature acquisition module is used to obtain multi-scale feature maps of the captured video frames, divide each feature map into multiple feature map blocks, and obtain the feature vector of each feature map block. All feature vectors constitute a feature sequence. The encoding module is used to cluster the feature sequence, determine the target feature sequence according to the silhouette coefficient of the clustered cluster and the feature map where the feature vector is located, use the target feature sequence as a query, and use the feature sequence as a key and value to update the target feature sequence using an attention mechanism; stop updating when the silhouette coefficient and the number of clusters in the cluster meet the preset conditions; The decoding and identification module is used to obtain the feature vector of each cluster after the last update, input the average value into the decoder and obtain the fire monitoring result through the detection head.
7. The system according to claim 6, characterized in that The target feature sequence is determined according to the silhouette coefficient of the cluster and the feature map where the feature vector is located, specifically: If the silhouette coefficient of a cluster is greater than a preset value, the feature vectors in the cluster belonging to the same feature map are divided into a group, and the feature vector closest to the cluster center in each group is used as the target feature vector; If the silhouette coefficient of the cluster is not greater than the preset value, all the eigenvectors in the cluster are used as target eigenvectors; The target feature vectors of all clusters constitute the target feature sequence.
8. The system according to claim 6, characterized in that When the silhouette coefficient and the number of clusters in the clustering meet the preset conditions, the updating is stopped, specifically: Get the number of object query vectors in the decoder; If the number of updates is less than the threshold, if the silhouette coefficient of each cluster is greater than a preset value and the number of clusters is equal to the number of object query vectors, then the update is stopped; otherwise, the update is continued; If the number of updates is not less than the threshold, then if the number of clusters is less than the number of object query vectors, the cluster with the smallest silhouette coefficient is divided into two clusters, and the process is repeated until the number of clusters is equal to the number of object query vectors; If the number of clusters is greater than the number of object query vectors, adjusting clustering parameters so that the number of clusters is equal to the number of object query vectors; If the number of clusters is equal to the number of object query vectors, the updating is stopped.
9. The system according to claim 6, characterized in that The feature vector of each cluster after the last update is obtained, specifically: The k value is obtained based on the silhouette coefficient of the cluster, the k nearest neighbors of the center position of the cluster are obtained, and the average value of the k nearest neighbors is used as the feature vector of the cluster; wherein k is a positive integer.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Multivariable time series data clustering method
CN111488924A
Face clustering method and device based on self-attention mechanism
CN115294636A
Text processing method and device, electronic equipment and computer readable storage medium
CN117493560A
Fire detection method, device and equipment
CN118506271A
Intelligent constant-temperature and constant-humidity storage system for medical supplies and control method thereof
CN118760294A