Unstructured data processing method in RPA system
By extracting the geometric, semantic and spatiotemporal features of images in the RPA system to generate fusion feature vectors, and using a two-dimensional similarity calculation strategy, the problem of accuracy and low efficiency of unstructured image processing in the prior art is solved, and the rapid development of the and accurate image retrieval reduces storage and management costs.
Patent Information
- Application Number
- CN202411080468.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When processing unstructured image data, existing RPA systems have low accuracy and efficiency, require manual intervention, and are costly to store and manage, making it difficult to achieve fully automated image processing.
The image retrieval and target recognition method based on fusion semantic features is adopted to generate fusion feature vectors by extracting the geometric, semantic and spatiotemporal features of the image, and a two-dimensional similarity calculation strategy for fusion of spatiotemporal distance and feature distance is used to achieve rapid retrieval and matching.
It improves the accuracy and efficiency of image processing, saves storage resources, realizes fast and accurate retrieval of unstructured data, and reduces the need for manual intervention.
Smart Images

Figure CN119046485A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical fields of RPA systems, image retrieval and recognition, and more particularly to a method for processing unstructured data in an RPA system. Background Art
[0002] RPA (Robotic Process Automation) system, or Robotic Process Automation system, is a technology used to automate repetitive tasks. RPA systems are currently widely used in business processes with highly standardized scenarios and many repetitive operations. The current RPA system has a relatively ideal processing effect on structured data such as text, but it is not very effective for unstructured data such as images and sounds. This is because the RPA system is mainly based on matching rules and templates, and often cannot correctly process data without a clear structure. This results in the need for manual intervention or specialized data processing tools in some business processes, which limits the scope of RPA application. At present, for unstructured image data, the RPA system mainly obtains images by using screenshots, and then identifies image elements based on image recognition technologies such as OCR. For the target image data that needs to be matched, image feature matching retrieval is performed through the image data in the target image library to perform image matching.
[0003] The unstructured image processing technology currently used has the following shortcomings:
[0004] 1) As a type of unstructured data, images contain large amounts of complex information and are relatively difficult to process. Existing image processing technology may not be able to accurately identify and analyze all the information in an image, especially when processing images containing a large number of details and features. The accuracy and efficiency of the technology need to be improved.
[0005] 2) Image data usually takes up a large amount of storage space. As the amount of data continues to grow, the cost of storage and management also increases. In addition, due to the unstructured nature of image data, it is also challenging to effectively index, retrieve, and update it.
[0006] 3) Existing technologies still have difficulty in achieving fully automated image processing and analysis. When processing complex image tasks, human intervention and assistance are still required, which reduces processing efficiency. Summary of the invention
[0007] Based on the defects and shortcomings of the prior art, the present invention mainly provides an image retrieval and target recognition method based on fusion semantic features for the RPA system, aiming to save storage resources and improve search speed and accuracy on the basis of overcoming the defects of the prior art.
[0008] In this solution, first, feature vectors are extracted from unstructured data (mainly image data) and stored in a feature vector database. Secondly, a dual-dimensional similarity calculation strategy that integrates spatiotemporal distance and feature distance is introduced into the RPA system to achieve rapid retrieval of unstructured data. Then, the RPA system compares the spatiotemporal similarity and semantic feature similarity of unstructured data through dual-dimensional features and performs corresponding operations. This effectively improves the accuracy of the RPA system in processing unstructured data such as images.
[0009] In the present invention, the image data in the RPA system is stored separately in the image database and the vector database, and the image features are quickly searched through the vector database. The feature vector integrates spatiotemporal features, semantic features, and geometric features at the same time, and can realize the rapid search of images according to different requirements such as time, space, semantics, and geometric shapes. A calculation scheme for fusion feature distance is defined to realize the rapid search of the best matching image under fuzzy description.
[0010] The present invention specifically adopts the following technical solutions:
[0011] A method for processing unstructured data in an RPA system: extracting geometric features, semantic features, and spatiotemporal features from image data in the RPA system, generating a fused feature vector, and storing the vector vector in a vector database; and searching and matching similar images based on the vector database.
[0012] Furthermore, the basis for searching similar images is to match the similarity of features, and the calculation method is:
[0013] Assume A is the fusion feature vector of the image to be matched, and B is the fusion feature vector of the target image. The similarity t is expressed by the distance between the feature vectors as:
[0014] D=f1*D1+f2*D2+f3*D3+f4*D4
[0015] Among them, D1 is the temporal feature distance between A and B, D2 is the spatial feature distance, D3 is the semantic feature distance, and D4 is the geometric feature distance; f1, i2, f3, and f4 represent the weights of the temporal and spatial distance, semantic distance, and geometric feature distance, respectively.
[0016] Furthermore, when searching for similar images, one or more features are allowed to be selected: when the retrieval feature contains only one feature, the corresponding feature weight is 1, and the rest are 0; when it contains two features, the corresponding feature weight is 0.5, and the rest are 0; when it contains three features, the corresponding feature value is 1 / 3, and the rest are 0; when it contains 4 features, the corresponding value is 0.25.
[0017] Furthermore, the temporal feature distance is obtained by subtracting the temporal features corresponding to the matching image and the target image:
[0018] D1=|T B -T A |
[0019] Spatial feature distance is determined by geographic distance:
[0020] ΔL=R*arccos(sin(latA))*sin(latB)+cos(latA)*cos(latB)*cos(lonB-lonA))
[0021] Where latA and latB are the latitudes of the two image shooting points, lonA and lonB are the longitudes of the two image shooting points, and R is the radius of the earth. The calculated geographic distance is further normalized according to the given allowable distance difference. Assuming that the allowable distance difference is Δl, then
[0022]
[0023] The semantic feature distance is determined by the cosine distance:
[0024]
[0025] Among them, A i and B i are the semantic features of the two images respectively;
[0026] The geometric feature distance is determined as follows:
[0027] Generate a feature point set O based on the corresponding feature matching points of the two images A and O B , respectively calculate the centroid coordinates of the two feature point sets, and regenerate the feature point set O with the centroid coordinates as the origin A and O B The coordinates of are (A ix , A iy ) and (B ix , B iy ), then calculate the Euclidean distance between each pair of coordinates and sum them up to get the geometric feature distance:
[0028]
[0029] Where n is the number of feature pairs and δ is the maximum allowable distance difference.
[0030] Furthermore, the method for extracting geometric features is as follows: first, the DnCNN denoising network is used to remove image noise, and the super-resolution technology is used to enhance image details, and then the image is binarized using an adaptive threshold method; the SuperPoint feature point detection algorithm and Harris corner point detection are applied, and the random forest ensemble learning method is used to select and optimize the corner points to obtain image stable corner points; the DeepDesc feature descriptor is used to describe the detected feature points to generate a geometric feature vector.
[0031] Furthermore, the method for extracting semantic features is as follows: first, a semantic vocabulary is defined, and semantic words that may appear in the RPA system are saved in the semantic vocabulary; then, an image semantic recognition model is used to recognize the image, and the objects appearing in the image are matched with the semantic vocabulary; if the match is successful, the objects are added to the text data corresponding to the image; finally, information including the image title, description, and label are synchronously added to the image text information to establish an association between the image and the text; based on the bag-of-words model, the semantic text information of the image is converted into a semantic feature vector.
[0032] Furthermore, feature vectors are retrieved and generated based on the feature retrieval conditions given by the RPA system, and features are searched and matched through the vector database: the feature vector is retrieved through feature description, and retrieval vector features are generated based on the template image. They are compared with the image fusion feature vector in the vector database, and the optimal matching image is determined based on the feature distance to achieve the search for similar images.
[0033] Furthermore, the vector database is independent of the image database.
[0034] Furthermore, the fused feature vector is constructed and obtained in the order of spatiotemporal features, semantic features and geometric features.
[0035] And, an RPA system adopts the above method when searching or matching similar images.
[0036] Compared with the image retrieval and matching solutions in traditional RPA systems, the present invention and its preferred solution are more universal and can meet various matching and search requirements by fusing feature vector representations, solving the problem of heterogeneous retrieval of unstructured image data. At the same time, compared with traditional recognition solutions such as OCR, this solution has faster recognition speed and higher semantic accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0038] Figure 1 The figure is a schematic diagram of the implementation process of the embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the features and advantages of this patent more obvious and easy to understand, the following embodiments are specifically described in detail as follows:
[0040] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. The components described and shown in the drawings generally herein can be designed in combination with different configurations. Therefore, the following detailed description of the selected embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but only represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present invention.
[0041] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0042] like Figure 1 As shown, the construction process of the overall solution included in the unstructured data processing method in the RPA system provided by an embodiment of the present invention is as follows:
[0043] S1, obtaining existing images from the image database one by one, and extracting geometric features of corresponding images;
[0044] The specific geometric feature extraction method is:
[0045] Firstly, the DnCNN denoising network is used to remove image noise, and the super-resolution technology is used to enhance the image details. Then, the adaptive threshold method is used to binarize the image. The SuperPoint feature point detection algorithm and Harris corner point detection are applied, and the random forest ensemble learning method is used to select and optimize the corner points to obtain the stable corner points of the image. The DeepDesc feature descriptor is used to describe the detected feature points to generate a feature vector with strong distinguishability.
[0046] S2, further extract semantic information from the image in S1 and generate a semantic feature vector;
[0047] The specific semantic feature extraction method is:
[0048] First, define a semantic vocabulary and save the semantic words that may appear in the RPA system in the semantic vocabulary. Then, use existing image recognition libraries such as YOLO to perform semantic recognition on the image and match the objects appearing in the image with the semantic vocabulary. If the match is successful, add it to the text data corresponding to the image. Finally, add the image title, description, label and other information to the image text information synchronously to establish the association between the image and the text. Then, based on the bag-of-words model, convert the image's semantic text information into a semantic feature vector.
[0049] S3, obtaining the spatiotemporal information such as the shooting realization and shooting location of the current image, and generating a spatiotemporal feature vector;
[0050] The specific method for generating the spatiotemporal feature vector is to normalize the time representation based on the retrieval time interval [t0, tn] set by the RPA system, that is, the current time feature ti is expressed as Ti = (ti-t0) / (tn-t0); the spatial feature is normalized according to longitude and latitude to generate a spatial feature vector.
[0051] S4. Fuse the geometric features, semantic features and spatiotemporal features corresponding to the image to generate a fused feature vector and store it in a vector database.
[0052] The fused feature vector is constructed in the order of [spatiotemporal feature|semantic feature|geometric feature]. For the fused feature vector of the image, matching can be performed based on single features such as time, location, semantics and geometric shape, or fusion feature similarity matching can be performed. The similarity calculation method is:
[0053] Assume A is the fusion feature vector of the image to be matched, and B is the fusion feature vector of the target image. The similarity t is expressed by the distance between the feature vectors as:
[0054] D=f1*D1+f2*D2+f3*D3+f4*D4
[0055] Among them, D1 is the temporal feature distance between A and B, D2 is the spatial feature distance, D3 is the semantic feature distance, and D4 is the geometric feature distance; f1, f2, f3, and f4 represent the weights of the temporal and spatial distances, semantic distances, and geometric feature distances, respectively. When the retrieval feature contains only one feature, the corresponding feature weight is 1, and the rest are 0; when it contains two features, the corresponding feature weight is 0.5, and the rest are 0; when it contains three features, the corresponding feature value is 1 / 3, and the rest are 0; when it contains four features, the value is 0.25.
[0056] The time feature distance is directly obtained by subtracting the corresponding time features:
[0057] D1=|T B -T A |
[0058] Spatial feature distance is determined by geographic distance:
[0059] ΔL=R*arccos(sin(latA)*sin(latB)+cos(latA)*cos(latB)*cos(lonB-lonA))
[0060] Where latA and latB are the latitudes of the image shooting point, lonA and lonB are the longitudes of the image shooting point, and R is the radius of the earth. The calculated distance is normalized according to the given allowable distance difference. Assuming the allowable distance difference is Δl, then
[0061]
[0062] The semantic feature distance is determined by the cosine distance:
[0063]
[0064] The geometric feature distance is determined as follows:
[0065] First, image feature matching is performed based on the feature vectors of images A and B to generate the corresponding feature matching points of the two images. The corresponding feature matching points of the two images generate a feature point set O A and O B , and then calculate the centroid coordinates of the two feature point sets respectively, and use the centroid coordinates as the origin to regenerate the feature point set O A and O B Coordinates
[0066] Then directly calculate the Euclidean distance between feature points and sum them up to get the geometric feature distance
[0067]
[0068] Where n is the number of feature pairs and δ is the maximum allowable distance difference.
[0069] S5. Retrieve and generate feature vectors based on the feature retrieval conditions given by the RPA system, and quickly search and match features through the vector database.
[0070] The retrieval feature vector generates retrieval vector features based on the template image according to the rules described in S4 through feature description, and compares it with the image fusion feature vector in the vector database, and determines the best matching image based on the feature distance to achieve fast search of similar images.
[0071] The logic program design scheme in the above scheme provided in this embodiment can be stored in a computer-readable storage medium in a coded form and implemented in the form of a computer program, and the basic parameter information required for calculation is input through computer hardware, and the calculation result is output.
[0072] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0073] The present invention is described with reference to methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes.
[0074] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes.
[0075] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes.
[0076] The above is only a preferred embodiment of the present invention, and does not limit the present invention in other forms. Any technician familiar with the profession may use the above disclosed technical content to change or modify it into an equivalent embodiment with equivalent changes. However, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still belongs to the protection scope of the technical solution of the present invention.
[0077] This patent is not limited to the above-mentioned optimal implementation mode. Anyone can derive other various forms of unstructured data processing methods in an RPA system under the inspiration of this patent. All equal changes and modifications made according to the scope of the patent application of the present invention should be covered by this patent.
Claims
1. A method for processing unstructured data in an RPA system, characterized by: The image data in the RPA system is extracted by geometric features, semantic features, and spatiotemporal features to generate a fused feature vector, which is then stored in the vector database. And based on the vector database, similar images are searched and matched.
2. The method for processing unstructured data in an RPA system according to claim 1, characterized in that: The basis for searching similar images is to match the similarity of features, and the calculation method is: Assume A is the fusion feature vector of the image to be matched, and B is the fusion feature vector of the target image. The similarity t is expressed by the distance between the feature vectors as: D=f1*D1+f2*D2+f3*D3+f4*D4 Among them, D1 is the temporal feature distance between A and B, D2 is the spatial feature distance, D3 is the semantic feature distance, and D4 is the geometric feature distance; f1, f2, f3, and f4 represent the weights of the temporal and spatial distance, semantic distance, and geometric feature distance, respectively.
3. The method for processing unstructured data in an RPA system according to claim 2, characterized in that: When searching for similar images, one or more features are allowed to be selected: when the retrieval feature contains only one feature, the corresponding feature weight is 1, and the rest are 0; when it contains two features, the corresponding feature weight is 0.5, and the rest are 0; when it contains three features, the corresponding feature value is 1 / 3, and the rest are 0; when it contains 4 features, the corresponding value is 0.
25.
4. The method for processing unstructured data in an RPA system according to claim 2, characterized in that: The temporal feature distance is obtained by subtracting the temporal features corresponding to the matching image and the target image: D1=|T B -T A | Spatial feature distance is determined by geographic distance: ΔL=R*arccos(sin(latA)*sin(latB)+cos(latA)*cos(latB)*cos(lonB-lonA)) Where latA and latB are the latitudes of the two image shooting points, lonA and lonB are the longitudes of the two image shooting points, and R is the radius of the earth. The calculated geographic distance is further normalized according to the given allowable distance difference. Assuming that the allowable distance difference is Δl, then The semantic feature distance is determined by the cosine distance: Among them, A i and B i are the semantic features of the two images respectively; The geometric feature distance is determined as follows: Generate a feature point set O based on the corresponding feature matching points of the two images A and O B , respectively calculate the centroid coordinates of the two feature point sets, and regenerate the feature point set O with the centroid coordinates as the origin A and O B The coordinates of are (A ix , A iy ) and (B ix , B iy ), then calculate the Euclidean distance between each pair of coordinates and sum them up to get the geometric feature distance: Where n is the number of feature pairs and δ is the maximum allowable distance difference.
5. The method for processing unstructured data in an RPA system according to claim 1, characterized in that: The geometric feature extraction method is as follows: first, the DnCNN denoising network is used to remove image noise, and the image details are enhanced by using super-resolution technology, and then the image is binarized by using an adaptive threshold method; the SuperPoint feature point detection algorithm and Harris corner point detection are applied, and the random forest ensemble learning method is used to select and optimize the corner points to obtain image stable corner points; The DeepDesc feature descriptor is used to describe the detected feature points and generate geometric feature vectors.
6. The method for processing unstructured data in an RPA system according to claim 1, characterized in that: The method for extracting semantic features is as follows: first, a semantic word library is defined, and semantic words that may appear in the RPA system are stored in the semantic word library. Then, an image semantic recognition model is used to recognize the image, and the objects appearing in the image are matched with the semantic word library. If the match is successful, the objects are added to the text data corresponding to the image. Finally, information including the image title, description, and label is synchronously added to the image text information to establish an association between the image and the text. The semantic text information of the image is converted into a semantic feature vector based on the bag-of-words model.
7. The method for processing unstructured data in an RPA system according to claim 1, characterized in that: Based on the feature retrieval conditions given by the RPA system, feature vectors are retrieved and generated, and features are searched and matched through the vector database: the feature vector is retrieved through feature description, and retrieval vector features are generated based on the template image. They are compared with the image fusion feature vector in the vector database, and the optimal matching image is determined based on the feature distance to achieve the search of similar images.
8. The method for processing unstructured data in an RPA system according to claim 1, characterized in that: The vector database is independent of the image database.
9. The method for processing unstructured data in an RPA system according to claim 1, characterized in that: The fused feature vector is constructed and obtained in the order of spatiotemporal features, semantic features and geometric features.
10. An RPA system, characterized in that: When searching or matching similar images, the method described in any one of claims 1 to 9 is adopted.
Citation Information
Patent Citations
High-resolution remote sensing image search method fused with spatial relation semantics
CN101692224A
Remote sensing image retrieval method based on feature selection and semi-supervised learning
CN101853304A
Method and device for retrieving image and retrieval service utilizing it
JP1999039332A
