A method for optimizing storage of building digital twin data

By analyzing the measurement data characteristics and binary coding subsections of building digital twin data, the data storage path is optimized, which solves the problem of low compression rate of building digital twin data storage in the existing technology and achieves more efficient data compression and storage.

CN118568068BActive Publication Date: 2024-10-29SHANDONG TONGFANG DECHENG TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411038368.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-29
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The existing building digital twin data storage method has a low compression rate, which leads to data expansion and cannot effectively guarantee the data compression effect.

Method used

By obtaining the measurement data of the building digital twin data, analyzing its frequency of occurrence and the maximum number of consecutive identical binary numbers in the binary coding sub-segment, determine the necessary degree of retention of each measurement data, and perform data deletion and storage path optimization based on these characteristics. , to achieve optimal storage matching paths to improve compression ratio.

Benefits of technology

It improves the storage compression rate of building digital twin data, reduces storage space requirements, and ensures the accuracy of data redundancy and decompression processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568068B_ABST
    Figure CN118568068B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of digital data storage, and in particular to a method for optimizing the storage of building digital twin data, including: obtaining a set of data to be stored corresponding to building digital twin data, determining a third necessary degree of retention for each measurement data in the set of data to be stored; deleting data from the set of data to be stored by the third necessary degree of retention and a preset number of data deletions, thereby obtaining a new set of data to be stored; and determining an optimal storage matching path, through which the new set of data to be stored can be optimized for storage. The present invention realizes digital data storage by analyzing the correlation characteristics between the measurement data corresponding to the building digital twin data, effectively improving the compression rate of the building digital twin data storage, and is mainly used in the field of building digital twin data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital data storage, and in particular to a method for optimizing the storage of building digital twin data. Background Art

[0002] Building digital twins transform traditional buildings into digital models. Using digital technologies, sensors, and cloud computing, they enable digital management and optimization of the entire building process. Building digital twins can help stakeholders such as building owners, designers, contractors, and operators better understand the building's construction, status, and performance, providing data support to facilitate decision-making and improve work efficiency. Building digital twin data encompasses multiple types of data, including structural data, layout data, and sensor data. These data include three key spatial scales: overall building model data, floor models, and room models. Spatial scale data is measured numerical information, such as length, width, height, area, and volume. It intuitively reflects the building's basic attributes and layout information.

[0003] The existing traditional storage method for building digital twin data usually uses a file system or relational database for storage and management. Specifically, the actual measured digital information is compressed through run-length encoding. This existing digital storage method is highly dependent on the redundancy of the original data. During the storage process, there is a phenomenon of data expansion for data with lower redundancy, resulting in the compression effect of the building digital twin data cannot be guaranteed. In other words, the compression rate of the existing building digital twin data storage method is relatively low. Summary of the Invention

[0004] In order to solve the technical problem of low compression rate of the above-mentioned existing building digital twin data storage method, the purpose of the present invention is to provide a building digital twin data optimized storage method, the technical solution adopted is as follows:

[0005] An embodiment of the present invention provides a method for optimizing and storing building digital twin data, the method comprising the following steps:

[0006] Obtaining measurement data of each group of building models in the data set to be stored corresponding to the building digital twin data;

[0007] Determine any group of measurement data of the building model as a data group to be processed, and obtain a first necessary degree of retention of each measurement data in the data group to be processed, wherein the first necessary degree of retention is positively correlated with the occurrence frequency of the corresponding measurement data;

[0008] Obtaining, based on a maximum number of consecutive identical binary digits in a binary coding subsegment corresponding to each measurement data, a second necessary retention degree of each measurement data that is positively correlated with the maximum number of digits;

[0009] determining a third degree of necessary retention for each measurement data based on the first degree of necessary retention and the second degree of necessary retention for each measurement data;

[0010] Deleting data from the data group to be processed according to the third necessary retention degree of each measurement data and the preset number of data deletions to obtain a new data group to be processed, thereby obtaining a new data set to be stored;

[0011] Performing storage matching path analysis on the new data set to be stored based on each measurement data in the new data set to be stored to obtain an optimal storage matching path;

[0012] The new data set to be stored is compressed and stored through the optimal storage matching path.

[0013] Furthermore, obtaining a first necessary retention degree of each measurement data in the data group to be processed includes:

[0014] For any measurement data in the data set to be processed, the frequency of occurrence of the measurement data and the total number of all measurement data in the data set to be stored are counted; and the ratio of the frequency of occurrence of the measurement data to the total number of all measurement data in the data set to be stored is determined as the first necessary degree of retention of the corresponding measurement data.

[0015] Furthermore, according to the maximum number of bits of consecutive identical binary numbers in the binary coding sub-segments corresponding to the respective measurement data, a second necessary retention degree of the respective measurement data that is positively correlated with the maximum number of bits is obtained, including:

[0016] For any measurement data in the data group to be processed, the measurement data is converted into binary to obtain a binary coding sub-segment of the measurement data; the maximum number of consecutive identical binary digits in the binary coding sub-segment is counted, and the ratio between the maximum number of bits and the number of all binary digits in the binary coding sub-segment is determined as the second necessary retention degree of the corresponding measurement data.

[0017] Furthermore, determining a third necessary degree of retention for each measurement data according to the first necessary degree of retention and the second necessary degree of retention for each measurement data includes:

[0018] For any measurement data in the data group to be processed, the product of the first necessary degree of retention of the measurement data and the preset first weight is determined as the first product of the measurement data, and the product of the second necessary degree of retention of the measurement data and the preset second weight is determined as the second product of the measurement data; the value obtained by adding the first product and the second product of the measurement data is determined as the third necessary degree of retention of the corresponding measurement data.

[0019] Furthermore, according to the third necessary degree of retention of each measurement data and the preset number of data deletions, data deletion is performed on the data group to be processed, including:

[0020] The measurement data corresponding to the minimum third necessary retention degree of the preset data deletion number selected from the data group to be processed are determined as the measurement data to be selected; the measurement data to be selected in the data group to be processed are deleted, and the data group to be processed after the deletion of the measurement data to be selected is determined as a new data group to be processed.

[0021] Furthermore, based on each measurement data in the new data set to be stored, a storage matching path analysis is performed on the new data set to be stored to obtain an optimal storage matching path, including:

[0022] According to each measurement data in the new data set to be stored, third evaluation indicators corresponding to storage matching paths under a preset number of scanning modes are determined; and the storage matching path under the scanning mode corresponding to the largest third evaluation indicator is determined as the optimal storage matching path.

[0023] Furthermore, according to each measurement data in the new data set to be stored, third evaluation indicators corresponding to the storage matching paths under a preset number of scanning modes are determined, including:

[0024] For any scanning mode, counting the maximum number of consecutive identical measurement data in a new set of data to be stored after processing using the scanning mode, and determining the ratio of the maximum number to the total number of all measurement data in the new set of data to be stored as a first ratio; and multiplying the first ratio by a preset third weight to determine the first evaluation index corresponding to the storage matching path under the scanning mode;

[0025] Performing binary conversion processing on each measurement data in the new set of data to be stored after processing in the scanning mode to obtain a first binary coded sub-segment corresponding to each measurement data in the new set of data to be stored; analyzing the degree of difference between the first binary coded sub-segments corresponding to two adjacent measurement data in the new set of data to be stored, and counting the number of selected measurement data that meet the difference condition; wherein the selected measurement data is the remaining measurement data other than the first measurement data and the last measurement data in the new set of data to be stored;

[0026] Determine the ratio of the number of selected measurement data that meet the difference condition to the total number of all selected measurement data in the new data set to be stored as a second ratio; and multiply the second ratio by a preset fourth weight to determine the second evaluation index corresponding to the storage matching path under the scanning mode;

[0027] The value obtained by adding the first evaluation index and the second evaluation index is determined as a third evaluation index corresponding to the storage matching path under the scanning mode, thereby obtaining third evaluation indexes corresponding to the storage matching paths under a preset number of scanning modes.

[0028] Furthermore, by analyzing the degree of difference between the first binary coded sub-segments corresponding to two adjacent measurement data in the new data set to be stored, the number of selected measurement data that meet the difference condition is counted, including:

[0029] For any selected measurement data, an exclusive OR operation is performed on a first binary coded subsegment corresponding to the selected measurement data and a first binary coded subsegment corresponding to the measurement data preceding the selected measurement data, and the sum of the values ​​after the exclusive OR operation is determined as a first difference indicator corresponding to the selected measurement data; an exclusive OR operation is performed on a first binary coded subsegment corresponding to the selected measurement data and a first binary coded subsegment corresponding to the measurement data following the selected measurement data, and the sum of the values ​​after the exclusive OR operation is determined as a second difference indicator corresponding to the selected measurement data;

[0030] When the first difference index and the second difference index corresponding to the selected measurement data are both not greater than the difference threshold, it is determined that the selected measurement data meets the difference condition; when the first difference index or the second difference index corresponding to the selected measurement data is greater than the difference threshold, it is determined that the selected measurement data does not meet the difference condition.

[0031] The present invention has the following beneficial effects:

[0032] The present invention provides a method for optimizing the storage of building digital twin data. The storage method determines a new data set to be stored with a smaller number of measurement data by analyzing the correlation characteristics between digital data; obtains the optimal storage matching path by evaluating the scanning results of different scanning methods; and optimizes the storage of the new data set to be stored through the optimal storage matching path, effectively improving the compression rate of the building digital twin data storage. The individual measurement data in the data set to be stored corresponding to the building digital twin data are obtained, and then the frequency of occurrence of each measurement data in the data set to be stored is analyzed to determine the first necessary degree of retention of each measurement data. The first necessary degree of retention can be used to measure the frequency of occurrence of a single measurement data in the overall measurement data sequence. The higher the frequency of occurrence, the more important the single measurement data is to the overall measurement data sequence, and the higher the necessity of retaining the corresponding measurement data. The coding sub-segment after the binary conversion of each measurement data is analyzed to determine the second necessary degree of retention of each measurement data. The second necessary degree of retention can be used to measure the maximum value of consecutive equal binary numbers in the binary coding sub-segment corresponding to the measurement data itself. The larger the maximum value of the binary number, the higher the data redundancy of the corresponding encoding sub-segment of the measurement data. The redundancy can be reduced to the greatest extent during subsequent data compression, which helps to improve the compression rate of building digital twin data storage; the third necessary degree of retention is used to integrate the first necessary degree of retention and the second necessary degree of retention. The number of data deletions is used to determine the number of deletions for each set of measurement data. The number of data deletions determined by the functional logical relationship between different feature attributes is more accurate, which facilitates subsequent data decompression processing; determining the optimal storage matching path is to select a more suitable scanning method for a new data set to be stored. The optimal storage matching path can effectively reduce the storage space of the new data set to be stored during data compression storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 This is a flowchart of a building digital twin data optimization storage method of the present invention. DETAILED DESCRIPTION

