Desensitization method for real-life pictures of construction projects

By constructing a sensitive feature library for real-life pictures of construction projects and using generative artificial intelligence models to identify and replace sensitive areas, the problem of lack of systematic desensitization methods in the existing technology is solved, and effective desensitization of real-life pictures of construction projects is achieved and Protection of data value.

CN118656871BActive Publication Date: 2024-11-29SHANGHAI CONSTRUCTION FOURTH CONSTRUCTION GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411140743.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-29
Estimated Expiration
2044-08-20

AI Technical Summary

Technical Problem

The prior art lacks complete methods and systematic methods to desensitize real-life pictures of construction projects, especially to maintain the integrity and data value of the pictures while removing sensitive information.

Method used

Build a sensitive feature library for real-life pictures of construction projects, use generative artificial intelligence models and object detection neural networks to identify sensitive features, and replace sensitive areas through comparison and generative artificial intelligence algorithms to achieve desensitization of pictures.

Benefits of technology

It realizes the accurate identification and removal of sensitive information in real scene pictures of construction projects, maintains the integrity of the picture and data value, and ensures the reasonable removal of sensitive information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656871B_ABST
    Figure CN118656871B_ABST
Patent Text Reader

Abstract

The present invention provides a method for desensitizing real-life pictures of construction projects, comprising: based on a sensitive feature library of real-life pictures of construction projects, identifying and locating sensitive features of real-life pictures of construction projects to be desensitized; comparing a rectangular positioning area of ​​the real-life picture to be desensitized that is classified as a proprietary feature with an instance set of sensitive features of the proprietary feature library to obtain the position and size of the proprietary sensitive feature area; and desensitizing the sensitive feature area in the real-life pictures of construction projects based on a generative artificial intelligence model. The present invention uses artificial intelligence target detection, proprietary feature secondary comparison and other methods to accurately identify the sensitive area features of real-life pictures of construction projects, and uses a generative artificial intelligence algorithm to generate random non-sensitive features to replace the designated area of ​​the picture, thereby ensuring that while removing sensitive information from the picture, the integrity and availability of the picture are retained, and the asset value of the picture data is maintained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of construction engineering, and in particular to a method for desensitizing a real-scene picture of a construction engineering. Background Art

[0002] Real-life pictures of construction projects are usually taken by inspection personnel, site cameras, drones or other automated equipment, and are of great value for project safety management and quality analysis. However, construction projects usually contain a lot of sensitive information, and real-life pictures may expose the specific location of the project, sensitive technical details, safety measures, and privacy information of the personnel involved. In order to protect sensitive information during the data analysis stage, the data needs to be encrypted or desensitized.

[0003] Specifically, the information that needs to be desensitized includes: (1) project characteristics: such as construction features, obvious distant environmental landmarks, road signs and other signboards; (2) construction measures characteristics: including construction measures and important safety measures and their details; (3) identity recognition characteristics: visible facial features of personnel, company logos on safety helmets, etc.; (4) sensitive equipment and technical details.

[0004] At present, there is still a lack of complete methods and technologies to systematically complete the above-mentioned sensitive information desensitization work of real-life pictures of construction projects. In addition, simply removing sensitive image elements may affect the integrity and practicality of the data. Therefore, it is necessary to repair and compensate the image while removing sensitive information to maintain the integrity value of the image data. Summary of the invention

[0005] The purpose of the present invention is to provide a method for desensitizing real-scene pictures of construction projects.

[0006] In order to solve the above problems, the present invention provides a method for desensitizing a real-life picture of a construction project, comprising:

[0007] Step 1: Build a sensitive feature library of real-life pictures of construction projects;

[0008] Step 2: Based on the sensitive feature library, the sensitive features of the real-life pictures of the construction project to be desensitized are identified and located;

[0009] Step 3: Compare the rectangular positioning area of ​​the proprietary feature category in the real scene image to be desensitized with the instance set of sensitive features of the proprietary feature category in the sensitive feature library to obtain the position and size of the proprietary sensitive feature area;

