A safety hazard management system for self-built houses

Through the identification code, image collection and hidden danger identification module of the self-built house safety hazard management system, the preset model is used to initially identify the house image, which solves the problems of long detection time and low accuracy in the existing technology, and achieves high efficiency and Accurate hazard detection.

CN117237705BActive Publication Date: 2024-09-27GUANGZHOU YUEJIAN SANHE SOFTWARE +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311100884.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2024-09-27
Estimated Expiration
2043-08-29

AI Technical Summary

Technical Problem

Existing methods for detecting potential safety hazards in houses are time-consuming and have low accuracy. Manual detection is highly subjective and easy to miss.

Method used

Design a safety hazard management system for self-built houses. By generating identification codes, image acquisition modules and preliminary hazard identification modules, the preset hazard identification model is used to initially identify house images, reducing the inspection workload and improving the recognition accuracy.

Benefits of technology

It has reduced the inspection workload, improved processing efficiency and identification accuracy, and improved the efficiency and accuracy of house safety hazard detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117237705B
    Figure CN117237705B
Patent Text Reader

Abstract

The present invention discloses a safety hazard management system for self-built houses, the system comprising: a house code module, which is used to generate corresponding identification codes according to the house data of each self-built house after collecting house data of multiple self-built houses and constructing a house database; an image acquisition module, which is used to obtain house images; a hidden danger preliminary identification module, which is used to perform image recognition on house images to obtain identification feature images, and call a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature images to obtain preliminary identification results; an identification feedback module, which is used to show the preliminary identification results to relevant personnel. The present invention generates corresponding identification codes for self-built houses for relevant personnel to scan, obtains the house images of self-built houses after scanning the identification codes, and performs preliminary identification of safety hazards, which is provided for relevant personnel to verify on site according to the preliminary identification results, which can reduce the workload of patrol inspections, improve processing efficiency, and improve the accuracy of identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of house detection, and in particular to a potential safety hazard management system for self-built houses. Background Art

[0002] With the rapid development of urbanization, more and more houses are being built. There may be multiple safety hazards in the process of house construction and residential use. Once any safety hazard is not discovered and resolved in time, it may cause casualties, property and equipment accidents.

[0003] To this end, the commonly used method is to set up a safety hazard inspection system, which sends notifications and process information to safety inspectors in accordance with the inspection system, so that safety inspectors can go to the construction site to inspect the building site, work and living environment, and building structure. When there are safety hazards, the safety inspectors' hazard rectification opinions are collected and transmitted to the corresponding construction personnel for construction personnel to verify the site.

[0004] However, the commonly used methods currently have the following technical problems: each hidden danger item needs to be inspected one by one on site by inspectors, and the inspection process involves many steps and contents, which results in a long time required to detect hidden dangers and reduces processing efficiency; moreover, manual inspection is highly subjective, prone to omissions, and has a low accuracy rate. Summary of the invention

[0005] The present invention proposes a safety hazard management system for self-built houses. The system pre-establishes a data center for self-built houses and generates a corresponding identification code for each self-built house for inspection personnel to scan. After scanning the identification code, the house image of the self-built house is obtained and preliminary identification of safety hazards is performed, which is provided for inspection personnel to verify on-site based on the preliminary identification results. This can reduce the workload of inspection and detection, improve processing efficiency, and improve the accuracy of identification.

[0006] A first aspect of an embodiment of the present invention provides a safety hazard management system for self-built houses, the system comprising:

[0007] The housing code module is used to generate corresponding identification codes according to the housing data of each self-built house after collecting the housing data of multiple self-built houses and building a housing database;

[0008] An image acquisition module is used to obtain a house image, wherein the house image is an image uploaded after a relevant person scans the identification code and confirms his / her identity during a house inspection;

[0009] A hidden danger preliminary identification module is used to perform image recognition on the house image to obtain an identification feature image, and call a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result;

[0010] The recognition feedback module is used to display the preliminary recognition results to relevant personnel for reference.

[0011] In a possible implementation of the first aspect, the preset hidden danger identification model includes: a basic identification model, and the preliminary identification result includes: foundation hidden dangers;

[0012] The hidden danger preliminary identification module is also used for:

[0013] When it is determined that the recognition feature image contains a basic structure of a house, calling the basic recognition model to recognize the recognition feature image to obtain a basic image of the house, wherein the basic image of the house includes a river ditch structure image, a soil slope structure image, a culvert structure image, and a pothole structure image;

[0014] Using each of the house basic images and the recognition feature images, respectively calculate the relative distance between the house basic structure and the house to obtain a basic distance value;

[0015] If each of the foundation distance values ​​is greater than the corresponding preset foundation threshold, it is determined that the house has no foundation hidden dangers;

[0016] If any of the foundation distance values ​​is less than the corresponding preset foundation threshold, it is determined that the safety hazard of the house is a foundation hazard.

[0017] In a possible implementation of the first aspect, the preset hidden danger identification model includes: a cracking identification model, and the preliminary identification result includes: a cracking hidden danger;

[0018] The hidden danger preliminary identification module is also used for:

[0019] Extracting component images about the component structure inside the house from the recognition feature image, wherein the component images include column component images, wall component images, and beam component images;

[0020] Using the crack recognition model to identify the component image to obtain a component crack region, and respectively calculating a crack image area corresponding to the component crack region and a component image area corresponding to the component;

[0021] Calculating the ratio of the crack image area to the component image area to obtain a crack area ratio;

[0022] If the crack area ratio is less than a preset crack threshold, it is determined that the house has no cracking risk;

[0023] If the crack area ratio is greater than a preset crack threshold, it is determined that the housing safety hazard is a crack hazard.

[0024] In a possible implementation of the first aspect, the preset hidden danger identification model includes: a bending identification model, and the preliminary identification result includes: a component bending hidden danger;

[0025] The hidden danger preliminary identification module is also used for:

[0026] Using the bending recognition model to recognize the recognition feature image, a steel frame feature image of the steel structure of the house is obtained, wherein the steel frame feature image includes a steel beam image, a steel support image, a steel grid image, and a rod image;

[0027] Calculating the length value of each steel frame in the steel frame feature image using a straight line detection algorithm to obtain multiple length values;

[0028] Selecting two length values ​​with the largest values ​​from the multiple length values, and obtaining a steel frame angle value based on the angle between the two steel frames corresponding to the two length values ​​with the largest values;

[0029] If the steel frame angle value is less than the preset structure angle threshold, it is determined that there is no hidden danger of bending of the components of the house;

[0030] If the steel frame angle value is greater than a preset structure angle threshold, it is determined that the building safety hazard is a component bending hazard.

[0031] In a possible implementation of the first aspect, the preset hidden danger identification model includes: a tilt identification model, and the preliminary identification result includes: a tilt hidden danger;

[0032] The hidden danger preliminary identification module is also used for:

[0033] Using the tilt recognition model to recognize the recognition feature image to obtain a contour image about the house contour, and extracting the wall contour edge line from the contour image;

[0034] Calculating the angle between the wall contour edge line and a preset horizontal line to obtain a contour angle, wherein the preset horizontal line is a horizontal line of a smart terminal that collects the house image;

[0035] If the contour angle is less than a preset horizontal threshold, it is determined that the house has no tilt risk;

[0036] If the contour angle is greater than a preset horizontal threshold, it is determined that the building safety hazard is a tilt hazard.

[0037] In a possible implementation of the first aspect, the preset hidden danger identification model includes: a violation identification model, and the preliminary identification result includes: a violation hidden danger;

[0038] The hidden danger preliminary identification module is also used for:

[0039] When it is determined that there is an expansion area of ​​the house, the house outline map is intercepted from the identification feature image using the violation identification model;

[0040] Calculating the similarity between the house outline map and a preset outline map to obtain an outline similarity value;

[0041] If the outline similarity value is greater than a preset similarity value, it is determined that the house has no potential violation risks;

