Construction engineering live-action picture desensitization method

By constructing a sensitive feature library of real-life pictures and a generative artificial intelligence model, the sensitive features in real-life pictures of construction projects are identified and processed, solving the problem of the lack of systematic desensitization methods in the existing technology, and achieving the removal of sensitive information and data integrity. Double protection of sex.

CN118656871AActive Publication Date: 2024-09-17SHANGHAI CONSTRUCTION FOURTH CONSTRUCTION GROUP CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology lacks a complete set of methods and systematic methods to desensitize sensitive information in real-life images of construction projects. Simply removing sensitive image elements may affect the integrity and practicality of the data.

Method used

Construct a sensitive feature library of real-life pictures of construction projects, use generative artificial intelligence models and target detection neural networks to identify and locate sensitive features, and perform desensitization processing through comparison and generative artificial intelligence algorithms to ensure that the removal of sensitive information does not affect the integrity of the pictures. sex.

Benefits of technology

It achieves the reasonable removal of sensitive information in real-life pictures of construction projects while maintaining the integrity and usability of the pictures, ensuring the value of data assets and providing a technical foundation for the construction of enterprise data assets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656871A
    Figure CN118656871A
Patent Text Reader

Abstract

The invention provides a constructional engineering live-action picture desensitization method, which comprises the steps of identifying and positioning sensitive features of a constructional engineering live-action picture to be desensitized based on a sensitive feature library of the constructional engineering live-action picture; comparing the rectangular positioning region of which the category is the proprietary feature in the live-action picture to be desensitized with an instance set of the sensitive feature of which the category is the proprietary feature in a sensitive feature library to obtain the position and the size of a proprietary sensitive feature region; and carrying out desensitization processing on the sensitive feature region in the constructional engineering live-action picture based on the generative artificial intelligence model. According to the method, artificial intelligence target detection, exclusive feature secondary comparison and other methods are adopted, sensitive area features of the constructional engineering live-action picture are accurately recognized, random non-sensitive features are generated with the help of a generative artificial intelligence algorithm to replace a designated area of the picture, it is guaranteed that picture sensitive information is removed, meanwhile, the integrity and usability of the picture are kept, and the picture recognition efficiency is improved. 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: 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 sensitive feature areas.

[0007] Furthermore, in the above method, step 1: constructing a sensitive feature library of real-scene pictures of construction projects, includes: 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 common features {p i = ; Construct sensitive feature library V={(v i , common features / specific features, {p i})}.

[0008] 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: 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 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.

[0009] 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%.

[0010] 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: 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, 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.

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

[0012] 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: 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. 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 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.

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

[0014] 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.

[0015] 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.

[0016] 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

[0017] 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

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

[0019] 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.

[0020] 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.

[0021] 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.

[0022] like Figure 1 As shown, the present invention provides a method for desensitizing a real-scene picture of a construction project, comprising: Step 1: Build a sensitive feature library of real-life pictures of construction projects; 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.

[0023] 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})}.

[0024] Step 2: Based on the sensitive feature library, classify and locate the sensitive features of the real-life pictures of the construction project; 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%.

[0025] 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.

[0026] 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.

[0027] 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 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.

[0028] 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 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.

[0029] For example, construct a feature extraction convolutional neural network model VGG, and extract the feature vector set M2={m 21}, where m 21 =(-3.527697, -0.818893, -2.803694, -2.415632, -2.670330, -1.795009, -2.132418, …), the vector dimension is (1000,); at the same time, the text in the text slogan feature instance set is extracted to generate the word vector W3={"Shanghai Mougong", "Xuanjian Group", "Xuanjian Installation"}.

[0030] Step 3.2: From the rectangular positioning regions of the to-be-desensitized real-scene pictures recognized and output in Step 2, use the feature extraction network to extract the feature vector n of the rectangular positioning regions with the category of proprietary features i , or extract the text vector w within this region based on OCR technology i ; For example, use the VGG network constructed in Step 3.1 to extract the image features within the detection frames of the logos of 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 dimension is (1000,); at the same time, use the OCR algorithm to extract the text vectors within the detection frames of two text slogans, which are w1 = "Build Group" and w2 = "A certain company in Shanghai".

[0031] Step 3.3: Calculate the feature vector set M in the secondary comparison instance set i Calculate the cosine similarity between each feature vector in and the feature vector n of the rectangular positioning region of the to-be-desensitized real-scene picture i . If the cosine similarity is greater than the set threshold q1, it is considered that the feature of this rectangular positioning region is a sensitive feature, and this rectangular positioning region is used as a sensitive feature region, and information such as the category, position, and size of this sensitive feature region is output; or extract the text vector w within the proprietary sensitive feature region of the real-scene picture i The intersection vocabulary with the word vector W i is used as the sensitive feature, and information such as the position and size of the proprietary sensitive feature region where the intersection vocabulary is located is output; Denote the feature vector m i1 =(x i11 , x i12 , …, x i1r ), and the feature vector n i =(y i1 , y i2 , …, y ir ), where r is the feature vector dimension and r>0, then the calculation method of the cosine similarity between the two feature vectors is: ; In the formula, θ represents the included angle between the two feature vectors. The smaller the included angle, the higher the similarity between the two feature vectors.

[0032] 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 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.

[0033] Step 4: Desensitize the real-life pictures of the construction project based on the generative artificial intelligence model and sensitive feature areas; 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%.

[0034] 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.

[0035] Step 4.2: Sensitive feature target detection neural network model k using the categories described in step 2.1 as common features iAs 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%.

[0036] 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%.

[0037] 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 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.

[0038] 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.

[0039] 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.

[0040] 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.

[0041] 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.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] 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.

[0046] 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 sensitive feature areas.

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 common features {p i = ; 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 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.

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 1, characterized in that: 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, 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.

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

98.

7. 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 sensitive feature areas, including: 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. 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.

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

9. 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 8.

10. 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 8.

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

  • Method, device and equipment for intelligently identifying and desensitizing sensitive information and storage medium

    CN114943969A

  • Desensitization position positioning method and device, desensitization method and device, electronic equipment and storage medium

    CN117612172A

  • End-to-end multi-mode text image desensitization method and device and storage medium

    CN117912045A

Cited By

  • Method and system for desensitizing picture with personal sensitive information

    CN119272334A