[0035] To further illustrate the technical means and effects employed by the present invention to achieve its intended objectives, the following, in conjunction with the accompanying drawings and preferred embodiments, describes in detail the specific implementations, structures, features, and effects of the technical solutions proposed by the present invention. In the following description, references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.

[0036] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0037] By combining the correlation characteristics between the building model measurement data, the data set to be stored is redundancy processed to obtain a new data set to be stored. Based on the adaptive processing of the new data set to be stored, the optimal storage matching path can be obtained. The new data set to be stored is compressed and stored through the optimal storage matching path, which ensures the compression effect of run-length encoding and helps to achieve optimized storage of building digital twin data. Specifically, this embodiment provides a method for optimizing the storage of building digital twin data, such as Figure 1 As shown, the following steps are included:

[0038] S1, obtaining measurement data of each group of building models in the data set to be stored corresponding to the building digital twin data.

[0039] First, it's important to note that a building's spatial scale model contains three main types of model data: overall building model data, floor model data, and room model data. The data for the building's total area, total volume, total height, floor area, and floor height in the overall building model data and floor model data is relatively small, with large numerical values ​​and a relatively discrete data distribution. For discrete feature data with small data volumes and large numerical variations, normal data compression is sufficient without data redundancy. However, for room model data, due to differences in apartment layouts and the size of rooms within each apartment, a large amount of data information is generated. For feature data with large data volumes and small numerical variations, data redundancy processing is required during data compression and storage to improve the compression rate and save significant storage space.

[0040] In this embodiment, the data set to be stored corresponding to the building digital twin data can be a one-dimensional data sequence composed of room model data corresponding to each room in the building space dimension model. The room model data corresponding to each room is a set of building model measurement data, and the room model data generally includes the length, width, height, area and volume of the current room. The specific steps for obtaining the data set to be stored include: performing data measurement and statistics on each room in different apartment types in sequence according to the order of the floors of the current building, and storing the statistical results in the data sequence to ensure that the measurement data of the room can be accurately corresponded based on the current data sequence. Assuming that the acquisition order of the room model data is length, width, height, area and volume, the one-dimensional data sequence obtained by the acquisition order is determined as the data set to be stored, and the data set to be stored can be recorded as:

[0041]

[0042] in, The length of the measurement data of the first room of the first apartment on the first floor of the current building. The measured width of the first room of the first apartment on the first floor of the current building. The measured height of the first room of the first apartment on the first floor of the current building. The measured area of ​​the first room of the first apartment on the first floor of the current building. The measured volume of the first room of the first apartment on the first floor of the current building. is the floor number of the current building, It is the serial number of the apartment on different floors. The room numbers corresponding to different apartment types.

[0043] Each room has five corresponding measurement data, and the five measurement data correspond to five characteristic attributes. Each set of architectural model measurement data of the current building is measured and marked in turn, and filled into a one-dimensional data sequence. The acquisition process of the data set to be stored not only realizes the integration of architectural model measurement data, but also retains the corresponding relationship between the measurement data of the architectural model of the same room, which facilitates the subsequent analysis and processing of the measurement data.

[0044] At this point, this embodiment has obtained the data set to be stored corresponding to the building digital twin data.

[0045] S2: Determine any group of measurement data of the building model as a data group to be processed, and obtain a first necessary retention degree of each measurement data in the data group to be processed.

[0046] In this embodiment, the measurement data of each group of building models in the data set to be stored is used as the object of data redundancy analysis. For the convenience of description and analysis, any group of building model measurement data in the data set to be stored is taken as an example, and any group of building model measurement data is determined as a data group to be processed, and data analysis is subsequently performed on the data group to be processed. In order to ensure the data compression effect of the building digital twin data, it is necessary to evaluate the necessary degree of retention of each measurement data in the data group to be processed. First, the frequency of occurrence of each measurement data in the data group to be processed in the data set to be stored is analyzed to determine the first necessary degree of retention of each measurement data. The specific steps for implementing the first necessary degree of retention of each measurement data in the data group to be processed may include:

[0047] For any measurement data in the data set to be processed, the frequency of occurrence of the measurement data and the total number of all measurement data in the data set to be stored are counted; and the ratio of the frequency of occurrence of the measurement data to the total number of all measurement data in the data set to be stored is determined as the first necessary degree of retention of the corresponding measurement data.

[0048] As an example, calculate the The first necessary degree of retention of measurement data can be calculated by the following formula:

[0049]

[0050] in, The first The first necessary level of retention of measurement data, For the The frequency of occurrence of a measurement data in the data set to be stored, is the total number of all measurement data in the data set to be stored, It is the sequence number of the measurement data in the data group to be processed.

