Knowledge graph-based automatic identification and migration method for style and appearance style of Mongolian building
Using knowledge graph technology, combined with the branch-and-bound algorithm and the CycleGAN model, the problem of insufficient identification of multi-dimensional elements in traditional architectural style migration is solved, and efficient and scientific migration of Monte's architectural style is achieved, ensuring that the migration results comply with construction standards.
Patent Information
- Application Number
- CN202410926633.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The transfer of traditional architectural styles lacks comprehensive consideration of multi-dimensional elements, lacks scientific and quantitative data support, and cannot dynamically and intuitively identify and transfer Montenegrin architectural styles.
Using a knowledge graph-based method, we build a Montenegro architectural model library through surveying and three-dimensional modeling, identify and cluster style genes, use a total station and RTX 3060 graphics card for accurate surveying and calculation, and combine the branch and boundary algorithm and CycleGAN model to achieve Automatic recognition and migration of features.
It improves the accuracy and scientificity of style identification, realizes intelligent migration of style, improves the efficiency of the migration process and the display of the output results, and ensures that the migrated buildings meet construction standards.
Smart Images

Figure CN118780171A_ABST
Abstract
Description
Technical field:
[0001] The present invention relates to the field of construction engineering, and in particular to an automatic recognition and migration method of Montenegrin architectural styles based on a knowledge graph. Background technology:
[0002] Urban architectural style is a comprehensive reflection of the city's material form characteristics, social culture and economic characteristics, and is the carrier of urban characteristics and culture. The shaping of characteristic architectural style helps to reflect the city's unique personality, meet people's material and spiritual needs, and achieve the harmonious unity of region, culture and time. Traditional architectural style migration usually relies on designers to summarize their practical experience and professional knowledge and give architectural design plans, which has problems such as excessive subjectivity and lack of scientificity. For Montenegrin architecture, a building type with diverse elements and complex combinations, it is even more difficult to comprehensively and intuitively identify and migrate its style.
[0003] Architectural style migration refers to identifying the color, pattern, facade material, etc. of a building and applying it to another building so that the two have the same or similar architectural style. Summary of the invention:
[0004] In view of the shortcomings of the prior art, the present invention provides an automatic recognition and migration method for Montenegrin architectural style based on knowledge graph, which solves the problems that traditional characteristic architectural style recognition lacks comprehensive consideration of multi-dimensional factors, lacks scientific rationality and data quantification support, and cannot dynamically and intuitively migrate its style.
[0005] The present invention is implemented by the following technical solution: a method for automatically identifying and migrating Montenegrin architectural styles based on a knowledge graph, the method comprising the following steps:
[0006] (1) Construction of Monte Architectural Model Library:
[0007] A total station with a distance measurement accuracy of no less than 2mm+2ppm and an angle measurement accuracy of no less than 2″ was used to survey typical Montenegrin buildings. Based on the data collected from field surveying, the characteristic structural elements of Montenegrin buildings were divided into layers to establish a three-dimensional model, and the layers were numbered. The characteristic structural elements included 15 elements in three categories: wooden frame system, felt system, and rope system. A workstation equipped with an RTX 3060 graphics card was used to calculate the characteristic attributes and correlation relationships of each characteristic structural element in the three-dimensional model, and the calculation results and the three-dimensional model were entered into the model library to build a Montenegrin building model library.
[0008] (2) Construction of knowledge graph of Montenegrin architectural style:
[0009] Each characteristic structural element in step (1) is regarded as an "entity", and the relationship between each characteristic structural element and other characteristic structural elements in the model is regarded as a "relationship", and the two are combined to form a knowledge graph ontology of "entity-relationship-entity"; then, each characteristic structural element in the Monte architectural model library, the characteristic attributes of the characteristic structural elements, and the relationship between the characteristic structural elements are generated into a data table, and each Monte architectural knowledge graph in the Monte architectural model library is constructed;
[0010] (3) Cluster identification of Montenegrin architectural style genes:
[0011] Using a workstation equipped with an RTX 3060 graphics card, the Monte architecture graphs in the Monte architecture model library are clustered into multiple categories. The branch-and-bound algorithm is used to reduce the scope of entities layer by layer according to the importance of the entities in the graph structure, and the optimal structure of the entities in each category graph is obtained as the core subset to form a gene library of Monte architecture style.
[0012] (4) The architectural style of Montenegro is transferred to the target building:
[0013] The target building is surveyed and modeled on the spot using a total station with a distance measurement accuracy of no less than 2mm+2ppm and an angle measurement accuracy of no less than 2″, and a knowledge graph of the target building is constructed; the target building knowledge graph structure is then matched with the Monte architectural style gene library to find a core subset that matches it, and a random set of characteristic structural elements, characteristic attributes of characteristic structural elements, and the relationship between characteristic structural elements corresponding to the core subset are extracted from the Monte architectural model library, and the current structural elements of the target building are converted in style to achieve the migration of Monte architectural style;
[0014] (5) Measurement and correction:
[0015] The relocated building is constructed on site, and its load-bearing capacity is measured by a universal tensile testing machine, its thermal insulation performance is measured by a thermocouple, and its wind resistance performance is measured by an anemometer, and compared with the local building construction standards; if the construction standards are not met, return to step (4) and randomly select a set of structural elements, element characteristic attributes and association relationships again, and repeat step (5) until the relocated building fully meets the standards.
[0016] Preferably, in step (1), the characteristic attributes and association relationships of each element in the calculation model refer to the quantifiable characteristic values of each entity and the quantifiable characteristic values of each association relationship.
[0017] Preferably, in step (2), constructing each Monte architectural knowledge graph in the Monte architectural model library means taking the aforementioned three categories of 15 elements, namely the wooden frame system, the felt system, and the rope system, as entities, and entering them into the knowledge graph construction platform in combination with the entity attributes and association relationships; using the platform to digitally encode the structured data, encapsulating the data into entities according to the ontology, establishing the relationship between the entities through an algorithm and expressing it visually, and finally generating each Monte architectural knowledge graph in the Monte architectural model library.
[0018] Preferably, in step (3), the use of the branch-and-bound algorithm to gradually reduce the scope of entities according to the importance of the entities in the graph structure, and obtaining the optimal structure of entities in each category graph as the core subset, refers to using the branch-and-bound algorithm in the knowledge graph G d To extract the optimal structure of entities, we first determine the maximum and minimum number of entities to be selected. i The importance value(b i ) Reduce G d Entity range, obtain the core subgraph, and its objective function is:
[0019]
[0020] Among them, when the parameter DW i When the value of DW is 0, it means that the entity is not selected. i When the value of is 1, it indicates that the entity is selected; score max (G d ) indicates the importance value(b t )The subgraph with the largest sum is taken as the core subset.
[0021] Preferably, in step (4), matching the target architectural knowledge graph structure through the Monte architectural style gene library refers to calling an algorithm in the knowledge graph construction platform to calculate the cosine similarity of the angles between multidimensional vectors, and selecting the graph structure with a cosine similarity greater than 0.8 for matching; wherein the cosine similarity calculation formula is as follows, and the calculation result is between -1 and 1, -1 is completely different, and 1 is completely similar:
[0022]
[0023] Preferably, in step (4), extracting a random group of characteristic structural elements, characteristic structural element feature attributes and the association relationship between characteristic structural elements corresponding to the core subset from the Monte architectural model library refers to searching for relevant data in the knowledge graph construction platform, linking the query results to the original images of the elements, and outputting them as a feature attribute table and a feature association relationship table in descending order of similarity.
[0024] Preferably, in step (4), the style conversion of the current structural elements of the target building refers to converting the query image result to the target building image based on the CycleGAN model using two generator networks and two discriminator networks, outputting the rendering of the target building, and realizing the migration of style.
[0025] The advantages of the present invention are as follows: compared with the prior art,
[0026] 1. The present invention constructs a Monte architectural model library by layering and modeling 15 kinds of characteristic structural elements of Monte architectural wooden frame system, felt system and rope system, calculating the characteristic attributes and correlation of each element in the model, and ensuring the standardization and accuracy of the data. The branch and bound algorithm is further used to calculate the core subset, accurately identify the Monte architectural style genes and build a library, which maximizes the accuracy and scientificity of style gene identification and improves the efficiency of the process.
[0027] 2. The present invention calculates the characteristic attributes and associations of each characteristic element and enters them into the knowledge graph construction platform, digitally encodes the structured data, encapsulates the data into entities according to the ontology, establishes the relationship between the entities through the algorithm and expresses it visually, and finally realizes the construction of the knowledge graph of Montenegro's architectural style. Through the integration of multiple elements, the accuracy of subsequent style recognition and migration is improved.
[0028] 3. The present invention matches similar graph structures through knowledge graphs combined with multiple algorithms, and further uses the CycleGAN model to convert the queried image results into the target building image, outputs the rendering of the target building, and realizes the intelligent migration of style. The whole process is more feasible and scientific, and the displayability of the output results is also improved. Description of the drawings:
[0029] Figure 1 is a flow chart of the method of the present invention;
[0030] Figure 2 It is a knowledge graph of the architectural style of Montenegro constructed by the present invention;
[0031] Figure 3 It is the Montenegrin architectural rendering output by the present invention. Specific implementation method:
[0032] Example 1: Figures 1 to 3 As shown, the automatic recognition and migration method of Montenegrin architectural style based on knowledge graph includes the following steps:
[0033] (1) Construction of Monte Architectural Model Library:
[0034] A total station with a distance measurement accuracy of no less than 2mm+2ppm and an angle measurement accuracy of no less than 2″ was used to survey typical Montenegrin buildings. Based on the data collected from field surveying, the characteristic structural elements of Montenegrin buildings were divided into layers to establish a three-dimensional model, and the layers were numbered. The characteristic structural elements included 15 elements in three categories: wooden frame system, felt system, and rope system. A workstation equipped with an RTX 3060 graphics card was used to calculate the characteristic attributes and correlation relationships of each characteristic structural element in the three-dimensional model, and the calculation results and the three-dimensional model were entered into the model library to build a Montenegrin building model library.
[0035] (2) Construction of knowledge graph of Montenegrin architectural style:
[0036] Each characteristic structural element in step (1) is regarded as an "entity", and the relationship between each characteristic structural element and other characteristic structural elements in the model is regarded as a "relationship", and the two are combined to form a knowledge graph ontology of "entity-relationship-entity"; then, each characteristic structural element in the Monte architectural model library, the characteristic attributes of the characteristic structural elements, and the relationship between the characteristic structural elements are generated into a data table, and each Monte architectural knowledge graph in the Monte architectural model library is constructed;
[0037] (3) Cluster identification of Montenegrin architectural style genes:
[0038] Using a workstation equipped with an RTX 3060 graphics card, the Monte architecture graphs in the Monte architecture model library are clustered into multiple categories. The branch-and-bound algorithm is used to reduce the scope of entities layer by layer according to the importance of the entities in the graph structure, and the optimal structure of the entities in each category graph is obtained as the core subset to form a gene library of Monte architecture style.
[0039] (4) The architectural style of Montenegro is transferred to the target building:
[0040] The target building is surveyed and modeled on the spot using a total station with a distance measurement accuracy of no less than 2mm+2ppm and an angle measurement accuracy of no less than 2″, and a knowledge graph of the target building is constructed; the target building knowledge graph structure is then matched with the Monte architectural style gene library to find a core subset that matches it, and a random set of characteristic structural elements, characteristic attributes of characteristic structural elements, and the relationship between characteristic structural elements corresponding to the core subset are extracted from the Monte architectural model library, and the current structural elements of the target building are converted in style to achieve the migration of Monte architectural style;
[0041] (5) Measurement and correction:
[0042] The relocated building is constructed on site, and its load-bearing capacity is measured by a universal tensile testing machine, its thermal insulation performance is measured by a thermocouple, and its wind resistance performance is measured by an anemometer, and compared with the local building construction standards; if the construction standards are not met, return to step (4) and randomly select a set of structural elements, element characteristic attributes and association relationships again, and repeat step (5) until the relocated building fully meets the standards.
[0043] In step (1), the characteristic attributes and association relationships of each element in the calculation model refer to the quantifiable characteristic values of each entity in Table 1 and the quantifiable characteristic values of each association relationship in Table 2.
[0044] Table 1 Description of quantitative indicators of entity element attributes
[0045]
[0046]
[0047] Table 2 Description of entity attribute quantitative indicators
[0048]
[0049] In step (2), constructing each Monte architectural knowledge graph in the Monte architectural model library means taking the aforementioned three categories of 15 elements, namely the wooden frame system, the felt system, and the rope system, as entities, and entering them into the knowledge graph construction platform in combination with the entity attributes and association relationships; using the platform to digitally encode the structured data, encapsulating the data into entities according to the ontology, establishing the relationship between the entities through algorithms and expressing them visually, and finally generating each Monte architectural knowledge graph in the Monte architectural model library.
[0050] In step (3), the branch-and-bound algorithm is used to reduce the scope of entities layer by layer according to the importance of entities in the graph structure, and the optimal structure of entities in each category graph is obtained as the core subset, which means that the branch-and-bound algorithm is used to reduce the scope of entities layer by layer according to the importance of entities in the graph structure, and the optimal structure of entities in each category graph is obtained as the core subset. d To extract the optimal structure of entities, we first determine the maximum and minimum number of entities to be selected. i The importance of valus(b i ) Reduce G d Entity range, obtain the core subgraph, and its objective function is:
[0051]
[0052] Among them, when the parameter DW i When the value of DW is 0, it means that the entity is not selected. i When the value of is 1, it indicates that the entity is selected; score max (G d) indicates the importance value(b t )The subgraph with the largest sum is taken as the core subset.
[0053] In step (4), matching the target architectural knowledge graph structure through the Monte architectural style gene library refers to calling an algorithm in the knowledge graph construction platform to calculate the cosine similarity of the angles between multidimensional vectors, and selecting the graph structure with a cosine similarity greater than 0.8 for matching; wherein the cosine similarity calculation formula is as follows, and the calculation result is between -1 and 1, -1 is completely different, and 1 is completely similar:
[0054]
[0055] In step (4), a random group of characteristic structural elements, characteristic structural element attribute and the relationship between characteristic structural elements corresponding to the core subset are extracted from the Monte architectural model library, which means searching for relevant data in the knowledge graph construction platform, linking the query results to the original image of the elements, and sorting them from high to low in terms of similarity to output them as a table of element characteristic attributes and a table of element association relationships.
[0056] In step (4), the style conversion of the current structural elements of the target building refers to converting the query image result to the target building image based on the CycleGAN model, using two generator networks and two discriminator networks, and outputting the rendering of the target building to achieve the migration of style.
Claims
1. The automatic recognition and migration method of Montenegrin architectural style based on knowledge graph is characterized by: The method comprises the following steps: (1) Construction of Monte Architectural Model Library: A total station was used to survey typical Montenegrin buildings. Based on the data collected from field surveying, the characteristic structural elements of Montenegrin buildings were divided into layers to establish a three-dimensional model, and the layers were numbered. The characteristic structural elements included 15 elements in three categories: wooden frame system, felt system, and rope system. The workstation was used to calculate the characteristic attributes and correlation relationships of each characteristic structural element in the three-dimensional model, and the calculation results and the three-dimensional model were entered into the model library to build a Montenegrin building model library. (2) Construction of knowledge graph of Montenegrin architectural style: Each characteristic structural element in step (1) is regarded as an "entity", and the relationship between each characteristic structural element and other characteristic structural elements in the model is regarded as a "relationship", and the two are combined to form a knowledge graph ontology of "entity-relationship-entity"; then, each characteristic structural element in the Monte architectural model library, the characteristic attributes of the characteristic structural elements, and the relationship between the characteristic structural elements are generated into a data table, and each Monte architectural knowledge graph in the Monte architectural model library is constructed; (3) Cluster identification of Montenegrin architectural style genes: The workstation is used to cluster the Monte architectural graphs in the Monte architectural model library into multiple categories. The branch-and-bound algorithm is used to reduce the entity range layer by layer according to the importance of the entities in the graph structure, and the optimal structure of the entities in each category graph is obtained as the core subset to form a Monte architectural style gene library. (4) The architectural style of Montenegro is transferred to the target building: The target building is surveyed and modeled by a total station to construct a knowledge graph of the target building. Then, the knowledge graph structure of the target building is matched with the Monte architectural style gene library to find a core subset that matches it. A random set of characteristic structural elements, characteristic attributes of characteristic structural elements, and the relationship between characteristic structural elements corresponding to the core subset are extracted from the Monte architectural model library. The current structural elements of the target building are converted into a style to achieve the migration of Monte architectural style. (5) Measurement and correction: The relocated building is constructed on site, and its load-bearing capacity is measured by a universal tensile testing machine, its thermal insulation performance is measured by a thermocouple, and its wind resistance performance is measured by an anemometer, and compared with the local building construction standards; if the construction standards are not met, return to step (4) and randomly select a set of structural elements, element characteristic attributes and association relationships again, and repeat step (5) until the relocated building fully meets the standards.
2. The method for automatic recognition and migration of Montenegrin architectural styles based on knowledge graph according to claim 1 is characterized in that: In step (1), the characteristic attributes and association relationships of each element in the calculation model refer to the quantifiable characteristic values of each entity and the quantifiable characteristic values of each association relationship.
3. The method for automatic recognition and migration of Montenegrin architectural styles based on knowledge graph according to claim 1 is characterized in that: In step (2), constructing each Monte architectural knowledge graph in the Monte architectural model library means taking the aforementioned three categories of 15 elements, namely the wooden frame system, the felt system, and the rope system, as entities, and entering them into the knowledge graph construction platform in combination with the entity attributes and association relationships; The platform is used to digitally encode structured data, encapsulate data into entities according to the ontology, establish relationships between entities through algorithms and express them visually, and generate the final Monte Architectural Knowledge Graphs in the Monte Architectural Model Library.
4. The method for automatic recognition and migration of Montenegrin architectural styles based on knowledge graph according to claim 1 is characterized in that: In step (3), the branch-and-bound algorithm is used to reduce the scope of entities layer by layer according to the importance of entities in the graph structure, and the optimal structure of entities in each category graph is obtained as the core subset, which means that the branch-and-bound algorithm is used to reduce the scope of entities layer by layer according to the importance of entities in the graph structure, and the optimal structure of entities in each category graph is obtained as the core subset. d To extract the optimal structure of entities, we first determine the maximum and minimum number of entities to be selected. i The importance value(b i ) Reduce G d Entity range, obtain the core subgraph, and its objective function is: Among them, when the parameter DW t When the value of DW is 0, it means that the entity is not selected. i When the value of is 1, it indicates that the entity is selected; score max (G d ) indicates the importance value(b i )The subgraph with the largest sum is taken as the core subset.
5. The method for automatic recognition and migration of Montenegrin architectural styles based on knowledge graph according to claim 1 is characterized in that: In step (4), matching the target architectural knowledge graph structure through the Monte architectural style gene library refers to calling an algorithm in the knowledge graph construction platform to calculate the cosine similarity of the angles between multidimensional vectors, and selecting the graph structure with a cosine similarity greater than 0.8 for matching; wherein the cosine similarity calculation formula is as follows, and the calculation result is between -1 and 1, -1 is completely different, and 1 is completely similar:
6. The method for automatic recognition and migration of Montenegrin architectural styles based on knowledge graph according to claim 1 is characterized in that: In step (4), a random group of characteristic structural elements, characteristic structural element attribute and the relationship between characteristic structural elements corresponding to the core subset are extracted from the Monte architectural model library, which means searching for relevant data in the knowledge graph construction platform, linking the query results to the original image of the elements, and sorting them from high to low in terms of similarity to output them as a table of element characteristic attributes and a table of element association relationships.
7. The method for automatic recognition and migration of Montenegrin architectural styles based on knowledge graph according to claim 1 is characterized in that: In step (4), the style conversion of the current structural elements of the target building refers to converting the query image result to the target building image based on the CycleGAN model, using two generator networks and two discriminator networks, and outputting the rendering of the target building to achieve the migration of style.
Citation Information
Patent Citations
Knowledge graph entity labeling method and device, storage medium and electronic equipment
CN111159424A
Three-dimensional model reconstruction migration method and system based on graph model
CN113223173A
Base named entity recognition system and method based on transfer learning
CN114356990A
Classical garden knowledge graph 3D visual display method and system
CN114676299A
Mobile application for object recognition, style transfer and image synthesis, and related systems, methods, and apparatuses
US20210110588A1
Cited By
Country style and appearance design image generation method and system based on knowledge graph and large model
CN120747285A
A method and system for generating images for rural landscape design based on knowledge graphs and large models
CN120747285B
Knowledge graph-based automatic recognition and transfer method for mongolian architectural styles and features
WO2026012296A1
