Pipeline data labeling method and program product based on multi-modal prototype alignment
By employing a multimodal prototype alignment pipeline data annotation method, feature vectors are extracted using time-frequency maps and visual encoders, and similarity is calculated to automatically annotate pipeline data. This solves the problems of high-cost manual annotation and low accuracy in small sample scenarios, achieving low-cost and high-reliability data annotation.
Patent Information
- Application Number
- CN202611599524.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-15
- Publication Date
- 2026-11-24
Smart Images

Figure CN123158472A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a pipeline data annotation method and program product based on multimodal prototype alignment. Background Technology
[0002] With the intelligent development of infrastructure, pipeline monitoring systems are widely used in scenarios such as oil and gas, water supply, and underground integrated pipe corridors. In order to adapt to different on-site working conditions such as soil type, temperature and humidity, and geological conditions, it is necessary to collect on-site time history monitoring data to train a dedicated deep classification model.
[0003] Existing technologies have the following technical pain points in practical engineering applications: the cleaning and classification labeling of massive amounts of data rely heavily on the manual experience of domain experts; the labeling of TB-level data is costly in terms of manpower and time, limiting the efficiency of model iteration; the on-site working conditions of various pipeline projects vary greatly, and the number of specific fault and interference samples is small, which is a typical small sample scenario and makes it difficult to support the training of high-precision deep learning models; traditional feature vector similarity matching methods rely on manually designed features, which have weak noise resistance, and contrastive learning methods such as Siamese networks are prone to overfitting when there are very few labeled samples, resulting in poor generalization performance. Summary of the Invention
[0004] This invention provides a pipeline data annotation method, apparatus, equipment, medium, and program product based on multimodal prototype alignment, to achieve automatic annotation of pipeline monitoring data and meet the needs of low-cost and high-reliability annotation under small sample conditions in pipeline monitoring projects.
[0005] In a first aspect, embodiments of the present invention provide a pipeline data annotation method based on multimodal prototype alignment, the method comprising:
[0006] Acquire the target time series data of the target pipeline, slice the target time series data based on a sliding window to obtain multiple target data segments, and determine the target time-frequency map of each target data segment.
[0007] For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment;
[0008] Determine the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to multiple sample data categories. The sample multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category.
[0009] The target category label of the target data segment is determined based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category.
[0010] Secondly, embodiments of the present invention provide a pipeline data annotation device based on multimodal prototype alignment, the device comprising:
[0011] The data acquisition and preprocessing module is used to acquire the target time series data of the target pipeline, slice the target time series data based on a sliding window to obtain multiple target data segments, and determine the target time-frequency map of each target data segment.
[0012] The visual feature vector determination module processes the target time-frequency map of each target data segment to be labeled based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment.
[0013] The vector similarity determination module is used to determine the vector similarity between the target visual feature vector and the multimodal prototype vectors of multiple sample data categories. The multimodal prototype vectors of the samples are obtained based on the time-frequency maps and textual description information of multiple labeled data samples belonging to the sample data categories.
[0014] The category label determination module is used to determine the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category.
[0015] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:
[0016] One or more processors;
[0017] Memory, used to store one or more programs;
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the pipeline data annotation method based on multimodal prototype alignment as described in any embodiment.
[0019] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute and implement the pipeline data annotation method based on multimodal prototype alignment as described in any embodiment of the present invention.
[0020] Fifthly, embodiments of the present invention provide a computer program product, the computer program product including a computer program, which, when executed by a processor, implements the pipeline data annotation method based on multimodal prototype alignment as described in any embodiment of the present invention.
[0021] The technical solution provided by this invention involves acquiring target time-series data of a target pipeline, slicing the target time-series data using a sliding window to obtain multiple target data segments, and determining the target time-frequency map for each of the target data segments. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment. The vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories is determined. The multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category. The target category label of the target data segment is determined based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category. The technical solution of this invention determines the target time-frequency map through target data segments, processes the target time-frequency map using a pre-trained visual encoder to obtain the target visual feature vector, calculates the vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories, and determines the target category label of the target data segment based on the vector similarity and the sample category label corresponding to the sample data category. The technical solution of this invention solves the problems of high cost of manual annotation in existing methods and poor generalization ability of traditional small sample learning methods, and realizes high-accuracy automatic annotation of pipeline monitoring data, meeting the needs of low-cost and high-reliability annotation under small sample conditions in pipeline monitoring projects.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of a pipeline data annotation method based on multimodal prototype alignment provided by an embodiment of the present invention;
[0025] Figure 2 This is a flowchart of another pipeline data annotation method based on multimodal prototype alignment provided by an embodiment of the present invention;
[0026] Figure 3 This is a schematic diagram illustrating the implementation steps of a specific pipeline data annotation method based on multimodal prototype alignment provided in an embodiment of the present invention;
[0027] Figure 4 This is a schematic diagram of the structure of a pipeline data annotation device based on multimodal prototype alignment provided in an embodiment of the present invention;
[0028] Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] In one embodiment, Figure 1 This is a flowchart of a pipeline data annotation method based on multimodal prototype alignment provided by an embodiment of the present invention. This embodiment is applicable to the automatic annotation of pipeline monitoring data. The pipeline data annotation method based on multimodal prototype alignment can be executed by a pipeline data annotation device based on multimodal prototype alignment. This device can be implemented in hardware and / or software, optionally through an electronic device, such as a mobile terminal, a personal computer, or a server. Figure 1As shown, this pipeline data annotation method based on multimodal prototype alignment may include:
[0032] S110. Obtain the target time series data of the target pipeline, slice the target time series data based on a sliding window to obtain multiple target data segments, and determine the target time-frequency map of each target data segment.
[0033] The target pipeline can be any pipeline for which sensors are deployed to collect time-series data. Target pipelines can include, but are not limited to, oil and gas pipelines, water supply pipelines, and urban underground pipeline systems.
[0034] Target time series data can be monitoring data that changes over time and is continuously collected by sensors deployed on the target pipeline.
[0035] A sliding window can be a time window function of a preset length. It can be used to extract target time-series data, resulting in multiple target data segments.
[0036] Slicing can be an operation that extracts multiple target data segments from continuous target time series data based on a sliding window.
[0037] The target time-frequency diagram can be obtained by performing a time-frequency transformation on the target data segment.
[0038] Specifically, raw time-series data of the target pipeline is collected based on sensors deployed on the pipeline. These sensors may include, but are not limited to, optical fiber grating sensors, accelerometers, strain gauges, and pressure sensors. The raw time-series data is preprocessed to obtain target time-series data. Preprocessing includes at least removing missing and outlier values from the raw time-series data. Target time-series data may include, but is not limited to, vibration data, stress data, strain data, and acoustic emission data. Multiple target data segments are obtained by continuously moving along the time axis according to a preset time window of a preset length and a preset step size. The target time-frequency map corresponding to each target data segment is calculated using a time-frequency transformation method. This time-frequency transformation method can employ either continuous wavelet transform or short-time Fourier transform.
[0039] S120. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on the pre-trained visual encoder to obtain the target visual feature vector of the target data segment.
[0040] The target visual feature vector can be obtained by extracting features from the target time-frequency map. The target visual feature vector can represent the visual and time-frequency information of the target time-frequency map.
[0041] Specifically, based on the pre-trained visual encoder, feature extraction is performed on the target time-frequency map corresponding to the target data segment to obtain the target visual feature vector of the target data segment.
[0042] S130. Determine the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to multiple sample data categories. The sample multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category.
[0043] The sample data category can be a predefined data label type. The sample data category can include, but is not limited to, normal operating condition category, fault category, and disturbance category.
[0044] The labeled data samples can be: samples whose data categories have been manually labeled by domain experts according to the data categories.
[0045] The multimodal prototype vector of a sample can be calculated using a multimodal vector fusion method based on the sample visual feature vector and the sample semantic feature vector.
[0046] Vector similarity is a quantitative indicator of how close a target visual feature vector is to a multimodal prototype vector. The higher the vector similarity value, the more similar the features corresponding to the two vectors are.
[0047] Specifically, based on predefined sample data label types, domain experts manually label the sample data categories to obtain labeled data samples. Based on the sample time-frequency plots and sample text descriptions of the labeled data samples, the corresponding sample visual feature vectors and sample semantic feature vectors are determined. The sample semantic feature vectors can be obtained by feature extraction from the sample text descriptions of the labeled data samples using a pre-trained language encoder. Based on the sample visual feature vectors and sample semantic feature vectors, a multimodal vector fusion method is used to determine the sample multimodal prototype vectors of the labeled data samples. The multimodal vector fusion method can employ, but is not limited to, fixed-weight linear weighted fusion, adaptive gated weighted fusion, and vector splicing projection fusion. Based on the target visual feature vectors and sample multimodal prototype vectors, vector similarity is calculated. Specifically, cosine similarity is calculated based on the target visual feature vectors and sample multimodal prototype vectors.
[0048] S140. Determine the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category.
[0049] The sample category labels can be category labels obtained manually by domain experts.
[0050] The target category label can be: the category label corresponding to the target data segment after matching the vector similarity calculated based on the target visual feature vector of the target data segment and the multimodal prototype vector of the sample data segment with the corresponding sample data category.
[0051] Specifically, based on the vector similarity corresponding to the target data fragment and the sample data category, the corresponding sample data category is matched to determine the target category label of the target data fragment.
[0052] The technical solution provided by this invention involves acquiring target time-series data of a target pipeline, slicing the target time-series data using a sliding window to obtain multiple target data segments, and determining the target time-frequency map for each of the target data segments. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment. The vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories is determined. The multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category. The target category label of the target data segment is determined based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category. The technical solution of this invention determines the target time-frequency map through target data segments, processes the target time-frequency map using a pre-trained visual encoder to obtain the target visual feature vector, calculates the vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories, and determines the target category label of the target data segment based on the vector similarity and the sample category label corresponding to the sample data category. The technical solution of this invention solves the problems of high cost of manual annotation in existing methods and poor generalization ability of traditional small sample learning methods, and realizes high-accuracy automatic annotation of pipeline monitoring data, meeting the needs of low-cost and high-reliability annotation under small sample conditions in pipeline monitoring projects.
[0053] In one embodiment, Figure 2 This is a flowchart of another pipeline data annotation method based on multimodal prototype alignment provided by an embodiment of the present invention. The technical solution of this embodiment further optimizes the aforementioned embodiments based on the technical solutions of the above embodiments. This embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 2 As shown, the pipeline data annotation method based on multimodal prototype alignment in this embodiment may include the following process:
[0054] S210. Obtain the target time series data of the target pipeline, slice the target time series data based on a sliding window to obtain multiple target data segments, and determine the target time-frequency map of each target data segment.
[0055] Specifically, raw time-series data of the target pipeline is collected from sensors deployed on the target pipeline. A sliding window of preset length is used to continuously capture data along the time axis at preset step sizes, resulting in a collection of multiple target data segments. for The preset length and preset step size can be empirical values. The target time-frequency map corresponding to each target data segment is calculated using a time-frequency transformation method. .
[0056] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments, wherein determining the target time-frequency map of each target data segment includes:
[0057] For each target data segment, a continuous wavelet transform is performed on the target data segment to generate a target time-frequency map corresponding to the target data segment.
[0058] Specifically, for sets Each target data fragment The continuous wavelet transform method is used to calculate each target data segment. Corresponding target time-frequency diagram .
[0059] S220. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment.
[0060] Specifically, based on the target time-frequency map corresponding to the target data segment from the pre-trained visual encoder... Feature extraction is performed to obtain the target visual feature vector of the target data segment. .in, For the target visual feature vector, , For the target visual feature vector dimension, This is a pre-trained visual encoder.
[0061] S230. Obtain a set of labeled data samples, wherein the set of labeled data samples includes sample time-frequency plots, sample text description information and sample category labels of multiple labeled data samples.
[0062] A labeled data sample set can be a collection of data consisting of multiple labeled data samples.
[0063] The sample time-frequency diagram can be obtained by applying continuous wavelet transform to the labeled data samples.
[0064] The sample text description information can be text information describing the pipeline operating conditions, environmental conditions, etc., corresponding to the labeled data sample.
[0065] Specifically, obtain the labeled data sample set. The labeled data sample set contains time-frequency plots of multiple labeled data samples, sample text descriptions, and sample category labels. Among them, For the first Time-frequency plot of a labeled data sample. For the first The sample text description information of each labeled data sample. For the first The sample category label of each labeled data sample.
[0066] S240. For each labeled data sample, extract the sample visual feature vector of the sample time-frequency map of each labeled data sample based on the pre-trained visual encoder, and extract the sample semantic feature vector of the corresponding sample text description information of each labeled data sample based on the pre-trained language encoder.
[0067] The sample visual feature vector can be obtained by extracting features from the sample time-frequency plot. The sample visual feature vector can represent the visual and time-frequency information of the sample time-frequency plot.
[0068] The sample semantic feature vector can be obtained by extracting features from the sample text description information. The sample semantic feature vector can represent the semantic information of the text information such as pipeline operating conditions and environmental conditions in the sample text description information.
[0069] Specifically, based on the time-frequency map of the labeled data samples obtained by the pre-trained visual encoder... Perform feature extraction to obtain the visual feature vector of the sample. .in, For the sample visual feature vector, , The dimension of the sample visual feature vector. This is a pre-trained visual encoder.
[0070] Based on the sample text description information of the labeled data samples by the pre-trained visual encoder. Perform feature extraction to obtain the semantic feature vector of the sample. .in, For the sample semantic feature vector, , The dimension of the sample semantic feature vector. This is a pre-trained language encoder.
[0071] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. Before extracting the sample semantic feature vector of the corresponding sample text description information of each labeled data sample based on the pre-trained language encoder, the scheme further includes: receiving parameter filling operation for the labeled data sample based on a preset description template; generating sample text description information of the labeled data sample based on the filled preset description template; and adding the sample text description information to the labeled data sample set based on the correspondence with the sample text description information of the labeled data sample.
[0072] The preset description template can be a pre-defined structured text filling template. The preset description template can include, but is not limited to, category, soil type, and pipe section.
[0073] Specifically, the system receives parameters for the labeled data samples based on a preset description template, performs the filling operation, and generates sample text description information for the labeled data samples. For example, the preset description template can be: Category: [], Soil type: [], Pipe segment: [], After filling in the template, the generated sample text description information for the labeled data sample can be: Category: [Leakage], Soil type: [Sand], Pipe segment: [Weld]. Based on the sample text description information of the labeled data sample... The correspondence will be used to describe the sample text information. Add to labeled data sample set middle.
[0074] S250. For each sample data category corresponding to the multiple category labels, generate a sample multimodal prototype vector corresponding to the sample data category based on the sample visual feature vector and the sample semantic feature vector of the multiple labeled data samples under the sample data category.
[0075] Specifically, for each sample data category corresponding to multiple category labels. Based on the visual feature vector of the sample and sample semantic feature vector By using a multimodal vector fusion method, the multimodal prototype vectors of labeled data samples are determined. For example, the following formula can be used for each sample data category. Based on the visual feature vector of the sample and sample semantic feature vector Determine the multimodal prototype vector of the labeled data samples. :
[0076] ;
[0077] in, For sample data categories The labeled sample set This is the fusion function.
[0078] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The step of generating a sample multimodal prototype vector corresponding to the sample data category based on the sample visual feature vector and the sample semantic feature vector of multiple labeled data samples under the sample data category includes: concatenating the sample visual feature vector and the sample semantic feature vector of each labeled data sample to obtain a concatenated vector; performing a linear transformation on the concatenated vector to obtain a fused feature vector; and averaging the fused feature vectors of multiple labeled data samples under the sample data category to obtain the sample multimodal prototype vector corresponding to the sample data category.
[0079] Concatenation can be defined as the operation of combining the visual feature vector and semantic feature vector of the same labeled data sample, concatenating them end-to-end along the feature dimension to generate a concatenated vector whose dimension is equal to the sum of the dimensions of the visual feature vector and the semantic feature vector.
[0080] Linear transformations can be operations that perform matrix multiplication on concatenated vectors using learnable weight matrices.
[0081] Specifically, the visual feature vector of each labeled data sample... and sample semantic feature vector Concatenate the vectors to obtain the concatenated vector. A linear transformation is performed on the concatenated vectors to obtain the fused feature vector. Example fusion function. ,in, This is a vector concatenation operation. This is the weight matrix. , To fuse feature vector dimensions, These are learnable parameters. The average of the fused feature vectors of multiple labeled data samples under each sample data category is used to obtain the sample data category. The corresponding sample multimodal prototype vector .
[0082] S260. Determine the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to multiple sample data categories. The sample multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category.
[0083] Specifically, based on the target visual feature vector and sample multimodal prototype vectors Based on the following formula, the cosine similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories is calculated:
[0084] ;
[0085] in, For cosine similarity, Let be the 2-norm of the vector.
[0086] S270. Determine the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category.
[0087] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The step of determining the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category includes: determining a first candidate category and a second candidate category from multiple sample data categories based on multiple vector similarities corresponding to the target data segment, and calculating the ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category, wherein the first candidate category corresponds to the maximum value among multiple vector similarities, and the second candidate category corresponds to the second maximum value among multiple vector similarities; if the ratio is greater than or equal to a preset threshold, determining the sample category label corresponding to the first candidate category as the target category label of the target data segment.
[0088] Specifically, based on the similarity of multiple vectors corresponding to the target data fragment. The first and second candidate categories are determined. The first candidate category corresponds to the maximum value among multiple vector similarities. The second candidate category corresponds to the second-highest value among multiple vector similarities. .in, For example, a very small constant. It can be 10 -6 .
[0089] The ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category is calculated as follows: In the ratio Greater than or equal to the preset threshold In the case of [missing information], the sample category label corresponding to the first candidate category is determined as the target category label of the target data segment. A preset threshold is used. It can be set to an experience value, which can be 1.5.
[0090] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. After calculating the ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category, the scheme further includes: if the ratio is less than a preset threshold, marking the target data fragment as a low-confidence sample and adding the low-confidence sample to the manual review queue; in response to receiving the manual review result for the low-confidence sample, processing the low-confidence sample according to the manual review result.
[0091] Specifically, in the ratio Less than the preset threshold In such cases, the target data segment is marked as a low-confidence sample and added to the manual review queue, awaiting manual review. Based on the received manual review results for the low-confidence samples, the low-confidence samples are processed accordingly.
[0092] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. After determining the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category, the scheme further includes: receiving parameter filling operations for the target data segment based on a preset description template; generating target text description information of the target data segment based on the filled preset description template; extracting target semantic feature vectors of the target text description information corresponding to the target data segment based on a pre-trained language encoder; determining and obtaining multiple target data segments corresponding to the sample data category based on the target category label corresponding to the target data segment; for each sample data category, determining the target multimodal prototype vector corresponding to the sample data category based on the target visual feature vector and the target semantic feature vector corresponding to the sample data category; and updating the sample multimodal prototype vector corresponding to the sample data category based on the target multimodal prototype vector corresponding to the sample data category.
[0093] The target text description information can be the corresponding pipeline operating conditions, environmental conditions, and other text information obtained by filling in the parameters according to the preset description template and the target data fragment.
[0094] The target semantic feature vector can be obtained by extracting features from the target text description information. The target semantic feature vector can represent the semantic information of the text description information such as pipeline operating conditions and environmental conditions.
[0095] The target visual feature vector can be obtained by extracting features from the target time-frequency map. The target feature vector can represent the visual and time-frequency information of the target time-frequency map.
[0096] The target multimodal prototype vector can be calculated using a multimodal vector fusion method based on the target visual feature vector and the target semantic feature vector.
[0097] Specifically, the system receives parameter input operations for the target data fragment based on a preset description template, and generates target text description information for the target data fragment based on the input parameters in the preset description template. Extract the corresponding target text description information from the target data fragments based on the pre-trained language encoder. Target semantic feature vector Based on the target category label corresponding to the target data fragment, multiple target data fragments corresponding to the sample data category are obtained. For each sample data category... Based on the target visual feature vector corresponding to the category of sample data and target semantic feature vector Determine the category of sample data The corresponding target multimodal prototype vector Update the multimodal prototype vectors of the sample data categories. The update method can be any of the following: arithmetic average, weighted average, or adaptive weighted update.
[0098] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. Updating the sample multimodal prototype vector corresponding to the sample data category based on the target multimodal prototype vector corresponding to the sample data category includes:
[0099] The target multimodal prototype vector corresponding to the sample data category is multiplied by the update rate of the sample multimodal prototype vector to obtain the first multimodal prototype vector, wherein the update rate is between zero and one.
[0100] Calculate the difference between the first value and the update rate, and multiply the sample multimodal prototype vector corresponding to the sample data category before the update by the difference to obtain the second multimodal prototype vector;
[0101] The first multimodal prototype vector and the second multimodal prototype vector are added together to obtain the updated sample multimodal prototype vector corresponding to the sample data category.
[0102] Specifically, the target multimodal prototype vector corresponding to the sample data category is... Update rate of sample multimodal prototype vectors Multiplying them together, we obtain the first multimodal prototype vector as follows: Among them, update rate The value ranges from 0 to 1. Calculate the difference between the first value and the update rate. The sample multimodal prototype vectors corresponding to the sample data categories before the update will be updated. and difference Multiplying them together, we obtain the second multimodal prototype vector as follows: The first multimodal prototype vector Second multimodal prototype vector Adding them together yields the updated multimodal prototype vectors corresponding to the sample data categories. for .
[0103] The technical solution provided in this invention involves acquiring target time-series data of a target pipeline, slicing the target time-series data using a sliding window to obtain multiple target data segments, and determining the target time-frequency map of each target data segment. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment. A labeled data sample set is acquired, which includes sample time-frequency maps, sample text description information, and sample category labels of multiple labeled data samples. For each labeled data sample, the sample visual feature vector of the sample time-frequency map of each labeled data sample is extracted based on a pre-trained visual encoder, and the sample visual feature vector is extracted based on a pre-trained language encoder. The process involves: extracting the sample semantic feature vector from the corresponding sample text description information for each labeled data sample; generating a sample multimodal prototype vector corresponding to the sample data category based on the sample visual feature vectors and sample semantic feature vectors of the labeled data samples under the sample data category; determining the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to the multiple sample data categories, wherein the sample multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of the labeled data samples belonging to the sample data category; determining the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category. The technical solution of this embodiment calculates the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to the multiple sample data categories to determine the ratio of the first candidate category and the second candidate category; determining the target category label of the target data segment based on the ratio and a preset threshold; and updating the sample multimodal prototype vector corresponding to the sample data category based on the target multimodal prototype vector corresponding to the sample data category. The technical solution of this invention solves the problems of high cost of manual annotation in existing methods and poor generalization ability of traditional small sample learning methods, and realizes high-accuracy automatic annotation of pipeline monitoring data, meeting the needs of low-cost and high-reliability annotation under small sample conditions in pipeline monitoring projects.
[0104] In one embodiment, Figure 3 This is a schematic diagram illustrating the implementation steps of a pipeline data annotation method based on multimodal prototype alignment provided in an embodiment of the present invention, as shown below. Figure 3 As shown:
[0105] Based on sensors deployed on the target pipeline, raw time-series data of the target pipeline is collected. These sensors may include, but are not limited to, optical fiber grating sensors, accelerometers, strain gauges, and pressure sensors.
[0106] Based on a sliding window of preset length, the system continuously moves along the time axis along the target time series data at preset step sizes to extract multiple target data segments. The target time-frequency map corresponding to each target data segment is calculated using continuous wavelet transform or short-time Fourier transform. .
[0107] Based on the target time-frequency map corresponding to the target data segment from the pre-trained visual encoder Perform feature extraction to obtain the target visual feature vector of the target data segment. .in, For the target visual feature vector, , For the target visual feature vector dimension, This is a pre-trained visual encoder.
[0108] Obtain the labeled data sample set The labeled data sample set contains time-frequency plots of multiple labeled data samples, sample text descriptions, and sample category labels. Among them, For the first Time-frequency plot of a labeled data sample. For the first The sample text description information of each labeled data sample. For the first The sample category label of each labeled data sample.
[0109] Based on the time-frequency map of the labeled data samples from the pre-trained visual encoder. Perform feature extraction to obtain the visual feature vector of the sample. .in, For the sample visual feature vector, , The dimension of the sample visual feature vector. This is a pre-trained visual encoder.
[0110] Based on the sample text description information of the labeled data samples by the pre-trained visual encoder. Perform feature extraction to obtain the semantic feature vector of the sample. .in, For the sample semantic feature vector, , The dimension of the sample semantic feature vector. This is a pre-trained language encoder.
[0111] Based on the following formula, for each sample data category Based on the visual feature vector of the sample and sample semantic feature vector Determine the multimodal prototype vector of the labeled data samples. :
[0112] ;
[0113] in, For sample data categories The labeled sample set This is the fusion function. ,in, This is a vector concatenation operation. This is the weight matrix. , To fuse feature vector dimensions, These are learnable parameters.
[0114] Based on the target visual feature vector and sample multimodal prototype vectors Based on the following formula, the cosine similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories is calculated:
[0115] ;
[0116] in, For cosine similarity, Let be the 2-norm of the vector.
[0117] Based on the similarity of multiple vectors corresponding to the target data fragment The first and second candidate categories are determined. The first candidate category corresponds to the maximum value among multiple vector similarities. The second candidate category corresponds to the second-highest value among multiple vector similarities. .in, For example, a very small constant. It can be 10 -6 .
[0118] The ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category is calculated as follows: In the ratio Greater than or equal to the preset threshold In the case of [missing information], the sample category label corresponding to the first candidate category is determined as the target category label of the target data segment. A preset threshold is used. It can be set to an experience value, which can be 1.5.
[0119] In ratio Less than the preset threshold In such cases, the target data segment is marked as a low-confidence sample and added to the manual review queue, awaiting manual review. Based on the received manual review results for the low-confidence samples, the low-confidence samples are processed accordingly.
[0120] The system receives parameter input operations for the target data segment based on a preset description template, and generates target text description information for the target data segment based on the input parameters in the preset description template. Extract the corresponding target text description information from the target data fragments based on the pre-trained language encoder. Target semantic feature vector Based on the target category label corresponding to the target data fragment, multiple target data fragments corresponding to the sample data category are obtained. For each sample data category... Based on the target visual feature vector corresponding to the category of sample data and target semantic feature vector Determine the category of sample data The corresponding target multimodal prototype vector Update the multimodal prototype vectors of the sample data categories. Specifically, the target multimodal prototype vector corresponding to the sample data category is... Update rate of sample multimodal prototype vectors Multiplying them together, we obtain the first multimodal prototype vector as follows: Among them, update rate The value ranges from 0 to 1. Calculate the difference between the first value and the update rate. The sample multimodal prototype vectors corresponding to the sample data categories before the update will be updated. and difference Multiplying them together, we obtain the second multimodal prototype vector as follows: The first multimodal prototype vector Second multimodal prototype vector Adding them together yields the updated multimodal prototype vectors corresponding to the sample data categories. for .
[0121] In one embodiment, Figure 4 This is a schematic diagram of a pipeline data annotation device based on multimodal prototype alignment provided in an embodiment of the present invention. This embodiment is applicable to the automatic annotation of pipeline monitoring data. The pipeline data annotation device based on multimodal prototype alignment can be implemented in hardware and / or software, optionally through electronic devices such as mobile terminals, personal computers, or servers. Figure 4 As shown, the pipeline data annotation device based on multimodal prototype alignment may include the following:
[0122] The data acquisition and preprocessing module 310 is used to acquire the target time series data of the target pipeline, slice the target time series data based on a sliding window to obtain multiple target data segments, and determine the target time-frequency map of each target data segment.
[0123] The visual feature vector determination module 320 processes the target time-frequency map of the target data segment based on a pre-trained visual encoder for each target data segment to be labeled, and obtains the target visual feature vector of the target data segment.
[0124] The vector similarity determination module 330 is used to determine the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to multiple sample data categories. The sample multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data categories.
[0125] The category label determination module 340 is used to determine the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category.
[0126] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The data acquisition and preprocessing module is used to perform continuous wavelet transform on each target data segment to generate a target time-frequency map corresponding to the target data segment.
[0127] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The pipeline data annotation device based on multimodal prototype alignment further includes a sample multimodal prototype vector determination module, which is used to obtain an annotated data sample set. The annotated data sample set includes sample time-frequency maps, sample text description information, and sample category labels of multiple annotated data samples. For each annotated data sample, the sample visual feature vector of the sample time-frequency map of each annotated data sample is extracted based on a pre-trained visual encoder, and the sample semantic feature vector of the corresponding sample text description information of each annotated data sample is extracted based on a pre-trained language encoder. For each sample data category corresponding to the multiple category labels, the sample multimodal prototype vector corresponding to the sample data category is generated according to the sample visual feature vector and the sample semantic feature vector of the multiple annotated data samples under the sample data category.
[0128] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The sample multimodal prototype vector determination module is used to concatenate the sample visual feature vector and the sample semantic feature vector of each labeled data sample to obtain a concatenated vector, perform a linear transformation on the concatenated vector to obtain a fused feature vector, and average the fused feature vectors of multiple labeled data samples under the sample data category to obtain the sample multimodal prototype vector corresponding to the sample data category.
[0129] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The pipeline data annotation device based on multimodal prototype alignment further includes a sample multimodal prototype vector update module, which is used to receive parameter filling operations for the target data segment based on a preset description template, generate target text description information of the target data segment based on the filled preset description template, extract the target semantic feature vector of the target text description information corresponding to the target data segment based on a pre-trained language encoder, determine and obtain multiple target data segments corresponding to the sample data category based on the target category label corresponding to the target data segment, determine the target multimodal prototype vector corresponding to the sample data category for each sample data category according to the target visual feature vector and the target semantic feature vector corresponding to the sample data category, and update the sample multimodal prototype vector corresponding to the sample data category based on the target multimodal prototype vector corresponding to the sample data category.
[0130] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The sample multimodal prototype vector update module is used to multiply the target multimodal prototype vector corresponding to the sample data category by the update rate of the sample multimodal prototype vector to obtain a first multimodal prototype vector, wherein the update rate is between zero and one; calculate the difference between the value one and the update rate, multiply the sample multimodal prototype vector corresponding to the sample data category before the update by the difference to obtain a second multimodal prototype vector; and add the first multimodal prototype vector and the second multimodal prototype vector to obtain the updated sample multimodal prototype vector corresponding to the sample data category.
[0131] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The pipeline data annotation device based on multimodal prototype alignment further includes an annotation data sample set addition module, which is used to receive parameter filling operations for the annotated data sample based on a preset description template, generate sample text description information of the annotated data sample based on the filled preset description template, and add the sample text description information to the annotation data sample set based on the correspondence with the sample text description information of the annotated data sample.
[0132] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The category label determination module is used to determine a first candidate category and a second candidate category from multiple sample data categories based on multiple vector similarities corresponding to the target data segment, and calculate the ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category, wherein the first candidate category corresponds to the maximum value among multiple vector similarities, and the second candidate category corresponds to the second maximum value among multiple vector similarities; if the ratio is greater than or equal to a preset threshold, the sample category label corresponding to the first candidate category is determined as the target category label of the target data segment.
[0133] In one embodiment, the scheme of this embodiment can be combined with various optional schemes in one or more of the above embodiments. The category label determination module is used to mark the target data segment as a low confidence sample when the ratio is less than a preset threshold, and add the low confidence sample to the manual review queue; in response to receiving the manual review result for the low confidence sample, the low confidence sample is processed according to the manual review result.
[0134] The technical solution provided by this invention involves acquiring target time-series data of a target pipeline, slicing the target time-series data using a sliding window to obtain multiple target data segments, and determining the target time-frequency map for each of the target data segments. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment. The vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories is determined. The multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category. The target category label of the target data segment is determined based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category. The technical solution of this invention determines the target time-frequency map through target data segments, processes the target time-frequency map using a pre-trained visual encoder to obtain the target visual feature vector, calculates the vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories, and determines the target category label of the target data segment based on the vector similarity and the sample category label corresponding to the sample data category. The technical solution of this invention solves the problems of high cost of manual annotation in existing methods and poor generalization ability of traditional small sample learning methods, and realizes high-accuracy automatic annotation of pipeline monitoring data, meeting the needs of low-cost and high-reliability annotation under small sample conditions in pipeline monitoring projects.
[0135] The pipeline data annotation device based on multimodal prototype alignment provided in this embodiment of the invention can execute the pipeline data annotation method based on multimodal prototype alignment provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0136] It is worth noting that the above-mentioned devices are divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of this document.
[0137] In one embodiment, Figure 5 This is a structural block diagram of an electronic device provided in an embodiment of the present invention, such as... Figure 5The diagram illustrates a schematic representation of an electronic device 10 that can be used to implement embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0138] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor 11, and the computer program is executed by the at least one processor 11 to enable the at least one processor 11 to perform the method provided by the present invention.
[0139] The processor 11 can perform various appropriate actions and processes based on a computer program stored in the read-only memory (ROM) 12 or a computer program loaded from the storage unit 18 into the random access memory (RAM) 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0140] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0141] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the methods provided in this invention.
[0142] In some embodiments, the methods disclosed herein may be implemented as computer programs tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the methods by any other suitable means (e.g., by means of firmware).
[0143] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard parts (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0144] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0145] In the context of this invention, a computer-readable storage medium stores computer instructions that are used to cause a processor to execute and implement the method provided by this invention.
[0146] The present invention also provides a computer program product comprising a computer program that, when executed by a processor, implements the method provided according to embodiments of the present invention. A computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0147] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0148] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0149] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0150] This invention also provides a computer program product, including a computer program that, when executed by a processor, can implement the methods provided in any embodiment of this application.
[0151] In the implementation of the computer program product, computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0152] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0153] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A pipeline data annotation method based on multimodal prototype alignment, characterized in that, include: Acquire the target time series data of the target pipeline, slice the target time series data based on a sliding window to obtain multiple target data segments, and determine the target time-frequency map of each target data segment. For each target data segment to be labeled, the target time-frequency map of the target data segment is processed based on a pre-trained visual encoder to obtain the target visual feature vector of the target data segment; Determine the vector similarity between the target visual feature vector and the sample multimodal prototype vectors corresponding to multiple sample data categories. The sample multimodal prototype vectors are obtained based on the sample time-frequency maps and sample text description information of multiple labeled data samples belonging to the sample data category. The target category label of the target data segment is determined based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category.
2. The pipeline data annotation method based on multimodal prototype alignment according to claim 1, characterized in that, The step of determining the target time-frequency map for each of the target data segments includes: For each target data segment, a continuous wavelet transform is performed on the target data segment to generate a target time-frequency map corresponding to the target data segment.
3. The pipeline data annotation method based on multimodal prototype alignment according to claim 1, characterized in that, Before determining the vector similarity between the target visual feature vector and the multimodal prototype vectors corresponding to multiple sample data categories, the method further includes: Obtain a set of labeled data samples, which includes time-frequency plots of multiple labeled data samples, sample text description information, and sample category labels; For each labeled data sample, a sample visual feature vector of the sample time-frequency map of each labeled data sample is extracted based on a pre-trained visual encoder, and a sample semantic feature vector of the corresponding sample text description information of each labeled data sample is extracted based on a pre-trained language encoder. For each sample data category corresponding to multiple category labels, a sample multimodal prototype vector corresponding to the sample data category is generated based on the sample visual feature vector and the sample semantic feature vector of multiple labeled data samples under the sample data category.
4. The pipeline data annotation method based on multimodal prototype alignment according to claim 3, characterized in that, The step of generating a multimodal prototype vector for a sample data category based on the visual feature vectors and semantic feature vectors of multiple labeled data samples under the sample data category includes: The visual feature vector of each labeled data sample is concatenated with the semantic feature vector of the sample to obtain a concatenated vector. A linear transformation is then performed on the concatenated vector to obtain a fused feature vector. The fused feature vectors of multiple labeled data samples under the sample data category are averaged to obtain the sample multimodal prototype vector corresponding to the sample data category.
5. The pipeline data annotation method based on multimodal prototype alignment according to claim 3, characterized in that, Before extracting the sample semantic feature vector corresponding to the sample text description information of each labeled data sample based on the pre-trained language encoder, the method further includes: Based on a preset description template, the system receives parameter input operations for the labeled data sample and generates sample text description information for the labeled data sample based on the input preset description template. Based on the correspondence between the sample text description information and the labeled data sample, the sample text description information is added to the labeled data sample set.
6. The pipeline data annotation method based on multimodal prototype alignment according to claim 1, characterized in that, After determining the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category, the method further includes: Based on a preset description template, the system receives parameter input operations for the target data segment, generates target text description information for the target data segment based on the input preset description template, and extracts the target semantic feature vector of the target text description information corresponding to the target data segment based on a pre-trained language encoder. Based on the target category label corresponding to the target data fragment, multiple target data fragments corresponding to the sample data category are obtained. For each sample data category, the target multimodal prototype vector corresponding to the sample data category is determined according to the target visual feature vector and the target semantic feature vector corresponding to the sample data category. The sample multimodal prototype vector corresponding to the sample data category is updated based on the target multimodal prototype vector corresponding to the sample data category.
7. The pipeline data annotation method based on multimodal prototype alignment according to claim 6, characterized in that, The step of updating the sample multimodal prototype vector corresponding to the sample data category based on the target multimodal prototype vector corresponding to the sample data category includes: The target multimodal prototype vector corresponding to the sample data category is multiplied by the update rate of the sample multimodal prototype vector to obtain the first multimodal prototype vector, wherein the update rate is between zero and one. Calculate the difference between the first value and the update rate, and multiply the sample multimodal prototype vector corresponding to the sample data category before the update by the difference to obtain the second multimodal prototype vector; The first multimodal prototype vector and the second multimodal prototype vector are added together to obtain the updated sample multimodal prototype vector corresponding to the sample data category.
8. The pipeline data annotation method based on multimodal prototype alignment according to claim 1, characterized in that, Determining the target category label of the target data segment based on the vector similarity corresponding to the target data segment and the sample category label corresponding to the sample data category includes: Based on the multiple vector similarities corresponding to the target data fragment, a first candidate category and a second candidate category are determined from the multiple sample data categories, and the ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category is calculated. The first candidate category corresponds to the maximum value among the multiple vector similarities, and the second candidate category corresponds to the second maximum value among the multiple vector similarities. If the ratio is greater than or equal to a preset threshold, the sample category label corresponding to the first candidate category is determined as the target category label of the target data segment.
9. The pipeline data annotation method based on multimodal prototype alignment according to claim 8, characterized in that, After calculating the ratio of the vector similarity corresponding to the first candidate category to the similarity corresponding to the second candidate category, the method further includes: If the ratio is less than a preset threshold, the target data segment is marked as a low-confidence sample and the low-confidence sample is added to the manual review queue. In response to receiving the results of a manual review of the low-confidence sample, the low-confidence sample is processed according to the results of the manual review.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the pipeline data annotation method based on multimodal prototype alignment as described in any one of claims 1-9.