[0051] It should be noted that the first degree of necessity for retention allows for a relatively objective determination of the repeatability of the five measurement data in the pending data set. This means that the necessity for retention is assessed based on the frequency of the measurement data in the sequence of data sets to be stored. The value of the first degree of necessity for retention ranges from 0 to 1. The closer the first degree of necessity for retention approaches 1, the greater the likelihood that the measurement parameter corresponding to the first degree of necessity for retention will be retained.

[0052] So far, this embodiment has obtained the first necessary retention degree of each measurement data in the to-be-processed data group.

[0053] S3, obtaining a second necessary retention degree of each measurement data that is positively correlated with the maximum number of bits of consecutive identical binary numbers in the binary coding sub-segment corresponding to each measurement data.

[0054] In this embodiment, the machine language recognized by the computer is binary data, and the measurement data needs to be stored in the computer. Therefore, each measurement data in the data group to be processed is converted into binary data for data analysis, and the binary coding sub-segment corresponding to each measurement data is obtained. The coding sub-segment after each measurement data is binary-converted is analyzed to determine the second necessary degree of retention for each measurement data. It is worth noting that in order to facilitate the analysis of the data characteristics of the coding sub-segments corresponding to different measurement data, the number of bits of the binary numbers in the coding sub-segments of all measurement data is the same as the preset number of bits. For example, if the binary conversion of measurement data 9 is 1001, then when the preset number of bits is set to 8, zero padding is performed before 1001, and the coding sub-segment corresponding to measurement data 9 should be 00001001. The specific steps for implementing the second necessary degree of retention for each measurement data in the data group to be processed may include:

[0055] For any measurement data in the data group to be processed, binary conversion is performed on the measurement data to obtain a binary-coded subsegment of the measurement data. The maximum number of consecutive identical binary digits in the binary-coded subsegment is counted, and the ratio of the maximum number of digits to the total number of binary digits in the binary-coded subsegment is determined as the second necessary retention level for the corresponding measurement data. The implementation process of the binary conversion process is prior art and is beyond the scope of protection of the present invention, and will not be elaborated on here.

[0056] As an example, calculate the The second necessary retention degree of the measurement data can be calculated by the following formula:

[0057]

[0058] in, The first The second necessary retention level of the measurement data, To measure the number of binary digits in the coded sub-segment of the data, all binary digits are set to 8. The maximum number of consecutive identical binary digits.

[0059] It should be noted that the second necessary retention level is used to evaluate the maximum number of consecutive equal binary digits within the measurement data's coding sub-segment. The value of the second necessary retention level ranges from 0 to 1. A value closer to 1 indicates a higher degree of redundancy in the measurement data's coding sub-segment, which is more conducive to run-length encoding compression. The number of binary digits in all measurement data's coding sub-segments is uniformly set to 8 to improve the accuracy of the second necessary retention level calculation.

[0060] Assuming that the measured data is 8, first, the measured data 8 is binarized to obtain the coding sub-segment 00001000 corresponding to the measured data 8; then, the number of bits of continuously distributed and identical binary numbers in the coding sub-segment 00001000 is counted, where binary is 0 or 1. At this time, the maximum value of the number of bits of continuously distributed and identical binary numbers is 4, that is, 0000; finally, the ratio of the number of bits of the maximum binary number 4 to the number of bits of all binary numbers 8, 0.5, can be determined as the second necessary retention degree of the measured data 8.

[0061] Thus, this embodiment obtains the second necessary retention degree of each measurement data in the to-be-processed data group.

[0062] S4 , determining a third necessary degree of retention for each measurement data according to the first necessary degree of retention and the second necessary degree of retention for each measurement data.

[0063] In this embodiment, the redundancy level of each measurement data item is measured by the frequency of each measurement data item's occurrence in all measurement data items and the number of binary digits with identical and adjacent values ​​in the binary encoding subsegment of the measurement data item itself, thereby determining a first necessary retention level and a second necessary retention level for each measurement data item. To integrate the redundancy levels of the measurement data, a third necessary retention level for each measurement data item is determined based on the first necessary retention level and the second necessary retention level. The specific steps for implementing the third necessary retention level may include:

[0064] For any measurement data in the data group to be processed, the product of the first necessary degree of retention of the measurement data and the preset first weight is determined as the first product of the measurement data, and the product of the second necessary degree of retention of the measurement data and the preset second weight is determined as the second product of the measurement data; the value obtained by adding the first product and the second product of the measurement data is determined as the third necessary degree of retention of the corresponding measurement data.

[0065] As an example, the first The calculation formula for the third necessary retention degree of measurement data can be:

[0066]

[0067] in, The first The third necessary degree of retention of measurement data, The first The preset first weight of the measurement data, The first The first necessary level of retention of measurement data, The first The first product of the measured data, The first The preset second weight of the measurement data, The first The second necessary retention level of the measurement data, The first The second product of the measured data.

[0068] In the calculation formula of the third necessary degree of retention, the third necessary degree of retention can represent the possibility of each measurement data being retained. The greater the third necessary degree of retention of the measurement data, the greater the possibility of the corresponding measurement data being retained. The first necessary degree of retention is used to evaluate the redundancy of the entire data set to be stored. At the same time, the first necessary degree of retention provides a prerequisite for subsequent storage matching. Therefore, the preset first weight corresponding to the first necessary degree of retention should be higher than the preset second weight corresponding to the second necessary degree of retention. In this embodiment, the preset first weight is set to 0.7 and the preset second weight is set to 0.3. The numerical values ​​of the preset first weight and the preset second weight can be determined by the implementer according to the specific actual situation and are not specifically limited here. Assigning certain weights to the first necessary degree of retention and the second necessary degree of retention is conducive to improving the accuracy of the third necessary degree of retention. The third necessary degree of retention calculated by adding the first product and the second product can measure the redundancy of the data set to be stored from two aspects, effectively improving the accuracy of the new data set to be stored subsequently determined, and facilitating the subsequent realization of data storage with a higher compression rate.