[0010] Step 4: Desensitize the real-life pictures of the construction project based on the generative AI model and sensitive feature areas.

[0011] Furthermore, in the above method, step 1: constructing a sensitive feature library of real-scene pictures of construction projects, includes:

[0012] Sorting out the sensitive features of real-life pictures of construction projects i ;

[0013] Classify sensitive features into common features or proprietary features according to their commonality and identification difficulty;

[0014] Collecting instance sets of proprietary features from existing engineering data i}, and define the instance set of common features {p i = ;

[0015] Construct sensitive feature library V={(v i , common features / specific features, {p i})}.

[0016] Furthermore, in the above method, step 2: based on the sensitive feature library, identifying and locating the sensitive features of the real-life pictures of the construction project includes:

[0017] Step 2.1: Based on the sensitive feature v in the sensitive feature library i The categories and visual features of the construction project are collected and annotated to create a data set, and a sensitive feature target detection neural network model k is trained to obtain a target detection neural network model with accuracy, recall rate and detection precision that meets the preset requirements. i , and construct a sensitive feature detection model library K={(v i , k i )};

[0018] Step 2.2: Set several sensitive features v in the real-life pictures of the construction project to be desensitized that need to be desensitized i , the real scene pictures to be desensitized are sorted according to the sensitive features v i , input to the corresponding sensitive feature target detection neural network model k i In the process, the categories and rectangular positioning areas of sensitive features in the real scene image to be desensitized are predicted and output.

[0019] Furthermore, in the above method, the sensitive feature target detection neural network model k i The detection effect requirements are accuracy greater than 90%, recall greater than 85%, and detection precision greater than 90%.

[0020] Furthermore, in the above method, step 3: comparing the rectangular positioning area of ​​the real scene picture to be desensitized with the instance set of sensitive features of the category of proprietary features in the sensitive feature library to obtain the position and size of the proprietary sensitive feature area, including:

[0021] Step 3.1: Obtain sensitive features v of the category of proprietary features from the sensitive feature library V described in step 1 i The instance set {p i}, as the secondary comparison instance set, and construct a feature extraction neural network to extract the feature vector set M of the pictures in the secondary comparison instance set i , or extract the text in the secondary alignment instance set and generate the word vector set W i ;

[0022] Step 3.2: From the rectangular positioning area of ​​the real scene image to be desensitized output by recognition, use the feature extraction network to extract the feature vector n of the rectangular positioning area with the category of proprietary features i , or extract the text vector w in the rectangular positioning area with the category as a proprietary feature based on OCR technology i ;

[0023] Step 3.3: Calculate the feature vector set M in the secondary alignment instance set i Each feature vector in and the feature vector n of the rectangular positioning area of ​​the real scene picture to be desensitized i If the cosine similarity is greater than the set cosine similarity threshold q1, the feature of the rectangular positioning area is considered to be a sensitive feature, the rectangular positioning area is used as a sensitive feature area, and the category, position and size of the sensitive feature area are output; or the text vector w in the exclusive sensitive feature area of ​​the real scene image is extracted. i With the word vector set W i The intersection words are used as sensitive features, and the position and size of the exclusive sensitive feature area where the intersection words are located are output.

[0024] Furthermore, in the above method, the cosine similarity threshold q1 is 0.98.

[0025] Furthermore, in the above method, step 4: desensitizing the real-life pictures of the construction project based on the generative artificial intelligence model and the sensitive feature areas, includes:

[0026] Step 4.1: Calculate the ratio of a single sensitive feature area to the real scene picture to be desensitized. If the ratio exceeds the specified threshold q2, filter out the real scene picture to be desensitized. Otherwise, keep the real scene picture to be desensitized.

[0027] Step 4.2: Sensitive feature target detection neural network model k with category as common feature i As the discriminator, the new deep convolutional network is used as the generator to train the sensitive feature generation artificial intelligence model until the discriminator's recognition accuracy of the local image features generated by the generator is lower than the threshold q2;

[0028] Step 4.3: For the rectangular positioning area with the category of universal features in the retained real-scene picture to be desensitized, the sensitive feature generation artificial intelligence model is used to generate a random non-sensitive feature image, and the original image of the rectangular positioning area with the category of universal features in the real-scene picture is replaced with the random non-sensitive feature image; for the proprietary sensitive feature area with the category of proprietary features in the retained real-scene picture to be desensitized, the image blurring algorithm is called to perform local blurring processing on the rectangular positioning area.

[0029] Furthermore, in the above method, the threshold q2 is 50%.

[0030] According to another aspect of the present invention, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein when the computer-executable instructions are executed by a processor, the processor is caused to execute any of the above-mentioned methods.

[0031] According to another aspect of the present invention, a computer device is provided, comprising: a processor and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, enable the processor to perform any one of the above methods.

[0032] Compared with the prior art, the present invention includes: constructing a sensitive feature library of real-scene pictures of construction projects; based on the sensitive feature library, identifying and locating the sensitive features of the real-scene pictures of construction projects to be desensitized; comparing the rectangular positioning area of ​​the real-scene pictures to be desensitized with the instance set of sensitive features of the category of proprietary features in the sensitive feature library, and obtaining the position and size of the proprietary sensitive feature area; based on the generative artificial intelligence model, desensitizing the sensitive feature area in the real-scene pictures of construction projects. The present invention adopts artificial intelligence target detection, proprietary feature secondary comparison and other methods to accurately identify the sensitive area features of the real-scene pictures of construction projects, and generates random non-sensitive features with the help of generative artificial intelligence algorithms to replace the designated areas of the pictures, so as to ensure that the integrity and availability of the pictures are retained while removing the sensitive information of the pictures, and maintain the asset value of the picture data. The present invention can ensure the reasonable removal of sensitive information in the real-scene pictures of construction projects, while maintaining the asset value of the picture data, and lay a technical foundation for the construction of enterprise data assets. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of a method for desensitizing a real-life picture of a construction project according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0035] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.

