Distributed storage and retrieval method and system for underground cavern group construction data
By constructing a data lifecycle decay model and a directed lineage tracing chain, the problems of unbalanced storage resource allocation and data traceability in the construction data management of underground cavern groups were solved, achieving efficient data storage and retrieval, and improving the reliability and efficiency of the construction process.
Patent Information
- Application Number
- CN202611357965.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for managing construction data in underground cavern complexes lack dynamic awareness of data access activity, leading to unbalanced allocation of storage resources, low retrieval latency and throughput, and loose data version management, making it difficult to ensure traceability and consistency of the construction process.
By collecting the access frequency of construction data, a timestamp sequence is generated and a data lifecycle decay model is constructed. Active and dormant data are divided, and a version snapshot is generated for each modification operation to establish a directed lineage tracing chain, supporting accurate retrieval and adaptive adjustment.
It enables dynamic optimization of storage resources, improves storage space utilization and retrieval efficiency, enhances data traceability and integrity, and supports rapid response to construction safety review and engineering change requirements.
Smart Images

Figure CN123178507A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data storage technology, and in particular to a distributed storage and retrieval method and system for construction data of underground cavern groups. Background Technology
[0002] In the construction and management of underground cavern complex projects, construction data encompasses various categories, including geological exploration, support parameters, monitoring measurements, schedules, and acceptance records. The data volume continuously increases with construction progress and exhibits highly heterogeneous storage requirements. Current conventional practices involve storing all types of construction data in a centralized database or file server based on data generation time and project stage, while performing cold and hot data archiving at fixed intervals—migrating data exceeding a certain time threshold or long-term inaccessibility to slower storage media. Some systems also introduce distributed storage architectures, but the data partitioning is based on relatively singular indicators, typically only considering file creation date or data size, lacking dynamic awareness of data access activity and failing to reflect the true usage patterns of construction data during different process transitions. This static, coarse-grained data management approach easily leads to an imbalance in storage resource allocation, where frequently accessed recent data is mixed with infrequently accessed historical data. This not only increases retrieval latency but also causes frequently accessed data to be transmitted across storage nodes over the network, impacting overall system throughput performance.
[0003] The triggering conditions for archiving operations mostly rely on manual experience and lack a linkage mechanism with the actual lifecycle evolution of the data. This means that when historical data that has been migrated and archived needs to be analyzed retrospectively, it often requires a cumbersome loading and recovery process, making it difficult to quickly respond to ad-hoc query needs such as construction safety reviews and engineering change assessments. For multiple modification records of the same construction object, traditional solutions generally manage them by file overwriting or version number incrementing, resulting in loose relationships between versions and a lack of structured tracking methods. After a change operation is completed, the original data is either overwritten or only a limited historical copy is retained. When it is necessary to restore the data state at a specific point in time or to trace the evolution of data, inferences can only be made based on incomplete timestamps, leading to low search efficiency, a high risk of errors, and difficulty in ensuring the traceability and consistency requirements of construction process data. Summary of the Invention
[0004] The present invention provides a distributed storage and retrieval method and system for construction data of underground cavern groups, which can solve the problems in the prior art.
[0005] A first aspect of this invention provides a method for distributed storage and retrieval of construction data for underground cavern groups, comprising:
[0006] Construction data generated at different stages of construction of underground cavern groups is collected, access frequency statistics are performed on the construction data and a timestamp sequence is generated, and a data life cycle decay model is constructed based on the results of the access frequency statistics and the timestamp sequence.
[0007] Based on the output of the data lifecycle decay model, the construction data is divided into active data and dormant data. The active data is allocated to distributed nodes of the first type of storage medium, and the dormant data is allocated to distributed nodes of the second type of storage medium. At the same time, a version snapshot is generated for each data allocation operation.
[0008] For each modification operation of the construction data, extract the data pointer before modification and the data pointer after modification, and construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification;
[0009] Receive a retrieval request containing a target time point and tracing depth, locate the target version snapshot in the directed kinship tracing chain according to the target time point, and obtain the target data from the corresponding distributed node through the storage location recorded in the target version snapshot;
[0010] Based on the tracing depth, the target data is obtained by reverse traversal along the directed kinship tracing chain. The access records of the target data and the associated data set are then sent back to the data lifecycle decay model, which triggers the data lifecycle decay model to adaptively adjust the boundary between the active data and the dormant data.
[0011] Construction data generated at different construction stages of the underground cavern complex is collected. Access frequency statistics are performed on the construction data, and a timestamp sequence is generated. Based on the results of the access frequency statistics and the timestamp sequence, a data lifecycle decay model is constructed, including:
[0012] Construction data is collected during the excavation, support, lining and acceptance phases. Data identifiers are generated for each piece of construction data and construction phase identifiers are marked.
[0013] An access log table is established for the data identifier, each access operation for the data identifier is captured, and the access time is written to the access log table;
[0014] All access times in the access log record table are extracted and arranged in chronological order to form a timestamp sequence. Based on the timestamp sequence, a sliding time window is set to count the number of accesses per unit time to obtain the access frequency value. The time interval between adjacent timestamps in the timestamp sequence is calculated to obtain a time interval set, and the average access interval and access interval variance are extracted as access interval distribution features.
[0015] Construct an access frequency time series curve in the time dimension based on the access frequency values, identify peak regions and decay regions in the access frequency time series curve, and calculate the access frequency decay rate based on the access frequency change rate in the decay region.
[0016] The access frequency value is used as the access intensity component. The access interval distribution characteristics are coupled with the access frequency attenuation rate to obtain the time attenuation component. The attenuation weighting factor is calculated based on the access intensity component and the time attenuation component.
[0017] A decay function with time as the independent variable is constructed, and the decay weight factor is embedded in the decay function as a function parameter. The active quantification value of the construction data at any time is calculated through the decay function. The decay function is then mapped to the construction stage identifier to form a data lifecycle decay model.
[0018] Constructing a time series curve of the access frequency values over time, identifying peak and decay regions in the access frequency time series curve, and calculating the access frequency decay rate based on the access frequency change rate in the decay region includes:
[0019] Obtain the access frequency value and its corresponding timestamp, and use the timestamp as the time dimension coordinate and the access frequency value as the numerical dimension coordinate to map and construct an access frequency time series curve.
[0020] Curvature analysis is performed on the access frequency time series curve to obtain a curvature distribution sequence. Curve inflection points are identified based on the changes in curvature sign in the curvature distribution sequence. Curve segments between each curve inflection point are extracted and the average slope of each curve segment is calculated.
[0021] Mark the time interval corresponding to the curve segment with a positive average slope as the peak region and record the start and end timestamps of the peak region; mark the time interval corresponding to the curve segment with a negative average slope as the decay region and record the start and end timestamps of the decay region.
[0022] The access frequency values within the range of the start and end timestamps of the decay region are extracted. The ratio of the difference between the access frequency values corresponding to adjacent timestamps within the decay region to the timestamp interval is calculated to obtain the instantaneous change rate sequence. The access frequency decay rate is obtained by performing a weighted aggregation operation on the instantaneous change rate sequence.
[0023] Based on the output of the data lifecycle decay model, the construction data is divided into active data and dormant data. The active data is allocated to distributed nodes of the first type of storage medium, and the dormant data is allocated to distributed nodes of the second type of storage medium. Simultaneously, a version snapshot is generated for each data allocation operation, including:
[0024] The data identifier of the construction data is input into the data life cycle decay model and the activity metric value is obtained. An activity threshold is set and the activity metric value is compared with the activity threshold to obtain the state determination result.
[0025] Based on the state determination result, an active state identifier or a dormant state identifier is added to the data identifier, and a state identifier mapping table is established to record the correspondence between the data identifier and the active state identifier or the dormant state identifier;
[0026] The storage load parameters of the distributed nodes of the first type of storage medium are obtained to construct a first node resource table, the storage capacity parameters of the distributed nodes of the second type of storage medium are obtained to construct a second node resource table, the status identifier mapping table is queried to filter out data identifiers carrying active state identifiers to form a first identifier set, and the status identifier mapping table is queried to filter out data identifiers carrying dormant state identifiers to form a second identifier set.
[0027] For each data identifier in the first identifier set, the distributed node with the optimal storage load parameter is selected from the first node resource table as the first target node; for each data identifier in the second identifier set, the distributed node with the optimal storage capacity parameter is selected from the second node resource table as the second target node.
[0028] The construction data corresponding to the data identifier in the first identifier set is transmitted to the first target node, and the construction data corresponding to the data identifier in the second identifier set is transmitted to the second target node. A version snapshot is generated at the time when the data transmission is completed.
[0029] For each modification operation of the construction data, extract the data pointer before modification and the data pointer after modification, and construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification, including:
[0030] Listen for events triggered by modifications to construction data. Before the modification operation is executed, capture the storage address of the current construction data as the data pointer before modification. After the modification operation is completed, capture the storage address of the newly generated construction data as the data pointer after modification.
[0031] Extract the operation timestamp of the modification operation, construct a lineage triplet from the data pointer before modification, the data pointer after modification, and the operation timestamp, and establish a directed edge from the data pointer before modification to the data pointer after modification based on the lineage triplet;
[0032] The construction data corresponding to the data pointer before modification is instantiated as a source node, and the construction data corresponding to the data pointer after modification is instantiated as a target node. The source node and the target node are connected by the directed edge to form a lineage tracing unit.
[0033] Obtain multiple lineage tracing units generated by the same construction data at different times, extract the operation timestamps in each lineage tracing unit, and sort the lineage tracing units according to the chronological order;
[0034] According to the sorting results, the target node of each kinship tracing unit is matched and connected with the source node of the subsequent kinship tracing unit to form a directed kinship tracing chain from the data pointer before the initial modification to the data pointer after the final modification.
[0035] Receiving a retrieval request containing a target time point and tracing depth, locating the target version snapshot in the directed kinship tracing chain according to the target time point, and obtaining target data from the corresponding distributed node through the storage location recorded in the target version snapshot includes:
[0036] Receive and parse retrieval requests to extract target time points and tracing depth parameters, and obtain the timestamp sequence of each version snapshot in the directed lineage tracing chain;
[0037] The time distance set is obtained by calculating the time distance between the target time point and each time point in the timestamp sequence. The version snapshot corresponding to the smallest time distance is selected from the time distance set as the time matching snapshot. The node position index of the time matching snapshot in the directed bloodline tracing chain is extracted.
[0038] Using the node position index as the backtracking starting point, perform a depth traversal along the parent node direction of the directed lineage tracing chain. During the traversal, accumulate the traversal hop count and compare it with the tracing depth parameter in real time. When the traversal hop count is equal to the tracing depth parameter, terminate the traversal and determine the version snapshot corresponding to the current node as the target version snapshot.
[0039] Parse the metadata fields of the target version snapshot to obtain the distributed node identifier and data block storage address, convert the distributed node identifier into a network access address and combine it with the data block storage address to generate a data read instruction;
[0040] Send the data read instruction to the network access address to receive the target data pointed to by the data block storage address from the corresponding distributed node.
[0041] Based on the tracing depth, a reverse traversal is performed along the directed kinship tracing chain to obtain the associated data set of the target data. The access records of the target data and the associated data set are then sent back to the data lifecycle decay model. Triggering the data lifecycle decay model to adaptively adjust the boundary between the active data and the dormant data includes:
[0042] Starting from the target version snapshot, backtrack layer by layer along the parent node of the directed lineage tracing chain. During the backtracking process, the number of traversed layers is counted and compared with the tracing depth in real time.
[0043] When the number of traversed layers has not reached the tracing depth, continue traversing towards the parent node and extract the data objects associated with each parent node. When the number of traversed layers has reached the tracing depth, terminate the traversal and summarize all the data objects extracted from the traversal path to form an associated data set.
[0044] Capture the access time and access frequency of the target data and the associated data set in this retrieval request, and associate the access time and access frequency with the data identifier of the corresponding data object to construct an access record structure;
[0045] The access record structure is sent back to the data lifecycle decay model, which calculates the time decay coefficient of each data object based on the access time and calculates the activity correction value of each data object based on the access frequency.
[0046] The time decay coefficient and the activity correction value are input into the data lifecycle decay model to update the lifecycle status score of each data object. Based on the distribution threshold of the updated lifecycle status score, the active data and dormant data are reclassified, triggering the data lifecycle decay model to adaptively adjust the division boundary between the active data and the dormant data.
[0047] A second aspect of the present invention provides a distributed storage and retrieval system for construction data of underground cavern groups, comprising:
[0048] The data acquisition and modeling unit is used to collect construction data generated by the underground cavern group at different construction stages, perform access frequency statistics on the construction data and generate a timestamp sequence, and construct a data life cycle decay model based on the results of the access frequency statistics and the timestamp sequence.
[0049] The classification storage unit is used to divide the construction data into active data and dormant data according to the output of the data life cycle decay model, allocate the active data to the distributed nodes of the first type of storage medium, allocate the dormant data to the distributed nodes of the second type of storage medium, and generate a version snapshot for each data allocation operation.
[0050] A lineage construction unit is used to extract the data pointer before modification and the data pointer after modification for each modification operation of the construction data, and to construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification;
[0051] The retrieval and positioning unit is used to receive a retrieval request containing a target time point and tracing depth, locate the target version snapshot in the directed kinship tracing chain according to the target time point, and obtain the target data from the corresponding distributed node through the storage location recorded in the target version snapshot;
[0052] The boundary adjustment unit is used to perform reverse traversal along the directed kinship tracing chain based on the tracing depth to obtain the associated data set of the target data, and to send the access records of the target data and the associated data set back to the data lifecycle decay model, triggering the data lifecycle decay model to adaptively adjust the division boundary between the active data and the dormant data.
[0053] A third aspect of the present invention provides an electronic device, comprising:
[0054] processor;
[0055] Memory used to store processor-executable instructions;
[0056] The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.
[0057] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.
[0058] Construction data is used to construct a lifecycle decay model based on access frequency and timestamps, enabling real-time updates to data popularity assessments as construction progresses. Active data is stored in high-performance Category 1 storage media, while dormant data is moved to low-cost Category 2 storage media, allowing for load balancing among distributed nodes that better reflects actual usage needs. This tiered strategy reduces contention for storage resources from high-frequency accesses while lowering the cost of preserving low-frequency historical data, thus improving overall storage space utilization.
[0059] Each data allocation generates a version snapshot, and each modification extracts pointers from before and after the modification, forming a directed lineage tracing chain. The combination of snapshots and pointers establishes a complete path of data evolution, allowing any version to be located at its physical storage location. Modification operations preserve both the original and current pointers, preventing the loss of historical traces after data is overwritten. This supports tracing the source and change process of data along lineage from any version, significantly enhancing data traceability and integrity.
[0060] The retrieval request carries the target time point and tracing depth. Based on the time point, the corresponding version snapshot is located, and the data is retrieved from the node. The related data set is obtained by traversing the lineage chain in reverse, achieving accurate retrieval without scanning all storage nodes. Access records are sent back to the lifecycle decay model. The model dynamically adjusts the boundary between active and dormant states based on the latest access behavior, so that the classification results are continuously optimized as the construction progresses, and the matching degree between subsequent retrieval efficiency and storage configuration is continuously improved. Attached Figure Description
[0061] Figure 1 This is a flowchart illustrating the distributed storage and retrieval method for underground cavern group construction data according to an embodiment of the present invention;
[0062] Figure 2 This is a time series curve of access frequency in an embodiment of the present invention;
[0063] Figure 3 This is a flowchart illustrating the construction process of a construction data lineage tracing unit based on modification operations, as described in an embodiment of the present invention.
[0064] Figure 4 This is a comparison chart of data lifecycle scoring adjustments in an embodiment of the present invention. Detailed Implementation
[0065] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0066] The technical solution of the present invention will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0067] Figure 1 This is a flowchart illustrating the distributed storage and retrieval method for underground cavern group construction data according to an embodiment of the present invention.
[0068] Distributed storage and retrieval methods for underground cavern construction data include:
[0069] Construction data generated at different stages of construction of underground cavern groups is collected, access frequency statistics are performed on the construction data and a timestamp sequence is generated, and a data life cycle decay model is constructed based on the results of the access frequency statistics and the timestamp sequence.
[0070] Based on the output of the data lifecycle decay model, the construction data is divided into active data and dormant data. The active data is allocated to distributed nodes of the first type of storage medium, and the dormant data is allocated to distributed nodes of the second type of storage medium. At the same time, a version snapshot is generated for each data allocation operation.
[0071] For each modification operation of the construction data, extract the data pointer before modification and the data pointer after modification, and construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification;
[0072] Receive a retrieval request containing a target time point and tracing depth, locate the target version snapshot in the directed kinship tracing chain according to the target time point, and obtain the target data from the corresponding distributed node through the storage location recorded in the target version snapshot;
[0073] Based on the tracing depth, the target data is obtained by reverse traversal along the directed kinship tracing chain. The access records of the target data and the associated data set are then sent back to the data lifecycle decay model, which triggers the data lifecycle decay model to adaptively adjust the boundary between the active data and the dormant data.
[0074] In one optional implementation, construction data generated at different construction stages of the underground cavern complex is collected; access frequency statistics are performed on the construction data and a timestamp sequence is generated; a data lifecycle decay model is constructed based on the results of the access frequency statistics and the timestamp sequence, including:
[0075] Construction data is collected during the excavation, support, lining and acceptance phases. Data identifiers are generated for each piece of construction data and construction phase identifiers are marked.
[0076] An access log table is established for the data identifier, each access operation for the data identifier is captured, and the access time is written to the access log table;
[0077] All access times in the access log record table are extracted and arranged in chronological order to form a timestamp sequence. Based on the timestamp sequence, a sliding time window is set to count the number of accesses per unit time to obtain the access frequency value. The time interval between adjacent timestamps in the timestamp sequence is calculated to obtain a time interval set, and the average access interval and access interval variance are extracted as access interval distribution features.
[0078] Construct an access frequency time series curve in the time dimension based on the access frequency values, identify peak regions and decay regions in the access frequency time series curve, and calculate the access frequency decay rate based on the access frequency change rate in the decay region.
[0079] The access frequency value is used as the access intensity component. The access interval distribution characteristics are coupled with the access frequency attenuation rate to obtain the time attenuation component. The attenuation weighting factor is calculated based on the access intensity component and the time attenuation component.
[0080] A decay function with time as the independent variable is constructed, and the decay weight factor is embedded in the decay function as a function parameter. The active quantification value of the construction data at any time is calculated through the decay function. The decay function is then mapped to the construction stage identifier to form a data lifecycle decay model.
[0081] like Figure 2 As shown, the method includes:
[0082] This graph illustrates the frequency changes of a specific construction data identifier between 21:11 and 20:11 the following day. The data begins at 21:11 with a frequency of 2 times / hour, then rises to 19.1 times / hour at 18:11 the next day, reaches 22.2 times / hour at 12:11 on the third day, and then steadily declines, dropping to 10.5 times / hour at 16:11 before starting to rise again. On the fourth day, at 20:11, it suddenly jumps to 36 times / hour, forming the only peak during the observation period. The entire curve exhibits a three-segment characteristic, with the sudden peak at the end reflecting temporary access demand. This curve encompasses various patterns of rise, decline, and re-surgence, providing valuable insights into the complexity and non-uniformity of data access behavior.
[0083] During the excavation, support, lining, and acceptance phases, a systematic collection of various data generated at the underground cavern complex construction site was conducted. Excavation phase data included blasting parameter records, surrounding rock deformation monitoring values, geological sketch results, and over- and under-excavation measurement data. Support phase data included anchor bolt construction parameters, shotcrete mix proportions and thickness measurement records, and steel arch installation location information. Lining phase data included concrete pouring volume, curing temperature and humidity records, and non-destructive testing results. Acceptance phase data included cross-sectional measurement results, leakage detection records, and quality assessment forms. For each piece of collected construction data, a globally unique data identifier was generated. This identifier consisted of a hash value combining a timestamp and the construction location code. Additionally, a construction phase identifier field was added to each data point, with values ranging from four enumerated categories: excavation, support, lining, and acceptance. This ensured accurate filtering by construction phase during subsequent data retrieval.
[0084] An independent access log table is established for each data identifier. The table structure includes a data identifier field, an access time field, an access type field, and an access source field. Whenever an external request performs a read, query, or reference operation on a piece of construction data, the access event is intercepted, and the access time is written to the corresponding data identifier's access log table with millisecond precision. The access time is recorded using the Coordinated Universal Time (UTC) standard to avoid biases in time series analysis caused by time zone differences. The access log table uses an append-only write mode, without overwriting or deleting historical records, to ensure the integrity and traceability of the timestamp sequence.
[0085] Extract all access timestamps for a specific construction data entry from the access log table, arrange them chronologically to form a timestamp sequence corresponding to that data identifier. A sliding time window is set based on this timestamp sequence; the window width can be dynamically adjusted according to the data activity cycle of each construction phase. For example, the window width is set to 24 hours for the excavation phase and 72 hours for the acceptance phase. The number of accesses is counted within each sliding time window to obtain the access frequency value corresponding to that window. The unit is times per hour. The time interval set is obtained by subtracting two adjacent timestamps in the timestamp sequence. ,in Indicates the first Next and first The time interval between visits Subtract 1 from the total number of visits. Calculate the average visit interval based on the set of time intervals. and visit interval variance Both together constitute the access interval distribution characteristics, among which , Average access interval The variance of the access interval reflects the regularity of data access. This characterizes the dispersion of access behavior, and the combination of the two can distinguish between two patterns: regular high-frequency access and sudden concentrated access.
[0086] The access frequency value corresponding to each sliding time window Arrange the data along the time dimension to construct a time series curve of access frequency. Identify peak and decay regions on this curve: the peak region is defined as the period when the access frequency value is continuously higher than the global mean, and the decay region is defined as the period when the access frequency value continues to decline after the peak region ends. Within the decay region, take the ratio of the difference in access frequency between adjacent time windows to the time interval to obtain the access frequency change rate sequence. Take the average of this sequence to obtain the access frequency decay rate. The unit is times / (hour·hour). Attenuation rate. The larger the absolute value, the more rapidly the activity of the construction data decreases after centralized use, and the more likely it is to be classified as dormant data.
[0087] The access frequency value at the current moment As a component of access intensity, the average access interval Access Interval Variance With access frequency decay rate Coupled calculations were performed to obtain the time decay component. The coupling calculation method is as follows: The numerator reflects the combined effect of decay rate and average access interval, while the access interval variance in the denominator plays a moderating role. When the access behavior is highly discrete, the amplitude of the time decay component is appropriately reduced to avoid distortion of decay estimation due to occasional accesses. This is based on the access intensity component. and time decay component Calculate the attenuation weighting factor The calculation method is as follows The value ranges from 0 to 1. The closer the value is to 1, the stronger the access intensity, indicating that the data activity is dominant. The closer to 0, the more dominant the time decay effect is in terms of data activity.
[0088] Constructing with time variables Let be the decay function of the independent variable, and let be the function form with an exponential decay structure: ,in This represents the most recent peak access frequency of the data. The attenuation coefficient is determined by the attenuation weighting factor. With access frequency decay rate To be determined jointly, specifically as follows: . This indicates the construction data at a time relative to the current moment. Activity metric after one time unit, A larger value indicates a higher likelihood that the data will be accessible in the future. (This refers to the decay function.) Establish a mapping relationship with construction stage identifiers: attenuation coefficient of excavation stage data. The attenuation coefficient is usually large because the demand for accessing relevant data decreases rapidly after excavation is completed; the attenuation coefficient of data during the acceptance phase is also relatively large. The impact is relatively small because acceptance data will continue to be needed during the subsequent operation and maintenance phase. Different construction stage identifiers correspond to different attenuation function parameter configurations, forming a complete data lifecycle attenuation model, providing a quantitative basis for the dynamic division of active and dormant data.
[0089] In one optional implementation, the access frequency values are used to construct an access frequency time series curve over time. Peak regions and attenuation regions are identified within the access frequency time series curve. The access frequency attenuation rate is calculated based on the rate of change of access frequency in the attenuation regions, including:
[0090] Obtain the access frequency value and its corresponding timestamp, and use the timestamp as the time dimension coordinate and the access frequency value as the numerical dimension coordinate to map and construct an access frequency time series curve.
[0091] Curvature analysis is performed on the access frequency time series curve to obtain a curvature distribution sequence. Curve inflection points are identified based on the changes in curvature sign in the curvature distribution sequence. Curve segments between each curve inflection point are extracted and the average slope of each curve segment is calculated.
[0092] Mark the time interval corresponding to the curve segment with a positive average slope as the peak region and record the start and end timestamps of the peak region; mark the time interval corresponding to the curve segment with a negative average slope as the decay region and record the start and end timestamps of the decay region.
[0093] The access frequency values within the range of the start and end timestamps of the decay region are extracted. The ratio of the difference between the access frequency values corresponding to adjacent timestamps within the decay region to the timestamp interval is calculated to obtain the instantaneous change rate sequence. The access frequency decay rate is obtained by performing a weighted aggregation operation on the instantaneous change rate sequence.
[0094] In the practice of managing construction data for underground cavern complexes, the temporal distribution of access frequency often exhibits significant non-uniformity—blasting monitoring data from a certain construction phase is retrieved at high frequency in a short period, and then rapidly cools down as that phase ends. To accurately capture this dynamic change pattern, it is necessary to map discrete access frequency values into continuous time series curves, identify physically meaningful peak and decay regions, and then quantify the decay rate to support subsequent data lifecycle management.
[0095] After obtaining the access frequency values and their corresponding timestamps, each sampling point is mapped to a two-dimensional coordinate plane using the timestamp as the horizontal axis and the access frequency value as the vertical axis. Adjacent sampling points are then connected via interpolation to construct an access frequency time series curve. This curve visually reflects the intensity of data access at different time points, providing a geometric basis for subsequent area identification. In real-world engineering scenarios, a typical access frequency time series curve usually contains several local maxima and minima, corresponding to concentrated data retrieval before and after key construction milestones and low-frequency access during inter-stage intervals, respectively.
[0096] Curvature analysis is performed on the access frequency time series curve to calculate the curvature values at each point on the curve, forming a curvature distribution sequence. Changes in the sign of the curvature indicate the transition in the curve's concavity or convexity, i.e., the location of the inflection points. By point-by-point detection of the sign differences between adjacent elements in the curvature distribution sequence, the coordinates of each inflection point on the time axis can be accurately located. Using adjacent inflection points as boundaries, the entire curve is divided into several segments, and the slope values within each segment are averaged to obtain the average slope of each segment. The sign of the average slope directly reflects the overall trend of access frequency changes within that time period: a positive value indicates an increasing access frequency, while a negative value indicates a decreasing access frequency.
[0097] The time intervals corresponding to curve segments with a positive average slope are marked as peak regions, and the start and end timestamps of these intervals are recorded for subsequent statistical analysis of peak access frequency and peak duration. The time intervals corresponding to curve segments with a negative average slope are marked as decay regions, and the start and end timestamps of these decay regions are also recorded. In underground cavern construction scenarios, peak regions typically coincide closely with key process nodes such as excavation and blasting, support construction, and monitoring data reporting, while decay regions correspond to process intervals or transitional periods where such data is gradually replaced by data from new stages.
[0098] Within the time range defined by the start and end timestamps of the attenuation region, the access frequency values corresponding to all sampling timestamps within this interval are extracted to form an access frequency subsequence for the attenuation region. The difference between the access frequency values corresponding to adjacent timestamps in the subsequence is calculated, and then divided by the corresponding timestamp interval to obtain the instantaneous rate of change between each pair of adjacent sampling points. All instantaneous rates of change are arranged sequentially to form an instantaneous rate of change sequence. Since the representativeness of the attenuation process varies across different time periods—attenuation segments closer to the peak often carry stronger trend information—when weighting and aggregating the instantaneous rate of change sequence, appropriate weights need to be assigned based on the time position of each instantaneous rate of change. Assume there are a total of [number missing] access frequency values within the attenuation region. The instantaneous rate of change, the th The instantaneous rate of change is denoted as The corresponding weight is denoted as Then the access frequency decay rate The result was obtained through weighted average calculation:
[0099] ;
[0100] in The weighting can be linearly decreased based on time position, meaning that the instantaneous rate of change closer to the end of the peak region receives a larger weight, thus highlighting the dominant role of the rapid decline characteristic in the early stages of attenuation on the overall attenuation rate. Since the access frequency within the attenuation region generally shows a decreasing trend, each... The calculated value is usually negative. It is also a negative value. The larger the absolute value, the faster the access frequency decreases, and the more severe the decline in the activity of the corresponding construction data.
[0101] At the engineering implementation level, when the access frequency time series curve of a construction dataset contains multiple decay regions, the instantaneous rate of change sequence can be independently calculated for each decay region and weighted aggregation can be performed to obtain the local decay rate of each decay stage. Then, a second weighting is performed using the time span of each decay region as the weight to obtain the comprehensive access frequency decay rate of the dataset over the entire observation period. This comprehensive decay rate will serve as a key input parameter for the data lifecycle decay model, and together with the access frequency value, average access interval, and access interval variance, it will determine the quantitative value of the activity of the construction data, thus providing an accurate quantitative basis for the dynamic division between active and dormant states.
[0102] In one optional implementation, the construction data is divided into active data and dormant data based on the output of the data lifecycle decay model. The active data is allocated to distributed nodes of a first type of storage medium, and the dormant data is allocated to distributed nodes of a second type of storage medium. Simultaneously, a version snapshot is generated for each data allocation operation, including:
[0103] The data identifier of the construction data is input into the data life cycle decay model and the activity metric value is obtained. An activity threshold is set and the activity metric value is compared with the activity threshold to obtain the state determination result.
[0104] Based on the state determination result, an active state identifier or a dormant state identifier is added to the data identifier, and a state identifier mapping table is established to record the correspondence between the data identifier and the active state identifier or the dormant state identifier;
[0105] The storage load parameters of the distributed nodes of the first type of storage medium are obtained to construct a first node resource table, the storage capacity parameters of the distributed nodes of the second type of storage medium are obtained to construct a second node resource table, the status identifier mapping table is queried to filter out data identifiers carrying active state identifiers to form a first identifier set, and the status identifier mapping table is queried to filter out data identifiers carrying dormant state identifiers to form a second identifier set.
[0106] For each data identifier in the first identifier set, the distributed node with the optimal storage load parameter is selected from the first node resource table as the first target node; for each data identifier in the second identifier set, the distributed node with the optimal storage capacity parameter is selected from the second node resource table as the second target node.
[0107] The construction data corresponding to the data identifier in the first identifier set is transmitted to the first target node, and the construction data corresponding to the data identifier in the second identifier set is transmitted to the second target node. A version snapshot is generated at the time when the data transmission is completed.
[0108] After inputting the data identifier of the construction data into the data lifecycle decay model, the corresponding activity quantification value is obtained. The activity quantification value reflects the comprehensive evaluation result of the access frequency and timeliness of the construction data at the current moment. In the construction scenario of underground cavern complexes, data generated at different stages have significantly different access patterns: monitoring data and blasting parameter records during the excavation and support stage are frequently accessed during construction, while historical geological survey reports and early design change records of completed sections gradually enter a low-frequency access state over time. The activity quantification value is a quantitative characterization of this dynamic change, and its value directly determines the direction of subsequent storage allocation strategies.
[0109] Setting an activity threshold is a crucial step in status determination. The threshold setting needs to comprehensively consider the total amount of storage resources, the capacity limit of the first type of storage medium, and the overall scale of the currently active data. When the activity metric value is higher than or equal to the activity threshold, the construction data corresponding to the data identifier is determined to be in an active state; when the activity metric value is lower than the activity threshold, it is determined to be in a dormant state. The status determination result is appended to the data identifier in the form of a Boolean tag to form an active state identifier or a dormant state identifier. Subsequently, a status identifier mapping table is established, using the data identifier as the key and the corresponding status identifier as the value, to fully record the current lifecycle status of each piece of construction data. The status identifier mapping table is stored using a memory-level hash structure, supporting query operations with O(1) time complexity, ensuring retrieval efficiency in large-scale construction data scenarios.
[0110] Building a node resource table is a necessary preparatory step before data allocation. For distributed nodes using the first type of storage medium, storage load parameters for each node are collected, including the proportion of currently used storage capacity to total capacity, recent write throughput, I / O queue depth, and other indicators. These parameters are then summarized to form the first node resource table. The first type of storage medium is typically a high-speed solid-state storage device, which has low-latency random read / write capabilities and is suitable for carrying frequently accessed active construction data, such as real-time monitoring values, design drawings and change records for the current construction section, etc. For distributed nodes using the second type of storage medium, storage capacity parameters for each node are collected, including remaining available capacity and single write bandwidth, and these are summarized to form the second node resource table. The second type of storage medium is typically a large-capacity disk array or object storage device, which has high-density and low-cost storage characteristics and is suitable for long-term storage of dormant historical data with extremely low access frequency.
[0111] The status identifier mapping table is queried to filter out all data identifiers carrying the active state identifier, forming the first identifier set; all data identifiers carrying the dormant state identifier are filtered out to form the second identifier set. The division into two sets ensures the clarity of the target for subsequent data transfer operations and avoids confusion between active and dormant data during the storage allocation phase.
[0112] For each data identifier in the first identifier set, the distributed node with the optimal storage load parameters is selected as the first target node from the first node resource table. The criteria for determining the optimal storage load parameters are: under the premise of meeting the minimum remaining capacity requirements, the node with the lowest overall storage load ratio and the smallest I / O queue depth is selected first. When the load parameters of multiple nodes are similar, a round-robin mechanism is introduced to distribute the load evenly, preventing a single node from becoming a hotspot bottleneck due to continuous active data writes. In underground cavern construction sites, active data writes have sudden characteristics, such as a large amount of monitoring data being centrally reported shortly after blasting. The load balancing strategy can effectively mitigate the impact of such write peaks on single nodes.
[0113] For each data identifier in the second identifier set, the distributed node with the optimal storage capacity parameter is selected from the second node resource table as the second target node. The criterion for determining the optimal storage capacity parameter is: the node with the largest remaining available capacity is selected first, so as to fully utilize the capacity advantage of the second type of storage medium and extend the overall storage system's availability period. For large sets of dormant data, candidate nodes in the second node resource table can be sharded and mapped according to the hash value of the data identifier, distributing construction data with different data identifiers across multiple second target nodes to avoid concentrated capacity consumption.
[0114] During the data transmission phase, the construction data corresponding to each data identifier in the first identifier set is transmitted to the first target node through the internal network channel. A block verification mechanism is used during transmission; a checksum is calculated for each data block and compared with the data after reception at the target node to ensure data integrity. The construction data corresponding to each data identifier in the second identifier set is then transmitted to the second target node. Since dormant data has lower real-time transmission requirements, a batch asynchronous transmission method can be used, executing the transmission centrally during periods of low network load to reduce bandwidth consumption for active data transmission.
[0115] At the moment all data transmission is complete, a version snapshot is generated. This snapshot records the complete state information of this data allocation operation, including: the operation timestamp, a list of data identifiers participating in the allocation, the target node identifier to which each data identifier is assigned, a comparison of checksums before and after data transmission, and the current value of the activity threshold when the allocation operation was triggered. Version snapshots are appended to a dedicated snapshot storage area, without overwriting historical snapshot records, thus forming a complete data allocation history sequence. Each version snapshot carries a unique snapshot identifier, generated by a hash of the operation timestamp and node identifier, ensuring global uniqueness in a distributed environment. The existence of version snapshots allows subsequent retrieval operations to accurately locate the data storage location at any historical moment, providing a reliable state anchor for constructing a directed lineage tracing chain. When construction data migrates between the first and second type of storage media due to changes in activity, each migration operation also triggers the generation of a new version snapshot, ensuring the complete traceability of data location changes.
[0116] In one optional implementation, for each modification operation of the construction data, a data pointer before modification and a data pointer after modification are extracted, and a directed lineage tracing chain is constructed based on the data pointers before modification and the data pointers after modification, including:
[0117] Listen for events triggered by modifications to construction data. Before the modification operation is executed, capture the storage address of the current construction data as the data pointer before modification. After the modification operation is completed, capture the storage address of the newly generated construction data as the data pointer after modification.
[0118] Extract the operation timestamp of the modification operation, construct a lineage triplet from the data pointer before modification, the data pointer after modification, and the operation timestamp, and establish a directed edge from the data pointer before modification to the data pointer after modification based on the lineage triplet;
[0119] The construction data corresponding to the data pointer before modification is instantiated as a source node, and the construction data corresponding to the data pointer after modification is instantiated as a target node. The source node and the target node are connected by the directed edge to form a lineage tracing unit.
[0120] Obtain multiple lineage tracing units generated by the same construction data at different times, extract the operation timestamps in each lineage tracing unit, and sort the lineage tracing units according to the chronological order;
[0121] According to the sorting results, the target node of each kinship tracing unit is matched and connected with the source node of the subsequent kinship tracing unit to form a directed kinship tracing chain from the data pointer before the initial modification to the data pointer after the final modification.
[0122] like Figure 3 As shown, the method includes:
[0123] Monitoring modification events in construction data is the starting point for building a directed lineage tracing chain. During the construction of underground cavern complexes, modifications to construction data occur frequently, encompassing various types such as adjustments to surrounding rock support parameters, changes to blasting design, and updates to monitoring data. Whenever a modification operation is triggered, before execution, the physical or logical address of the current construction data in the storage medium is captured, and this address is recorded as the pre-modification data pointer. After the modification operation is completed, the newly generated construction data is written to the storage node, and the storage address of the new data is captured and recorded as the post-modification data pointer. The pre-modification and post-modification data pointers together identify the start and end points of a data evolution, ensuring that the data state of each modification operation can be accurately located.
[0124] Extract the timestamp of the modification operation, and combine the data pointer before modification, the data pointer after modification, and the timestamp to construct a lineage triple. The structure of the lineage triple can be represented as follows: ,in For the data pointer before modification, For the modified data pointer, This is the operation timestamp. Based on this triple, a system is built from... point to The directed edges represent the temporal direction of data evolution, i.e., from the old version to the new version. The directed edges carry operation timestamp information, which enables the target version range to be quickly located based on the timestamp when performing temporal positioning on the lineage tracing chain.
[0125] Data pointer before modification The corresponding construction data is instantiated as the source node, and the modified data pointer is... The corresponding construction data is instantiated as a target node. Both the source and target nodes carry complete data content and metadata, including data type, construction stage, and storage node identifier. A directed edge connects the source and target nodes, forming a lineage tracing unit. The lineage tracing unit is a basic component of a directed lineage tracing chain, completely recording the data state transformation relationship before and after a single modification operation. In the construction scenario of underground cavern groups, a typical lineage tracing unit describes the evolution of surrounding rock deformation monitoring data at a certain cross-section from the initial collected value to the corrected value after manual calibration.
[0126] For multiple lineage tracing units generated at different times for the same construction data, extract the operation timestamp from each lineage tracing unit. All lineage tracing units are sorted chronologically. The sorting result reflects the order in which the construction data underwent modification operations throughout its entire lifecycle. If the same construction data was modified at time... They occurred separately The next modification operation will generate the corresponding result. Each bloodline tracing unit, when arranged in ascending order by timestamp, yields an ordered sequence of bloodline tracing units.
[0127] According to the sorting results, the first The target node of the bloodline tracing unit and the first The source nodes of each bloodline tracing unit are matched and connected, among which The basis for matching connections is: the first... Modified data pointers for each bloodline tracing unit With the Data pointer before modification for each kinship tracing unit Pointing to the same memory address, i.e. When this condition is met, two adjacent lineage tracing units are connected in series through a shared node, forming a continuous directed path. If the data pointer before a modification operation is inconsistent with the data pointer after the previous modification operation, it indicates that there is a branching evolution or parallel modification between the two modifications of the construction data. In this case, a branching structure needs to be introduced into the lineage tracing chain to fully record the multi-path evolution history of the data.
[0128] Through a step-by-step chaining process, starting from the data pointer before the initial modification... Starting from the beginning, follow the directed edges, passing through each intermediate node in sequence, and finally reaching the pointer to the final modified data. This forms a complete directed lineage tracing chain. The chain is organized in the form of a directed acyclic graph, with each directed edge carrying an operation timestamp, and each node carrying the corresponding version of the construction data content and its storage location information. In the scenario of underground cavern group construction data management, the directed lineage tracing chain can completely reconstruct the entire evolution process of a construction parameter from its initial design value through multiple on-site adjustments to its final confirmed value, providing a reliable data foundation for construction quality traceability, accident cause analysis, and construction experience accumulation.
[0129] When a retrieval request containing the target time point is received, the operation timestamps on each directed edge are traversed along the directed kinship tracing chain. The system locates the version node corresponding to the target time point and retrieves the target construction data from the storage location information carried by that node. When the retrieval request also includes a tracing depth parameter, it starts from the target version node and traverses backward along the directed lineage tracing chain, backtracking to earlier version nodes according to the tracing depth, collecting the construction data corresponding to each node to form a related data set. During the backward traversal, each directed edge traversed is counted as a tracing level, until the specified tracing depth is reached or the starting node of the chain is reached.
[0130] The construction and maintenance of directed lineage tracing chains in a distributed storage environment requires ensuring consistency across nodes. Since construction data is distributed across nodes on different types of storage media, the data pointers before and after modification point to different distributed nodes. When constructing directed edges, it is necessary to record the distributed node identifiers of both the source and target nodes to ensure accurate data retrieval across nodes. When a distributed node fails or data is migrated, the validity of the lineage tracing chain is maintained by updating the storage location information of the corresponding node, without needing to rebuild the entire chain's topology.
[0131] In one optional implementation, receiving a retrieval request containing a target time point and tracing depth, locating a target version snapshot in the directed kinship tracing chain according to the target time point, and obtaining target data from the corresponding distributed node through the storage location recorded in the target version snapshot includes:
[0132] Receive and parse retrieval requests to extract target time points and tracing depth parameters, and obtain the timestamp sequence of each version snapshot in the directed lineage tracing chain;
[0133] The time distance set is obtained by calculating the time distance between the target time point and each time point in the timestamp sequence. The version snapshot corresponding to the smallest time distance is selected from the time distance set as the time matching snapshot. The node position index of the time matching snapshot in the directed bloodline tracing chain is extracted.
[0134] Using the node position index as the backtracking starting point, perform a depth traversal along the parent node direction of the directed lineage tracing chain. During the traversal, accumulate the traversal hop count and compare it with the tracing depth parameter in real time. When the traversal hop count is equal to the tracing depth parameter, terminate the traversal and determine the version snapshot corresponding to the current node as the target version snapshot.
[0135] Parse the metadata fields of the target version snapshot to obtain the distributed node identifier and data block storage address, convert the distributed node identifier into a network access address and combine it with the data block storage address to generate a data read instruction;
[0136] Send the data read instruction to the network access address to receive the target data pointed to by the data block storage address from the corresponding distributed node.
[0137] Upon receiving a retrieval request, the request message is first parsed in a structured manner to extract two core parameters: the target time point and the tracing depth parameter. The target time point is stored in a unified timestamp format with millisecond precision, used for subsequent comparison with the timestamps of each version snapshot in the directed lineage tracing chain. The tracing depth parameter is a non-negative integer representing the number of hops to backtrack along the parent node from the time-matched snapshot. After parsing, the directed lineage tracing chain is traversed, and the timestamp fields of each version snapshot are read sequentially according to their generation order to construct an ordered timestamp sequence. This sequence maintains a one-to-one correspondence with the nodes in the lineage tracing chain, providing the basic data for subsequent time distance measurement.
[0138] The calculation method for time distance metric is as follows: Subtract the target time point from each timestamp in the timestamp sequence and take the absolute value to obtain a set of time distance values, which together constitute the time distance set. Let the target time point be... The timestamp sequence The timestamp of each snapshot is The corresponding time distance is Iterate through the time distance set and find the one with the smallest value. The corresponding version snapshot is identified as the time-matched snapshot. If two snapshots exist with an equal time interval, the one with the earlier timestamp is selected to ensure the certainty of the search results. The node position index of the time-matched snapshot in the directed kinship tracing chain is extracted and denoted as . This index serves as the starting point for subsequent depth-first traversals.
[0139] Indexed by node position Starting from the backtracking point, a depth-first traversal is initiated along the parent node of the directed ancestry chain. Each node in the directed ancestry chain maintains a pointer to its direct predecessor's parent node. During the traversal, each jump to the parent node pointer increments the traversal hop count, denoted as . The initial value is 0. After each jump, the current value is... The value is compared in real time with the traceability depth parameter: If If the value is less than the tracing depth parameter, continue jumping along the parent node's direction; if... If the backtracking depth parameter is equal to the target backtracking depth parameter, the traversal is terminated immediately, and the version snapshot corresponding to the current node is determined as the target version snapshot. When the backtracking depth parameter is 0, the time-matched snapshot itself is the target version snapshot, and no jump operation is required. If the parent node pointer is null during the traversal (i.e., the root node of the lineage traversal chain has been reached) and the traversal hop count has not yet reached the backtracking depth parameter, the version snapshot corresponding to the root node is used as the target version snapshot, the traversal is terminated, and a truncation flag is added to the retrieval response to inform the caller that the actual backtracking depth is less than the requested depth.
[0140] Once the target version snapshot is determined, its metadata fields are parsed. The metadata of the version snapshot is stored in a structured format, including a distributed node identifier field and a data block storage address field. The distributed node identifier is a logical identifier used to uniquely identify a storage node in the distributed storage cluster. Its format is a string combining the node number and the cluster domain name. The distributed node identifier is submitted to the node address resolution service, which queries the node registry to convert it into a directly accessible network access address. The network access address includes three parts: protocol type, host address, and service port. The data block storage address field records the physical path or logical block number of the target data in the local storage space of that distributed node, which, together with the network access address, constitutes complete data location information.
[0141] The network access address and data block storage address are combined according to a predefined data reading protocol to generate a data read instruction. This instruction is encapsulated into a standard request message. The message header includes a request type identifier, the request initiator's credentials, and data integrity verification parameters. The message body includes the data block storage address and optional data fragmentation range parameters. This data read instruction is sent to the network access address of the target distributed node. Upon receiving the request, the target node locates the corresponding data block on its local storage medium based on the data block storage address, performs the read operation, and encapsulates the data content into a response message and returns it.
[0142] Upon receiving the response message from the target distributed node, the response status code is verified: if the status code indicates success, the data content is extracted from the response message, completing the acquisition of the target data; if the status code indicates that the node is unreachable or the data block does not exist, a retry mechanism is triggered, attempting backup nodes sequentially according to the replica node list recorded in the version snapshot, until the data is successfully acquired or all replica nodes become unavailable. After data transmission is complete, a hash verification is performed on the received data block, comparing the calculated hash value with the expected hash value stored in the version snapshot metadata to ensure that the data has not been corrupted or tampered with during transmission. After successful verification, the target data is submitted to the upper-layer retrieval logic for use in subsequent processes of acquiring related data sets and returning access records.
[0143] Throughout the entire retrieval process, the operation time and intermediate states are recorded in the three stages of time distance measurement, depth traversal, and data reading, forming an execution log for this retrieval. The execution log is returned along with the target data, facilitating auditing and performance analysis of the retrieval process by the caller. For batch retrieval requests on the same directed kinship tracing chain, the calculation of time distance metrics corresponding to multiple target time points can be parallelized. After completing their respective time matching snapshot positioning, depth traversal is performed independently according to their respective tracing depth parameters, thereby improving overall retrieval efficiency without affecting retrieval accuracy.
[0144] In one optional implementation, based on the tracing depth, a reverse traversal is performed along the directed kinship tracing chain to obtain the associated data set of the target data. The access records of the target data and the associated data set are then sent back to the data lifecycle decay model. Triggering the data lifecycle decay model to adaptively adjust the boundary between the active data and the dormant data includes:
[0145] Starting from the target version snapshot, backtrack layer by layer along the parent node of the directed lineage tracing chain. During the backtracking process, the number of traversed layers is counted and compared with the tracing depth in real time.
[0146] When the number of traversed layers has not reached the tracing depth, continue traversing towards the parent node and extract the data objects associated with each parent node. When the number of traversed layers has reached the tracing depth, terminate the traversal and summarize all the data objects extracted from the traversal path to form an associated data set.
[0147] Capture the access time and access frequency of the target data and the associated data set in this retrieval request, and associate the access time and access frequency with the data identifier of the corresponding data object to construct an access record structure;
[0148] The access record structure is sent back to the data lifecycle decay model, which calculates the time decay coefficient of each data object based on the access time and calculates the activity correction value of each data object based on the access frequency.
[0149] The time decay coefficient and the activity correction value are input into the data lifecycle decay model to update the lifecycle status score of each data object. Based on the distribution threshold of the updated lifecycle status score, the active data and dormant data are reclassified, triggering the data lifecycle decay model to adaptively adjust the division boundary between the active data and the dormant data.
[0150] like Figure 4 As shown, the method includes:
[0151] This chart compares the numerical distribution of ten data identifiers (D-1024 to D-2703) across three series, representing the scores before adjustment, the scores after adjustment, and the threshold or correction value. Taking D-2033 as an example, Series 1 has a score of 0.47, and Series 2 has a score of 0.57, indicating that the score significantly improved and approached the threshold after the access record feedback. Overall, Series 2 is generally higher than Series 1, reflecting that the model has positively adjusted the activity level based on the latest access behavior. This chart visually demonstrates the impact of adaptive adjustment on the scores of various data objects, helping to determine which data has transitioned from a dormant state to an active state, thereby triggering storage migration decisions and optimizing resource allocation.
[0152] Starting with the target version snapshot, the process proceeds layer by layer backtracking along the parent nodes of the directed lineage tracing chain. Upon completion of each layer, the accumulated traversal layer count is incremented by one, and this count is compared in real-time with the tracing depth carried in the retrieval request. During the backtracking process, upon reaching each parent node, its associated data objects are extracted, including the storage location recorded by that node, data identifier, and version metadata. This layer-by-layer extraction process continues until the traversed layer count reaches the tracing depth limit or no earlier parent node exists in the lineage tracing chain.
[0153] When the number of traversed layers has not reached the tracing depth, the traversal continues along the parent node direction without interruption or skipping layers. Each parent node corresponds to an independent modification operation, and its associated data object is the construction data entity generated after that modification operation. In the construction scenario of underground cavern groups, the same rock mass support parameters or excavation cross-section data undergoes multiple revisions. Each revision leaves a node in the lineage tracing chain, so layer-by-layer backtracking can completely reconstruct the evolution path of the data from the current version to historical versions. When the number of traversed layers has just reached the tracing depth, the traversal terminates, and all extracted data objects in the traversal path are summarized to form an associated data set. This set, together with the target data, constitutes the complete result set of this retrieval.
[0154] The system captures the access behavior characteristics of the target data and related data sets in this retrieval request, specifically including the time point when each data object was accessed and the frequency of access within this request. Access time is recorded as a timestamp with millisecond precision, and access frequency is calculated by counting the number of times the same data object is read within the same retrieval request. The access time and access frequency are then associated with the data identifier of the corresponding data object to construct an access record structure. This structure uses the data identifier as the key and access time and access frequency as value fields, forming a structured unit for describing access behavior, facilitating subsequent independent evaluation of the activity status of each data object by the model.
[0155] After the access record structure is fed back to the data lifecycle decay model, the model calculates a time decay coefficient and an activity correction value for each data object. The time decay coefficient reflects the degree to which the activity of the data object is reduced by the time span since the current moment: the earlier the access time, the larger the time decay coefficient, and the more significant the corresponding activity loss; the more recent the access time, the smaller the time decay coefficient, and the higher the activity retention rate. The activity correction value is calculated based on the access frequency. Data objects with high access frequency receive a positive correction, while data objects with zero or extremely low access frequency receive a negative correction or no correction. The two calculations are independent of each other, quantifying the impact of the time dimension and the frequency dimension on the data activity status, respectively.
[0156] Let the time elapsed between the access time of the data object and the current time be . (Unit: hours), time decay factor is attenuation coefficient If the model is pre-defined with parameters, the time decay coefficient is calculated according to the exponential decay law:
[0157] ;
[0158] Let the access frequency of the data object in this search request be . Activity correction value The corrected gain coefficient is The activity correction value is then calculated as follows:
[0159] ;
[0160] The introduction of the logarithmic function makes the marginal benefit of the correction value decrease with the increase of access frequency, avoiding an excessive boost to the activity score from a single high-frequency access.
[0161] Time decay coefficient and activity correction value The input data lifecycle decay model is used to update the lifecycle status score of each data object. Let the lifecycle status score of a data object before data return be... The updated lifecycle status score is The fusion weight is (The range of values is) The update rule is as follows:
[0162] ;
[0163] This update rule combines the compression effect of time decay on historical scores with frequency-driven activity correction, while also incorporating weights. Control the impact of this access record on the score to prevent drastic fluctuations in the score caused by a single search event.
[0164] After the lifecycle status scores of all data objects have been updated, the partitioning threshold is determined based on the overall distribution of the updated scores. Specifically, for all data objects... The values are sorted, and a certain percentile of the distribution is used as the boundary between active and dormant data. Data objects with scores higher than this threshold are reclassified as active data, while data objects with scores lower than or equal to this threshold are reclassified as dormant data. The percentile position of the threshold is not fixed, but dynamically adjusted according to the current storage resource utilization and access load, so that the scale of active data always matches the available capacity of the first type of storage medium.
[0165] When the boundary changes, an adaptive adjustment process for the data lifecycle decay model is triggered. For data objects whose scores cross the threshold boundary, a storage migration operation is performed: data objects that were originally dormant but whose scores have risen above the threshold are migrated from distributed nodes of the second type of storage medium to distributed nodes of the first type of storage medium; data objects that were originally active but whose scores have fallen below the threshold are migrated from the first type of storage medium to the second type of storage medium. Each migration operation generates a new version snapshot, records the storage location after migration, and appends this snapshot to the corresponding node in the directed lineage tracing chain to ensure that subsequent retrieval requests can still accurately locate the latest storage location of the data through the lineage tracing chain.
[0166] In practical applications of underground cavern construction, the access frequency of monitoring data from a certain construction phase gradually decreases after that phase ends. The lifecycle status score continuously declines due to the cumulative effect of the time decay coefficient, eventually falling below the threshold and being migrated to a dormant storage node. When subsequent construction phases require tracing back this historical monitoring data due to changes in geological conditions, the access record return triggered by the retrieval request significantly increases the activity correction value of the data object, pushing its score back above the threshold. This triggers adaptive adjustment and migrates it back to an active storage node, thus achieving dynamic optimization of storage resources without manual intervention.
[0167] A second aspect of the present invention provides a distributed storage and retrieval system for construction data of underground cavern groups, comprising:
[0168] The data acquisition and modeling unit is used to collect construction data generated by the underground cavern group at different construction stages, perform access frequency statistics on the construction data and generate a timestamp sequence, and construct a data life cycle decay model based on the results of the access frequency statistics and the timestamp sequence.
[0169] The classification storage unit is used to divide the construction data into active data and dormant data according to the output of the data life cycle decay model, allocate the active data to the distributed nodes of the first type of storage medium, allocate the dormant data to the distributed nodes of the second type of storage medium, and generate a version snapshot for each data allocation operation.
[0170] A lineage construction unit is used to extract the data pointer before modification and the data pointer after modification for each modification operation of the construction data, and to construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification;
[0171] The retrieval and positioning unit is used to receive a retrieval request containing a target time point and tracing depth, locate the target version snapshot in the directed kinship tracing chain according to the target time point, and obtain the target data from the corresponding distributed node through the storage location recorded in the target version snapshot;
[0172] The boundary adjustment unit is used to perform reverse traversal along the directed kinship tracing chain based on the tracing depth to obtain the associated data set of the target data, and to send the access records of the target data and the associated data set back to the data lifecycle decay model, triggering the data lifecycle decay model to adaptively adjust the division boundary between the active data and the dormant data.
[0173] A third aspect of the present invention provides an electronic device, comprising:
[0174] processor;
[0175] Memory used to store processor-executable instructions;
[0176] The processor is configured to invoke instructions stored in the memory to execute the aforementioned method.
[0177] A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the aforementioned method.
[0178] This invention can be a method, apparatus, system, and / or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for performing various aspects of the invention.
[0179] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A distributed storage and retrieval method for construction data of underground cavern groups, characterized in that, include: Construction data generated at different stages of construction of underground cavern groups is collected, access frequency statistics are performed on the construction data and a timestamp sequence is generated, and a data life cycle decay model is constructed based on the results of the access frequency statistics and the timestamp sequence. Based on the output of the data lifecycle decay model, the construction data is divided into active data and dormant data. The active data is allocated to distributed nodes of the first type of storage medium, and the dormant data is allocated to distributed nodes of the second type of storage medium. At the same time, a version snapshot is generated for each data allocation operation. For each modification operation of the construction data, extract the data pointer before modification and the data pointer after modification, and construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification; Receive a retrieval request containing a target time point and tracing depth, locate the target version snapshot in the directed kinship tracing chain according to the target time point, and obtain the target data from the corresponding distributed node through the storage location recorded in the target version snapshot; Based on the tracing depth, the target data is obtained by reverse traversal along the directed kinship tracing chain. The access records of the target data and the associated data set are then sent back to the data lifecycle decay model, which triggers the data lifecycle decay model to adaptively adjust the boundary between the active data and the dormant data.
2. The method according to claim 1, characterized in that, Construction data generated at different construction stages of the underground cavern complex is collected. Access frequency statistics are performed on the construction data, and a timestamp sequence is generated. Based on the results of the access frequency statistics and the timestamp sequence, a data lifecycle decay model is constructed, including: Construction data is collected during the excavation, support, lining and acceptance phases. Data identifiers are generated for each piece of construction data and construction phase identifiers are marked. An access log table is established for the data identifier, each access operation for the data identifier is captured, and the access time is written to the access log table; All access times in the access log record table are extracted and arranged in chronological order to form a timestamp sequence. Based on the timestamp sequence, a sliding time window is set to count the number of accesses per unit time to obtain the access frequency value. The time interval between adjacent timestamps in the timestamp sequence is calculated to obtain a time interval set, and the average access interval and access interval variance are extracted as access interval distribution features. Construct an access frequency time series curve in the time dimension based on the access frequency values, identify peak regions and decay regions in the access frequency time series curve, and calculate the access frequency decay rate based on the access frequency change rate in the decay region. The access frequency value is used as the access intensity component. The access interval distribution characteristics are coupled with the access frequency attenuation rate to obtain the time attenuation component. The attenuation weighting factor is calculated based on the access intensity component and the time attenuation component. A decay function with time as the independent variable is constructed, and the decay weight factor is embedded in the decay function as a function parameter. The active quantification value of the construction data at any time is calculated through the decay function. The decay function is then mapped to the construction stage identifier to form a data lifecycle decay model.
3. The method according to claim 2, characterized in that, Constructing a time series curve of the access frequency values over time, identifying peak and decay regions in the access frequency time series curve, and calculating the access frequency decay rate based on the access frequency change rate in the decay region includes: Obtain the access frequency value and its corresponding timestamp, and use the timestamp as the time dimension coordinate and the access frequency value as the numerical dimension coordinate to map and construct an access frequency time series curve. Curvature analysis is performed on the access frequency time series curve to obtain a curvature distribution sequence. Curve inflection points are identified based on the changes in curvature sign in the curvature distribution sequence. Curve segments between each curve inflection point are extracted and the average slope of each curve segment is calculated. Mark the time interval corresponding to the curve segment with a positive average slope as the peak region and record the start and end timestamps of the peak region; mark the time interval corresponding to the curve segment with a negative average slope as the decay region and record the start and end timestamps of the decay region. The access frequency values within the range of the start and end timestamps of the decay region are extracted. The ratio of the difference between the access frequency values corresponding to adjacent timestamps within the decay region to the timestamp interval is calculated to obtain the instantaneous change rate sequence. The access frequency decay rate is obtained by performing a weighted aggregation operation on the instantaneous change rate sequence.
4. The method according to claim 1, characterized in that, Based on the output of the data lifecycle decay model, the construction data is divided into active data and dormant data. The active data is allocated to distributed nodes of the first type of storage medium, and the dormant data is allocated to distributed nodes of the second type of storage medium. Simultaneously, a version snapshot is generated for each data allocation operation, including: The data identifier of the construction data is input into the data life cycle decay model and the activity metric value is obtained. An activity threshold is set and the activity metric value is compared with the activity threshold to obtain the state determination result. Based on the state determination result, an active state identifier or a dormant state identifier is added to the data identifier, and a state identifier mapping table is established to record the correspondence between the data identifier and the active state identifier or the dormant state identifier; The storage load parameters of the distributed nodes of the first type of storage medium are obtained to construct a first node resource table, the storage capacity parameters of the distributed nodes of the second type of storage medium are obtained to construct a second node resource table, the status identifier mapping table is queried to filter out data identifiers carrying active state identifiers to form a first identifier set, and the status identifier mapping table is queried to filter out data identifiers carrying dormant state identifiers to form a second identifier set. For each data identifier in the first identifier set, the distributed node with the optimal storage load parameter is selected from the first node resource table as the first target node; for each data identifier in the second identifier set, the distributed node with the optimal storage capacity parameter is selected from the second node resource table as the second target node. The construction data corresponding to the data identifier in the first identifier set is transmitted to the first target node, and the construction data corresponding to the data identifier in the second identifier set is transmitted to the second target node. A version snapshot is generated at the time when the data transmission is completed.
5. The method according to claim 1, characterized in that, For each modification operation of the construction data, extract the data pointer before modification and the data pointer after modification, and construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification, including: Listen for events triggered by modifications to construction data. Before the modification operation is executed, capture the storage address of the current construction data as the data pointer before modification. After the modification operation is completed, capture the storage address of the newly generated construction data as the data pointer after modification. Extract the operation timestamp of the modification operation, construct a lineage triplet from the data pointer before modification, the data pointer after modification, and the operation timestamp, and establish a directed edge from the data pointer before modification to the data pointer after modification based on the lineage triplet; The construction data corresponding to the data pointer before modification is instantiated as a source node, and the construction data corresponding to the data pointer after modification is instantiated as a target node. The source node and the target node are connected by the directed edge to form a lineage tracing unit. Obtain multiple lineage tracing units generated by the same construction data at different times, extract the operation timestamps in each lineage tracing unit, and sort the lineage tracing units according to the chronological order; According to the sorting results, the target node of each kinship tracing unit is matched and connected with the source node of the subsequent kinship tracing unit to form a directed kinship tracing chain from the data pointer before the initial modification to the data pointer after the final modification.
6. The method according to claim 1, characterized in that, Receiving a retrieval request containing a target time point and tracing depth, locating the target version snapshot in the directed kinship tracing chain according to the target time point, and obtaining target data from the corresponding distributed node through the storage location recorded in the target version snapshot includes: Receive and parse retrieval requests to extract target time points and tracing depth parameters, and obtain the timestamp sequence of each version snapshot in the directed lineage tracing chain; The time distance set is obtained by calculating the time distance between the target time point and each time point in the timestamp sequence. The version snapshot corresponding to the smallest time distance is selected from the time distance set as the time matching snapshot. The node position index of the time matching snapshot in the directed bloodline tracing chain is extracted. Using the node position index as the backtracking starting point, perform a depth traversal along the parent node direction of the directed lineage tracing chain. During the traversal, accumulate the traversal hop count and compare it with the tracing depth parameter in real time. When the traversal hop count is equal to the tracing depth parameter, terminate the traversal and determine the version snapshot corresponding to the current node as the target version snapshot. Parse the metadata fields of the target version snapshot to obtain the distributed node identifier and data block storage address, convert the distributed node identifier into a network access address and combine it with the data block storage address to generate a data read instruction; Send the data read instruction to the network access address to receive the target data pointed to by the data block storage address from the corresponding distributed node.
7. The method according to claim 1, characterized in that, Based on the tracing depth, a reverse traversal is performed along the directed kinship tracing chain to obtain the associated data set of the target data. The access records of the target data and the associated data set are then sent back to the data lifecycle decay model. Triggering the data lifecycle decay model to adaptively adjust the boundary between the active data and the dormant data includes: Starting from the target version snapshot, backtrack layer by layer along the parent node of the directed lineage tracing chain. During the backtracking process, the number of traversed layers is counted and compared with the tracing depth in real time. When the number of traversed layers has not reached the tracing depth, continue traversing towards the parent node and extract the data objects associated with each parent node. When the number of traversed layers has reached the tracing depth, terminate the traversal and summarize all the data objects extracted from the traversal path to form an associated data set. Capture the access time and access frequency of the target data and the associated data set in this retrieval request, and associate the access time and access frequency with the data identifier of the corresponding data object to construct an access record structure; The access record structure is sent back to the data lifecycle decay model, which calculates the time decay coefficient of each data object based on the access time and calculates the activity correction value of each data object based on the access frequency. The time decay coefficient and the activity correction value are input into the data lifecycle decay model to update the lifecycle status score of each data object. Based on the distribution threshold of the updated lifecycle status score, the active data and dormant data are reclassified, triggering the data lifecycle decay model to adaptively adjust the division boundary between the active data and the dormant data.
8. A distributed storage and retrieval system for construction data of underground cavern groups, used to implement the method as described in any one of claims 1-7, characterized in that, include: The data acquisition and modeling unit is used to collect construction data generated by the underground cavern group at different construction stages, perform access frequency statistics on the construction data and generate a timestamp sequence, and construct a data life cycle decay model based on the results of the access frequency statistics and the timestamp sequence. The classification storage unit is used to divide the construction data into active data and dormant data according to the output of the data life cycle decay model, allocate the active data to the distributed nodes of the first type of storage medium, allocate the dormant data to the distributed nodes of the second type of storage medium, and generate a version snapshot for each data allocation operation. A lineage construction unit is used to extract the data pointer before modification and the data pointer after modification for each modification operation of the construction data, and to construct a directed lineage tracing chain based on the data pointer before modification and the data pointer after modification; The retrieval and positioning unit is used to receive a retrieval request containing a target time point and tracing depth, locate the target version snapshot in the directed kinship tracing chain according to the target time point, and obtain the target data from the corresponding distributed node through the storage location recorded in the target version snapshot; The boundary adjustment unit is used to perform reverse traversal along the directed kinship tracing chain based on the tracing depth to obtain the associated data set of the target data, and to send the access records of the target data and the associated data set back to the data lifecycle decay model, triggering the data lifecycle decay model to adaptively adjust the division boundary between the active data and the dormant data.
9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 7.