[0069] Thus, this embodiment obtains the third necessary retention degree of each measurement data in the to-be-processed data group.

[0070] S5, deleting data from the data group to be processed according to the third necessary retention degree of each measurement data and the preset number of data deletions to obtain a new data group to be processed, thereby obtaining a new data set to be stored.

[0071] First, regarding the process of determining the preset number of data to be deleted, as an example, the preset number of data to be deleted can be determined by the functional logical relationship between each measurement data in the data group to be processed. The specific implementation steps include:

[0072] It should be noted that each measurement data in the data set to be processed can represent the characteristic attributes of the room model's actual measurements, and corresponding functional logical relationships exist between the measurement data in the data set to be processed. This functional logical relationship between different characteristic attributes can be used to determine the number of measurement data to be deleted from the data set to be processed, i.e., to determine a preset number of data to be deleted. This preset number of data to be deleted facilitates subsequent deletion and marking of relatively discrete or isolated measurement data in the data set to be processed.

[0073] In this embodiment, the measurement data in the data group to be processed are the length, width, height, area, and volume of the current room. The calculation formula corresponding to the functional logical relationship between the measurement data in the data group to be processed can be:

[0074]

[0075] in, is the length of the current room, is the width of the current room, is the area of ​​the current room, is the height of the current room, is the volume of the current room.

[0076] In the calculation formulas corresponding to the function logic relationship, the first calculation formula is the area acquisition formula under the conventional method, and the second calculation formula is the volume acquisition method under the conventional method; from the calculation formulas corresponding to the function logic relationship, it can be seen that by arbitrarily obtaining three of the five measurement data in the data group to be processed, the numerical values ​​of the remaining two measurement data can be calculated through the function logic relationship and the three measurement data, so the maximum value of the preset data deletion number can be 2.

[0077] It should be noted that, since each set of building model measurement data in the to-be-stored data set has the same characteristic attributes, the preset number of data deletions corresponding to each set of building model measurement data is consistent with the preset number of data deletions for the to-be-processed data set. The functional logical relationships between individual measurement data can be determined by the characteristic attributes of the measurement data. Different characteristic data may have different functional logical relationships. Therefore, implementers can determine the preset number of data deletions based on the characteristic attributes of the collected measurement data, and this embodiment does not impose any specific limitations thereon.

[0078] In another example, a maximum number of preset data to be deleted can be directly set, and the implementer can set it according to specific circumstances. In another example, the maximum number of preset data to be deleted can be determined as the product of a preset percentage of the data group to be processed and the total number of measurement data in the group. For example, if 20% is used as the preset percentage and there are 10 measurement data in the data group to be processed, the maximum number of preset data to be deleted can be 2.

[0079] Secondly, according to the third necessary retention degree of each measurement data and the preset number of data deletions, data of the data group to be processed is deleted to obtain a new data group to be processed, thereby obtaining a new data set to be stored.

[0080] In the first step, the measurement data to be selected is determined according to the third retention necessity degree of each measurement data and the number of deleted data in the data group to be processed.

[0081] In this embodiment, the lower the third degree of retention necessity for measurement data, the less redundant the corresponding measurement data, and the lower the compression rate during subsequent data compression and storage. Therefore, the measurement data corresponding to the minimum third degree of retention necessity for data deletion is selected as candidate measurement data to improve the compression rate of building digital twin data storage. Therefore, the measurement data corresponding to the minimum third degree of retention necessity for data deletion selected from the pending data set is determined as candidate measurement data. Assuming the number of data deletions is two, the two measurement data with the minimum third degree of retention necessity are selected from each measurement data set in the pending data set and are selected as the candidate measurement data in the pending data set.

[0082] In the second step, the selected measurement data in the data group to be processed are deleted to obtain a new data group to be processed, thereby obtaining a new data set to be stored.

[0083] In this embodiment, the selected measurement data in the data group to be processed are deleted and marked, and the data group to be processed after the selected measurement data are deleted is used as a new data group to be processed. At the same time, in order to ensure the accuracy of subsequent decompression and restoration, a new marking sequence is constructed to store the selected measurement data. The data group to be processed is any group of building model measurement data in the data set to be stored. By referring to the process of determining the new data group to be processed, the selected measurement data in other groups of building model measurement data in the data set to be stored can be obtained, and multiple new building model measurement data groups can be obtained. The data sequence constructed by all the new building model measurement data groups is determined as the new data set to be stored. Regarding the marking sequence, it is assumed that the current marking sequence is The 1 to 5 in the tag sequence represent length, width, height, area and volume respectively. The 1 and 5 in the mark sequence can represent the two candidate measurement data of the first room, namely length and volume; The 1 and 3 in the can indicate that the two measurements of the second room are length and height. There are only five types of values ​​in the tag sequence, and all are simple single-digit values. Therefore, the compressed storage space required to tag this sequence is negligible.