[0042] If the contour similarity value is less than a preset similarity value, the housing safety hazard is determined to be a violation hazard.

[0043] In a possible implementation manner of the first aspect, determining that the house has an expansion area includes:

[0044] Extracting a plurality of house structure images from the recognition feature image, and sorting the plurality of house structure images according to image areas;

[0045] According to the image sorting results, the area intersection ratios of two adjacent house structure images are calculated pairwise to obtain multiple area superposition values;

[0046] If any of the area superposition values ​​is greater than the preset total value, it is determined that the house has an expansion area;

[0047] If each of the area superposition values ​​is smaller than the preset total value, it is determined that there is no expansion area for the house.

[0048] In a possible implementation manner of the first aspect, the training operation of the hidden danger identification model includes:

[0049] After obtaining a sample image set with image annotation completed, data enhancement processing is performed on the sample image set to obtain an enhanced data set, wherein the data enhancement processing includes: space transformation processing, color distortion processing, information deletion processing, image fusion processing, random replacement processing, and splicing processing;

[0050] Transforming the position values ​​of the labels contained in the enhanced data set to obtain transformed label values, and normalizing the enhanced data set and the transformed label values ​​to obtain normalized data;

[0051] The normalized data is used to perform model training to obtain a hidden danger identification model.

[0052] In a possible implementation of the first aspect, the recognition feature image includes: an overall house image, a wall structure image, a beam structure image, a column structure image, a steel structure image, a wooden structure image, and a brick structure image;

[0053] The hidden danger preliminary identification module is also used to identify the position and outline of the overall house structure, wall structure, beam structure, column structure, steel structure, wooden structure and brick structure in the house image by using a preset component recognition model to obtain a corresponding structure mask image;

[0054] The structural mask image is labeled and preprocessed to obtain a recognition feature image, wherein the preprocessing includes linear filtering technology, image restoration processing and normalization processing.

[0055] In a possible implementation manner of the first aspect, the system further includes:

[0056] The identity binding module is used to obtain the resident information of the self-built house and bind the resident information with the identification code so that the information of the resident of the self-built house can be queried after scanning the identification code.

[0057] Compared with the prior art, the embodiment of the present invention provides a safety hazard management system for self-built houses, which has the beneficial effect that: the present invention can establish a data center for self-built houses based on house data, and generate a corresponding identification code for each self-built house for relevant personnel to scan. After scanning the identification code, the house image of the self-built house is obtained and a preliminary identification of safety hazards is performed, which is provided for relevant personnel to verify on-site based on the preliminary identification results, which can reduce the workload of patrol inspections and improve processing efficiency, and can also improve the accuracy of identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a structural schematic diagram of a safety hazard management system for self-built houses provided by one embodiment of the present invention;

[0059] Figure 2 It is a schematic diagram of a communication connection structure of a safety hazard management system for self-built houses provided by an embodiment of the present invention;

[0060] Figure 3 The present invention provides an operational flow chart of potential safety hazard identification in a potential safety hazard management system for self-built houses according to an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] In order to solve the above problems, a housing hidden danger identification method based on housing images provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.

[0063] Reference Figure 1 , showing a schematic structural diagram of a safety hazard management system for self-built houses provided by an embodiment of the present invention.

[0064] In one embodiment, the safety hazard management system for self-built houses can serve as a management platform for house information. The system is provided with a server, a hazard intelligent learning module and AI intelligent learning, and hazard identification is performed through the hazard intelligent learning module.

[0065] Specifically, the safety hazard management system for self-built houses provided by the present invention is mainly applicable to self-built houses, mainly managing the information of self-built houses and preliminarily identifying the safety hazards of self-built houses for reference by inspection personnel.

[0066] Wherein, as an example, the housing hidden danger identification method based on housing images may include:

[0067] The house coding module 101 is used to generate a corresponding identification code according to the house data of each self-built house after collecting the house data of multiple self-built houses and constructing a house database.

[0068] In one embodiment, relevant data of multiple self-built houses can be preset to obtain multiple house data, and the house data may include: the construction time, area, location, number of floors, materials, number of residents, household owner information, wall structure, etc. of the house.

[0069] At the same time, in order to facilitate the management of housing data of multiple self-built houses, a database can be constructed using data from multiple houses. The database can be used as a data center to manage and call different data.

[0070] In one embodiment, since different houses have different structures, environments, owners, and residents, in order to distinguish different houses and their corresponding information and data, an identification code can be set for each house, and the identification code can be used as an electronic ID card of the house. The electronic ID card can be a QR code.

[0071] Each house corresponds to an electronic ID card, realizing "one building, one code" or "one house, one code". The data of each house can be bound to the corresponding electronic ID card. When different users or personnel scan the electronic ID card through the smart terminal, they can quickly query the basic information of the self-built house, inspection records, tracking records and other information.

[0072] At the same time, it is also possible to quickly register the inspection situation, improve the inspection efficiency, track the hidden dangers and deal with them in a closed loop, and realize information sharing and long-term linkage supervision mechanism and long-term mechanism for daily management of self-built houses. It forms a data archive of self-built houses, breaks the data island, and updates and shares the data in real time. Moreover, by establishing a management data center for the house through the house information management platform, it is possible to form a data archive centered on the house, which is updated in real time. The inspection data is linked in real time, reducing repeated operations and improving inspection efficiency.

[0073] Moreover, through the mobile Internet technology, the houses are marked with "one building, one code", the basic information and historical data of the houses are timely grasped, and the digital management of self-built houses is realized. The present invention also mobilizes the participation of the public through Internet operation, solves the problem of insufficient supervision, and forms a benign mechanism for the public to supervise each other and take responsibility for themselves. In addition, through the aggregation of daily data, a house safety management ledger and statistical analysis are formed to provide data basis and decision-making analysis for managers.

[0074] Specifically, the application operation is as follows:

[0075] The collected housing information is entered into the housing information management platform through the Internet interface or Excel spreadsheet import method to form a self-built housing information database.

[0076] After the electronic ID card is installed on the house, the house information and identity identification can be bound by scanning the code. Daily house inspectors can use the self-built house management applet to scan the code on site to complete the house information query, inspection record and follow-up record and other information quick entry work, quickly report hidden dangers and illegal construction, etc., and can also use the applet to collect and query the daily work information of self-built houses, and check the latest house dynamics in real time.

[0077] After the electronic ID card is installed, if the public finds any abnormalities in the house, they can quickly and easily scan the QR code to directly feedback the problem to the corresponding housing management department, and check and follow up on the processing progress in real time.

[0078] The present invention can also provide a device for identifying the QR code of a house. The house is associated with the identification device, and the inspector can quickly obtain basic information about the house on site and report the inspection results. At the same time, the power of the grassroots masses is fully utilized to support the masses to effectively implement rapid complaint and reporting management measures to alleviate the supervision pressure of the management department.

[0079] The image acquisition module 102 is used to obtain a house image, which is an image uploaded after a relevant person scans the identification code and confirms his / her identity during a house inspection.

[0080] In one embodiment, the image acquisition module may be used to obtain house images, which may be images uploaded by relevant personnel during a safety inspection of a self-built house.

[0081] In order to distinguish the houses to be inspected, relevant personnel can use their smart terminals to scan the identification code when they reach the location of the self-built houses to be inspected, and then enter their identity information for verification. After the verification is passed, relevant personnel can take images around the house and then upload the images to the system, so that the image acquisition module can capture images of the house.

[0082] It should be noted that the relevant personnel may be daily inspectors, supervisory management personnel, tenants and ordinary people.

[0083] The hidden danger preliminary identification module 103 is used to perform image recognition on the house image to obtain an identification feature image, and call a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result.

[0084] In one embodiment, since the house image includes different images such as the house body, the house surrounding environment, the house internal structure, and the house frame, and different images can be used for different hidden danger identification, in order to distinguish different images, corresponding hidden danger identification processing is performed using corresponding images.

