Data storage method, equipment and system for construction engineering cost
By clustering and correlation analysis of construction project cost data, we predict the change trend of data in each dimension, and store data with frequent changes and high correlation in the same block, solving the inefficient cost data call in traditional methods Problem, achieving more efficient data storage and access.
Patent Information
- Application Number
- CN202411487329.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional construction project cost data storage methods fail to effectively consider the frequency and correlation of cost data in each dimension, resulting in inefficient calling cost data.
By obtaining the engineering attributes and dimension data of historical projects, clustering and correlation analysis are carried out, combining the differences in current projects, predict the change trends of data in each dimension, and place frequently changing data and data with high correlation in the same block compressed storage.
It improves the efficiency of calling construction cost data, reduces the number and size of the compressed files, and improves the speed of data access.
Smart Images

Figure CN119006077A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and in particular to a data storage method, device and system for construction project cost. Background Art
[0002] Construction project cost data includes but is not limited to: material lists, project quotations, construction area and other data. The file size is huge, and the construction project cost data needs to be compressed to save storage space. Since the construction project cost data is not stable, if the construction project cost data is compressed as a whole, every time the cost of the project changes, the entire file needs to be decompressed, resulting in low file call efficiency. Therefore, all construction cost data needs to be compressed in blocks.
[0003] In the traditional process of segmenting construction project cost data, the frequency of change of cost data in each dimension and the degree of correlation between cost data in different dimensions are not taken into consideration, which makes it possible for frequently changing dimensional data to be in large blocks. At the same time, it may cause dimensional data with strong correlation to be in different blocks. Ultimately, when calling cost data, large files need to be decompressed and many files need to be decompressed, making the calling efficiency of cost data low. Summary of the invention
[0004] The present invention provides a data storage method, device and system for construction engineering cost, so as to solve the existing problem that the traditional storage of cost data will lead to low efficiency in calling cost data.
[0005] The data storage method, device and system for construction project cost of the present invention adopt the following technical solutions: An embodiment of the present invention provides a data storage method for construction project cost, the method comprising the following steps: Get the engineering properties, dimensional data of all historical projects, and all engineering properties of the current project; Cluster all historical projects according to each project attribute to obtain several clusters of each project attribute; obtain the degree of association between each dimension data and each project attribute according to the consistency of historical projects in the same cluster in the several clusters of project attributes and the degree of difference of historical projects in different clusters in the various dimensions; obtain the reference value of each dimension data in each historical project according to the degree of association between each dimension data and each project attribute, combined with the difference in project attributes between the current project and each historical project; Based on each dimension data of all historical projects, obtain a scatter plot of each dimension data and a hexagonal box plot of each dimension data; based on the similarity between the hexagonal boxes of different dimension data, obtain the degree of correlation between different dimension data; According to the scatter plot of each dimensional data and the reference value corresponding to each data point in the scatter plot, the trend curve of each dimensional data is obtained; according to the fluctuation degree of the trend curve of each dimensional data and the degree of correlation between different dimensional data, all dimensional data in the current project are divided into blocks to obtain several blocks; all blocks are compressed and stored.
[0006] Preferably, the specific method of obtaining several clusters of each engineering attribute includes: For any engineering attribute, the engineering attribute is used as a metric distance for clustering all historical projects, the elbow method is used to obtain the number of clusters, and the k-means clustering algorithm is used to cluster all historical projects to obtain several clusters, which are recorded as clusters of the engineering attribute.
[0007] Preferably, the specific calculation formula for obtaining the correlation degree between each dimension data and each engineering attribute is: In the formula, Indicates Dimensional data and The degree of correlation between the project attributes; Indicates The first Clusters and The metric distance between the centroids of clusters; Indicates The first All the clusters in The mean of the dimension data; Indicates The first All the clusters in The mean of the dimension data; Indicates The number of clusters for each engineering attribute; Indicates The first In the cluster The coefficient of dispersion of the dimensional data; It represents the absolute value function; represents the linear normalization function.
[0008] Preferably, the reference value of each dimension data in each historical project is obtained by a specific calculation formula: In the formula, Indicates History Project The reference value of the data in each dimension; Indicates the number of engineering attributes; Indicates the number of types of dimensional data; Indicates the current project The value of an engineering property; Indicates History Project The value of an engineering property; Indicates Dimensional data and The degree of correlation between the project attributes; Indicates Dimensional data and The degree of correlation between the project attributes; represents the linear normalization function; Represents the absolute value function.
[0009] Preferably, the specific method of obtaining the scatter plot of each dimensional data and the hexagonal box plot of each dimensional data includes: For any dimensional data, a rectangular coordinate system is established with the project duration as the horizontal axis and the dimensional data as the vertical axis, and the dimensional data in all historical projects are placed in the rectangular coordinate system to obtain a scatter plot of the dimensional data; and based on the scatter plot of the dimensional data, a hexagonal box plot of the dimensional data is obtained.
[0010] Preferably, the obtaining of the degree of association between data of different dimensions includes the following specific methods: For any two dimensional data, obtain the hexagonal bin diagrams of the two dimensional data, overlap the hexagonal bin diagrams of the two dimensional data, and obtain the association space of the two dimensional data; according to the number and area of the overlapping bins in the association space, combined with the reference value of the historical items corresponding to the data points in the overlapping bins, obtain the association degree between the two dimensional data, and the specific calculation formula is: In the formula, Indicates The first The degree of correlation between the data of each dimension; Indicates The first The number of overlapping bins in the association space of dimensional data; Indicates The first The first dimension of the association space of data The mean of the historical project reference values corresponding to all data points in the overlapping bins; Indicates The first The first dimension of the association space of data The mean number of data points in overlapping bins; Indicates The first In the association space of dimensional data The overlapping area of the overlapping bins; Indicates The first The mean area of overlap of all overlapping bins in the association space of dimensional data; represents the linear normalization function.
[0011] Preferably, the specific method of obtaining the trend curve of each dimension data includes: For any dimensional data, the weighted least squares method is used to perform weighted fitting on the scatter plot of the dimensional data. The weight of each data point in the scatter plot is the reference value of the dimensional data in the historical project corresponding to each data point, and the trend curve of the dimensional data is obtained.
[0012] Preferably, the block division of all dimensional data in the current project to obtain a plurality of blocks includes the following specific methods: Obtaining the discrete coefficients of the trend curves of all dimensional data, and sorting the dimensional data in descending order according to the discrete coefficients of the trend curves of all dimensional data to obtain a dimensional data sequence; Preset the number of dimensional data in an initial block , the inverse proportional normalization result of the discrete coefficient of the first dimension data in the dimension data sequence is The product of is rounded up to get the number of dimensional data in the first block; Preset a dimension data related threshold , the correlation with the first dimension data in the dimension data sequence is greater than The dimension data is recorded as the associated dimension data of the first dimension data in the dimension data sequence; The first dimension data in the dimension data sequence and the associated dimension data of the first dimension data in the dimension data sequence are placed in the first block, and the dimension data in the first block at this time is counted and recorded as , and remove the first dimension data in the dimension data sequence and the dimension data associated with the first dimension data in the dimension data sequence from the dimension data sequence to obtain a first remaining sequence; like is greater than or equal to the number of dimensional data in the first block, then the first block is obtained; like If the number of dimension data in the first block is less than the number of dimension data in the first block, the first dimension data in the first remaining sequence and the associated dimension data of the first dimension data in the first remaining sequence are placed in the first block, and the number of dimension data in the first block at this time is counted and recorded as , and remove the first dimension data in the first remaining sequence and the associated dimension data of the first dimension data in the first remaining sequence from the first remaining sequence to obtain a second remaining sequence; like is greater than or equal to the number of dimensional data in the first block, then the first block is obtained; like If the number of dimension data in the first block is less than the number of dimension data in the first block, the first dimension data in the second remaining sequence and the associated dimension data of the first dimension data in the second remaining sequence are placed in the first block, and the number of dimension data in the first block at this time is counted and recorded as , and remove the first dimension data in the second remaining sequence and the associated dimension data of the first dimension data in the second remaining sequence from the second remaining sequence to obtain a third remaining sequence; And so on, until the first block is obtained; Eliminate the dimensional data in the first block from the dimensional data sequence, and obtain the second block according to the dimensional data sequence after the elimination, wherein the process of obtaining the second block is the same as the process of obtaining the first block; And so on, until all dimensional data in the dimensional data sequence are placed in a number of blocks.
[0013] Another embodiment of the present invention provides a data storage system for construction project cost, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned data storage method for construction project cost when executing the computer program.
[0014] Another embodiment of the present invention provides a data storage device for construction project cost, including a data storage device body for construction project cost, and also includes a data storage system for construction project cost, wherein the data storage system for construction project cost includes a data acquisition module, an engineering attribute cost data analysis module, a cost data analysis module, and a cost data compression storage module; The data acquisition module is used to obtain the engineering properties of all historical projects, data of various dimensions, and all engineering properties of the current project; The engineering attribute cost data analysis module is used to cluster all historical projects according to each engineering attribute, and obtain several clusters of each engineering attribute; according to the consistency of historical projects in the same cluster in each dimensional data and the difference of historical projects in different clusters in each dimensional data, the degree of association between each dimensional data and each engineering attribute is obtained; according to the degree of association between each dimensional data and each engineering attribute, combined with the difference in engineering attributes between the current project and each historical project, the reference value of each dimensional data in each historical project is obtained; The cost data analysis module is used to obtain a scatter plot of each dimension data and a hexagonal box plot of each dimension data according to each dimension data of all historical projects; and obtain the degree of association between different dimensional data according to the similarity between the hexagonal boxes of different dimensional data; The cost data compression and storage module is used to obtain the trend curve of each dimensional data based on the scatter plot of each dimensional data and the reference value corresponding to each data point in the scatter plot; divide all dimensional data in the current project into blocks according to the fluctuation degree of the trend curve of each dimensional data and the degree of correlation between different dimensional data to obtain a plurality of blocks; and compress and store all blocks.
[0015] The beneficial effect of the technical solution of the present invention is: this application predicts the changes in the cost data of each dimension of the current project by analyzing the cost data of each dimension of historical projects, combining the differences in engineering properties between historical projects and current projects, first clustering the historical projects according to engineering properties, and analyzing the degree to which the cost data are distinguished by the clustering results to quantify the degree of correlation between engineering properties and cost data; further combining the differences in engineering properties between different historical projects and current projects, obtaining the reference value of different historical projects for the cost data of each dimension.
[0016] Furthermore, through the changing trends of cost data of each dimension in historical projects and the reference value of historical projects to cost data of each dimension, the correlation degree between different dimensions and the changing trends of cost data of each dimension in the current project are obtained. The more frequently the cost data changes, the higher the call frequency. Further combined with the reference value of historical projects to cost data of each dimension, the cost data of each dimension of the current project is divided into blocks. The frequently called cost data is located in a small block, and the cost data with a strong degree of correlation is placed in the same block, so as to improve the calling efficiency of cost data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative work.
[0018] Figure 1 A flowchart of the steps of a data storage method for construction project cost according to the present invention; Figure 2 For the Scatter plot of data in each dimension; Figure 3 For the Hexagonal binning of dimensional data; Figure 4 Schematic diagram of dimensional data block division. DETAILED DESCRIPTION
[0019] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a data storage method, device and system for construction project cost proposed by the present invention, its specific implementation method, structure, features and effects in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0020] 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.
[0021] The following describes in detail a specific scheme of a data storage method, device and system for construction project cost provided by the present invention in conjunction with the accompanying drawings.
[0022] See also Figure 1 , which shows a flowchart of a method for storing data for construction project cost provided by an embodiment of the present invention, the method comprising the following steps: Step S001: Obtain the engineering properties of all historical projects, various dimensional data, and all engineering properties of the current project.
[0023] It should be noted that the types of data contained in the construction project cost data are various and the amount of data is huge. In order to better store and manage the construction project cost data, it is necessary to compress the construction project cost data. However, if the construction project cost data is directly compressed as a whole, when calling part of the cost data, it is necessary to decompress all the cost data, resulting in low efficiency in calling the cost data. Therefore, it is necessary to compress all the engineering cost data in blocks, but the traditional block method does not take into account the frequency of change of the cost data of each dimension and the degree of correlation between the cost data of different dimensions, so that the frequently changing dimensional data may be in a large block, and at the same time, it may cause the dimensional data with a strong degree of correlation to be located in different blocks, which ultimately leads to large files that need to be decompressed when calling the cost data, and many files to be decompressed, making the cost data call inefficient. Therefore, this embodiment improves the efficiency of cost data call by making the frequently called cost data located in a small block, and placing the cost data with a strong degree of correlation in the same block.
[0024] It should be further explained that since the current project has not yet been completed, the current project cannot directly obtain the call frequency of cost data of each dimension in the current project; and since the relationship between engineering attributes and cost data is close and complex, engineering attributes will affect cost data. Therefore, the engineering attributes and cost data of historical projects can be combined with the engineering attributes of the current project to predict the call of the current project's cost data, so that the cost data of the current project can be stored in blocks.
[0025] Specifically, the engineering properties of all historical projects and the cost data of the historical projects are retrieved from the database, the cost data including but not limited to: material costs, labor costs, machinery and equipment costs, construction costs, management fees and other data; the engineering properties including but not limited to: building area, building height, construction period, the distance between the project site and the city center, etc.; the same cost data is digitized (the same cost data is linearly normalized), and each type of cost data after digitization is used as each dimensional data to obtain each dimensional data of the historical projects.
[0026] Step S002: Cluster all historical projects according to each engineering attribute to obtain several clusters of each engineering attribute; obtain the degree of association between each dimensional data and each engineering attribute according to the consistency of historical projects in the same cluster in each dimensional data and the difference of historical projects between different clusters in each dimensional data among the several clusters of engineering attributes; obtain the reference value of each dimensional data in each historical project according to the degree of association between each dimensional data and each engineering attribute, combined with the difference in engineering attributes between the current project and each historical project.
[0027] It should be noted that this implementation predicts the call of cost data of various dimensions of the current project through the difference in engineering properties between the current project and historical projects, combined with the cost data of various dimensions of historical projects. In order to accurately predict the call of cost data of various dimensions of the current project, it is necessary to obtain the degree of correlation between different engineering properties and different cost data; and because the differences in various engineering properties between different historical projects and the current project are different, the reference degree of different historical projects for predicting cost data of various dimensions of the current project is also different; and the smaller the difference in engineering properties between the historical projects and the current project, the cost data in the current project with a high degree of correlation with the engineering properties with small differences is similar to the cost data of the same dimension data in the historical projects. The reference value of cost data of various dimensions in the historical projects can be obtained through the degree of correlation between the engineering properties of the historical projects and the current project, and between different engineering properties and different cost data.
[0028] In one embodiment of the present invention, for any engineering attribute, the engineering attribute is used as a metric distance for clustering all historical projects, the number of clusters is obtained using the elbow method, and all historical projects are clustered using the k-means clustering algorithm to obtain a number of clusters, which are recorded as clusters of the engineering attribute. The elbow method and the k-means clustering algorithm are both well-known prior arts, so they are not described in detail in this embodiment. Furthermore, for any dimensional data and any engineering attribute, the degree of association between the dimensional data and the engineering attribute is obtained according to the similarity of the dimensional data in the same cluster, the difference between the dimensional data in different clusters, and the metric distance between the clusters of the engineering attribute. The specific calculation formula is: In the formula, Indicates Dimensional data and The degree of correlation between the project attributes; Indicates The first Clusters and The metric distance between the centroids of clusters; Indicates The first All the clusters in The mean of the dimension data; Indicates The first All the clusters in The mean of the dimension data; Indicates The number of clusters for each engineering attribute; Indicates The first In the cluster The discrete coefficient of the dimensional data, the process of obtaining the discrete coefficient is a well-known prior art, so it will not be described in detail in this embodiment; It represents the absolute value function; Represents a linear normalization function, and the normalized object is the relationship between all dimensional data and all engineering attributes. .
[0029] It should be noted that when Dimensional data and The stronger the correlation between the project attributes, the The more the dimensional data increases, the The change of the engineering property changes, that is, in the In the clusters of engineering attributes, the greater the distance between different clusters, the greater the distance between different clusters. The greater the difference in the data of the dimension, the greater the historical items in the cluster. The properties of the projects are similar, that is, within the same cluster The data of each dimension should also be more similar; therefore The larger the value of The smaller the value, the Dimensional data and The stronger the correlation between the project attributes.
[0030] It should be further explained that this embodiment predicts the various dimensional data of the current project through the engineering attributes of historical projects, various dimensional data, and the engineering attributes of the current project; when the correlation between a certain engineering attribute and all dimensional data is strong or weak, it means that the engineering attribute cannot provide effective information for prediction of a certain dimensional data alone, and when the engineering attribute is only strongly correlated with one dimensional data, the engineering attribute can provide more effective information for the dimensional data. Therefore, it is also necessary to obtain the reference value of each dimensional data in all historical projects based on the correlation degree of the engineering attribute to each dimensional data.
[0031] In one embodiment of the present invention, for any dimension data of any historical project, the reference value of the dimension data in the historical project is obtained according to the difference between the historical project and the current project in each engineering attribute and the degree of association between the dimension data and each engineering attribute. The specific calculation formula is: In the formula, Indicates History Project The reference value of the data in each dimension; Indicates the number of engineering attributes; Indicates the number of types of dimensional data; Indicates the current project The value of an engineering property; Indicates History Project The value of an engineering property; Indicates Dimensional data and The degree of correlation between the project attributes; Indicates Dimensional data and The degree of correlation between the project attributes; Represents a linear normalization function, the normalized object is each dimension data of each historical project ; Represents the absolute value function.
[0032] It should be noted that The larger the value of The project attributes and The stronger the correlation between the data in each dimension, the Project property prediction The more accurate the dimension data is, the more accurate the Project property prediction At the same time, the stronger the correlation between the dimension data and the engineering attributes, and the smaller the difference in engineering attributes between the historical project and the current project, the more likely it is that the dimension data in the historical project can be used as a reference to predict the dimension data in the current project.
[0033] At this point, the reference value of each dimension data in all historical projects is obtained.
[0034] Step S003: According to each dimension data of all historical projects, a scatter plot of each dimension data and a hexagonal box plot of each dimension data are obtained; according to the similarity between the hexagonal boxes of different dimension data, the correlation degree between different dimension data is obtained.
[0035] It should be noted that in order to place the dimensional data with a high degree of correlation in the current project in the same block, this embodiment also needs to obtain the correlation between the cost data of different dimensions based on the changing trends of the cost data of different dimensions in all historical projects. Since this embodiment predicts the cost data in the current project through historical projects, it is necessary to assign a calculation weight based on the reference value of each dimensional data in the historical projects, so as to improve the accuracy of subsequent predictions of the cost data of each dimension in the current project.
[0036] In one embodiment of the present invention, for any dimensional data, a rectangular coordinate system is established with the project duration as the horizontal axis and the dimensional data as the vertical axis, and the dimensional data in all historical projects are placed in the rectangular coordinate system to obtain a scatter plot of the dimensional data, such as Figure 2 As shown, Figure 2 For the A scatter plot of the dimensional data; and according to the scatter plot of the dimensional data, a hexagonal box map of the dimensional data is obtained. Since the process of obtaining the hexagonal box map is a well-known prior art, it will not be described in detail in this embodiment. Figure 3 As shown, Figure 3 For the Hexagonal bin plot of data in 1 dimension.
[0037] Furthermore, for any two dimensional data, the hexagonal bin diagrams of the two dimensional data are obtained, and the hexagonal bin diagrams of the two dimensional data are overlapped to obtain the association space of the two dimensional data; according to the number and area of the overlapping bins in the association space, combined with the reference value of the historical items corresponding to the data points in the overlapping bins, the association degree between the two dimensional data is obtained, and the specific calculation formula is: In the formula, Indicates The first The degree of correlation between the data of each dimension; Indicates The first The number of overlapping bins in the association space of dimensional data; Indicates The first The first dimension of the association space of data The mean of the historical project reference values corresponding to all data points in the overlapping bins; Indicates The first The first dimension of the association space of data The mean number of data points in overlapping bins; Indicates The first In the association space of dimensional data The overlapping area of the overlapping bins; Indicates The first The mean area of overlap of all overlapping bins in the association space of dimensional data; Represents a linear normalization function, the normalized object is the value between any two dimensional data .
[0038] It should be noted that the larger the overlapping area in the associated space and the larger the number of data points corresponding to the overlapping area, the more similar the two dimensional data in the associated space are, that is, the higher the degree of correlation between the corresponding dimensional data in the associated space. At the same time, the greater the reference value corresponding to the overlapping area, the more similar the corresponding dimensional data in the current project is to the overlapping area. The ultimate goal of this embodiment is to predict the cost data of each dimensional data in the current project. In order to make a more accurate prediction, it is necessary to assign a calculation weight according to the reference value.
[0039] At this point, the correlation degree between data of different dimensions is obtained.
[0040] Step S004: According to the scatter plot of each dimensional data and the reference value corresponding to each data point in the scatter plot, obtain the trend curve of each dimensional data; according to the fluctuation degree of the trend curve of each dimensional data and the degree of correlation between different dimensional data, divide all dimensional data in the current project into blocks to obtain several blocks; compress and store all blocks.
[0041] It should be noted that after obtaining the reference value of each dimensional data in all historical projects and the degree of correlation between different dimensional data through steps S002 and S003, the change trend of each dimensional data in the current project can be predicted and generated based on each dimensional data in the historical projects combined with its reference value. The greater the change trend, the greater the call frequency. Therefore, the block size of each dimensional data can be set according to the change trend of each dimensional data in the current project; further, according to the degree of correlation between different dimensional data, the dimensional data with strong correlation are located in the same block, completing the segmentation of all dimensional data, and finally compressing and storing all blocks, thereby improving the calling efficiency of each dimensional cost data.
[0042] Preferably, in an embodiment of the present invention, for arbitrary dimensional data, the weighted least squares method is used to perform weighted fitting on the scatter plot of the dimensional data, and the weight of each data point in the scatter plot is the reference value of the dimensional data in the historical project corresponding to each data point, so as to obtain a trend curve of the dimensional data; since the weighted least squares method is a well-known prior art, it will not be described in detail in this embodiment.
[0043] It should be noted that the trend curve of the dimension data represents the change of the dimension data in the current project predicted by the change of the dimension data in all historical projects. The more the trend curve of the dimension data tends to fluctuate, the more frequently the dimension data will be called. Therefore, the number of dimensional data in the block where the dimension data is located should be reduced to avoid storing the dimension data in a block with a large number of dimensional data, which will increase the amount of data that needs to be decompressed when calling the dimension data, resulting in reduced data calling efficiency. At the same time, when the dimensional data is divided into blocks, the dimensional data with a strong degree of correlation should be placed in the same block, so as to reduce the number of blocks to be decompressed when calling the dimensional data, and further improve the data calling efficiency; that is, when the dimensional data is divided into blocks, the frequently called dimensional data should be divided into blocks with a small number of dimensional data, and the dimensional data with a strong degree of correlation should be divided into the same block.
[0044] Preferably, in one embodiment of the present invention, the discrete coefficients of the trend curves of all dimensional data are obtained, and the dimensional data are sorted in descending order according to the discrete coefficients of the trend curves of all dimensional data to obtain a dimensional data sequence; since the calculation engineering of the discrete coefficient is a well-known prior art, it will not be described in detail in this embodiment; Preset the number of dimensional data in an initial block , The specific value of can be set according to the actual situation. This embodiment does not make a hard requirement. to give a narrative; According to the discrete coefficient of the first dimension data in the dimension data sequence, the number of dimension data in the first block is obtained; the specific calculation formula is: In the formula, Indicates the number of dimension data in the first block; Indicates the number of dimension data in the preset initial block; Represents the discrete coefficient of the first dimension data in the dimension data sequence; represents the ceiling function; represents an exponential function with a natural constant as the base. In this embodiment, Model to show inverse proportional and normalized relationship, As the input of the model, implementers can set the inverse proportion and normalization function according to actual conditions.
[0045] It should be noted that the larger the discrete coefficient of the dimensional data, the greater the fluctuation of the dimensional data, and the more frequently the dimensional data will be called, and the discrete coefficient of the first dimensional data in the dimensional data sequence is the largest, so the number of dimensional data in the block where the first dimensional data in the dimensional data sequence is located is small.
[0046] Furthermore, a threshold value related to dimension data is preset , The specific value of can be set according to the actual situation. This embodiment does not make a hard requirement. Describe; the correlation with the first dimension data in the dimension data sequence is greater than The dimension data is recorded as the associated dimension data of the first dimension data in the dimension data sequence; The first dimension data in the dimension data sequence and the associated dimension data of the first dimension data in the dimension data sequence are placed in the first block, and the dimension data in the first block at this time is counted and recorded as , and remove the first dimension data in the dimension data sequence and the dimension data associated with the first dimension data in the dimension data sequence from the dimension data sequence to obtain a first remaining sequence; like is greater than or equal to the number of dimensional data in the first block, then the first block is obtained; like If the number of dimension data in the first block is less than the number of dimension data in the first block, the first dimension data in the first remaining sequence and the associated dimension data of the first dimension data in the first remaining sequence are placed in the first block, and the number of dimension data in the first block at this time is counted and recorded as , and remove the first dimension data in the first remaining sequence and the associated dimension data of the first dimension data in the first remaining sequence from the first remaining sequence to obtain a second remaining sequence; like is greater than or equal to the number of dimensional data in the first block, then the first block is obtained; like If the number of dimension data in the first block is less than the number of dimension data in the first block, the first dimension data in the second remaining sequence and the associated dimension data of the first dimension data in the second remaining sequence are placed in the first block, and the number of dimension data in the first block at this time is counted and recorded as , and remove the first dimension data in the second remaining sequence and the associated dimension data of the first dimension data in the second remaining sequence from the second remaining sequence to obtain a third remaining sequence; And so on, until the first block is obtained; Further, the dimensional data in the first block is removed from the dimensional data sequence, and the second block is obtained according to the dimensional data sequence after the removal. The process of obtaining the second block is the same as the process of obtaining the first block, so it will not be repeated; and so on, until all the dimensional data are placed in the block, such as Figure 4 As shown, Figure 4 Schematic diagram of dimensional data block division.
[0047] Furthermore, after obtaining the specific values of each dimensional data in the current project, Huffman coding is used to compress all blocks individually to obtain the compression results of all blocks, and the compression results of all blocks are stored in the cost database, which can improve the efficiency of calling the cost data of each dimension.
[0048] Another embodiment of the present invention provides a data storage system for construction project cost, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a data storage method for construction project cost in steps S001 to S004 when executing the computer program.
[0049] Another embodiment of the present invention provides a data storage device for construction engineering cost, including a data storage device body for construction engineering cost, and also includes a data storage system for construction engineering cost, wherein the data storage system for construction engineering cost includes a data acquisition module, an engineering attribute cost data analysis module, a cost data analysis module and a cost data compression storage module; The data acquisition module is used to obtain the engineering properties of all historical projects, data of various dimensions, and all engineering properties of the current project; The engineering attribute cost data analysis module is used to cluster all historical projects according to each engineering attribute, and obtain several clusters of each engineering attribute; according to the consistency of historical projects in the same cluster in each dimensional data and the difference of historical projects in different clusters in each dimensional data, the degree of association between each dimensional data and each engineering attribute is obtained; according to the degree of association between each dimensional data and each engineering attribute, combined with the difference in engineering attributes between the current project and each historical project, the reference value of each dimensional data in each historical project is obtained; The cost data analysis module is used to obtain a scatter plot of each dimension data and a hexagonal box plot of each dimension data according to each dimension data of all historical projects; and obtain the degree of association between different dimensional data according to the similarity between the hexagonal boxes of different dimensional data; The cost data compression and storage module is used to obtain the trend curve of each dimensional data based on the scatter plot of each dimensional data and the reference value corresponding to each data point in the scatter plot; divide all dimensional data in the current project into blocks according to the fluctuation degree of the trend curve of each dimensional data and the degree of correlation between different dimensional data to obtain a plurality of blocks; and compress and store all blocks.
[0050] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data storage method for construction project cost, characterized in that: The method comprises the following steps: Get the engineering properties, dimension data of all historical projects, and all engineering properties of the current project; Cluster all historical projects based on each project attribute to obtain several clusters for each project attribute. Based on the consistency of historical projects within the same cluster in terms of each dimension of data, and the differences between historical projects in different clusters in terms of each dimension of data, the degree of correlation between each dimension of data and each project attribute is obtained. Based on the correlation between each dimension of data and each project attribute, combined with the differences in project attributes between the current project and each historical project, the reference value of each dimension of data in each historical project is obtained. Based on the data of each dimension of all historical projects, obtain a scatter plot of each dimension data and a hexagonal box plot of each dimension data; based on the similarity between the hexagonal boxes of different dimension data, obtain the degree of correlation between different dimension data; Based on the scatter plot of each dimension data and the reference value corresponding to each data point in the scatter plot, the trend curve of each dimension data is obtained; based on the fluctuation degree of the trend curve of each dimension data and the degree of correlation between different dimension data, all dimension data in the current project are divided into blocks to obtain several blocks; all blocks are compressed and stored; The specific calculation formula for obtaining the correlation degree between each dimension data and each engineering attribute is: Where, Indicates the Dimensional data and The degree of correlation between the project attributes; Indicates the The first Clusters and The metric distance between the centroids of clusters; Indicates the The first All the clusters in The mean of the dimension data; Indicates the The first All the clusters in The mean of the dimension data; Indicates the The number of clusters for each engineering attribute; Indicates the The first In the cluster The coefficient of dispersion of the dimensional data; Indicates the absolute value function; represents the linear normalization function; The specific calculation formula for obtaining the reference value of each dimension data in each historical project is: Where, Indicates the History Project The reference value of data in each dimension; Indicates the number of engineering attributes; Indicates the number of types of dimensional data; Indicates the current project The value of a project property; Indicates the History Project The value of a project property; Indicates the Dimensional data and The degree of correlation between the project attributes; Indicates the Dimensional data and The degree of correlation between the project attributes; represents the linear normalization function; Represents the absolute value function.
2. A data storage method for construction project cost according to claim 1, characterized in that: The specific method for obtaining several clusters of each project attribute is as follows: For any project attribute, the project attribute is used as a metric distance for clustering all historical projects. The number of clusters is obtained using the elbow method, and all historical projects are clustered using the k-means clustering algorithm to obtain several clusters, which are recorded as clusters of the project attribute.
3. The data storage method for construction project cost according to claim 1, characterized in that: The specific method of obtaining the scatter plot of each dimension data and the hexagonal box plot of each dimension data includes: For any dimensional data, a rectangular coordinate system is established with the project duration as the horizontal axis and the dimensional data as the vertical axis, and the dimensional data in all historical projects are placed in the rectangular coordinate system to obtain a scatter plot of the dimensional data; and based on the scatter plot of the dimensional data, a hexagonal box plot of the dimensional data is obtained.
4. The data storage method for construction project cost according to claim 1, characterized in that: The specific method of obtaining the degree of correlation between data of different dimensions includes: For any two dimensional data, obtain the hexagonal bin plots of the two dimensional data, overlap the hexagonal bin plots of the two dimensional data, and obtain the association space of the two dimensional data; according to the number and area of the overlapping bins in the association space, combined with the reference value of the historical items corresponding to the data points in the overlapping bins, obtain the degree of association between the two dimensional data. The specific calculation formula is: Where, Indicates the The first and The degree of correlation between the data of each dimension; Indicates the The first and The number of overlapping bins in the association space of dimensional data; Indicates the The first and The first dimension of the association space of data The mean of the historical project reference values corresponding to all data points in the overlapping bins; Indicates the The first and The first dimension of the association space of data The mean number of data points in overlapping bins; Indicates the The first and In the association space of dimensional data The overlapping area of the overlapping bins; Indicates the The first and The mean area of all overlapping bins in the association space of dimensional data; represents the linear normalization function.
5. The data storage method for construction project cost according to claim 1, characterized in that: The specific method of obtaining the trend curve of each dimension data includes: For any dimensional data, the weighted least squares method is used to perform weighted fitting on the scatter plot of the dimensional data. The weight of each data point in the scatter plot is the reference value of the dimensional data in the historical project corresponding to each data point, and the trend curve of the dimensional data is obtained.
6. The data storage method for construction project cost according to claim 1, characterized in that: The specific method of dividing all dimensional data in the current project into blocks to obtain several blocks is as follows: Obtaining the discrete coefficients of the trend curves of all dimensional data, and sorting the dimensional data in descending order according to the discrete coefficients of the trend curves of all dimensional data to obtain a dimensional data sequence; Preset the number of dimensional data in an initial block , the inverse proportional normalization result of the discrete coefficient of the first dimension data in the dimension data sequence is the same as The product of is rounded up to get the number of dimensional data in the first block; Preset a dimension data related threshold , the correlation with the first dimension data in the dimension data sequence is greater than The dimension data is recorded as the associated dimension data of the first dimension data in the dimension data sequence; The first dimension data in the dimension data sequence and the associated dimension data of the first dimension data in the dimension data sequence are placed in the first block, and the dimension data in the first block at this time is counted and recorded as and remove the first dimension data in the dimension data sequence and the dimension data associated with the first dimension data in the dimension data sequence from the dimension data sequence to obtain a first remaining sequence; like If the number of dimensional data is greater than or equal to the number in the first block, the first block is obtained; like If the number of dimension data in the first block is less than the number of dimension data in the first block, the first dimension data in the first remaining sequence and the associated dimension data of the first dimension data in the first remaining sequence are placed in the first block, and the number of dimension data in the first block at this time is recorded as and remove the first dimension data in the first remaining sequence and the dimension data associated with the first dimension data in the first remaining sequence from the first remaining sequence to obtain a second remaining sequence; like If the number of dimensional data is greater than or equal to the number in the first block, the first block is obtained; like If the number of dimension data in the first block is less than the number of dimension data in the first block, the first dimension data in the second remaining sequence and the associated dimension data of the first dimension data in the second remaining sequence are placed in the first block, and the number of dimension data in the first block at this time is recorded as and remove the first dimension data in the second remaining sequence and the associated dimension data of the first dimension data in the second remaining sequence from the second remaining sequence to obtain a third remaining sequence; And so on, until the first block is obtained; Eliminating the dimensional data in the first block from the dimensional data sequence, and obtaining a second block based on the dimensional data sequence after the elimination, wherein the process of obtaining the second block is the same as the process of obtaining the first block; This process is deduced in this way until all dimension data in the dimension data sequence are placed into a number of blocks.
7. A data storage system for construction project cost, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by a processor, the steps of the data storage method for construction project cost according to any one of claims 1 to 6 are implemented.
8. A data storage device for construction project cost, comprising a data storage device body for construction project cost, characterized in that: It also includes a data storage system for construction project costs, which includes a data acquisition module, an engineering attribute cost data analysis module, a cost data analysis module, and a cost data compression storage module; The data acquisition module is used to obtain the engineering properties and dimensional data of all historical projects and all engineering properties of the current project; The engineering attribute cost data analysis module is used to cluster all historical projects according to each engineering attribute to obtain several clusters of each engineering attribute; based on the degree of consistency in each dimension data of historical projects within the same cluster and the degree of difference in each dimension data of historical projects between different clusters, the degree of association between each dimension data and each engineering attribute is obtained; based on the degree of association between each dimension data and each engineering attribute, combined with the difference in engineering attributes between the current project and each historical project, the reference value of each dimension data in each historical project is obtained; The cost data analysis module is used to obtain a scatter plot of each dimension data and a hexagonal box plot of each dimension data based on each dimension data of all historical projects; and obtain the degree of correlation between different dimension data based on the similarity between the hexagonal boxes of different dimension data; The cost data compression and storage module is used to obtain the trend curve of each dimension data based on the scatter plot of each dimension data and the reference value corresponding to each data point in the scatter plot; divide all dimension data in the current project into blocks based on the fluctuation degree of the trend curve of each dimension data and the degree of correlation between different dimension data to obtain a number of blocks; and compress and store all blocks.
Citation Information
Cited By
Communication engineering cost data processing method and system
CN121280062A