[0084] It should be noted that determining a new data set to be stored can directly reduce the number of parameters of the building twin data, and the accurate deletion of the selected measurement data can be achieved by retaining the necessary degree of the third method. This reduces the storage space while ensuring the redundancy of the building twin data, making it easier to achieve subsequent storage management of building twin data with a higher compression rate.

[0085] S6 , performing storage matching path analysis on the new data set to be stored according to each measurement data in the new data set to be stored, and obtaining an optimal storage matching path.

[0086] In this embodiment, when compressing and storing a new data set to be stored, it is necessary to scan the data using a certain scanning method. However, there are currently multiple scanning methods. In order to improve the storage compression effect, it is necessary to select an optimal storage matching path corresponding to the most appropriate scanning method, scan the new data set to be stored, and realize optimized storage of building digital twin data. The specific implementation steps of the optimal storage matching path may include:

[0087] The first step is to determine, based on each measurement data in the new data set to be stored, a third evaluation index corresponding to the storage matching path under a preset number of scanning modes. The specific implementation steps may include:

[0088] The first sub-step is to determine a first evaluation index corresponding to the storage matching paths under a preset number of scanning modes.

[0089] For any scanning mode, the maximum number of consecutive identical measurement data in the new data set to be stored after processing by the scanning mode is counted, and the ratio of the maximum number to the total number of all measurement data in the new data set to be stored is determined as the first ratio; the product of the first ratio and the preset third weight is determined as the first evaluation index corresponding to the storage matching path under the scanning mode.

[0090] In this embodiment, the scanning methods can be selected from the five commonly used ones, namely zigzag scanning, serpentine scanning, Hilbert scanning and spiral scanning. The preset number of scanning methods can be determined by the implementer according to the actual situation and is not specifically limited here. Taking any one of the scanning methods as an example for analysis, first, the new data set to be stored is processed using the scanning method; then, the maximum number of measurement data with continuous distribution and the same value in the data set to be stored after data processing is recorded as the letter ,Will The ratio of the first ratio to the total number of all measurement data in the new data set to be stored is determined as a first ratio, with the value of the first ratio ranging from 0 to 1. Finally, the product of the first ratio and a preset third weight is determined as a first evaluation index corresponding to the storage matching path under the scanning mode. The specific implementation process of the scanning mode is prior art and is beyond the scope of protection of the present invention and will not be elaborated here.

[0091] As an example, the calculation formula for the first evaluation index corresponding to the storage matching path in the first scanning mode may be:

[0092]

[0093] in, is the first evaluation index corresponding to the storage matching path under the first scanning mode, To preset the third weight, , is the maximum number of consecutive identical measurement data in the data set to be stored corresponding to the storage matching path under the first scanning mode, is the total number of all measurement data in the new data set to be stored, It is the first ratio corresponding to the storage matching path in the first scanning mode.

[0094] In the calculation formula of the first evaluation index, the first evaluation index can represent the first evaluation standard under the storage matching path. The larger the first evaluation index is, the better the scanning effect of the first scanning method is, which means that the storage matching path under the first scanning method can achieve data storage with a higher compression rate; the larger the first ratio is, the greater the proportion of the maximum number of measurement data with continuous distribution and the same numerical value in the data set to be stored in the total number of all measurement data, and the larger the first evaluation index will be; for the preset third weight, the compression rate of measurement data with continuous distribution and the same numerical value is relatively higher, so the preset third weight can be set to 0.6; the value range of the first evaluation index is between 0 and 1.

[0095] The second sub-step is to determine a second evaluation index corresponding to the storage matching paths under a preset number of scanning modes.

[0096] For any scanning mode, binary conversion is performed on each measurement data in the new data set to be stored after processing using the scanning mode to obtain a first binary coded sub-segment corresponding to each measurement data in the new data set to be stored; the degree of difference between the first binary coded sub-segments corresponding to two adjacent measurement data in the new data set to be stored is analyzed to count the number of selected measurement data that meet the difference condition; the ratio of the number of selected measurement data that meet the difference condition to the total number of all selected measurement data in the new data set to be stored is determined as a second ratio; and the product of the second ratio and a preset fourth weight is determined as a second evaluation indicator corresponding to the storage matching path under the scanning mode. The selected measurement data is the remaining measurement data in the new data set to be stored, excluding the first and last measurement data.

[0097] In this embodiment, the measurement data is binary-converted to facilitate analysis of the similarity between binary-coded sub-segments corresponding to adjacent measurement data and to screen measurement data that meet certain difference conditions. The first measurement data and the last measurement data in the new data set to be stored are excluded because there is no adjacent measurement data before the first measurement data and no adjacent measurement data before the last measurement data. In order to improve the accuracy of the second evaluation indicator, it is necessary to ignore the first measurement data and the last measurement data in the new data set to be stored, and only perform data analysis on the selected measurement data in the new data set to be stored.

[0098] As an example, the calculation formula for the second evaluation index corresponding to the storage matching path in the first scanning mode may be:

[0099]

[0100] in, is the second evaluation index corresponding to the storage matching path under the first scanning mode, To preset the fourth weight, , is the number of selected measurement data that meet the difference condition corresponding to the storage matching path under the first scanning mode, is the total number of all selected measurement data in the new data set to be stored, It is the second ratio corresponding to the storage matching path in the first scanning mode.

