Intelligent classification model training method and application method
The optical character recognition model is used to extract camera OSD information and build a mapping annotation data set. The Transformer model is used for multi-modal training, which solves the high cost and familiarity requirements of urban camera image classification and annotation, and achieves efficient and accurate urban image segmentation. Model building.
Patent Information
- Application Number
- CN202411154898.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the classification and annotation of urban camera images has problems such as the inability to perceive the segmented content, difficulty in identifying buildings with unobvious features, high cost of massive manual annotation, and high requirements for annotators to be familiar with the geographical environment, resulting in high data annotation costs. And it is difficult to construct accurate training data.
The optical character recognition model is used to extract OSD information in the camera, and a mapping annotation data set of images and text is constructed. Multi-modal training is performed through the Transformer model to generate an intelligent classification model and automatically build a structured model for urban image segmentation.
It achieves automatic annotation of massive urban data and multi-modal data alignment, reduces data annotation costs, and improves the efficiency and accuracy of urban image classification and segmentation models.
Smart Images

Figure CN118658020A
Abstract
Description
Technical Field
[0001] The present application relates to the field of large multimodal image models, and in particular to a training method and an application method of an intelligent classification model. Background Art
[0002] With the construction and convergence of camera equipment in many fields such as public safety, social life, environmental protection, and safe production in cities, how to classify and label the massive and complex camera images in the city has become a major issue facing urban camera applications. The main problems are as follows: (1) It is impossible to perceive the segmented content of the camera image (buildings, water areas, traffic, mountains, etc.); (2) Existing visual recognition cannot specifically identify the segmented content (for example, it is difficult to identify whether a building with unclear features is a commercial building or an administrative building); (3) Massive manual labeling costs are required; and (4) Urban images require the labelers to be very familiar with the geographical environment.
[0003] In the related technologies, the data in the visual model training process is usually manually labeled and trained, which requires a lot of data preparation, personnel training, data review, model training and model testing. In each link, a lot of manual participation is required, and the personnel's skills and expert experience in data are very high. For example, in the data preparation stage: the image data and picture information descriptions of massive cameras are collected offline, which need to be manually sorted and classified. In the data labeling stage: it is necessary to specify massive urban scene data analysis and data specifications, and personnel training is required. When labeling, the picture data needs to be checked one by one and labeled and segmented. In the labeling review stage: it is necessary to have experienced personnel who are very familiar with the urban picture scenes to check one by one or spot check. Once there is an error, the cost of troubleshooting and correction is extremely high. In the training and testing stage: a large amount of correct data is required for testing and evaluation. Therefore, related technologies not only have extremely high costs for data preparation (image data and image information data), but also require offline data collection and manual labeling, which, when out of a safe environment, will pose a threat to the security of public video data. In addition, data labeling is highly dependent on personnel experience, requiring personnel who are extremely familiar with urban environments and multi-disciplinary and multi-departmental domain knowledge, making it difficult to construct a large amount of accurate training data.
[0004] In summary, there is an urgent need for a more efficient automatic annotation training method for urban image segmentation models to support the construction of segmentation structured models for massive urban visual perception images and reduce data annotation costs. Summary of the invention
[0005] In view of this, the present invention provides a training method and an application method of an intelligent classification model. In the first aspect, an embodiment of the present application provides a training method of an intelligent classification model, the method comprising: obtaining image data collected by multiple intelligent cameras, the image data comprising: a first image and display information located in the first image; extracting the display information in the image data as text information through an optical character recognition model; constructing a mapping and annotation data set based on the text information; inputting the mapping and annotation data set into a Transformer model for multimodal training to obtain the intelligent classification model.
[0006] In some embodiments, the optical character recognition model includes: a convolution backbone, a convolution transformation block and a loss function. Correspondingly, extracting the display information through the optical character recognition model to obtain text information includes: extracting multiple visual feature vectors of the first image in the picture data through the convolution backbone, and dividing each visual feature vector into multiple image block vectors; inputting the multiple image block vectors into the convolution transformation block, and obtaining a modeling result after multiple convolutions using a multi-head attention mechanism; and performing image recognition decoding on the modeling result using a loss function to obtain the text information.
[0007] In some embodiments, the convolution transform block includes a linear layer, a multi-head attention layer and a normalization layer. Correspondingly, the multiple image block vectors are input into the convolution transform block, and the modeling result is obtained after multiple convolutions are performed using a multi-head attention mechanism, including: the multiple image block vectors are input into the convolution transform block, and linear operations are performed through a linear layer to obtain the Q, K, and V vectors of each image block vector; multiple convolutions are performed on each image block vector using multi-head attention and then output to a normalization layer; and the modeling result of each image block vector is obtained through a normalization layer.
[0008] In some embodiments, constructing a mapping annotation dataset based on the text information includes: identifying associated information of the text information based on the text information; aligning the text information and the associated information to form text data; aligning the text data with the first image to construct the mapping annotation dataset.
[0009] In some embodiments, the Transformer model includes an image encoding module and a text encoding module. Correspondingly, the step of inputting the mapped annotation data set into the Transformer model for multimodal training includes: encoding the first image through the image encoding module to obtain an encoded image; encoding the text data through the text encoding module to obtain an encoded text; and using the encoded image and the encoded text as outputs of the Transformer model for multimodal training.
[0010] In some embodiments, the image encoding module includes a self-attention layer and a first feedforward neural network layer, and the text encoding module encodes the text data multiple times to obtain the encoded text data, including: performing self-attention processing on the first image through the self-attention layer, and processing the output of the self-attention layer through the first feedforward neural network layer to obtain the encoded image.
[0011] In some embodiments, the text encoding module includes: a bidirectional self-attention layer, a cross-attention layer and a second feedforward neural network layer. Correspondingly, the text data is encoded multiple times by the text encoding module to obtain encoded text, including: performing self-attention processing on the text data through the bidirectional self-attention layer and the cross-attention layer in sequence, and processing the output of the cross-attention layer through the second feedforward neural network layer to obtain the encoded text.
[0012] In a second aspect, an embodiment of the present application provides an application method of an intelligent classification model, the application method comprising: receiving image data to be extracted, identifying the image data to be extracted through an intelligent classification model, and obtaining graphic and text annotation information corresponding to the image data to be extracted; the intelligent classification model is trained through the training method of the intelligent classification model described in any one of the above items.
[0013] In a third aspect, an embodiment of the present application provides a training device for an intelligent classification model, the device comprising: an acquisition module, used to acquire image data collected by multiple intelligent cameras, the image data comprising: a first image and display information located in the first image; an optical character recognition model, used to extract the display information through the optical character recognition model to obtain text information; a construction module, used to construct a mapping annotation data set based on the text information; a training module, used to input the mapping annotation data set into a Transformer model for multimodal training to obtain the intelligent classification model.
[0014] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a training or application method as described in any one of the above.
[0015] The present invention uses OCR (Optical Character Recognition) technology to extract OSD information (On-Screen Display) in the camera, including administrative information, time information, geographic information, place names and other screen information (such as door information, road sign information, banner information, etc.). It can automatically build a mapping annotation dataset of images and texts, automatically align graphic information, and build training data for intelligent classification models. It can be used in application scenarios such as the Transformer model architecture of multimodal technology (image + text), and build efficient and accurate urban image intelligent classification models. Improve the ability of automatic annotation and multimodal data alignment in massive urban data. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the process of the training method of the intelligent classification model provided in Example 1 of the present application; Figure 2 A schematic diagram of the process of the method provided in Example 2 of the present application; Figure 3 A schematic diagram of the process of extracting display information by the optical character recognition model in Example 2 of the present application; Figure 4 A schematic diagram of the Transformer model architecture provided in Example 2 of the present application; Figure 5 A schematic diagram of the composition of the intelligent classification model provided in Example 3 of the present application; Figure 6 A schematic diagram of the composition of the intelligent classification model training device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0017] The specific implementation of the present invention will be described in more detail below in conjunction with the schematic diagram. The advantages and features of the present invention will become clearer based on the following description. It should be noted that the drawings are all in a very simplified form and are not in exact proportions, and are only used to facilitate and clearly assist in explaining the purpose of the embodiments of the present invention.
[0018] Embodiment 1 Embodiment 1 of the present application provides a training method for an intelligent classification model, which generally adopts an online (user production system) to capture the camera, recognize the OCR of the image, and automatically construct a multimodal training data set for image + text information alignment based on the camera information, which can be used for scenarios such as online training of the multimodal model architecture. Figure 1 A process diagram of the training method of the intelligent classification model provided in Example 1 of the present application, see Figure 1The method comprises: step S101: acquiring image data collected by a plurality of intelligent cameras, wherein the image data comprises: a first image and display information in the first image; step S102: extracting the display information in the image data as text information through an optical character recognition model (OCR); step S103: constructing a mapping annotation data set based on the text information; step S104: inputting the mapping annotation data set into a Transformer model for multimodal training to obtain the intelligent classification model.
[0019] The embodiment of the present application utilizes OCR technology to extract OSD information (On-Screen Display) in the camera, including administrative information, time information, geographic information, place name and other screen information (such as door information, road sign information, banner information, etc.), automatically construct a mapping annotation dataset of images and texts, automatically align image and text information, and construct multimodal training data, which can be used in application scenarios such as multimodal technology (image + text) Transformer model architecture, and construction of efficient and accurate urban image classification and segmentation models.
[0020] Embodiment 2 Embodiment 2 of the present application provides a method for training an intelligent classification model. Figure 2 This is a schematic diagram of the method provided in Example 2 of the present application, refer to Figure 2 , the method comprising: Step S201: Acquire image data collected by multiple smart cameras, wherein the image data includes: a first image and display information located in the first image; here, the display information includes attribute information of the smart camera and text information and feature information in the screen of the first image. The attribute information of the smart camera is an external descriptive text library, such as: camera file: name, address, location, installation information, manufacturer information, etc., and can also be shooting time, shooting location, etc. The text information included in the first image includes, for example, xxx fruit shop, xxx street, etc. in the screen, and the feature information in the first image includes, for example, x pedestrians or x cars, etc.
[0021] Step S202: extracting the display information in the image data into text information through an optical character recognition model; Figure 3 FIG. 1 is a schematic diagram of a process in which an optical character recognition (OCR) model extracts display information in an embodiment of the present application. Figure 3 , the OCR model 300 includes three main parts: a convolution backbone 301, a convolution transform block 302 and a loss function 303. Step S202 is completed by the following steps: Step S221: extract multiple visual feature vectors of the first image in the picture data through the convolution backbone, and divide each visual feature vector into multiple image block vectors; here, the convolution backbone includes a feature extraction network for generating the visual feature vector.
[0022] Step S222: Input multiple image block vectors into the convolution transform block, and obtain the modeling result after multiple convolutions using the multi-head attention mechanism. Here, the convolution transform block includes a linear layer, a multi-head attention layer and a normalization layer. Step S222 includes: input multiple image block vectors into the convolution transform block, and obtain the Q, K, and V vectors of each image block vector by performing linear operations through the linear layer; use multi-head attention to perform multiple convolutions on each image block vector and output it to the normalization layer; obtain the modeling result of each image block vector through the normalization layer. Here, the multi-head attention includes multiple attention units, and each attention unit includes 3 linear layers as three fully connected layers, which are respectively used to process the image block vector to obtain the query (Query, Q) vector, the key (Key, K) vector and the value (Value, V) vector, that is, the aforementioned Q, K, V vectors. In some embodiments, NLP (Natural Language Processing) can also be used instead of the normalization layer to obtain the modeling result.
[0023] Step S223: Use a loss function to perform image recognition decoding on the modeling result to obtain the text information. Here, CTC loss is used as the loss function for recognition decoding, and network gradient optimization is performed to obtain text information. The text information here includes the text corresponding to the display information in the first image and the coordinates corresponding to the text.
[0024] Step S203: constructing a mapping annotation dataset based on the text information; here, step S203 is completed by the following steps: Step S231: Identify the associated information of the text information based on the text information; Step S232: Align the text information and the associated information to form text data; Step S233: Align the text data with the first image to construct the mapping annotation dataset. Here, by vectorizing the first image and text information, and then using the cross-modal attention mechanism to help the model automatically learn the correspondence between image and text, it is convenient for subsequent text-to-image and image-to-text data queries.
[0025] In the embodiment of the present application, the display information in the first image is first extracted as text information through the OCR model, such as the geographical information on the screen: province, city, district, county, street, etc., and address name, and other text: store name, traffic sign, promotional language, etc. The associated information is the inferred information related to the text information, for example, time is associated with afternoon or afternoon, store text is associated with street or address, the text information and the associated information are aligned to form text data, and the text data is used to establish a mapping annotation data set aligned with the first image.
[0026] Step S204: inputting the mapped annotation data set into the Transformer model for multimodal training to obtain the intelligent classification model.
[0027] Here, multimodal technologies such as BLIP (Boot strapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation) are used to perform multimodal training on the first image and text data using the Transformer model architecture to form an intelligent classification model for camera scene analysis. Figure 4 This is a schematic diagram of the Transformer model architecture, see Figure 4 The Transformer model 400 includes an image encoding module 401 and a text encoding module 402. The training process of the intelligent classification model includes multiple training cycles, each of which includes: Step S241: The first image is encoded by the image encoding module 401 to obtain an encoded image; the image encoding module 401 includes a self-attention layer 411 and a first feedforward neural network layer 412, the self-attention layer 411 performs self-attention processing on the first image, and the output of the self-attention layer is processed by the first feedforward neural network layer 412 to obtain an encoded image.
[0028] Here, the image data is input into the Transformer model. First, the self-attention layer in the image encoding module performs self-attention processing on the first image in the image data, and then the output of the self-attention layer is input into the first feedforward neural network for output processing to obtain the encoded image. Here, the self-attention layer and the first feedforward neural network perform the above processing multiple times respectively.
[0029] Step S242: Encode the text data through the text encoding module 402 to obtain encoded text; the text encoding module 402 includes: a bidirectional self-attention layer 421, a cross-attention layer 422 and a second feedforward neural network layer 423, and the text data is processed by the bidirectional self-attention layer and the cross-attention layer in turn, and the output of the cross-attention layer is processed by the second feedforward neural network layer to obtain the encoded text.
[0030] Step S242 can be performed simultaneously with step S241, or after step S241 is completed. Here, after the OCR recognition model, the text data corresponding to the display data in the image data is obtained, and the text data includes text information and associated information. The bidirectional self-attention layer and the cross self-attention layer in the text encoding module perform self-attention processing on the text data in turn. It is easy to understand that in the attention mechanism, the output vector of the previous encoding layer is used as the input vector of the next encoding layer, and the output of the cross-attention layer is processed by the second feedforward neural network to obtain the encoded text.
[0031] Step S243: The coded image and the coded text are used as the output of the Transformer model for multimodal training. The intelligent classification model obtained through training in steps S241 to S243 can be used for fast segmentation, recognition and description of the camera's picture content.
[0032] The training method of the intelligent classification model provided in the embodiment of the present application uses OCR (Optical Character Recognition) technology to extract OSD information (On-Screen Display) in the camera, including: administrative information, time information, geographic information, place name and other screen information (such as door information, road sign information, banner information, etc.). Automatically construct a mapping annotation data set of images and texts, automatically align image and text information, overcome the problem of manually annotating image and text data in related technologies, and construct training data for intelligent classification models. It can be used for multimodal technology (image + text) Transformer model architecture to build efficient and accurate urban image intelligent classification models. Improve the ability of automatic annotation and multimodal data alignment in massive urban data.
[0033] Example 3 The intelligent classification model trained by the training method provided in Example 1 or Example 2 plays an important role in extracting camera scene descriptions and quickly and accurately finding cameras in massive camera application scenarios, such as querying cameras with bank / intersection information in the screen. The intelligent classification model trained in this way can greatly improve the efficiency of camera application. The present application embodiment provides an application method of an intelligent classification model, and the application method includes: Receive image data to be extracted, identify the image data to be extracted through an intelligent classification model, and obtain graphic and text annotation information corresponding to the image data to be extracted; the intelligent classification model is trained by the training method of the intelligent classification model described in Example 1 or Example 2 of the present application.
[0034] Figure 5 The composition diagram of the intelligent classification model provided in Example 3 of the present application is shown in FIG. Figure 5 The intelligent classification model 500 includes a first image encoding module 501, a question encoding module 502 and an answer encoding module 503. The intelligent classification model 500 receives image data to be extracted from a camera. Here, the image data to be extracted includes images and texts. The image is encoded by the first image encoding module 501. The question encoding module 502 receives an input question, extracts keywords from the input question for question encoding, and obtains category features corresponding to the keywords. The category features are input into the answer encoding module 503. The answer encoding module 503 identifies the text in the image data to be extracted to obtain corresponding image and text annotation information, and outputs the annotation information related to the category features in the image and text annotation information to obtain an answer corresponding to the category features. For example, the intelligent classification model 500 receives a picture from the camera. At this time, the input question is: describe the location and scene features of the picture. At this time, the question encoding module 502 extracts the key words "location" and "scene" of the question, and inputs the key words "location" and "scene" into the answer encoding module 503. The answer encoding module 503 first extracts the text in the picture to obtain the image and text annotation information, and then outputs the annotation information related to the key words "location" and "scene" in the image and text annotation information, and obtains the answer: an intersection with many cars, and there is an xxx store.
[0035] Embodiment 4 The present application embodiment provides a training device for an intelligent classification model. Figure 6 A schematic diagram of the composition of the intelligent classification model training device provided in Example 4 of the present application, see Figure 6 , the device 600 comprises: An acquisition module 601 is connected to a plurality of intelligent cameras and is used to acquire image data collected by the plurality of intelligent cameras, wherein the image data includes: a first image and display information located in the first image; an optical character recognition model 602 is connected to the acquisition module 601 and is used to extract the display information in the image data to obtain text information when receiving the image data acquired by the acquisition module 601; a construction module 603 is connected to the optical character recognition model 602 and is used to construct a mapping annotation data set based on the text information; a training module 604 is connected to the construction module 603 and is used to input the mapping annotation data set into a Transformer model for multimodal training to obtain the intelligent classification model after receiving the mapping annotation data set constructed by the construction module 603.
[0036] In some embodiments, the optical character recognition model includes: a convolution backbone, a convolution transformation block and a loss function, wherein the convolution backbone is used to extract multiple visual feature vectors of a first image in the picture data, and divide each visual feature vector into multiple image block vectors; the convolution transformation block is used to input multiple image block vectors into the convolution transformation block, and obtain a modeling result after multiple convolutions using a multi-head attention mechanism; the loss function is used to perform image recognition decoding on the modeling result to obtain the text information.
[0037] In some embodiments, the convolution transform block includes a linear layer, a multi-head attention layer and a normalization layer. The linear layer is used to input multiple image block vectors into the convolution transform block, and perform linear operations through the linear layer to obtain the Q, K, and V vectors of each image block vector; the multi-head attention layer is used to perform multiple convolutions on each image block vector and output it to the normalization layer; the normalization layer is used to obtain the modeling result of each image block vector.
[0038] In some embodiments, the construction module is further used to identify associated information of the text information based on the text information, align the text information and the associated information to form text data, align the text data with the first image, and construct the mapping annotation dataset.
[0039] In some embodiments, the Transformer model includes an image encoding module and a text encoding module, the image encoding module is used to encode the first image to obtain an encoded image; the text encoding module is used to encode the text data to obtain encoded text; the encoded image and the encoded text are used as outputs of the Transformer model.
[0040] In some embodiments, the image encoding module includes a self-attention layer and a first feedforward neural network layer, the self-attention layer is used to perform self-attention processing on the first image, and the first feedforward neural network layer is used to process the output of the self-attention layer to obtain an encoded image.
[0041] In some embodiments, the text encoding module includes: a bidirectional self-attention layer, a cross-attention layer and a second feedforward neural network layer. The bidirectional self-attention layer and the cross-attention layer are used to perform self-attention processing on the text data, and the second feedforward neural network layer is used to process the output of the cross-attention layer to obtain encoded text.
[0042] Embodiment 5 The embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the training method or application method as described above.
[0043] In the embodiment of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the electronic device, and various interfaces and lines are used to connect various parts of the entire electronic device.
[0044] The memory can be used to store the computer program and / or module / unit, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module / unit stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory can include volatile and non-volatile memories, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other storage devices.
[0045] If the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0046] The above description is only the preferred embodiment of the present invention and is not intended to limit the present invention. Any technician familiar with the profession may make various changes, modifications, substitutions and variations to these embodiments without departing from the principle and purpose of the present invention. The scope of the present invention is defined by the claims and their equivalents.
Claims
1. A training method for an intelligent classification model, characterized in that: The method comprises: Acquire image data collected by multiple smart cameras, wherein the image data includes: a first image and display information of the first image; Extracting the display information in the image data as text information through an optical character recognition model; Constructing a mapping annotation dataset based on the text information; The mapping and annotation data set is input into the Transformer model for multimodal training to obtain the intelligent classification model.
2. The method according to claim 1, characterized in that The optical character recognition model includes: a convolution backbone, a convolution transformation block and a loss function. Correspondingly, extracting the display information through the optical character recognition model to obtain text information includes: extracting a plurality of visual feature vectors of a first image in the picture data through a convolution backbone, and dividing each visual feature vector into a plurality of image block vectors; Inputting multiple image block vectors into the convolution transformation block, and performing multiple convolutions using a multi-head attention mechanism to obtain a modeling result; The loss function is used to perform image recognition decoding on the modeling result to obtain the text information.
3. The method according to claim 2, characterized in that The convolution transformation block includes a linear layer, a multi-head attention layer and a normalization layer. Correspondingly, the multiple image block vectors are input into the convolution transformation block, and the modeling result is obtained after multiple convolutions using the multi-head attention mechanism, including: Input multiple image block vectors into the convolution transformation block, and perform linear operations through a linear layer to obtain Q, K, and V vectors of each image block vector; Multi-head attention is used to perform multiple convolutions on each image block vector and then output to the normalization layer; The modeling result of each image block vector is obtained through the normalization layer.
4. The method according to claim 3, characterized in that Constructing a mapping annotation dataset based on the text information includes: identifying associated information of the text information based on the text information; Aligning the text information and the associated information to form text data; The text data is aligned with the first image to construct the mapping annotation dataset.
5. The method according to claim 4, characterized in that The Transformer model includes an image encoding module and a text encoding module. Correspondingly, inputting the mapping annotation data set into the Transformer model for multimodal training includes: Encoding the first image by the image encoding module to obtain an encoded image; Encoding the text data by the text encoding module to obtain encoded text; The encoded image and the encoded text are used as outputs of the Transformer model for multimodal training.
6. The method according to claim 5, characterized in that The image encoding module includes a self-attention layer and a first feedforward neural network layer, and the text encoding module encodes the text data multiple times to obtain the encoded text, including: The first image is subjected to self-attention processing through the self-attention layer, and the output of the self-attention layer is processed through the first feedforward neural network layer to obtain an encoded image.
7. The method according to claim 6, characterized in that The text encoding module includes: a bidirectional self-attention layer, a cross-attention layer, and a second feedforward neural network layer. Correspondingly, the text data is encoded multiple times by the text encoding module to obtain the encoded text, including: The text data is processed by self-attention through a bidirectional self-attention layer and a cross-attention layer in sequence, and the output of the cross-attention layer is processed through a second feedforward neural network layer to obtain the encoded text.
8. An application method of an intelligent classification model, characterized in that: The application method comprises: Receiving image data to be extracted, identifying the image data to be extracted through an intelligent classification model, and obtaining graphic and text annotation information corresponding to the image data to be extracted; The intelligent classification model is trained by the training method of the intelligent classification model described in any one of claims 1-7.
9. A training device for an intelligent classification model, characterized in that: The device comprises: An acquisition module, used to acquire image data collected by multiple intelligent cameras, wherein the image data includes: a first image and display information located in the first image; An optical character recognition model, used for extracting the display information through the optical character recognition model to obtain text information; A construction module, used to construct a mapping annotation data set based on the text information; The training module is used to input the mapping and annotation data set into the Transformer model for multimodal training to obtain the intelligent classification model.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 7 or the application method according to claim 8.