[0085] In one implementation, image recognition may be performed on the house image to obtain a corresponding recognition feature image, and then corresponding hidden danger identification processing may be performed based on the recognition feature image.

[0086] In one embodiment, the image processing and recognition technology may utilize an existing image recognition algorithm or an image recognition model for recognition processing.

[0087] In one embodiment, the recognition feature image includes: an overall house image, a wall structure image, a beam structure image, a column structure image, a steel structure image, a wooden structure image, and a brick structure image.

[0088] Regarding the operation of performing image recognition on the house image to obtain the recognition feature image, the hidden danger preliminary recognition module 103 is further used to:

[0089] Using a preset component recognition model to recognize the position and outline of the overall house structure, wall structure, beam structure, column structure, steel structure, wooden structure and brick structure in the house image, and obtain a corresponding structure mask image;

[0090] The structural mask image is labeled and preprocessed to obtain a recognition feature image, wherein the preprocessing includes linear filtering technology, image restoration processing and normalization processing.

[0091] In one embodiment, the preset component recognition model may be a pre-trained house and component recognition model.

[0092] Specifically, the house image to be identified can be input into the house and its component recognition model, and the house and its component recognition model recognizes the house and its components, and then forms various mask images for each image and performs preprocessing to obtain a recognition feature image.

[0093] In a specific implementation, after obtaining the house image, the house image can be preprocessed to obtain an original feature map that can be directly calculated by the model. Then, the house and its component recognition model recognizes the position and contour of the overall house structure, wall structure, beam structure, column structure, steel structure, wood structure and brick structure in the house image, and forms respective mask maps for the position and contour of the overall house structure, wall structure, beam structure, column structure, steel structure, wood structure and brick structure.

[0094] In one embodiment, the preprocessing operation may be to use linear filtering technology and restoration technology to filter and restore the house image to be identified, thereby correcting image degradation caused by weather, light, etc. Finally, the image is normalized and preprocessed to normalize the pixel values ​​of the image to 0 to 1, thereby increasing the convergence of the training network and preventing gradient explosion.

[0095] Since there are many types of houses, most of them are reinforced concrete structures, but there are also pure steel structures, wood structures, stone and wood structures, mixed structures, etc., which can be roughly divided into overall houses, wall structures, beam structures and column structures. At the same time, considering other hidden dangers, steel structures, wood structures and brick structures are added, so the house and its component recognition model can generate seven categories of mask images. After preprocessing these seven mask images, the preprocessed mask images can be used as recognition feature images.

[0096] Among them, various mask images may overlap and cross when mapped to the original image. For example, a column structure may be a steel structure, a wooden structure, or a concrete structure.

[0097] It should be noted that when different hidden dangers need to be identified, the identified structure can also be appropriately adjusted to add mask images of different categories, and the specific adjustment can be made according to actual needs.

[0098] After identifying different categories of images, each category can be labeled. For example, the four categories of overall house, wall structure, beam structure and column structure can be segmented and labeled first, and then the three categories of steel structure, wooden structure and brick structure can be segmented and labeled according to the actual situation of each category, and cross-over is allowed.

[0099] In one embodiment, the house and its component recognition model can be an instance segmentation model in image recognition technology, which uses hrnet as the backbone network, and the output head mainly includes a basicblock module of 4 layers of resnet, a transformer structure, pooling, etc., which can better extract feature maps of houses and their components of various sizes and types.

[0100] Among them, the HRNet backbone network outputs four features, which are outputs of different resolutions of 4 times, 8 times, 16 times, and 32 times downsampling. Then the output features of the corresponding resolutions are upsampled and merged by channel at the 4-fold downsampling, and then sent to the output head to use the 4-layer basicblock module for feature fusion. Finally, the accurate instance segmentation mask map is obtained through the Transformer attention mechanism.

[0101] In an optional embodiment, the house and its component recognition model can also use multi-classification recognition technology to process the output image. That is, the output mask feature map is not only a single category pixel-level classification with the maximum value, but also any value greater than a threshold (which can be set), so that a certain area can be either the first category, the second category, or even more categories, thereby realizing the function of overlapping and crossing various mask maps.

[0102] The house image is identified through the house and its component recognition model to segment the identification feature images of different categories. On the one hand, it can quickly check the safety hazards of a large amount of house image data and improve the image processing efficiency. On the other hand, it can also improve the efficiency of house monitoring and avoid safety hazards in time.

[0103] After obtaining different types of identification feature images, an auxiliary inspection can be performed based on the deep learning-based intelligent identification algorithm for housing safety risks, and the safety hazards of the house can be determined by identifying the images. The hidden danger identification model can also be used to identify hidden dangers in the identification feature images to determine the safety hazards of the house.

[0104] By using AI technology to conduct intelligent dynamic analysis of inspection photos, it is possible to automatically determine whether there are safety hazards in the house structure and surrounding environment, and assist on-site inspectors to quickly analyze and identify house safety risks to improve processing efficiency.

[0105] Since the identification feature images obtained by recognition have different categories, different hidden dangers can be identified for different categories.

[0106] In one embodiment, the preset hidden danger identification model includes: a basic identification model, and the preliminary identification result includes: foundation hidden dangers;

[0107] Wherein, as an example, the operation of calling a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result, the hidden danger preliminary identification module 103 is also used for:

[0108] When it is determined that the recognition feature image contains the basic structure of the house, the basic recognition model is called to recognize the recognition feature image to obtain the basic image of the house, and the basic image of the house includes a ditch structure image, a slope structure image, a culvert structure image and a pit structure image.

[0109] The relative distance between the basic structure of the house and the house is calculated using each of the basic house images and the recognition feature images to obtain a basic distance value.

[0110] If each of the foundation distance values ​​is greater than the corresponding preset foundation threshold, it is determined that the house has no foundation hidden dangers.

[0111] If any of the foundation distance values ​​is less than the corresponding preset foundation threshold, it is determined that the safety hazard of the house is a foundation hazard.

[0112] In one embodiment, it may be determined that the recognition feature image recognition includes the building infrastructure.

[0113] Specifically, after completing the recognition and segmentation, the house and its component recognition model determines whether the recognized image has the overall house structure. If so, it can be determined that the recognized feature image contains the house infrastructure.

[0114] Next, the basic recognition model can respectively obtain the house image to be recognized and the overall house position mask map recognized from the house image by the house and its component recognition model. The overall house position mask map is the recognition feature image of the overall house structure category.

[0115] It should be noted that the so-called overall house position mask map refers to the position of the "overall house structure mask map" identified by the house and component identification module in the original image, that is, the outline range of the house.

[0116] Regarding the safety hazards of the house site and foundation, they are preliminarily determined based on the surrounding environment of the house. The main hazards include nearby ditches, nearby landslides / high slopes / foundation pits, nearby culverts and suspected foundation subsidence. These hazards can be determined based on whether there are similar ditch structures, similar earth slope structures, similar culvert structures and similar pit structures around the house, and by calculating the relative distance between the house and these similar structures.

[0117] The so-called relative distance refers to the pixel distance between the house location and the identified similar structure location, which is then divided by the horizontal pixel distance of the house to obtain the relative distance.

[0118] Specifically, the basic recognition model can be called to identify the identification feature image of the overall house structure category to obtain a house foundation image about the house foundation, which includes a ditch structure image, a slope structure image, a culvert structure image and a pit structure image.

[0119] Then, based on the house foundation image, the distance between the house in the image and the surrounding river ditches, soil slopes and other structures is calculated to obtain the foundation distance value, and then each foundation distance value is judged to be greater than its corresponding preset foundation threshold. If so, it means that the house has no foundation hidden dangers. If any foundation distance value is less than the corresponding preset foundation threshold, it means that the safety hazard of the house is a foundation hidden danger.

