Ground object contour dual-mode identification AI engine generation and construction method, system and application
By constructing a dual-mode recognition AI engine for surface object contours, and using image cutting preprocessing and supervised training to optimize the model recognition accuracy, the problem of insufficient extraction accuracy of surface object contours in remote sensing data is solved, and high-precision recognition of surface object contours is achieved.
Patent Information
- Application Number
- CN202410757350.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technologies have problems such as inaccurate positioning, irregular boundaries and jagged edges when extracting the contours of features in remote sensing data. The recognition accuracy is insufficient and is greatly affected by the quality of the original data and the performance of the algorithm.
This paper proposes a method to generate and construct an AI engine for dual-mode recognition of ground object contours. By collecting different categories of ground object contour images for image cutting preprocessing, a coarse segmentation model and a fine segmentation model are constructed, and the annotated data set is used for supervised training and optimization of the model. Recognition accuracy, forming a fused surface object contour recognition engine.
It improves the accuracy of surface object contour recognition, reduces the impact of original data quality and algorithm performance on recognition accuracy, reduces the initial extracted surface object contour error, and achieves high-precision surface object image contour recognition.
Smart Images

Figure CN118608965A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of AI recognition technology, and in particular to a method for generating and constructing an AI engine for dual-mode recognition of terrain contours, and a system, application, and electronic device thereof. Background Art
[0002] As applications using artificial intelligence technologies become more popular, there are more and more application requirements, such as identifying the contour information of objects by inputting TIF images into applications installed in client devices. In some cases, the content of the TIF file includes but is not limited to one or more categories, such as houses, road networks, water systems, fields, forests, etc.
[0003] At present, there are three main methods for optimizing the contour of objects, but they also have corresponding technical difficulties:
[0004] One is to use the circumscribed rectangle method. For example, the optimal circumscribed rectangle is used to perform primary optimization on the building feature outline extracted from the remote sensing image, and then the Shi-Tomasi algorithm is used to perform in-depth optimization on the local concave outline. This type of method can obtain a relatively regular feature outline, but it often has the problem of a large area, and most of them are only applicable to right-angle features.
[0005] The second is the method based on the main direction. For example, the Douglas-Peucker algorithm (DP algorithm) and the least squares method are used to determine the key points of the object contour, and the longest side is used as the main direction to regularize the object boundary line. This type of method is affected by multiple thresholds, and the accuracy of the optimization result is directly determined by the main direction, and the position offset of the object contour generated after optimization is not considered.
[0006] The third method is based on data combination. For example, the rough outline and edge segments of the building are obtained based on point cloud data and images respectively, and the final outline of the object is obtained after edge line filtering, rough outline correction and outline corner restoration. The features of point cloud data and orthophotos are used to extract buildings and standardize the outline of objects, effectively solving the problems of object detection errors and local occlusion of objects. This type of method can effectively utilize the advantages of both types of data and can solve the problem of local occlusion to a certain extent, but it is greatly affected by the threshold and has high requirements on the quality of image data, and is not very adaptable.
[0007] Therefore, in general, the accuracy of the size, position and shape of the extracted object contours is often affected by the quality of the original data (low image resolution, occlusion of objects and low positioning accuracy, etc.) and the algorithm performance, resulting in errors in the initial extracted object contours and the need to improve recognition accuracy. Summary of the invention
[0008] In order to solve the problems of inaccurate position, irregular boundaries, jagged edges, etc. in the above-mentioned prior art for extracting the contours of objects from remote sensing data, the present application proposes a method for generating and constructing an AI engine for dual-mode recognition of contours of objects, and its system, application, and electronic device.
[0009] On the one hand, the present application proposes a method for generating and constructing an AI engine for dual-mode recognition of ground feature contours, comprising the following steps:
[0010] Collect different types of ground feature contour images and use preset image compression pixels to perform image cutting preprocessing to obtain the corresponding training sample set K;
[0011] Based on the training sample set K, a corresponding rough segmentation model is generated by using a supervised model training;
[0012] Based on the training sample set K′ obtained by cutting the image at a preset fixed pixel and the prediction result of K by the rough segmentation model, a corresponding fine segmentation model is generated by using a supervised model training;
[0013] Constructing test sets corresponding to the training sample set K and the training sample set K′ respectively, optimizing and iteratively training the coarse segmentation model and the fine segmentation model respectively, and constructing corresponding coarse segmentation recognition models and fine segmentation recognition models;
[0014] The rough segmentation recognition model and the fine segmentation recognition model are associated to obtain the terrain feature contour recognition engine.
[0015] As an optional implementation scheme of the present application, optionally, different types of ground feature contour images are collected and image cutting preprocessing is performed using preset image compression pixels to obtain a corresponding training sample set K, including:
[0016] Collect different types of ground feature contour images, obtain the complete image k1 in each ground feature image and annotate it to get k0:
[0017] K0=K1+K mark;
[0018] According to the preset coarse segmentation pixel image, the marked complete image k1 is subjected to image cutting processing to obtain a plurality of cut segmentation images k2;
[0019] Identify the cutting contour area in the segmentation map k2, and mark the cutting area as a corresponding category of the ground feature cutting contour map k3;
[0020] After processing, the labeled training set K is obtained:
[0021] K=k2+k3.
[0022] As an optional implementation scheme of the present application, optionally, based on the training sample set K, a supervised model is used to train and generate a corresponding rough segmentation model, including:
[0023] Labeling the segmentation map k2 and the object cutting contour map k3 corresponding to different categories in the training sample set K;
[0024] The object cutting contour map k is input into a preset supervised training model for training to generate a coarse segmentation model that can identify the corresponding category and the corresponding k2 and k3 features.
[0025] As an optional implementation scheme of the present application, optionally, based on the training sample set K′ obtained by cutting the image at a preset fixed pixel and the prediction result of K by the coarse segmentation model, a supervised model is used to train and generate a corresponding fine segmentation model, including:
[0026] Prepare a prediction image set and import it into the coarse segmentation model;
[0027] Collect the prediction results of the coarse segmentation model: k (prediction);
[0028] The complete image in the training sample set K is cut using preset fixed pixels to obtain k2', and then the cut contour area of k2' is identified to obtain k3', which is combined with k (prediction) to form a training set and input into a preset supervised training model for training, thereby generating a refined segmentation model that can identify the k2' and k3' features of the corresponding k (prediction).
[0029] As an optional implementation of the present application, optionally, the image compression pixel is: (2048*0.1 / cell_size / 512)*512;
[0030] The fixed pixel of the image is: 1024*1024.
[0031] As an optional implementation scheme of the present application, optionally, test sets corresponding to the training sample set K and the training sample set K′ are respectively constructed, and the coarse segmentation model and the fine segmentation model are respectively optimized and iteratively trained to construct corresponding coarse segmentation recognition models and fine segmentation recognition models, including:
[0032] Presetting optimization iteration conditions of the coarse segmentation model and the fine segmentation model respectively;
[0033] Using the constructed first test set corresponding to the training sample set K as training data, performing supervised model training on the coarse segmentation model to generate a corresponding coarse segmentation recognition model;
[0034] Process k2 and k3 in the first test set according to the fixed pixels of the image, and use them together with the output result of the coarse segmentation recognition model to construct a second test set;
[0035] Using the second test set as training data, performing supervised model training on the fine segmentation model to generate a corresponding fine segmentation recognition model;
[0036] The model files of the coarse segmentation recognition model and the fine segmentation recognition model are respectively saved in a background database.
[0037] On the other hand, the present application proposes a system for generating and constructing a terrain contour recognition engine, which is used to implement a method for generating and constructing a terrain contour dual-mode recognition AI engine, including:
[0038] A data acquisition unit is used to collect contour images of different categories of objects and perform image cutting preprocessing using preset image compression pixels to obtain a corresponding training sample set K;
[0039] A first training unit is configured to generate a corresponding rough segmentation model by using a supervised model training based on the training sample set K; and generate a corresponding fine segmentation model by using a supervised model training based on the training sample set K′ obtained by cutting the image under a preset fixed pixel and the prediction result of the rough segmentation model for K;
[0040] The second training unit is used to construct test sets corresponding to the training sample set K and the training sample set K′, respectively, and optimize and iterate the coarse segmentation model and the fine segmentation model to construct corresponding coarse segmentation recognition models and fine segmentation recognition models;
[0041] The associating unit is used to associate the coarse segmentation recognition model with the fine segmentation recognition model to obtain the ground feature contour recognition engine.
[0042] On the other hand, the present application also proposes an application method of a ground object contour recognition engine, wherein the ground object contour recognition engine is generated by using the generation and construction method of the ground object contour dual-mode recognition AI engine described above, and comprises the following steps:
[0043] Collecting ground feature contour images;
[0044] Preprocessing the image cut of the ground feature contour;
[0045] Importing the preprocessed object contour image into the object contour recognition engine, and using a coarse segmentation recognition model and a fine segmentation recognition model in the object contour recognition engine to respectively recognize the object contour of the object contour image of the category and the vector graphics corresponding to the object contour;
[0046] According to the categories, the vector graphics of the ground object contours of the same category are merged to generate and output the recognition result corresponding to the ground object contour image.
[0047] In another aspect, the present application further provides an electronic device, comprising:
[0048] processor;
[0049] a memory for storing processor-executable instructions;
[0050] Wherein, the processor is configured to implement the application method when executing the executable instructions.
[0051] Technical effects of the present invention:
[0052] This application extracts the corresponding segmentation and cutting contour images after segmenting the different categories of ground object images, and uses them to construct the corresponding coarse segmentation model and fine segmentation model, respectively, so as to identify the cutting contours of ground object images of different categories and the segmented images segmented by the cutting contours. Combined with the labeled data set, supervised training is performed on the coarse segmentation model and the fine segmentation model respectively to optimize the recognition accuracy of the two models, thereby obtaining a ground object contour recognition engine for identifying ground object contours that integrates the coarse segmentation recognition model and the fine segmentation recognition model. Through dual-model training with dual data sets, the ground object contour recognition engine can complete the contour recognition of ground object images with high precision. Through the directional optimization training of the first training model with the labeled data set, the secondary recognition accuracy of the dual models is improved, the influence of the original data quality and algorithm performance on the contour recognition accuracy is reduced, the error of the initially extracted ground object contour is reduced, and the recognition accuracy is improved.
[0053] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0055] Figure 1 Shown is a schematic diagram of the implementation process of the construction method of the present invention;
[0056] Figure 2 It shows a structural example diagram of a coarse segmentation model and a fine segmentation model of the present invention;
[0057] Figure 3 A schematic diagram of coarse and fine secondary contour recognition of the dual-mode recognition AI engine for terrain contour of the present invention is shown;
[0058] Figure 4Shown is a schematic diagram of the implementation process of the application method of the present invention;
[0059] Figure 5 It is a schematic diagram showing the application of the electronic device of the present invention. DETAILED DESCRIPTION
[0060] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0061] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0062] This solution does not distinguish between uppercase and lowercase letters.
[0063] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the specific embodiments below. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0064] Example 1
[0065] On the one hand, the present application proposes a method for generating and constructing an AI engine for dual-mode recognition of ground feature contours, comprising the following steps:
[0066] Collect different types of ground feature contour images and use preset image compression pixels to perform image cutting preprocessing to obtain the corresponding training sample set K;
[0067] Based on the training sample set K, a corresponding rough segmentation model is generated by using a supervised model training;
[0068] Based on the training sample set K′ obtained by cutting the image at a preset fixed pixel and the prediction result of K by the rough segmentation model, a corresponding fine segmentation model is generated by using a supervised model training;
[0069] Constructing test sets corresponding to the training sample set K and the training sample set K′ respectively, optimizing and iteratively training the coarse segmentation model and the fine segmentation model respectively, and constructing corresponding coarse segmentation recognition models and fine segmentation recognition models;
[0070] The rough segmentation recognition model and the fine segmentation recognition model are associated to obtain the terrain feature contour recognition engine.
[0071] like Figure 1As shown in the figure, this scheme uses unlabeled contour images of various categories of objects as training sample sets, and performs segmentation preprocessing in the sample set. The segmented images and the segmented images are used as training data to build a coarse segmentation model and a fine segmentation model respectively. In order to improve the recognition accuracy of the two models, the labeled training and supervised learning training of the two models are used, and the recognition accuracy of the two models is further improved by using supervised learning.
[0072] Therefore, a coarse segmentation recognition model and a fine segmentation recognition model can be obtained, and the two models are combined to form a ground object contour recognition engine. The engine is composed of the model association connection of the two models and deployed on the background server for high-precision ground object contour recognition, thereby improving the recognition accuracy of ground object contours.
[0073] In this solution, the ground object categories can be buildings, roads, water, fields, trees, etc. (whether the classification needs to be refined, and the various situations of each category are refined) single, multiple, local object images (refine the situations of each category) to form an image data set in the image set.
[0074] The image acquisition method may be a remote sensing image, and the data format may be a TIF format.
[0075] The training sample set is obtained by randomly sampling an image set containing various collected ground object images, thereby collecting a data set consisting of ground object contour images involving multiple categories.
[0076] For images of each category, corresponding category labels or attribute values can be added to facilitate distinguishing the category attributes of each image.
[0077] As an optional implementation scheme of the present application, optionally, different types of ground feature contour images are collected and image cutting preprocessing is performed using preset image compression pixels to obtain a corresponding training sample set K, including:
[0078] Collect different types of ground feature contour images, obtain the complete image k1 in each ground feature image and annotate it to get k0:
[0079] K0=K1+K mark;
[0080] According to the preset coarse segmentation pixel image, the marked complete image k1 is subjected to image cutting processing to obtain a plurality of cut segmentation images k2;
[0081] Identify the cutting contour area in the segmentation map k2, and mark the cutting area as a corresponding category of the ground feature cutting contour map k3;
[0082] After processing, the labeled training set K is obtained:
[0083] K=k2+k3.
[0084] This solution requires segmentation preprocessing of the ground feature contour image, cutting it to obtain a number of segmentations and corresponding segmentation area features.
[0085] Specific segmentation:
[0086] The image is divided into pictures of a specified size and an image set is established according to different categories of objects (collect TIF images involving multiple object categories. The TIF image is divided into data according to the TIF image calculation method: (2048*0.1 / cell_size / 512)*512. The overlapping part of adjacent segmented images is kept to half.
[0087] The segmentation includes: horizontal sliding window and vertical sliding window. When sliding the window horizontally, the overlapped area between the left and right cropping windows is retained. When sliding the window vertically, the upper and lower cropping windows retain the overlapped area, and the overlapped area is half of the image size.
[0088] Create an image set based on the cut graph.
[0089] For the original image (K1), each segmentation (K2) and the cutting contour (the image surrounded by the cutting area K3), subsets under each category are constructed, and the subsets of each category constitute the labeled training set K.
[0090] The model training method of this solution can be the following model training:
[0091] 1. Supervised learning model and unsupervised learning model: This is divided according to whether the training data is labeled. Supervised learning models are trained with labeled data, and the goal is to learn the mapping relationship between input data and output labels, such as classification and regression tasks. Unsupervised learning models are trained on unlabeled data, aiming to discover patterns or structures in the data, such as clustering and dimensionality reduction tasks.
[0092] 2. Deep learning models and traditional machine learning models: This is divided according to the structure and algorithm of the model. Deep learning models usually use neural networks and can handle complex feature learning and classification tasks. Traditional machine learning models include decision trees, support vector machines, naive Bayes, etc., which usually require manual design of feature extraction methods.
[0093] 3. Federated learning model training: This is a special model training method that trains models distributedly on multiple data sources without centralizing all data. This helps protect data privacy and security. Depending on the distribution of features, federated learning neural network model training can be divided into two modes: vertical (Cross-silo) and horizontal (Cross-device).
[0094] During the model training process, various optimization algorithms and techniques are also used, such as gradient descent, stochastic gradient descent, momentum, learning rate adjustment, etc., to accelerate the training process and improve the performance of the model.
[0095] In this embodiment, the training of the labeled training set K is mainly based on supervised learning.
[0096] For the training of the model with the following labeled training set K′, supervised learning is mainly used.
[0097] The specific training model can be selected by the administrator according to the above classification, and this embodiment does not limit it.
[0098] like Figure 2 The figure shows an example of the structure of a coarse segmentation model and a fine segmentation model.
[0099] As an optional implementation scheme of the present application, optionally, based on the training sample set K, a supervised model is used to train and generate a corresponding rough segmentation model, including:
[0100] Labeling the segmentation map k2 and the object cutting contour map k3 corresponding to different categories in the training sample set K;
[0101] The object cutting contour map k is input into a preset supervised training model for training to generate a coarse segmentation model that can identify the corresponding category and the corresponding k2 and k3 features.
[0102] The coarse segmentation model is mainly used to identify the cutting contour features of objects in this category of images.
[0103] As an optional implementation scheme of the present application, optionally, based on the training sample set K′ obtained by cutting the image at a preset fixed pixel and the prediction result of K by the coarse segmentation model, a supervised model is used to train and generate a corresponding fine segmentation model, including:
[0104] Prepare a prediction image set and import it into the coarse segmentation model;
[0105] Collect the prediction results of the coarse segmentation model: k (prediction);
[0106] The complete image in the training sample set K is cut using preset fixed pixels to obtain k2', and then the cut contour area of k2' is identified to obtain k3', which is combined with k (prediction) to form a training set and input into a preset supervised training model for training, thereby generating a refined segmentation model that can identify the k2' and k3' features of the corresponding k (prediction).
[0107] The fine segmentation model is mainly based on the image features of the category image, especially the segmented image features after segmentation. However, the fine segmentation model here is trained twice by combining the segmentation map k2 in the training sample set K and the prediction results of the rough segmentation recognition model, which enables the fine segmentation model to recognize each segmentation feature according to the segmentation contour, rather than the contour recognition without contour boundary, so as to improve the recognition accuracy.
[0108] In order to improve the recognition accuracy, this solution performs supervised training based on the training sample set K and the labeling results to obtain a recognition engine for identifying the contours of objects.
[0109] As an optional implementation of the present application, optionally, the image compression pixel is: (2048*0.1 / cell_size / 512)*512;
[0110] The fixed pixel of the image is: 1024*1024.
[0111] The specific image pixel segmentation in the coarse and fine stages is as follows:
[0112] K is the data segmentation based on the TIF image calculation method: (2048*0.1 / cell_size / 512)*512, and K' is the refined segmentation result of a fixed size of 1024*1024.
[0113] Select representative images from all materials to form the original image set: original image K1, and annotate based on K1 to obtain: K annotation,
[0114] K0=K1+K mark;
[0115] Generate each segmentation map k2 (segmented by K1 according to the rough segmentation formula) and cutting contour K3 (the image surrounded by the cutting area, segmented by K0 according to the rough segmentation formula), then:
[0116] K=K2+K3,
[0117] And build a coarse segmentation model;
[0118] The prediction result of K is output based on the coarse segmentation model: K is predicted and segmented according to the fixed pixel value to obtain K4;
[0119] Each segmentation map k2' (divided by K1 according to 1024*1024) and cutting contour K3' (the image surrounded by the cutting area, marked by K and divided according to 1024*1024) are:
[0120] Coarse segmentation prediction result = K prediction,
[0121] K4=K prediction is cut according to 1024*1024;
[0122] K'=K2'+K3'+K4.
[0123] The annotation can be done manually or by machine. Referring to the data structure of the training sample set, the corresponding annotation training set K′ can be constructed.
[0124] In this plan:
[0125] The annotation results include: the complete annotation map of the annotated ground feature image, the cut annotation map, and the image annotation map.
[0126] The cut annotation map is obtained by cutting the complete annotation map of the labeled object image according to the formula: (2048*0.1 / cell_size / 512)*512.
[0127] The image annotation map is obtained by converting the annotated points in the cut annotation map into areas and marking them with different category colors.
[0128] The coarse segmentation recognition model training is based on the image annotation map and compared with the prediction results of the coarse segmentation model to obtain the coarse segmentation recognition model.
[0129] The training of the fine segmentation model is based on the cut annotation image. The prediction results of the fine segmentation model are compared with the rough segmentation contour to obtain the fine segmentation recognition model.
[0130] That is:
[0131] 1. The coarse segmentation recognition engine is trained based on the training sample set K. The fine segmentation recognition engine is trained twice based on the training sample set K′ and the prediction results of the coarse segmentation recognition engine. The training sample set K and the training sample set K′ share the same image set. The image set is obtained by randomly sampling the image set containing the collected images of various objects. The training sample set K and the training sample set K′ are obtained by trimming the image set by rolling windows.
[0132] The resolutions used for cropping the training sample set K and the training sample set K′ are different, that is, the image compression pixels are: (2048*0.1 / cell_size / 512)*512; the image fixed pixels are: 1024*1024.
[0133] The post-processing optimization module includes reducing invalid points of contours, increasing the smoothness of contours, and intelligently reconnecting interrupted contours. The post-processing optimization module further optimizes the visual effect of the contours of objects.
[0134] The input of the coarse recognition engine includes: the first cropped image, and the image is compressed to a specified resolution and then input; the output of the coarse recognition engine includes: the coarse contour recognition result information of the object to be identified, and the compressed restoration of the contour based on the world coordinates.
[0135] The input information of the precise recognition engine includes: a picture of a specified resolution obtained after secondary cropping based on the restored TIF file; the output information of the precise recognition engine includes: precise contour recognition result information of the object to be recognized.
[0136] Therefore, the following will use the corresponding annotation results to train the coarse segmentation model and the fine segmentation model through the pre-trained supervised neural network to obtain a recognition engine. Specifically:
[0137] As an optional implementation scheme of the present application, optionally, test sets corresponding to the training sample set K and the training sample set K′ are respectively constructed, and the coarse segmentation model and the fine segmentation model are respectively optimized and iteratively trained to construct corresponding coarse segmentation recognition models and fine segmentation recognition models, including:
[0138] Presetting optimization iteration conditions of the coarse segmentation model and the fine segmentation model respectively;
[0139] Using the constructed first test set corresponding to the training sample set K as training data, performing supervised model training on the coarse segmentation model to generate a corresponding coarse segmentation recognition model;
[0140] Process k2 and k3 in the first test set according to the fixed pixels of the image, and use them together with the output result of the coarse segmentation recognition model to construct a second test set;
[0141] Using the second test set as training data, performing supervised model training on the fine segmentation model to generate a corresponding fine segmentation recognition model;
[0142] The model files of the coarse segmentation recognition model and the fine segmentation recognition model are respectively saved in a background database.
[0143] In this solution, the iteration conditions are optimized, and the administrator determines the conditions for stopping iteration, such as when the AUC of the model reaches a predetermined value. The construction of the first test set and the second test set can be constructed in combination with the previous generation method of K and K'.
[0144] The above method of pre-training the coarse segmentation model and the fine segmentation model respectively by labeled training data of different categories in the training set K in a supervised training manner should be implemented and understood in conjunction with the supervised training steps, and will not be repeated in this embodiment.
[0145] Combined with Figure 1As shown, through construction, a ground object contour recognition engine composed of the coarse segmentation recognition model and the fine segmentation recognition model can be obtained, which can be deployed in the background for ground object image contour recognition, greatly improving contour recognition accuracy.
[0146] The association links between models can be configured by the administrator with corresponding model parameters, and the engine can be driven by the background to be put into use.
[0147] In the specific operation, the TIF file of the contour of the object to be identified can be first trimmed by sliding the window to obtain a coarse segmentation image; the extracted image is input into the trained coarse segmentation recognition engine, the category is marked, and all images are merged to obtain a coarse contour. The coarse contour is again trimmed by sliding the window to obtain a fine segmentation image of the specified pixel, and the extracted image is input into the trained fine segmentation recognition engine, and all images are merged to obtain a fine contour after extracting the contour. Through the post-processing optimization module, the optimized final recognition contour of the TIF is obtained.
[0148] Example 2
[0149] Based on the construction method of the above-mentioned embodiment 1, on the other hand, the present application proposes a generation and construction system of a ground object contour recognition engine, which is used to implement the generation and construction method of the ground object contour dual-mode recognition AI engine, including:
[0150] A data acquisition unit is used to collect contour images of different categories of objects and perform image cutting preprocessing using preset image compression pixels to obtain a corresponding training sample set K;
[0151] A first training unit is configured to generate a corresponding rough segmentation model by using a supervised model training based on the training sample set K; and generate a corresponding fine segmentation model by using a supervised model training based on the training sample set K′ obtained by cutting the image under a preset fixed pixel and the prediction result of the rough segmentation model for K;
[0152] The second training unit is used to construct test sets corresponding to the training sample set K and the training sample set K′, respectively, and optimize and iterate the coarse segmentation model and the fine segmentation model to construct corresponding coarse segmentation recognition models and fine segmentation recognition models;
[0153] The associating unit is used to associate the coarse segmentation recognition model with the fine segmentation recognition model to obtain the ground feature contour recognition engine.
[0154] Please understand and implement the functions and interactions of each unit of the specific system in conjunction with the interaction logic of the above construction method, which will not be elaborated here.
[0155] Therefore, this solution mainly extracts the corresponding segmentation and cutting contour images after segmenting the images of different categories of objects, and respectively uses them to construct the corresponding coarse segmentation model and fine segmentation model to identify the cutting contours of different categories of object images and the segmented images segmented by the cutting contours. Combined with the labeled data set, supervised training is performed on the coarse segmentation model and the fine segmentation model respectively to optimize the recognition accuracy of the two models, thereby obtaining a ground object contour recognition engine for identifying ground object contours that integrates the coarse segmentation recognition model and the fine segmentation recognition model. Through dual-model training with dual data sets, the ground object contour recognition engine can complete the contour recognition of ground object images with high precision. Through the directional optimization training of the first training model with the labeled data set, the secondary recognition accuracy of the dual models is improved, the influence of the original data quality and algorithm performance on the contour recognition accuracy is reduced, the error of the initially extracted ground object contour is reduced, and the recognition accuracy is improved.
[0156] Obviously, those skilled in the art should understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0157] Example 3
[0158] like Figure 4 As shown, based on the implementation principle of Example 1, on the other hand, the present application also proposes an application method of a ground object contour recognition engine, wherein the ground object contour recognition engine is generated by the generation and construction method of the ground object contour dual-mode recognition AI engine described above, and comprises the following steps:
[0159] Collecting ground feature contour images;
[0160] Preprocessing the image cut of the ground feature contour;
[0161] Importing the preprocessed object contour image into the object contour recognition engine, and using a coarse segmentation recognition model and a fine segmentation recognition model in the object contour recognition engine to respectively recognize the object contour of the object contour image of the category and the vector graphics corresponding to the object contour;
[0162] According to the categories, the vector graphics of the ground object contours of the same category are merged to generate and output the recognition result corresponding to the ground object contour image.
[0163] like Figure 3 The figure shows a schematic diagram of the coarse segmentation recognition and fine segmentation recognition in the dual-mode recognition AI engine for the contour of the object. Please refer to the construction and generation principle of the coarse segmentation recognition model and the fine segmentation recognition model in Example 1 for specific understanding.
[0164] The vector graphics of the terrain contour, please understand it in conjunction with K2 etc. generated by the above cutting.
[0165] In combination with Example 1, the local object contour recognition engine can be deployed in the background, and when used:
[0166] Collect and input the object outline image (object image data or remote sensing orthophoto) in TIF format, put the image into the model for recognition, and obtain the object category information and the object outline. Traverse all images and identify the object outline. After de-duplication and merging of images of the same category, obtain the outline information of the category. Superimpose the outline information of all categories (vector images) to obtain the recognition result of the complete TIF file.
[0167] The modules or steps of the present invention described above can be implemented by a general-purpose computing system, they can be concentrated on a single computing system, or distributed on a network composed of multiple computing systems, and optionally, they can be implemented by a program code executable by a computing system, so that they can be stored in a storage system and executed by the computing system, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0168] Example 4
[0169] like Figure 5 As shown, further, in another aspect, the present application also proposes an electronic device, including:
[0170] processor;
[0171] a memory for storing processor-executable instructions;
[0172] Wherein, the processor is configured to implement the application method when executing the executable instructions.
[0173] The electronic device of the embodiment of the present disclosure includes a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to implement the application method described in the above embodiment 2 when executing the executable instructions.
[0174] Here, it should be noted that the number of processors can be one or more. At the same time, the electronic device of the embodiment of the present disclosure may also include an input system and an output system. Among them, the processor, memory, input system and output system may be connected through a bus or in other ways, which are not specifically limited here.
[0175] The memory is a computer-readable storage medium that can be used to store software programs, computer executable programs, and various modules, such as the program or module corresponding to the application method of the embodiment of the present disclosure. The processor executes various functional applications and data processing of the electronic device by running the software programs or modules stored in the memory.
[0176] The input system can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output system can include display devices such as display screens.
[0177] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for generating and constructing an AI engine for dual-mode recognition of terrain contours. It is characterized in that The steps include: Collect different types of ground feature contour images and use preset image compression pixels to perform image cutting preprocessing to obtain the corresponding training sample set K; Based on the training sample set K, a corresponding rough segmentation model is generated by using a supervised model training; Based on the training sample set K′ obtained by cutting the image at a preset fixed pixel and the prediction result of K by the rough segmentation model, a corresponding fine segmentation model is generated by using a supervised model training; Constructing test sets corresponding to the training sample set K and the training sample set K′ respectively, optimizing and iteratively training the coarse segmentation model and the fine segmentation model respectively, and constructing corresponding coarse segmentation recognition models and fine segmentation recognition models; The rough segmentation recognition model and the fine segmentation recognition model are associated to obtain the terrain feature contour recognition engine.
2. The method for generating and constructing the dual-mode recognition AI engine for terrain contour according to claim 1, It is characterized in that Collect different types of ground feature contour images and use preset image compression pixels to perform image cutting preprocessing to obtain the corresponding training sample set K, including: Collect different types of ground feature contour images, obtain the complete image k1 in each ground feature image and annotate it to obtain k0: K0=K1+K mark; According to the preset coarse segmentation pixel image, the marked complete image k1 is subjected to image cutting processing to obtain a plurality of cut segmentation images k2; Identify the cutting contour area in the segmentation map k2, and mark the cutting area as a corresponding category of the ground feature cutting contour map k3; After processing, the labeled training set K is obtained: K=k2+k3.
3. The method for generating and constructing the dual-mode recognition AI engine for terrain contour according to claim 2, It is characterized in that Based on the training sample set K, a corresponding rough segmentation model is generated by using a supervised model training, including: Labeling the segmentation map k2 and the object cutting contour map k3 corresponding to different categories in the training sample set K; The object cutting contour map k is input into a preset supervised training model for training to generate a coarse segmentation model that can identify the corresponding category and the corresponding k2 and k3 features.
4. The method for generating and constructing the dual-mode recognition AI engine for terrain contour according to claim 2, It is characterized in that Based on the training sample set K′ obtained by cutting the image at a preset fixed pixel and the prediction result of the rough segmentation model on K, a corresponding fine segmentation model is generated by using a supervised model training, including: Prepare a prediction image set and import it into the coarse segmentation model; Collect the prediction results of the rough segmentation model: k (prediction); The complete image in the training sample set K is cut using preset fixed pixels to obtain k2', and then the cut contour area of k2' is identified to obtain k3', which is combined with k (prediction) to form a training set and input into a preset supervised training model for training, thereby generating a refined segmentation model that can identify the k2' and k3' features of the corresponding k (prediction).
5. The method for generating and constructing the dual-mode recognition AI engine for terrain contour according to claim 1, It is characterized in that The image compression pixel is: (2048*0.1 / cell_size / 512)*512; The fixed pixel of the image is: 1024*1024.
6. The method for generating and constructing the dual-mode recognition AI engine for terrain contour according to claim 5, It is characterized in that Constructing test sets corresponding to the training sample set K and the training sample set K′ respectively, optimizing and iteratively training the coarse segmentation model and the fine segmentation model respectively, and constructing corresponding coarse segmentation recognition models and fine segmentation recognition models, including: Presetting optimization iteration conditions of the coarse segmentation model and the fine segmentation model respectively; Using the constructed first test set corresponding to the training sample set K as training data, performing supervised model training on the coarse segmentation model to generate a corresponding coarse segmentation recognition model; Process k2 and k3 in the first test set according to the fixed pixels of the image, and use them together with the output result of the coarse segmentation recognition model to construct a second test set; Using the second test set as training data, performing supervised model training on the fine segmentation model to generate a corresponding fine segmentation recognition model; The model files of the coarse segmentation recognition model and the fine segmentation recognition model are respectively saved in a background database.
7. A system for generating and constructing a terrain contour recognition engine, used to implement the method for generating and constructing a terrain contour dual-mode recognition AI engine as described in any one of claims 1 to 6, It is characterized in that include: A data acquisition unit is used to collect contour images of different categories of objects and perform image cutting preprocessing using preset image compression pixels to obtain a corresponding training sample set K; A first training unit is configured to generate a corresponding rough segmentation model by using a supervised model training based on the training sample set K; and generate a corresponding fine segmentation model by using a supervised model training based on the training sample set K′ obtained by cutting the image under a preset fixed pixel and the prediction result of the rough segmentation model for K; The second training unit is used to construct test sets corresponding to the training sample set K and the training sample set K′, respectively, and optimize and iterate the coarse segmentation model and the fine segmentation model to construct corresponding coarse segmentation recognition models and fine segmentation recognition models; The associating unit is used to associate the coarse segmentation recognition model with the fine segmentation recognition model to obtain the ground feature contour recognition engine.
8. An application method of a terrain feature contour recognition engine, wherein the terrain feature contour recognition engine is generated by the method for generating and constructing a terrain feature contour dual-mode recognition AI engine according to any one of claims 1 to 6, It is characterized in that The steps include: Collecting ground feature contour images; Preprocessing the image cutting of the ground feature contour image; Importing the preprocessed object contour image into the object contour recognition engine, and using a coarse segmentation recognition model and a fine segmentation recognition model in the object contour recognition engine to respectively recognize the object contour of the object contour image of the category and the vector graphics corresponding to the object contour; According to the categories, the vector graphics of the ground object contours of the same category are merged to generate and output the recognition result corresponding to the ground object contour image.
9. Electronic equipment, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the application method described in claim 8 when executing the executable instructions.