[0101] In the calculation formula of the second evaluation index, the second evaluation index can represent the second evaluation standard under the storage matching path. The larger the second evaluation index is, the better the scanning effect of the first scanning method is, which means that the storage matching path under the first scanning method can achieve data storage with a higher compression rate; the larger the second ratio is, the more selected measurement data that meet the difference condition, and the greater the proportion in all selected measurement data, and the larger the second evaluation index will be; for the preset fourth weight, the compression rate of similar binary coded sub-segments corresponding to adjacent selected measurement data is relatively low, so the preset fourth weight can be set to 0.4.

[0102] Specifically, by analyzing the degree of difference between the first binary coded sub-segments corresponding to two adjacent measurement data in the new data set to be stored, and counting the number of selected measurement data that meet the difference condition, the specific implementation steps may include:

[0103] First, for any selected measurement data, an exclusive OR operation is performed on the first binary coding sub-segment corresponding to the selected measurement data and the first binary coding sub-segment corresponding to the previous measurement data of the selected measurement data, and the added value after the exclusive OR operation is determined as the first difference index corresponding to the selected measurement data; an exclusive OR operation is performed on the first binary coding sub-segment corresponding to the selected measurement data and the first binary coding sub-segment corresponding to the next measurement data of the selected measurement data, and the added value after the exclusive OR operation is determined as the second difference index corresponding to the selected measurement data.

[0104] Then, when the first difference index and the second difference index corresponding to the selected measurement data are both not greater than the difference threshold, it is determined that the selected measurement data meets the difference condition; when the first difference index or the second difference index corresponding to the selected measurement data is greater than the difference threshold, it is determined that the selected measurement data does not meet the difference condition.

[0105] In this embodiment, the binary XOR rule is that identical binary numbers are 0, and different binary numbers are 1. A larger difference index for selected measurement data indicates a greater difference between the corresponding selected measurement data and the corresponding encoded sub-segments of its adjacent measurement data. In other words, the similarity between the first binary encoded sub-segments of the adjacent selected measurement data is smaller. The difference threshold is set to 4; implementers can adjust the difference threshold based on specific circumstances. When both the first and second difference indexes for a selected measurement data are not greater than the difference threshold, the similarity between the encoded sub-segments for the selected measurement data and the encoded sub-segments for its adjacent measurement data is greater, indicating a higher level of redundancy.

[0106] In a third sub-step, a third evaluation index is determined according to the first evaluation index and the second evaluation index corresponding to the stored matching paths in a preset number of scanning modes.

[0107] In this embodiment, the sum of the first evaluation index and the second evaluation index is used to determine the third evaluation index corresponding to the storage matching path in the scanning mode. Referring to the above-described process for determining the third evaluation index corresponding to the storage matching path in the scanning mode, the third evaluation index corresponding to the storage matching path in the preset number of scanning modes can be obtained.

[0108] In the second step, the storage matching path under the scanning mode corresponding to the largest third evaluation index is determined as the optimal storage matching path.

[0109] At this point, this embodiment obtains the optimal storage matching path corresponding to the new data set to be stored.

[0110] S7: compress and store the new data set to be stored through the optimal storage matching path.

[0111] In this embodiment, run-length encoding is performed on the new data set to be stored using the optimal storage matching path, significantly improving compression efficiency and saving storage space. During decompression, the new data set to be stored is first restored according to the compression rules of run-length encoding. Data decompression is then performed on the new data set to be stored based on the stored marker data sequence. The implementation of run-length encoding compression is prior art and falls outside the scope of this invention, so it will not be elaborated on here.

[0112] It is worth noting that when determining the optimal storage matching path, the new data set to be stored after transposition is scanned and analyzed. Therefore, when the new data set to be stored is compressed and stored through the optimal storage matching path, the new data set to be stored after transposition also needs to be compressed and stored.

[0113] The present invention provides a method for optimizing the storage of building digital twin data. This storage method combines the correlation characteristics between measurement data, performs redundancy processing on the data set to be stored, obtains new data to be stored, and adaptively obtains the optimal storage matching path, thereby ensuring the compression effect of run-length encoding, realizing optimized storage, and further improving the compression rate of the building digital twin data storage method.