[0120] For example, if there are river-ditch structures, earth slope structures, culvert structures, and pit structures around a house, the relative distances between the house and the river-ditch structures, earth slope structures, culvert structures, and pit structures can be calculated to obtain four basic distance values.

[0121] When the foundation distance value between the entire house and a ditch-like structure is less than d1 (settable), it is preliminarily determined that there may be a safety hazard near the ditch, and the safety hazard of the house can be determined to be a foundation hazard.

[0122] When the foundation distance between the entire house and a similar earth slope structure is less than d2 (settable), it is preliminarily determined that there may be a safety hazard of a nearby landslide / high slope / foundation pit, and the safety hazard of the house can be determined to be a foundation hazard.

[0123] When the distance between the entire house and a similar culvert structure is less than d3 (settable), it is preliminarily determined that there may be a safety hazard near the culvert, and it can be determined that the safety hazard of the house is a foundation hazard.

[0124] When the distance between the entire house and the location of a similar pit structure is less than d4 (settable), it is preliminarily determined that there may be a suspected safety hazard of foundation sinking, and it can be determined that the safety hazard of the house is a foundation hazard.

[0125] In an optional embodiment, the basic recognition model can use an image target detection algorithm. The network structure of the model is built with yolov8 as the main framework and GhostNetV2 as the basic network. It integrates the CSPNet network structure, DFC attention mechanism, SPPNet structure and Focus structure, and can quickly detect ditches, slopes, culverts and potholes, and make more accurate identification.

[0126] The present invention identifies similar river ditch structures, similar earth slope structures, similar culvert structures and similar pit structures in the image through a basic recognition model, and finally calculates the relative distance between the above structures and the overall house obtained from the house and its component recognition module, and judges whether there are corresponding house site and foundation safety hazards based on whether the relative distance is less than a threshold (which can be set), thereby achieving the effect of quickly detecting house site and foundation safety hazards.

[0127] In one embodiment, the preset hidden danger identification model includes: a cracking identification model, and the preliminary identification result includes: a cracking hidden danger.

[0128] In one embodiment, the crack recognition model can select the BlendMask low-grained overall architecture, use EfficientNetV2 as the backbone network, take into account the depth and breadth of the model, and obtain a high-resolution instance segmentation model after multiple information fusions, which can very well identify cracks, rust, decay, and shedding that require higher fineness and are difficult to distinguish.

[0129] Wherein, as an example, the operation of calling a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result, the hidden danger preliminary identification module 103 is also used for:

[0130] Component images about the component structure inside the house are extracted from the recognition feature images, and the component images include column component images, wall component images, and beam component images.

[0131] The component image is identified by using the crack identification model to obtain a component crack region, and the crack image area corresponding to the component crack region and the component image area corresponding to the component are calculated respectively.

[0132] The ratio of the crack image area to the component image area is calculated to obtain a crack area ratio.

[0133] If the crack area ratio is less than a preset crack threshold, it is determined that the house has no hidden danger of cracking.

[0134] If the crack area ratio is greater than a preset crack threshold, it is determined that the housing safety hazard is a crack hazard.

[0135] In one embodiment, the potential safety hazard of cracking of various components of a house is mainly judged based on the presence of cracks in the wall structure, beam structure and column structure and the large area of ​​the cracks. The potential safety hazard of damage to the components of the house can be roughly divided into three categories: serious rusting of steel structures, serious decaying of wooden structures and serious falling off of brick structures. A preliminary judgment can be made based on the rusting area of ​​the steel structure, the decaying area of ​​the wooden structure and the falling off area of ​​the brick structure.

[0136] In one implementation, a mask image of the wall structure, beam structure, column structure, steel structure, wooden structure and brick structure categories identified at the house and its component recognition model can be obtained to obtain a component image.

[0137] The crack recognition model recognizes the component image to obtain the component crack region, and crops the image of the component crack region to obtain a crack image.

[0138] The crack recognition model can identify the mask images (the contour range of the damage) of these damage conditions, and obtain the damage areas according to the mask image area, thereby obtaining the crack image area. At the same time, the crack recognition model can be used to identify the area occupied by the entire component in the component image and obtain the corresponding component image area.

[0139] The ratio of the crack image area to the component image area can be calculated to obtain the crack area ratio. According to the size of the crack area ratio, it can be determined whether the house has cracking risks.

[0140] If the crack area ratio is less than the preset crack threshold, it is determined that the house has no risk of cracking.

[0141] If the crack area ratio is greater than a preset crack threshold, the housing safety hazard is determined to be a crack hazard.

[0142] Since the components include columns, beams or steel frames, it is also possible to determine whether the house has the risk of cracking based on the corresponding area ratios of different components.

[0143] For example, when the ratio of the area of ​​the crack diagram to the wall / column / beam structure diagram is greater than s1 (settable), it is preliminarily determined that there may be a safety hazard of cracking of the wall / column / beam structure.

[0144] When the area ratio of the corrosion map to the steel structure map is greater than s2 (settable), it is preliminarily determined that there may be a safety hazard of steel structure corrosion.

[0145] When the area ratio of the decay diagram to the wood structure diagram is greater than s3 (settable), it is preliminarily determined that there may be a safety hazard of rust on the wood components.

[0146] When the ratio of the area of ​​the falling off diagram to the area of ​​the brick structure diagram is greater than s4 (settable), it is preliminarily determined that there may be a safety hazard of brick weathering and falling off.

[0147] Optionally, in another implementation, the image of the house to be identified and the mask images of the wall structure, beam structure, column structure, steel structure, wooden structure and brick structure categories identified by the house and its component identification model can be obtained respectively to obtain the component image.

[0148] Then the crack recognition model can identify the mask images (the contour range of the damage) of these damage conditions, and obtain the damage areas according to the mask image area, thereby obtaining the crack image area. At the same time, the crack recognition model can identify the area occupied by the entire component in the house image and obtain the corresponding component image area.

[0149] The ratio of the crack image area to the component image area can be calculated to obtain the crack area ratio. Then, based on the size of the crack area ratio, it can be determined whether the house has cracking risks.

[0150] In one embodiment, the preset hidden danger identification model includes: a bending identification model, and the preliminary identification result includes: component bending hidden danger.

[0151] In one embodiment, the bend recognition model can adopt a lightweight, fast, and precise MobileNetV3 classification network architecture to ensure that the results can be recognized quickly and accurately without occupying a large amount of computing resources.

[0152] Wherein, as an example, the operation of calling a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result, the hidden danger preliminary identification module 103 is also used for:

[0153] The bending recognition model is used to recognize the recognition feature image to obtain a steel frame feature image of the steel structure of the house, wherein the steel frame feature image includes a steel beam image, a steel support image, a steel grid image, and a rod image.

[0154] The length value of each steel frame in the steel frame feature image is calculated using a straight line detection algorithm to obtain multiple length values.

[0155] The two length values ​​with the largest values ​​are selected from the multiple length values, and the steel frame angle value is obtained based on the angle between the two steel frames corresponding to the two length values ​​with the largest values.

[0156] If the steel frame angle value is less than a preset structure angle threshold, it is determined that there is no hidden danger of bending of the components of the house.

[0157] If the steel frame angle value is greater than a preset structure angle threshold, it is determined that the building safety hazard is a component bending hazard.

[0158] In one embodiment, since the steel structure of a house is complex and diverse, including structures such as steel bars, plate steel, steel beams, and steel rods, severe bending may cause safety hazards. The safety hazards are mainly concentrated in structures such as steel beams, steel supports, and steel truss rods. The different degrees of bending can be used to roughly determine whether there are safety hazards in the bending of the steel structure of the house.

[0159] Specifically, the bending recognition model can be used to recognize the above-mentioned recognition feature image, from which a mask image about the category of the house steel structure can be extracted to obtain a steel frame feature image. The steel frame feature image includes a steel beam image, a steel support image, a steel grid image, and a rod image. It should be noted that the steel mask image refers to the contour range of the steel structure in the original image, and the image of the steel structure needs to be cropped according to this contour range.