[0036] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0037] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0038] like Figure 1 As shown, the present invention provides a method for desensitizing a real-scene picture of a construction project, comprising:

[0039] Step 1: Build a sensitive feature library of real-life pictures of construction projects;

[0040] Here, we can sort out the sensitive features of the real-life pictures of the construction project according to the project management charter and confidentiality principles. i ; Classify sensitive features into common features or proprietary features according to their universality and recognition difficulty; Collect instance sets of proprietary features from existing engineering data {p i}, and define the instance set of common features {p i = ; Construct sensitive feature library V={(v i , common features / specific features, {p i The existing engineering data include project technical documents, engineering award application materials, engineering report materials, etc.

[0041] For example, if the sensitive feature v1 = facial feature of a person, which is a universal feature, then {p1} = ; Sensitive feature v2 = text slogan, which is a proprietary feature, then {p2} = {Shanghai XG, XG Construction Group, XG Installation}; Sensitive feature v3 = company logo, which is a proprietary feature, then {p3} = {Shanghai XG company logo image}; Construct a sensitive feature library V of real-life pictures of construction projects = {(personnel facial features, common features, ), (text slogan, proprietary features, {Shanghai certain industry, certain construction group, certain construction installation}), (company logo, proprietary features, {Shanghai certain industry company logo image})}.

[0042] Step 2: Based on the sensitive feature library, classify and locate the sensitive features of the real-life pictures of the construction project;

[0043] Step 2.1: Based on the sensitive feature v in the sensitive feature library i The categories and visual features of the construction project are collected and annotated to create a data set, and a sensitive feature target detection neural network model k is trained to obtain a target detection neural network model with accuracy, recall rate and detection precision that meets the preset requirements. i , and construct a sensitive feature detection model library K={(v i , k i )}; wherein the sensitive feature target detection neural network model k i The detection effect requirements are accuracy greater than 90%, recall greater than 85%, and detection precision greater than 90%.

[0044] For example, v1=person facial features are common features, and the facial feature recognition model is trained independently by collecting public data sets or by collecting pre-trained facial feature recognition model k1 that meets the accuracy, recall and detection accuracy requirements; v2=text slogans are proprietary features, and the text slogan recognition model k2 is trained by collecting public data sets and combining them with self-annotated construction site slogan pictures; v3=company logos are proprietary features, and the company logo recognition model k3 is trained by collecting public data sets and combining them with self-annotated construction site company logo pictures; construct a sensitive feature detection model library K={(person facial features, facial feature recognition model), (text slogans, text slogan recognition model), (company logo, company logo recognition model)} for real-life construction project pictures.

[0045] Step 2.2: Set several sensitive features v in the real-life pictures of the construction project to be desensitized that need to be desensitized i , the real scene pictures to be desensitized are sorted according to the sensitive features v i , input to the corresponding sensitive feature target detection neural network model k i In the process, the prediction output includes the category of sensitive features in the real scene picture to be desensitized, the position of the rectangular positioning area (detection box), and other information.

[0046] For example, a project needs to desensitize the facial features of people, text slogans and company logos in real-life pictures of construction projects. In this case, the real-life pictures of construction projects to be desensitized need to be input into the facial feature recognition model, text slogan feature recognition model and company logo recognition model respectively, and predict and output the category of sensitive features in the real-life pictures, the position of the rectangular positioning area (detection frame) and other information. If they are input into the above three target detection models respectively, the predicted output results are: 0 0.589063 0.297773 0.192188 0.158265 1 0.457031 0.151817 0.050000 0.025791 1 0.650781 0.140094 0.115625 0.039859 2 0.650781 0.107268 0.053125 0.025791 2 0.682031 0.559203 0.106250 0.076202

[0052] Among them, the first column of the output result is the sensitive feature type (0 refers to the facial features of the person, 1 refers to the text slogan, and 2 refers to the company logo), the second and third columns are the ratios of the center coordinates of the detection frame to the length and width of the image, and the fourth and fifth columns are the ratios of the length and width of the detection frame to the length and width of the image.

[0053] Step 3: Compare the rectangular positioning area of ​​the proprietary feature category in the real scene image to be desensitized with the instance set of sensitive features of the proprietary feature category in the sensitive feature library to obtain the position and size of the proprietary sensitive feature area;

[0054] Step 3.1: Obtain sensitive features v of the category of proprietary features from the sensitive feature library V described in step 1 i The instance set {p i}, as the secondary comparison instance set, and construct a feature extraction neural network to extract the feature vector set M of the pictures in the secondary comparison instance set i ={m i1 , m i2 , …, m it}, or extract the text in the secondary alignment instance set and generate the word vector set W i ={w i1 , w i2 , …, w it}, where t is the number of elements in the secondary alignment instance set.

[0055] For example, construct a feature extraction convolutional neural network model VGG, and extract the feature vector set M2={m 21} of the pictures in the company logo feature instance set in the sensitive feature library described in step 1, where m 21 =(-3.527697, -0.818893, -2.803694, -2.415632, -2.670330, -1.795009, -2.132418, …), and the vector dimension is (1000,); at the same time, extract the text in the text slogan feature instance set to generate the word vector W3={“A certain company in Shanghai”, “A certain construction group”, “A certain construction and installation”}.

[0056] Step 3.2: From the rectangular positioning area of the to-be-desensitized real-scene picture recognized and output in step 2, use the feature extraction network to extract the feature vector n i of the rectangular positioning area with the category of proprietary features, or extract the text vector w i in this area based on OCR technology;

[0057] For example, use the VGG network constructed in step 3.1 to extract the image features within the detection frames of the logos of the two companies, which are n1=(-3.527942, -0.818724, -2.803958, -2.415632, -2.670180, -1.795382, -2.132438, …) and n2=(-3.526799, -0.818973, -2.803664, -2.415632, -2.670843, -1.797420, -2.132947, …) respectively, and the vector dimensions are both (1000,); at the same time, use the OCR algorithm to extract the text vectors within the two text slogan detection frames, which are w1=“Construction group” and w2=“A certain company in Shanghai” respectively.

[0058] Step 3.3: Calculate the cosine similarity between each feature vector in the feature vector set M i in the secondary comparison instance set and the feature vector n i of the rectangular positioning area of the to-be-desensitized real-scene picture. If the cosine similarity is greater than the set threshold q1, it is considered that the feature of this rectangular positioning area is a sensitive feature, and this rectangular positioning area is used as a sensitive feature area, and information such as the category, location, and size of this sensitive feature area is output; or extract the intersection vocabulary of the text vector w i in the proprietary sensitive feature area of the real-scene picture and the word vector W i as sensitive features, and output information such as the location and size of the proprietary sensitive feature area where the intersection vocabulary is located;

[0059] Denote the feature vector m i1 =(x i11, x i12 , …, x i1r ), eigenvector n i =(y i1 , y i2 , …, y ir ), where r is the feature vector dimension, r>0, then the cosine similarity calculation method of two feature vectors is:

[0060] ;

[0061] In the formula, θ represents the angle between two eigenvectors. The smaller the angle, the higher the similarity between the two eigenvectors.

[0062] For example, the cosine similarity threshold is set to 0.98; for the company logo sensitive feature, the feature vector m in the instance set feature vector set M2 is calculated respectively. 21 The cosine similarities of the feature vectors n1 and n2 of the company logo interest area in the image to be desensitized are 0.986451 and 0.997513, respectively, which are both greater than the set threshold of 0.98. The features of the two rectangular detection box areas are sensitive features, and the category, position, size and other information of the area are output; for the sensitive features of text slogans, the instance set word vector W3={"Shanghai Mougong", "Xuanjian Group", "Xuanjian Installation"} is compared with the intersection words of the text vectors w1="Jiangjian Group" and w2="Shanghai Mougong" of the text slogan interest area of ​​the image to be desensitized, and the intersection words are defined as sensitive features, and the position and size of the area where the intersection words are located are output as follows: 1 0.457031 0.151817 0.050000 0.025791 1 0.650781 0.140094 0.115625 0.039859 2 0.650781 0.107268 0.053125 0.025791 2 0.682031 0.559203 0.106250 0.076202

[0067] Among them, the first column of the output result is the sensitive feature type (1 refers to text slogans, 2 refers to company logos), the second and third columns are the ratios of the center coordinates of the sensitive area to the length and width of the image, and the fourth and fifth columns are the ratios of the length and width of the sensitive area to the length and width of the image.

[0068] Step 4: Desensitize the real-life pictures of the construction project based on the generative artificial intelligence model and sensitive feature areas;

[0069] Step 4.1: Calculate the ratio of a single sensitive feature area to the real scene picture to be desensitized. If the ratio exceeds a specified threshold q2, the real scene picture to be desensitized is filtered out, otherwise the real scene picture to be desensitized is retained. Preferably, the specified threshold q2 is 50%.

[0070] For example, the five sensitive feature areas of a real-scene picture to be desensitized account for 3.04%, 0.13%, 0.46%, 0.14% and 0.81% of the real-scene picture frame, respectively, which are all less than the specified threshold of 50%. Therefore, the real-scene picture is retained for subsequent desensitization operations.

[0071] Step 4.2: Sensitive feature target detection neural network model k with the category described in step 2.1 as the universal feature i As the discriminator, the new deep convolutional network is used as the generator to train the sensitive feature generation artificial intelligence model until the discriminator's accuracy in recognizing the local image features generated by the generator is less than 50%.

[0072] For example, the facial feature target detection model described in step 2.1 is used as the discriminator, the generative adversarial network GAN is used as the generator, and the facial feature public dataset is used as the training data to train the facial feature generative artificial intelligence model until the discriminator's recognition accuracy of the local image features generated by the generator is less than 50%.

[0073] Step 4.3: For the rectangular positioning area of ​​the real-life picture to be desensitized obtained in step 2 whose category is universal features, use the sensitive feature generation artificial intelligence model described in step 4.2 to generate a random non-sensitive feature image, and use the random non-sensitive feature image to replace the original image of the rectangular positioning area of ​​the real-life picture whose category is universal features; for the rectangular positioning area of ​​the real-life picture to be desensitized obtained in step 3 whose category is proprietary features, call the image blurring algorithm to perform local blurring processing on the specified rectangular positioning area, so as to achieve the desensitization effect of the real-life image of the construction project to be desensitized.

[0074] For example, for a sensitive area of ​​facial features of a person in a real-life image to be desensitized, the facial feature generation artificial intelligence model described in step 4.2 is used to generate a random face image and replace the original image of the area; for sensitive areas of proprietary features such as text slogans and company logos, the image blurring algorithm is directly called to blur the image in the specified area to achieve the desensitization effect of the real-life image of the construction project.

[0075] According to another aspect of the present invention, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein when the computer-executable instructions are executed by a processor, the processor is caused to execute any of the above-mentioned methods.

[0076] According to another aspect of the present invention, a computer device is provided, comprising: a processor and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, enable the processor to perform any one of the above methods.

[0077] The present invention uses artificial intelligence target detection, proprietary feature secondary comparison and other methods to accurately identify the sensitive area features of real-life pictures of construction projects, and uses a generative artificial intelligence algorithm to generate random non-sensitive features to replace the designated areas of the pictures, ensuring that while removing sensitive information from the pictures, the integrity and availability of the pictures are retained, and the asset value of the picture data is maintained. The present invention can ensure the reasonable removal of sensitive information in real-life pictures of construction projects while maintaining the asset value of picture data, laying a technical foundation for the construction of enterprise data assets.

[0078] The detailed contents of the device embodiments of the present invention can be found in the corresponding parts of the method embodiments, which will not be described in detail here.

[0079] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0080] It should be noted that the present invention can be implemented in software and / or a combination of software and hardware, for example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present invention (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present invention can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

[0081] In addition, a part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. The program instruction for calling the method of the present invention may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in a working memory of a computer device that runs according to the program instruction. Here, according to an embodiment of the present invention, a device is included, the device including a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instruction is executed by the processor, the device is triggered to run the method and / or technical solution based on the aforementioned multiple embodiments of the present invention.

[0082] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for desensitizing real-life pictures of construction projects, characterized in that: include: Step 1: Build a sensitive feature library of real-life pictures of construction projects; Step 2: Based on the sensitive feature library, the sensitive features of the real-life pictures of the construction project to be desensitized are identified and located; Step 3: Compare the rectangular positioning area of ​​the proprietary feature category in the real scene image to be desensitized with the instance set of sensitive features of the proprietary feature category in the sensitive feature library to obtain the position and size of the proprietary sensitive feature area; Step 4: Desensitize the real-life pictures of the construction project based on the generative AI model and proprietary sensitive feature areas; Step 3: Compare the rectangular positioning area of ​​the real scene image to be desensitized with the instance set of sensitive features of the category of proprietary features in the sensitive feature library to obtain the position and size of the proprietary sensitive feature area, including: Step 3.1: Obtain sensitive features v of the category of proprietary features from the sensitive feature library V described in step 1 i The instance set {p i }, as the secondary comparison instance set, and construct a feature extraction neural network to extract the feature vector set M of the pictures in the secondary comparison instance set i , or extract the text in the secondary alignment instance set and generate the word vector set W i ; Step 3.2: From the rectangular positioning area of ​​the real scene image to be desensitized output by recognition, use the feature extraction network to extract the feature vector n of the rectangular positioning area with the category of proprietary features i , or extract the text vector w in the rectangular positioning area with the category as a proprietary feature based on OCR technology i ; Step 3.3: Calculate the feature vector set M in the secondary alignment instance set i Each feature vector in and the feature vector n of the rectangular positioning area of ​​the real scene picture to be desensitized i If the cosine similarity is greater than the set cosine similarity threshold q1, the feature of the rectangular positioning area is considered to be a sensitive feature, and the rectangular positioning area is used as a proprietary sensitive feature area, and the category, position and size of the proprietary sensitive feature area are output; or the text vector w in the proprietary sensitive feature area of ​​the real scene image is extracted i With the word vector set W i The intersection words are used as sensitive features, and the position and size of the exclusive sensitive feature area where the intersection words are located are output.

2. The construction engineering real scene picture desensitization method according to claim 1, characterized in that: Step 1: Build a sensitive feature library of real-life pictures of construction projects, including: Sorting out the sensitive features of real-life pictures of construction projects i ; Classify sensitive features into common features or proprietary features according to their commonality and identification difficulty; Collecting instance sets of proprietary features from existing engineering data i }, and define the instance set of the common feature Construct sensitive feature library V = {(v i , common features / specific features, {p i })}.

3. The construction engineering real scene picture desensitization method according to claim 2, characterized in that: Step 2: Based on the sensitive feature library, the sensitive features of the real-scene pictures of the construction project are identified and located, including: Step 2.1: Based on the sensitive feature v in the sensitive feature library i The categories and visual features of the construction project are collected and annotated to create a data set, and a sensitive feature target detection neural network model k is trained to obtain a target detection neural network model with accuracy, recall rate and detection precision that meets the preset requirements. i , and construct a sensitive feature detection model library K = {(v i , k i )}; Step 2.2: Set several sensitive features in the real-life construction project pictures to be desensitized that require desensitization {v i }, the real scene pictures to be desensitized are sorted according to sensitive features {v i }, input to the corresponding sensitive feature target detection neural network model {k i }, the category and rectangular positioning area of ​​the sensitive features in the real scene image to be desensitized are predicted and output.

4. The construction engineering real scene picture desensitization method as claimed in claim 3, characterized in that: The sensitive feature target detection neural network model k i The detection effect requirements are accuracy greater than 90%, recall greater than 85%, and detection precision greater than 90%.

5. The construction engineering real scene picture desensitization method according to claim 4, characterized in that: The cosine similarity threshold q1 is 0.

98.

6. The construction engineering real scene picture desensitization method according to claim 1, characterized in that: Step 4: Desensitize the real-life pictures of the construction project based on the generative AI model and proprietary sensitive feature areas, including: Step 4.1: Calculate the ratio of a single proprietary sensitive feature area to the real scene picture to be desensitized. If the ratio exceeds the specified threshold q2, filter out the real scene picture to be desensitized. Otherwise, keep the real scene picture to be desensitized. Step 4.2: Sensitive feature target detection neural network model k with category as common feature i As the discriminator, the new deep convolutional network is used as the generator to train the sensitive feature generation artificial intelligence model until the discriminator's recognition accuracy of the local image features generated by the generator is lower than the threshold q2; Step 4.3: For the rectangular positioning areas of the retained real-life pictures to be desensitized and classified as universal features, the sensitive feature generation artificial intelligence model is used to generate random non-sensitive feature images, and the original images of the rectangular positioning areas of the retained real-life pictures to be desensitized and classified as universal features are replaced with the random non-sensitive feature images; for the rectangular positioning areas of the retained real-life pictures to be desensitized and classified as proprietary features, the image blurring algorithm is called to perform local blurring processing on the rectangular positioning areas.

7. The construction engineering real scene picture desensitization method according to claim 6, characterized in that: The threshold q2 is 50%.

8. A computer-readable storage medium having computer-executable instructions stored thereon, wherein: When the computer executable instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.

9. A computer device, wherein: The method comprises a processor and a memory arranged to store computer executable instructions, which when executed cause the processor to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Bill information desensitization acquisition method, device and system

    CN112329757A

  • Method and device for desensitizing document image, electronic equipment and medium

    CN112380566A