[0114] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for optimizing storage of building digital twin data. It is characterized in that The following steps are involved: Obtaining measurement data of each group of building models in the data set to be stored corresponding to the building digital twin data; Determine any group of measurement data of the building model as a data group to be processed, and obtain a first necessary degree of retention of each measurement data in the data group to be processed, wherein the first necessary degree of retention is positively correlated with the occurrence frequency of the corresponding measurement data; According to the maximum number of bits of consecutive identical binary numbers in the binary coding sub-segments corresponding to the respective measurement data, a second necessary degree of retention of the respective measurement data which is positively correlated with the maximum number of bits is obtained; determining a third degree of necessity for retention of each measurement data based on the first degree of necessity for retention and the second degree of necessity for retention of each measurement data; According to the third necessary degree of retention of each measurement data and the preset number of data deletions, the data group to be processed is deleted to obtain a new data group to be processed, thereby obtaining a new data set to be stored; According to each measurement data in the new data set to be stored, a storage matching path analysis is performed on the new data set to be stored to obtain an optimal storage matching path; Compress and store the new data set to be stored through the optimal storage matching path; Determining a third necessary degree of retention of each measurement data according to the first necessary degree of retention and the second necessary degree of retention of each measurement data includes: For any measurement data in the data group to be processed, the product of the first necessary degree of retention of the measurement data and the preset first weight is determined as the first product of the measurement data, and the product of the second necessary degree of retention of the measurement data and the preset second weight is determined as the second product of the measurement data; the value obtained by adding the first product and the second product of the measurement data is determined as the third necessary degree of retention of the corresponding measurement data; According to the third necessary degree of retention of each measurement data and the preset number of data deletions, data deletion is performed on the data group to be processed, including: Determine the measurement data corresponding to the minimum third necessary retention degree of the preset number of data deletion selected from the data group to be processed as the measurement data to be selected; delete the measurement data to be selected in the data group to be processed, and determine the data group to be processed after deleting the measurement data to be selected as a new data group to be processed; According to each measurement data in the new data set to be stored, a storage matching path analysis is performed on the new data set to be stored to obtain an optimal storage matching path, including: Determine, according to each measurement data in the new data set to be stored, the third evaluation index corresponding to the storage matching paths under a preset number of scanning modes; determine the storage matching path under the scanning mode corresponding to the largest third evaluation index as the optimal storage matching path; Determining, according to each measurement data in the new data set to be stored, a third evaluation index corresponding to the storage matching path under a preset number of scanning modes, including: For any scanning mode, the maximum number of consecutive identical measurement data in a new set of data to be stored after being processed by the scanning mode is counted, and the ratio of the maximum number to the total number of all measurement data in the new set of data to be stored is determined as a first ratio; the product of the first ratio and a preset third weight is determined as a first evaluation index corresponding to the storage matching path under the scanning mode; Perform binary conversion processing on each measurement data in the new data set to be stored after the scanning method is processed, and obtain the first binary coding sub-segment corresponding to each measurement data in the new data set to be stored; by analyzing the difference between the first binary coding sub-segments corresponding to two adjacent measurement data in the new data set to be stored, the number of selected measurement data that meet the difference condition is counted; wherein the selected measurement data is the remaining measurement data other than the first measurement data and the last measurement data in the new data set to be stored; The ratio of the number of selected measurement data satisfying the difference condition to the total number of all selected measurement data in the new data set to be stored is determined as a second ratio; the product of the second ratio and a preset fourth weight is determined as a second evaluation index corresponding to the storage matching path under the scanning mode; The value obtained by adding the first evaluation index and the second evaluation index is determined as a third evaluation index corresponding to the storage matching path under the scanning mode, thereby obtaining third evaluation indexes corresponding to the storage matching paths under a preset number of scanning modes.

2. According to claim 1, a method for optimizing and storing building digital twin data, It is characterized in that Acquiring a first necessary retention degree of each measurement data in the to-be-processed data group, comprising: For any measurement data in the data set to be processed, the occurrence frequency of the measurement data and the total number of all measurement data in the data set to be stored are counted; and the ratio of the occurrence frequency of the measurement data to the total number of all measurement data in the data set to be stored is determined as the first necessary degree of retention of the corresponding measurement data.

3. According to the method for optimizing and storing building digital twin data according to claim 1, It is characterized in that According to the maximum number of bits of consecutive identical binary numbers in the binary coding sub-segments corresponding to the respective measurement data, a second necessary degree of retention of the respective measurement data that is positively correlated with the maximum number of bits is obtained, including: For any measurement data in the data group to be processed, the measurement data is converted into binary to obtain a binary coding sub-segment of the measurement data; the maximum number of consecutive identical binary digits in the binary coding sub-segment is counted, and the ratio between the maximum number of bits and the number of all binary digits in the binary coding sub-segment is determined as the second necessary retention degree of the corresponding measurement data.

4. According to claim 1, a method for optimizing and storing building digital twin data, It is characterized in that By analyzing the difference between the first binary coded sub-segments corresponding to two adjacent measurement data in the new data set to be stored, the number of selected measurement data satisfying the difference condition is counted, including: For any selected measurement data, an XOR operation is performed on a first binary coding sub-segment corresponding to the selected measurement data and a first binary coding sub-segment corresponding to the previous measurement data of the selected measurement data, and the added value after the XOR operation is determined as a first difference indicator corresponding to the selected measurement data; an XOR operation is performed on a first binary coding sub-segment corresponding to the selected measurement data and a first binary coding sub-segment corresponding to the next measurement data of the selected measurement data, and the added value after the XOR operation is determined as a second difference indicator corresponding to the selected measurement data; When the first difference index and the second difference index corresponding to the selected measurement data are both not greater than the difference threshold, it is determined that the selected measurement data meets the difference condition; when the first difference index or the second difference index corresponding to the selected measurement data is greater than the difference threshold, it is determined that the selected measurement data does not meet the difference condition.

Citation Information

Patent Citations

  • Intelligent vibratory digital twinning system and method for industrial environments

    CN115039045A

  • Efficient data storage method

    CN115622570A

  • UE4-based digital twin model lightweight optimization method and system

    CN115809489A

  • Data compression apparatus and data compression program storage medium

    US20060285756A1