[0160] Next, the bending recognition model splits the images of the identified steel beams, steel supports, steel truss rods and other structures and the corresponding original images into segments, and then scales the segmented images and their mask images to 0.5, 0.7, 1.5, and 2 times, and uses line detection algorithms such as LineSegmentDector and FastLineDetector to perform multi-scale, multi-method, and multi-directional line detection. After that, the lines are classified, and the line length values ​​​​that are less than half of the longest side are filtered out, and then they are screened from the remaining length values. After multiple comparisons, the two best steel frame straight line segments are selected, and finally the angle formed by the two steel frame straight line segments is calculated and used to approximately represent the bending angle of the steel structure of the house.

[0161] It should be noted that the so-called two best straight lines can be the two steel frame straight lines with the longest length values. Of course, it may also be one, in which case it means there is no bend.

[0162] If the steel frame angle value is less than the preset structure angle threshold, it is determined that there is no hidden danger of component bending in the house.

[0163] If the steel frame angle value is greater than the preset structure angle threshold, it is determined that the house safety hazard is a component bending hazard.

[0164] For example, when the bending angle of the steel beam structure is greater than g1 (which can be set), it is preliminarily determined that there may be a safety hazard of downward deflection of the steel beam.

[0165] When the bending angle of the steel support structure is greater than g2 (which can be set), it is preliminarily determined that there may be a safety hazard of steel support bending.

[0166] When the bending angle of the steel grid member structure is greater than g3 (which can be set), it is preliminarily determined that there may be a safety hazard of bending of the steel grid member.

[0167] In this embodiment, the bending recognition model can crop the images of the identified structures such as steel beams, steel supports and steel truss rods and the corresponding original images, and use a variety of straight line detection algorithms to identify the two best straight line segments, and then calculate the angle formed by the two straight line segments and use this to approximately represent the bending angle of the steel structure of the house. Finally, it is determined whether there is a safety hazard of bending of the steel structure of the house based on whether the bending angle of the steel structure is greater than a threshold (which can be set).

[0168] Through the above model recognition, not only can we quickly identify whether the steel frame is bent, but also we can improve the accuracy of recognition, making it easier for relevant personnel to review and deal with hidden dangers.

[0169] In one embodiment, the preset hidden danger identification model includes: a tilt identification model, and the preliminary identification result includes: a tilt hidden danger.

[0170] In one embodiment, the tilt recognition model can also adopt a lightweight, fast, and precise MobileNetV3 classification network architecture, which can quickly and accurately identify the results without occupying a large amount of computing resources.

[0171] Wherein, as an example, the operation of calling a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result, the hidden danger preliminary identification module 103 is also used for:

[0172] The tilt recognition model is used to recognize the recognition feature image to obtain a contour image about the house contour, and the wall contour edge line is extracted from the contour image.

[0173] The angle between the wall contour edge line and a preset horizontal line is calculated to obtain a contour angle, where the preset horizontal line is a horizontal line of a smart terminal that collects the house image.

[0174] If the contour angle is smaller than a preset horizontal threshold, it is determined that the house has no tilt risk.

[0175] If the contour angle is greater than a preset horizontal threshold, it is determined that the building safety hazard is a tilt hazard.

[0176] In one embodiment, the overall tilt of the house mainly refers to that the whole house is not perpendicular to the ground and is tilted, and the tilt of the house components mainly refers to that the structures such as walls or columns are not perpendicular to the ground and are tilted.

[0177] In one implementation, the identification of hidden dangers of house tilt is to identify the house as a whole, and obtain an identification feature image of the overall house structure category, and then use the tilt recognition model to recognize the identification feature image, so as to obtain a contour image about the house outline. In addition, the tilt recognition model can be used to extract the wall contour edge line from the contour image, which can specifically be the edge line of the house exterior wall contour. For example, if the house is a single-family three-story house, the outline of its three floors and its contour edge line can be obtained.

[0178] Then, any one of the two sides can be extracted from the contour edge line, and then the angle between the side and the preset horizontal line can be calculated to obtain the contour angle. The preset horizontal line is the horizontal line of the smart terminal that collects the house image. When the smart terminal takes a photo, the smart terminal has a built-in horizontal line generation function, which can transmit its horizontal line to the platform. The platform can calculate the angle between it and the horizontal line to obtain the corresponding contour angle to determine the degree of inclination of the house.

[0179] Next, determine whether the contour angle is less than the preset horizontal threshold. If the contour angle is less than the preset horizontal threshold, it means that the house is not tilted or has a small tilt, and it can be determined that there is no tilt risk. If the contour angle is greater than the preset horizontal threshold, it means that the house has a large tilt, and it can be determined that the safety hazard of the house is a tilt risk.

[0180] In a specific operation mode, the operation of tilt hazard identification is as follows:

[0181] The tilt recognition model can first crop out the original images corresponding to the mask images of the overall house, wall structure and column structure respectively, then scale the cropped image and its mask image to multiple scales and use multiple line detection algorithms to perform multi-scale, multi-method and multi-directional line detection, and select the most representative vertical lines of the overall house, wall structure and column structure, and then obtain the respective horizontal lines generated by the smart terminal when taking pictures, and then calculate the vertical angles of the respective horizontal lines and the vertical lines corresponding to the corresponding structures, and subtract the vertical angle from 90 degrees to approximately represent the contour angle.

[0182] When the inclination angle of the overall vertical line of the building is greater than m1 (settable), it is preliminarily determined that there may be a safety hazard of the building tilting or being close to a dangerous building.

[0183] When the inclination angle of the vertical line of the wall structure is greater than m2 (settable), it is preliminarily determined that there may be a safety hazard of wall tilt.

[0184] When the inclination angle of the vertical line of the column structure is greater than m3 (settable), it is preliminarily determined that there may be a safety hazard of column tilt.

[0185] The tilt recognition model of the present invention can calculate the vertical angles of the entire house, wall structure and column structure according to the edge lines of the images of the entire house, wall structure and column structure and the horizontal line of the smart terminal, and use 90 degrees minus the vertical angle to approximate the contour angle. Finally, according to whether the contour angle is greater than a threshold (which can be set), it is determined whether there is a safety hazard of tilting the entire house and components, thereby improving the precision and accuracy of recognition.

[0186] In one embodiment, the preset hidden danger identification model includes: a violation identification model, and the preliminary identification result includes: a violation hidden danger.

[0187] In one embodiment, the violation identification model can be built by means of ReID personnel re-identification, and the AdaFace loss function based on face recognition is used, while the triplet loss is combined to solve the complex, multi-angle house comparison and recognition, and can accurately identify the similarity of two house images in a variety of scenarios.

[0188] Wherein, as an example, the operation of calling a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result, the hidden danger preliminary identification module 103 is also used for:

[0189] When it is determined that there is an expansion area of ​​the house, the house outline map is intercepted from the recognition feature image using the violation recognition model.

[0190] The similarity between the house outline map and a preset outline map is calculated to obtain an outline similarity value.

[0191] If the outline similarity value is greater than a preset similarity value, it is determined that the house has no potential violation risks.

[0192] If the contour similarity value is less than a preset similarity value, the housing safety hazard is determined to be a violation hazard.

[0193] In one embodiment, the expansion area is an area where a house is added or illegally built. For example, a roof is added to the top of a single-family house; or a protruding anti-theft net is added to the balcony of a house. These additional house structures may not be reported, and may be built loosely, be dangerous, and leave potential safety hazards. Therefore, they need to be inspected to determine whether there are potential violations.

[0194] If it is determined that there is no expansion area for the house, it means that the house has not violated any regulations and there is no need to identify potential violations; if it is determined that there is an expansion area for the house, the violation identification model can be used for identification and processing.

[0195] Specifically, the violation recognition model can be used to extract the outline of the house from the recognition feature image, and then the hidden dangers can be identified based on the outline to determine whether there are any safety hazards caused by illegal expansion.

[0196] In one implementation, after determining that a house has an expanded area, it is necessary to determine whether the expanded area affects the safety of the house. The image of the house to be identified and all images about the house structure can be obtained, and then the violation recognition model is used to capture the house outline from the identification feature image about the house structure. The house outline is an image that includes the outline of the house.

[0197] The similarity between the house outline and the preset outline is calculated to obtain the outline similarity value. The outline similarity value can be used to determine the size of the house outline change. If the outline similarity value is large, it is determined that the house outline has changed little, the area of ​​illegal expansion is small, and the safety hazard caused by the violation is also small. On the contrary, if the outline similarity value is small, it is determined that the house outline has changed a lot, the area of ​​illegal expansion is large, the safety hazard caused by the violation is also large, and the safety risk is also high.

[0198] Specifically, the preset outline image may be the most original image of the house obtained from a database.

[0199] The top and sides of the house outline can be compared with the preset outline. If there are major changes, there may be safety hazards such as illegal addition of floors / construction on the top floor or illegal expansion / construction on the sides.

[0200] In a specific implementation, the identification operation is as follows:

[0201] After obtaining the house outline map and the preset outline map, the pre-trained violation recognition model can be used to calculate the similarity between the house outline map and the preset outline map. If the similarity value is less than a threshold t (settable), there may be suspected safety hazards such as illegal addition of floors / construction on the top floor or illegal expansion / construction on the side.

[0202] It should be noted that, in each of the above operations, it may be necessary to extract the house image to be identified, which can be extracted from the house and its component identification model.

[0203] In order to accurately determine whether the house has an expansion area, as an example, the operation of determining whether the house has an expansion area, the hidden danger preliminary identification module 103 is also used to:

[0204] A plurality of house structure images are extracted from the recognition feature image, and the plurality of house structure images are sorted according to image areas.

[0205] According to the image sorting results, the area intersection ratios of two adjacent house structure images are calculated pairwise to obtain multiple area superposition values.

[0206] If any of the area superposition values ​​is greater than a preset total value, it is determined that there is an expansion area for the house.

[0207] If each of the area superposition values ​​is smaller than the preset total value, it is determined that there is no expansion area for the house.

[0208] In a specific implementation, illegal expansion of a house mainly refers to the illegal construction of additional floors on the top floor, or the illegal construction of other structural buildings on the top floor, or the illegal horizontal expansion and construction on the side of the building. This will add a part of the building to the basis of the original house. The extra part will be significantly different from the original house, but it is part of the overall house.

[0209] In this regard, we can determine whether the top and sides of the entire house are nested, or the degree of change compared with the original image, to preliminarily determine whether there are safety hazards caused by illegal expansion of the house.

[0210] Specifically, a number of house structure images may be extracted from the recognition feature image. Specifically, the house structure image may be an image about the exterior structure of the house.

[0211] Next, the area of ​​the house in each house structure image can be obtained to obtain the house area. Then, multiple house structure images are sorted in descending order according to the house area from large to small. Next, it can be calculated from large to small whether there are small nested house structure images on the top and side of the mask image.

[0212] A specific calculation method may be to calculate the intersection area of ​​two house outlines in pairs from large to small. When the intersection area exceeds 80% of the area of ​​the small house, it is determined to be nested.

[0213] For example, first calculate the ratio of the area intersection between the first house structure image and the second house structure image to obtain the area superposition value.

[0214] If any area superposition value is greater than the preset total value, it is determined that there is an expansion area for the house.

[0215] If each area superposition value is less than the preset total value, it is determined that there is no expansion area for the house.

[0216] Optional. If the area superposition value of the image on the top of the house is greater than the preset total value, it means that the top of the house is nested, and there may be a safety hazard of suspected illegal addition of floors / construction on the top floor. If the area superposition value of the image on the side of the house is greater than the preset total value, it means that the side of the house is nested, and there may be a safety hazard of suspected illegal expansion / construction on the side.

[0217] The image area can be used to quickly detect whether there are nested houses or illegally added buildings, so as to improve the accuracy of identifying subsequent illegal safety hazards.

[0218] In one embodiment, the hidden danger identification model preset in the present invention includes: a basic identification model, a cracking identification model, a bending identification model, a tilt identification model, and a violation identification model.

[0219] In order to enable the model to quickly perform recognition and calculation, the training method of each of the above models can include the following sub-steps:

[0220] S11. After obtaining a sample image set with image annotation, perform data enhancement processing on the sample image set to obtain an enhanced data set. The data enhancement processing includes: space transformation processing, color distortion processing, information deletion processing, image fusion processing, random replacement processing, and splicing processing.

[0221] Among them, sample images can be collected through three channels: on-site photography, online search and video frame extraction to collect a large number of sample images, and all sample image data are selectively selected to eliminate similar, unclear and invalid data, and finally obtain a high-quality sample image set.

[0222] After obtaining the sample image, data can be annotated. In addition to pure manual annotation, an automatic annotation model can also be built, that is, a small amount of data is used to train an automatic annotation recognition model to assist manual annotation. Before manually annotating the data, the initial automatic annotation is performed through the annotation model, and then a simple secondary identification and correction is performed manually, which greatly improves the data annotation speed and finally forms a large number of annotated image data sets.

[0223] After completing the annotation and obtaining the sample image set, the data set can be divided into training set, validation set and test set in the ratio of 7:2:1. The training set accounts for 70% and is mainly used for training the model. The validation set is used to regularly verify the model recognition effect during the training process so as to adjust the training strategy or model parameters at any time. The test set is used to finally test the recognition effect of the model to determine the quality of the model.

[0224] Next, data enhancement processing can be performed on the sample image set belonging to the training set to obtain an enhanced data set.

[0225] Among them, data enhancement processing includes: space transformation processing, color distortion processing, information deletion processing, image fusion processing, random replacement processing, and splicing processing.

[0226] Among them, data enhancement can be a data enhancement operation on the training data set. In addition to the commonly used data enhancement techniques such as spatial transformation processing (random scale transformation, random cropping, random flipping), color distortion processing (transparency, brightness, saturation), and information deletion processing (random noise, random occlusion), image enhancement techniques such as image fusion processing, random replacement of image area processing, and four-in-one splicing image processing are also added.

[0227] The specific enhancements are as follows:

[0228] For spatial transformation processing, the random scale transformation is to randomly scale the width and height of the image by 0.5 to 2 times; the random cropping is to crop a part of the image and then transform it to the width and height of the original image; the random flipping is to flip the image upside down and left to right; the spatial transformation technology can not only increase data, but also weaken data noise and increase model stability.

[0229] For color distortion processing, the image can be converted to the HSV color space, and disturbances can be added to the three channels of H, S, and V to perform hue transformation, thereby achieving the purpose of data enhancement. H represents hue, with a value range of (0, 180), S represents saturation, with a value range of (0, 255), V represents brightness, with a value range of (0, 255), hgain is the ratio of H transformation, with a value range of (-1.5, 1.5), sgain is the ratio of S transformation, with a value range of (-1.5, 1.5), and vgain is the ratio of V transformation, with a value range of (-1.5, 1.5). Color distortion technology can increase data and enable the model to adapt to different lighting changes, such as changes in weather and seasons, and increase model stability.

[0230] For information deletion, some pixels can be randomly deleted from the image. The area discarded by the algorithm is neither a continuous area nor a random element. What is discarded is a group of discontinuous areas, which is equivalent to adding a regular term to the network to avoid network overfitting. The density and size of the deleted area are mainly controlled by four parameters: r, d, x, and y, where r is the ratio of the retained area and is a fixed value, d determines the size of the deleted area, and x and y are the side lengths of the deleted area.

[0231] For image fusion processing, you can randomly take a small part of the background image, and then randomly perform weighted fusion with this small part of the background image at a certain position in the training image to form a semi-transparent composite image that is both the target and the background. Then, set the target label value of this part of the synthesis from 1 to 0.5 to add difficult samples to the model training, thereby enhancing the model recognition ability.

[0232] For the random replacement of image areas, a small part of the background image or the target image can be randomly selected, and then this small part of the image is randomly used to cover a part of the training image to form an image with other scenes mixed in the original image, thereby increasing the content richness of a single image and achieving the effect of enriching the training image.

[0233] For the four-in-one stitching process, you can first determine a training picture, then randomly find the other three training pictures, and then stitch the upper two pictures and the lower two pictures, and finally form a four-in-one new picture. This technology achieves the effect of making one picture have four different scenes, and at the same time indirectly scales the image, so that the synthesized picture has richer information.

[0234] S12: transform the position values ​​of the labels included in the enhanced data set to obtain transformed label values, and normalize the enhanced data set and the transformed label values ​​to obtain normalized data.

[0235] In one embodiment, the above-mentioned label transformation process can be to obtain a training data set after data enhancement, and perform corresponding transformation processing on the position value in the label, and perform label smoothing operation on the category value in the label. Label smoothing is to scale the category value in the label, for example, the label category value [0,1,0] is calculated as [0,1,0]*(1-0.1)+0.1 / 2, so as to obtain a new label category value [0.05,0.95,0.05], so that the label category value can avoid the situation of being either 0 or 1, so that the category is tighter and the categories are more separated, so that the model always retains a little learning space to achieve the effect of balanced model decision.

[0236] S13, using the normalized data to perform model training to obtain a hidden danger identification model.

[0237] In one embodiment, the normalization process may be to perform normalization preprocessing on the data-enhanced image and its label position value, normalize the image pixel value and its label position value to 0 to 1, thereby increasing the convergence of the training network and preventing gradient explosion, and finally send the image and its label value to the reflective clothing detection model for model training.

[0238] In this embodiment, in terms of the input image size, a multi-scale training technique is used, that is, seven image sizes of 352, 416, 480, 512, 576, 608, and 640 pixels with equal width and height are pre-set, and then the size of the input image is changed after each epoch. Different sizes are used for training for 7 consecutive epochs, and each 7 epochs constitutes a cycle. Such multi-scale training can significantly improve the robustness of the model to the size of the target object to a certain extent, thereby improving the recognition accuracy.

[0239] It should be noted that in the calculation of loss values ​​during the training process, first, the CIOU loss calculation method is used to perform multi-angle overlapping loss calculation on the predicted box and the true box. This method takes into account the overlapping area, center point distance, and aspect ratio of the predicted box and the true box, which greatly enhances the accuracy of loss calculation. Second, the Focal loss loss calculation method is used to perform balanced loss calculation on positive and negative samples. This method adds α and γ parameters to the ordinary cross entropy function. The α parameter is used to balance the uneven ratio of positive and negative samples, while the γ parameter is used to reduce the loss of easy-to-classify samples and instead pay more attention to difficult and misclassified samples, which can ultimately better balance the samples in the data set.

[0240] In terms of recording the training process, the present invention uses TensorBoard visualization technology to record the loss value and accuracy value obtained from each step of training, and then uses the validation set to perform model calculations after each epoch to obtain the verified loss value and accuracy value and record them in TensorBoard, and then TensorBoard will draw a change curve chart based on these loss values ​​and accuracy values.

[0241] After completing the model training, you need to keep the model. When saving the model, the platform compares the accuracy difference with the previous 8 steps every 8 steps in the model training, and then determines whether to save the model parameters based on the increase in the difference to ensure that the model has the best recognition effect each time.

[0242] After training is completed, the model needs to be verified. In the model verification process, a combination of training and verification can be used. After each epoch, the model accuracy is checked once with the verification set, and the verification loss value and accuracy value are calculated. This result is used to measure the model recognition effect under the current training progress.

[0243] During training, the model needs to be trained repeatedly to achieve accuracy. The operation of repeated training can first determine whether the loss value and accuracy value change curve of the entire training process last time meet expectations. If not, analyze the problems in the training process to adjust the model and training strategy for repeated training, and select several better recognition models in the process.

[0244] In order to stop model training, a loss change threshold and a maximum number of cycles can be set. When the training does not reach the maximum number of cycles, and the change in the loss value has not reached the loss change threshold within a certain period, and the verification accuracy value begins to decrease, it means that the model's fit has reached the optimal peak. If training is continued, the accuracy of the verification set will continue to decline, resulting in overfitting of the model, so training should be stopped at this time.

[0245] In addition, during the model testing and final model selection operations, the better recognition models selected after repeated training can be tested using the test data set, and the accuracy and mAP value of each model can be calculated. If the accuracy and mAP values ​​of all models do not meet expectations, the model and training strategy are adjusted for repeated training. If a model meets expectations, the model with the largest mAP value is selected and used as the optimal hidden danger recognition model.

[0246] The recognition feedback module 104 is used to display the preliminary recognition result to relevant personnel for reference.

[0247] In one embodiment, after the system completes the above-mentioned hidden preliminary identification and obtains the preliminary identification result, the preliminary identification result can be fed back to the relevant person who triggered the identification, or displayed to the relevant person for secondary review.

[0248] For example, if there is a cracking hazard, the preliminary identification results of the cracking hazard can be displayed, and the house image corresponding to the cracking hazard can also be displayed, so that relevant personnel can go to the location of the cracking in the house for further manual review.

[0249] At the same time, relevant personnel can also input the results of their inspections into their terminals, which will be transmitted to the system for storage.

[0250] For example, if the inspection result of the relevant personnel is the same as the preliminary identification result, the system can prompt the resident or owner of the house to repair the house. If the inspection result of the relevant personnel is different from the preliminary identification result, the system can replace the preliminary identification result with the inspection result.

[0251] In one embodiment, in order to promptly remind the residents or owners of a house when there is a potential safety hazard, the system may further include, as an example:

[0252] The identity binding module 105 is used to obtain the resident information of the self-built house and bind the resident information with the identification code so that the information of the resident of the self-built house can be queried after scanning the identification code.

[0253] Specifically, the resident information of this self-built house can be provided, and the resident information may include personal privacy information such as their ID card and telephone number.

[0254] Next, the resident information can be bound to the identification code. After scanning the identification code, the information of the resident of the self-built house in question can be displayed.

[0255] For example, if the inspection results of relevant personnel are the same as the preliminary identification results, the system can send a text message to the resident or householder of the house based on the resident's phone number to prompt the resident or householder to repair the house in a timely manner.

[0256] At the same time, after scanning the identification code, relevant personnel can also see the resident’s phone number, and can also promptly notify the resident or homeowner to carry out maintenance on the house.

[0257] Reference Figure 2 , showing a schematic diagram of a communication connection structure of a safety hazard management system for self-built houses provided by an embodiment of the present invention.

[0258] In one embodiment, the safety hazard management system for self-built houses can be connected to multiple smart terminals, including computers and mobile phones.

[0259] Different personnel (for example, the public, managers and inspectors) can collect different data from various houses, and then upload them to the safety hazard management system for self-built houses through their smart terminals, which will be managed accordingly. For example, the owner, the public, inspectors, appraisal agencies, experts, and administrative department staff can be connected in series using mobile Internet of Things technology through a unique house identity. The owner and the public scan the code to complete the house information query and abnormal situation feedback, and the inspectors and experts scan the code to complete the house inspection information report. The administrative department uses the platform to collect the self-built house information and handle abnormal problems and other daily management work. And use big data technology to provide more intuitive data reports and data large screen functions for individual business personnel.

[0260] Reference Figure 3 , shows an operational flow chart of hidden danger identification for a hidden danger management system for self-built houses provided by an embodiment of the present invention.

[0261] Specifically, the operation of the hidden danger identification method may include the following steps:

[0262] The first step is to obtain the image to be identified and input it into the house and its component recognition model.

[0263] In the second step, the house and its component recognition model recognizes the picture to be recognized, obtains multiple recognition feature images of different categories, and transmits the multiple recognition feature images to different hidden danger recognition models.

[0264] The third step is to use different hidden danger identification models to identify hidden dangers in the recognition feature images and determine the safety hazards of the house.

[0265] Through the above-mentioned operation mode, the present invention can determine whether there are safety hazards in the house through daily inspections of the house, special inspections, and the use of image AI recognition and big data analysis technology on uploaded on-site pictures.

[0266] In addition, the present invention constructs an intelligent identification algorithm for housing safety risks based on deep learning to assist in inspections. It also uses AI technology to perform intelligent dynamic analysis on the inspection photos, automatically determine whether there are safety hazards in the housing structure and surrounding environment, and assist on-site inspectors to quickly analyze and identify housing safety risks.

[0267] In this embodiment, the embodiment of the present invention provides a method for identifying hidden dangers in a house based on a house image, and its beneficial effects are: the present invention can establish a data center for self-built houses based on house data, and generate a corresponding identification code for each self-built house for relevant personnel to scan, and after scanning the identification code, the house image of the self-built house is obtained and a preliminary identification of safety hazards is performed, so that relevant personnel can verify on-site based on the preliminary identification results, which can not only reduce the workload of patrol inspections and improve processing efficiency, but also improve the accuracy of identification.

[0268] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A safety hazard management system for self-built houses, characterized in that: The system comprises: The housing code module is used to generate corresponding identification codes according to the housing data of each self-built house after collecting the housing data of multiple self-built houses and building a housing database; An image acquisition module is used to obtain a house image, wherein the house image is an image uploaded after a relevant person scans the identification code and confirms his / her identity during a house inspection; A hidden danger preliminary identification module is used to perform image recognition on the house image to obtain an identification feature image, and call a preset hidden danger identification model to perform preliminary hidden danger identification on the identification feature image to obtain a preliminary identification result; An identification feedback module is used to display the preliminary identification results to relevant personnel for reference; The preset hidden danger identification model includes: a violation identification model, and the preliminary identification result includes: a violation hidden danger; The hidden danger preliminary identification module is also used for: When it is determined that there is an expansion area of ​​the house, the house outline map is intercepted from the identification feature image using the violation identification model; Calculating the similarity between the house outline map and a preset outline map to obtain an outline similarity value; If the outline similarity value is greater than a preset similarity value, it is determined that the house has no potential violation risks; If the contour similarity value is less than a preset similarity value, the housing safety hazard is determined to be a violation hazard; The recognition feature images include: overall house image, wall structure image, beam structure image, column structure image, steel structure image, wood structure image and brick structure image; The hidden danger preliminary identification module is also used to identify the position and outline of the overall house structure, wall structure, beam structure, column structure, steel structure, wooden structure and brick structure in the house image by using a preset component recognition model to obtain a corresponding structure mask image; The structural mask image is labeled and preprocessed to obtain a recognition feature image, wherein the preprocessing includes linear filtering technology, image restoration processing and normalization processing.

2. The safety hazard management system for self-built houses according to claim 1 is characterized in that: The preset hidden danger identification model includes: a basic identification model, and the preliminary identification results include: foundation hidden dangers; The hidden danger preliminary identification module is also used for: When it is determined that the recognition feature image contains a basic structure of a house, calling the basic recognition model to recognize the recognition feature image to obtain a basic image of the house, wherein the basic image of the house includes a river ditch structure image, a soil slope structure image, a culvert structure image, and a pothole structure image; Using each of the house basic images and the recognition feature images, respectively calculate the relative distance between the house basic structure and the house to obtain a basic distance value; If each of the foundation distance values ​​is greater than the corresponding preset foundation threshold, it is determined that the house has no foundation hidden dangers; If any of the foundation distance values ​​is less than the corresponding preset foundation threshold, it is determined that the safety hazard of the house is a foundation hazard.

3. The safety hazard management system for self-built houses according to claim 1 is characterized in that: The preset hidden danger identification model includes: a cracking identification model, and the preliminary identification result includes: a cracking hidden danger; The hidden danger preliminary identification module is also used for: Extracting component images about the component structure inside the house from the recognition feature image, wherein the component images include column component images, wall component images, and beam component images; Using the crack recognition model to identify the component image to obtain a component crack region, and respectively calculating a crack image area corresponding to the component crack region and a component image area corresponding to the component; Calculating the ratio of the crack image area to the component image area to obtain a crack area ratio; If the crack area ratio is less than a preset crack threshold, it is determined that the house has no cracking risk; If the crack area ratio is greater than a preset crack threshold, it is determined that the housing safety hazard is a crack hazard.

4. The safety hazard management system for self-built houses according to claim 1 is characterized in that: The preset hidden danger identification model includes: bending identification model, and the preliminary identification result includes: component bending hidden danger; The hidden danger preliminary identification module is also used for: Using the bending recognition model to recognize the recognition feature image, a steel frame feature image of the steel structure of the house is obtained, wherein the steel frame feature image includes a steel beam image, a steel support image, a steel grid image, and a rod image; Calculating the length value of each steel frame in the steel frame feature image using a straight line detection algorithm to obtain multiple length values; Selecting two length values ​​with the largest values ​​from the multiple length values, and obtaining a steel frame angle value based on the angle between the two steel frames corresponding to the two length values ​​with the largest values; If the steel frame angle value is less than the preset structure angle threshold, it is determined that there is no hidden danger of bending of the components of the house; If the steel frame angle value is greater than a preset structure angle threshold, it is determined that the building safety hazard is a component bending hazard.

5. The safety hazard management system for self-built houses according to claim 1 is characterized in that: The preset hidden danger identification model includes: a tilt identification model, and the preliminary identification result includes: a tilt hidden danger; The hidden danger preliminary identification module is also used for: Using the tilt recognition model to recognize the recognition feature image to obtain a contour image about the house contour, and extracting the wall contour edge line from the contour image; Calculating the angle between the wall contour edge line and a preset horizontal line to obtain a contour angle, wherein the preset horizontal line is a horizontal line of a smart terminal that collects the house image; If the contour angle is less than a preset horizontal threshold, it is determined that the house has no tilt risk; If the contour angle is greater than a preset horizontal threshold, it is determined that the building safety hazard is a tilt hazard.

6. The safety hazard management system for self-built houses according to claim 1 is characterized in that: Determining the existence of an expansion area of ​​a house includes: Extracting a plurality of house structure images from the recognition feature image, and sorting the plurality of house structure images according to image areas; According to the image sorting results, the area intersection ratios of two adjacent house structure images are calculated pairwise to obtain multiple area superposition values; If any of the area superposition values ​​is greater than the preset total value, it is determined that the house has an expansion area; If each of the area superposition values ​​is smaller than the preset total value, it is determined that there is no expansion area for the house.

7. The safety hazard management system for self-built houses according to any one of claims 1 to 6, characterized in that: The training operation of the hidden danger identification model includes: After obtaining a sample image set with image annotation completed, data enhancement processing is performed on the sample image set to obtain an enhanced data set, wherein the data enhancement processing includes: space transformation processing, color distortion processing, information deletion processing, image fusion processing, random replacement processing, and splicing processing; Transforming the position values ​​of the labels contained in the enhanced data set to obtain transformed label values, and normalizing the enhanced data set and the transformed label values ​​to obtain normalized data; The normalized data is used to perform model training to obtain a hidden danger identification model.

8. The safety hazard management system for self-built houses according to any one of claims 1 to 6, characterized in that: The system further comprises: The identity binding module is used to obtain the resident information of the self-built house and bind the resident information with the identification code so that the information of the resident of the self-built house can be queried after scanning the identification code.