Rock joint roughness jrc prediction method, system, medium, and device

By acquiring two-dimensional joint contour images and extracting multi-scale features, combined with the JRC prediction method based on reliability calculation, the problems of insufficient adaptability and stability in existing technologies are solved, and efficient and reliable prediction of rock joint surface roughness is achieved.

CN123160943APending Publication Date: 2026-11-24SHANDONG LUQIAO CONSTR +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611311497.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies have poor adaptability and insufficient computational stability in the JRC prediction of rock joint surface roughness. Manual comparison is highly subjective, 3D acquisition equipment is expensive, and the 2D machine vision acquisition process lacks scale uniformity and contour quality evaluation, and the model output is not verifiable.

Method used

Two-dimensional joint contour images are acquired, and image quality evaluation, preprocessing, and multi-scale roughness feature extraction are performed. Combined with the JRC prediction model, credibility calculation and anomaly detection are performed before output to provide a JRC prediction report.

Benefits of technology

It improves the adaptability and computational stability of JRC predictions, reduces dependence on 3D scanning equipment, reduces imaging errors, ensures the traceability of model training objectives and the credibility of outputs, and supports rapid laboratory and field applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160943A_ABST
    Figure CN123160943A_ABST
Patent Text Reader

Abstract

This invention relates to the field of rock mass engineering technology, and more particularly to a method, system, medium, and equipment for predicting the roughness of rock joint surfaces using JRC (Joint Roughness Detection and Reduction) images. The JRC prediction method uses ordinary two-dimensional joint contour images as the entry point, reducing the dependence of automatic JRC evaluation on three-dimensional scanning equipment, making it suitable for rapid acquisition in laboratories and on-site. Furthermore, scale calibration and image quality evaluation are performed before JRC prediction, which can reduce prediction errors caused by differences in shooting distance, resolution, and illumination. Moreover, this invention does not rely solely on a single roughness parameter, but constructs multi-scale features such as height, slope, curvature, length ratio, frequency domain, fractal, and local abrupt changes, enabling a more complete characterization of the two-dimensional joint contour, thereby effectively improving the adaptability and computational stability of the JRC prediction method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rock mass engineering technology, and in particular to a method, system, medium, and equipment for predicting the JRC roughness of rock joint surfaces. Background Technology

[0002] The joint roughness coefficient (JRC) of rock joint surfaces is an important parameter for evaluating the shear strength, deformation characteristics, and stability of rock mass structural surfaces. In traditional engineering, JRC is often obtained through manual comparison with Barton standard profiles, profilometry measurements followed by inputting empirical formulas, 3D scanning to extract roughness parameters, or direct shear tests combined with the Barton-Bandis strength model inversion. With the development of digital image acquisition, machine vision, and machine learning, converting joint profile images into computable features and predicting JRC has become feasible in engineering applications.

[0003] Existing techniques first collect or depict the joint profile contour, and then manually compare it with the Barton standard profile or substitute a single / a small number of roughness parameters into an empirical formula to obtain the JRC or JRC interval. However, the manual comparison of this method is highly subjective, and different people may give different JRC intervals for the same contour. Empirical formulas usually rely on a single parameter or a fixed sampling scale, which makes it difficult to adapt to different lithologies, different image resolutions, local damage, shadows, and complex contour noise at the same time. When the contour extraction error is large, the stability of the formula estimation is insufficient.

[0004] Existing technologies also disclose the acquisition of joint surface point clouds or depth maps using 3D acquisition equipment, followed by registration, denoising, patch fitting, and parameter calculation to output 3D roughness indices or evaluation results related to shear strength. However, 3D acquisition equipment has high costs and high requirements for on-site deployment; it is highly dependent on data acquisition posture, occlusion, point cloud density, and post-processing capabilities; and for engineering scenarios that only require rapid JRC prediction of 2D profiles, the 3D solution suffers from equipment and computational redundancy.

[0005] Furthermore, existing technologies extract multiple features from contour or surface data, input these features into regression or classification models, and output JRC values, JRC intervals, or roughness levels. They do not systematically address scale uniformity, contour quality evaluation, label source consistency, outlier handling, and the interpretability of prediction results during the 2D machine vision acquisition process. The model output is prone to becoming a single, unverifiable value, making it difficult for engineers to assess the reliability of the predictions.

[0006] Therefore, it is necessary to provide a new method, system, medium, and device for predicting the JRC roughness of rock joint surfaces to solve the above-mentioned technical problems. Summary of the Invention

[0007] The main objective of this invention is to provide a method, system, medium, and device for predicting the JRC roughness of rock joint surfaces, aiming to solve the problems of low adaptability and insufficient computational stability of existing methods.

[0008] To achieve the above objectives, this invention proposes a method for predicting the JRC roughness of rock joint surfaces, comprising the following steps: Step S1: Acquire one or more two-dimensional joint contour images of the rock to be tested; Step S2: Evaluate the image quality of each two-dimensional joint contour image, specifically: Calculate the image quality score corresponding to the two-dimensional joint contour image. ; Image quality is determined based on a preset image quality threshold and hard constraints. If the data is qualified, proceed to step S3; otherwise, output "Re-acquisition". Step S3: Preprocess and crop the regions of the two-dimensional joint contour image that meets the image quality score to obtain a binary boundary map and a preprocessed image; Step S4: Calculate multi-scale roughness features based on the binary boundary map and the preprocessed image; Step S5: Input the multi-scale roughness features into the current JRC prediction model, and output the continuous JRC values ​​and the probabilities corresponding to different JRC intervals; Step S6: Calculate the credibility of the output result in step S5 based on image quality score, contour integrity score, model uncertainty score, feature distribution distance, and label source reliability. ; Step S7: Determine the credibility of the output result in step S5 based on the preset credibility threshold and the anomaly triggering conditions. Whether it is qualified or not, specifically: like If the exception triggering conditions are not met, then output a JRC prediction report; if If the hard constraints are not met, the two-dimensional joint contour image will be resampled and will not be directly used for engineering judgment; where: The preset confidence threshold is used; the abnormal triggering conditions include scale calibration abnormality, contour integrity abnormality, feature distribution abnormality, model output conflict, cross-verification abnormality, and label source abnormality.

[0009] Optionally, in step S2, image quality is analyzed. The specific calculation formula is as follows: ; in: The sharpness score is obtained from the sharpness index derived from the Laplace variance; Contrast score is obtained from the grayscale difference between the outline and the background or the edge gradient; Exposure uniformity is determined by the local brightness variance; The effective contour proportion is obtained by the ratio of the effective contour length to the target length; The penalty for occlusion / stains is determined by the percentage of occlusion, shadow, and stain area. The ruler recognition score is derived from the ruler recognition success rate. , , , , and They are respectively divided into clarity scores Contrast Exposure uniformity Effective contour percentage Scale identification and penalties for covering / staining The non-negative weights are determined based on the training set or validation set; In step S2, when ≥ And when the hard constraints are met, the image quality of the two-dimensional joint contour image is deemed acceptable; when < If the hard constraints are not met, the data is deemed unqualified, and a re-acquisition prompt is output; where: Set a preset image quality threshold; The hard constraints include successful ruler recognition, effective contour length not less than the preset minimum length, occlusion ratio not higher than the preset upper limit, and contour contrast not lower than the preset lower limit.

[0010] Optionally, step S3 includes: Step S3.1: Convert the two-dimensional joint contour image into a grayscale image or a brightness image; Step S3.2: Use median filtering, Gaussian filtering or bilateral filtering to process the grayscale image or brightness to remove isolated noise and retain joint edges, and obtain the filtered joint image; Step S3.3: Correct the filtered joint map using histogram equalization, CLAHE, or Retinex methods to obtain the corrected joint map; Step S3.4: Clip the region of interest based on the ruler position, candidate joint edges, and bounding box; wherein: the region of interest is the smallest bounding rectangle containing the main outline of the effective joint and its necessary neighborhood. The specific clipping method is as follows: Using the ruler position as a reference, the initial bounding box is determined by combining the distribution of candidate joint edges. Then, the bounding box is rotated and corrected by the principal direction estimation so that the long side of the cropped region is consistent with the joint contour direction. Finally, the sub-image that retains only the region of interest is output. Step S3.5: Use an existing contour extraction model to segment the region of interest to obtain candidate joint boundaries; Step S3.6: Remove small connected regions of candidate joint boundaries through opening and closing operations, thinning, and skeletonization, and fill in local breakpoints; Step S3.7: Use Hough transform, least squares linear or principal direction estimation to correct the tilt of the corrected joint map to obtain a binary boundary map and a preprocessed image.

[0011] Optionally, S4 includes: S4.1. Based on the binary boundary map and the preprocessed image, candidate contours are extracted by combining edge detection and semantic segmentation. Then, the main contour among the candidate contours is selected according to continuity, length, direction and baseline position. S4.2 Remove isolated sharp noise in the main contour, interpolate the missing segments in the main contour whose projection length is not greater than the preset interpolation length, and resample according to the preset actual spacing to obtain an equally spaced contour point sequence. In S4.2, isolated spike noise is an anomalous segment that meets the following conditions: The number of sampling points continuously occupied on the main contour shall not exceed the preset number of points; The height deviation or absolute value of curvature relative to adjacent local windows is greater than the corresponding preset threshold. The height deviation or curvature of the front and rear contour points are within the same height deviation or curvature range; S4.3. Multi-scale roughness features are calculated based on the equally spaced contour point sequence at the global scale and multiple local window scales. The multi-scale roughness features include height features, slope features, curvature features, frequency domain features, fractal features, and abrupt change features.

[0012] Optionally, in step S5, the method for obtaining the trained JRC prediction model is as follows: ① The existing data contains N labeled two-dimensional joint contour images and their corresponding multi-scale roughness features, which are used as samples to construct a training sample library. Among them, the re-acquired two-dimensional joint contour images, contour point sequences, multi-scale roughness feature vectors, JRC labels and weights are all written into the training sample library. ② Train the existing JRC prediction model based on the training sample library. After the convergence condition is met, the trained JRC prediction model is obtained and used as the current JRC prediction model. When the number of new samples in the training sample library reaches the preset number, the validation set error during the training process exceeds the preset threshold, or a new lithology / collection scale category appears, incremental training or retraining is started on the trained JRC prediction model based on the current training sample library. Then, the prediction error and confidence threshold of the trained JRC prediction model are checked using the pre-divided reserved test set to obtain the checked JRC prediction model, and the checked JRC prediction model is used as the current JRC prediction model.

[0013] Optionally, the JRC labels for the samples include: empirical formula labels, mechanical inversion labels, and fusion labels; The JRC intervals should be manually identified by at least one professional and compared with the Barton standard profile. When there are multiple professionals, the mean, median, or consistency-weighted value of the JRC interval given by all professionals is taken. Substituting the two-dimensional contour parameters extracted from the two-dimensional joint contour image into the publicly available empirical relation, we obtain the empirical formula label. ; When the sample has direct shear test data, construct the mechanical inversion label for the sample. The specific formula is as follows: ; in: for, This represents the peak shear stress. For normal stress, The basic friction angle, The compressive strength of the joint wall; For samples that have multiple labels, the following formula is used to construct fused labels: ; in: , and These are the weights corresponding to the empirical formula label and the mechanical inversion label, respectively.

[0014] Optionally, in S6, the confidence level The specific calculation formula is as follows: ; in: Assigning points based on outline integrity, For model consistency score, Assign a score based on the reliability of the label's source; , , and Image quality scores Outline integrity , model consistency score And the reliability of the label source Non-negative weights; ; Contour integrity score The specific calculation formula is as follows: ; in: , and These are the proportions of the contour break segments. Contour interpolation ratio And the ratio of burrs or noise points The penalty weight; Model consistency score The specific calculation formula is as follows: ; in: The standard deviation of the prediction results of the JRC prediction model after training. To preset the reference standard deviation, The first output of the JRC prediction model after training j The probability of each JRC interval; Label source reliability score The specific calculation formula is as follows: ; in: , and These are the source reliability coefficients for empirical formula labels and mechanical inversion labels, respectively.

[0015] In addition, the present invention also provides a rock joint surface roughness JRC prediction system for performing the rock joint surface roughness JRC prediction method as described above; the rock joint surface roughness JRC prediction system includes an image acquisition and calibration layer, a contour recognition layer, a feature and label layer, and a prediction and verification layer. The image acquisition and calibration layer includes a two-dimensional image acquisition module, a scale calibration module, and an image quality evaluation module; the output of the two-dimensional image acquisition module is connected to the input of the scale calibration module, and both the two-dimensional image acquisition module and the scale calibration module are used to execute step S1; the output of the scale calibration module is connected to the input of the image quality evaluation module, and the image quality evaluation module is used to execute step S2. The contour recognition layer includes a preprocessing module, a joint main contour extraction module, and a contour correction and sampling module; the input of the preprocessing module is connected to the output of the image quality evaluation module, and the preprocessing module is used to perform step S3; the input of the joint main contour extraction module is connected to the output of the preprocessing module, and the joint main contour extraction module is used to perform step S4.1; the input of the contour correction and sampling module is connected to the output of the joint main contour extraction module, and the joint correction and sampling module is used to perform step S4.2. The feature and label layer includes a multi-scale roughness feature module, a JRC label calibration module, and a sample library management module. The input of the multi-scale roughness feature module is connected to the output of the joint correction and sampling module, and the multi-scale roughness feature module is used to continue step S4.3. The JRC label calibration module is used to manage the JRC label source of the samples. The sample library management module is used to store the training sample library and support the model training, validation, and incremental updates of the JRC prediction module. The prediction and verification layer includes a JRC prediction module, a credibility evaluation module, and a result output and model update module. The JRC prediction module is connected to the multi-scale roughness feature module, the JRC label calibration module, and the sample library management module, respectively, and is used to execute step S5. The credibility evaluation module is connected to the output end of the JRC prediction module and is used to execute steps S6 and S7. The result output and model update module is connected to the output end of the credibility evaluation module and is used to output the JRC prediction value, JRC interval, roughness feature, credibility, and visual contour overlay map, and update the training sample library and the current JRC prediction model.

[0016] The present invention also provides a readable storage medium storing computer program instructions that, when executed by a processor, implement the JRC prediction method for rock joint surface roughness as described above.

[0017] The present invention also provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein the computer program instructions are executed by the processor to perform the JRC prediction method for rock joint surface roughness as described above.

[0018] The technical solution of the present invention has the following beneficial effects: This invention uses ordinary two-dimensional joint contour images as the entry point, reducing the dependence of JRC automatic evaluation on three-dimensional scanning equipment, making it suitable for rapid acquisition in laboratories and on-site. Furthermore, it performs scale calibration and image quality evaluation before JRC prediction, reducing prediction errors caused by differences in shooting distance, resolution, and illumination. Moreover, this invention does not rely solely on a single roughness parameter, but constructs multi-scale features such as height, slope, curvature, length ratio, frequency domain, fractal, and local mutations, enabling a more complete characterization of the two-dimensional joint contour. This effectively improves the adaptability and computational stability of the JRC prediction method of this invention.

[0019] Furthermore, this invention can clearly distinguish between empirical formula labels and mechanical inversion labels, and provides a fusion method to make the model training objectives traceable and adjustable; and outputs JRC intervals and confidence levels at the same time as outputting JRC predicted values. This invention also sets up abnormal sample verification and model update mechanisms of the same specifications, which can continuously improve the prediction stability with the addition of new samples and experimental data. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0021] Figure 1 This is a flowchart illustrating the JRC prediction method for rock joint surface roughness in Embodiment 1 of the present invention. Figure 2 This is a schematic diagram of the JRC prediction system for rock joint surface roughness in Embodiment 1 of the present invention.

[0022] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0023] 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 a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0024] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.

[0025] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0026] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0027] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.

[0028] This invention proposes a method, system, medium, and equipment for predicting the JRC roughness of rock joint surfaces, aiming to solve the problems of low adaptability and insufficient computational stability of existing methods.

[0029] Example 1: See Figure 1 This embodiment provides a method for predicting the JRC roughness of rock joint surfaces, including the following steps: Step S1: Acquire one or more two-dimensional joint contour images of the rock to be tested; during acquisition, set a scale in the image or use a known scanning resolution so that the system can complete the conversion from pixels to actual length.

[0030] In this embodiment, the system calculates the pixel size based on the ruler line segments, calibration points, or scanning device parameters to obtain the actual sampling interval of the contour. Let the actual length of the ruler in the image be... Its corresponding pixel length is The actual length corresponding to a unit pixel It can be calculated using the following formula: ; For the pixel coordinates of any contour point in the image Select a reference point Then, it can be converted into actual length coordinates using the following formula: ; When the input is a scanned image and the scan resolution is D dpi, this embodiment takes = 25.4 / D (mm / pixel). After coordinate transformation, the actual horizontal spacing dx between adjacent sampling points is determined by the difference between adjacent x coordinates, and serves as the unified scale basis for subsequent calculations of Z2, length ratio, and multi-scale features.

[0031] Step S2: Evaluate the image quality of each two-dimensional joint contour image, specifically: Calculate the image quality score corresponding to the two-dimensional joint contour image. ; In step S2, image quality is... The specific calculation formula is as follows: ; in: The sharpness score is obtained from the sharpness index derived from the Laplace variance; Contrast score is obtained from the grayscale difference between the outline and the background or the edge gradient; Exposure uniformity is determined by the local brightness variance; The effective contour proportion is obtained by the ratio of the effective contour length to the target length; The penalty for occlusion / stains is determined by the percentage of occlusion, shadow, and stain area. The ruler recognition score is derived from the ruler recognition success rate. , , , , and They are respectively divided into clarity scores Contrast Exposure uniformity Effective contour percentage Scale identification and penalties for covering / staining The non-negative weights are determined based on the training set or validation set; Image quality is determined based on a preset image quality threshold and hard constraints. If the data is qualified, proceed to step S3; otherwise, output "Re-acquisition". In step S2, when ≥ And when the hard constraints are met, the image quality of the two-dimensional joint contour image is deemed acceptable; when < If the hard constraints are not met, a re-acquisition prompt will be output; where: Set a preset image quality threshold; The hard constraints include successful ruler recognition, effective contour length not less than a preset minimum length, occlusion ratio not higher than a preset upper limit, and contour contrast not lower than a preset lower limit. In this embodiment, the hard constraints also include severe blurring and overexposure / underexposure; successful ruler recognition means that the ruler region can be automatically detected and located from the two-dimensional joint contour image, the pixel length of the ruler can be accurately identified, and the conversion from pixel coordinates to actual length coordinates can be completed accordingly, so that subsequent contour extraction and feature calculation have a unified physical scale benchmark.

[0032] Step S3: Preprocess and crop the regions of the two-dimensional joint contour image that meets the image quality score to obtain a binary boundary map and a preprocessed image; Step S3 includes: Step S3.1: Convert the two-dimensional joint contour image into a grayscale image or a brightness image; Step S3.2: Use median filtering, Gaussian filtering or bilateral filtering to process the grayscale image or brightness to remove isolated noise and retain joint edges, and obtain the filtered joint image; Step S3.3: Correct the filtered joint map using histogram equalization, CLAHE, or Retinex methods to obtain the corrected joint map; Step S3.4: Clip the region of interest based on the ruler position, candidate joint edges, and bounding box; wherein: the region of interest is the smallest bounding rectangle containing the main outline of the effective joint and its necessary neighborhood. The specific clipping method is as follows: Using the ruler position as a reference, the initial bounding box is determined by combining the distribution of candidate joint edges. Then, the bounding box is rotated and corrected by the principal direction estimation so that the long side of the cropped region is consistent with the joint contour direction. Finally, the sub-image that retains only the region of interest is output. Step S3.5: Use an existing contour extraction model to segment the region of interest to obtain candidate joint boundaries; in this embodiment, the existing contour extraction model can be a traditional image processing algorithm, U-Net, DeepLab, Mask R-CNN or other semantic segmentation models; Step S3.6: Remove small connected regions of candidate joint boundaries through opening and closing operations, thinning, and skeletonization, and fill in local breakpoints; Step S3.7: Use Hough transform, least squares linear or principal direction estimation to correct the tilt of the corrected joint map to obtain a binary boundary map and a preprocessed image.

[0033] Step S4: Calculate multi-scale roughness features based on the binary boundary map and the preprocessed image; S4 includes: S4.1. Based on the binary boundary map and the preprocessed image, candidate contours are extracted by combining edge detection and semantic segmentation. Then, the main contour among the candidate contours is selected according to continuity, length, direction and baseline position. S4.2 Remove isolated sharp noise in the main contour, interpolate the missing segments in the main contour whose projection length is not greater than the preset interpolation length, and resample according to the preset actual spacing to obtain an equally spaced contour point sequence. In S4.2, isolated spike noise is an anomalous segment that meets the following conditions: The number of sampling points continuously occupied on the main contour shall not exceed the preset number of points; The height deviation or absolute value of curvature relative to adjacent local windows is greater than the corresponding preset threshold. The height deviation or curvature of the front and rear contour points are within the same height deviation or curvature range; S4.3. Based on the equally spaced contour point sequence, multi-scale roughness features are calculated at the global scale and multiple local window scales. These multi-scale roughness features include height features, slope features, curvature features, frequency domain features, fractal features, and abrupt change features. Specifically: (1) Height-related characteristics: maximum height fluctuation, root mean square height, mean absolute height, peak-to-valley difference, skewness and kurtosis.

[0034] (2) Slope characteristics: average absolute slope, root mean square slope Z2, maximum local slope, ratio of positive to negative slope, and slope change rate.

[0035] (3) Curvature characteristics: average curvature, root mean square curvature, proportion of curvature abrupt change points, and number of local peaks.

[0036] (4) Length ratio characteristics: ratio of actual contour length to projected length, local window length ratio, and contour curvature.

[0037] (5) Fractal characteristics: box dimension, slope of variation function, and multiscale roughness index.

[0038] (6) Frequency domain characteristics: main frequency energy, low frequency energy ratio, high frequency energy ratio, power spectrum slope.

[0039] (7) Local mutation characteristics: number of steps, length of continuous rising or falling segments, and density of local extrema.

[0040] This embodiment repeatedly calculates the above features at multiple window scales. The window length can be 5%, 10%, 20% of the effective contour length, or the full length, forming a multi-scale feature vector, which can simultaneously characterize the overall undulation and local rough structure.

[0041] Furthermore, in this embodiment, the contour point sequence is converted into a multi-scale roughness feature vector X = [height features, slope features, curvature features, length ratio features, fractal features, frequency domain features, and local mutation features].

[0042] Step S5: Input the multi-scale roughness features into the current JRC prediction model and output continuous JRC values ​​and the probabilities corresponding to different JRC intervals. The current JRC prediction model uses the multi-scale roughness feature vectors and their JRC labels of the calibrated samples as training data. When predicting, input the multi-scale roughness feature vector X of the sample to be tested into the model and output continuous JRC values ​​and the probabilities of JRC intervals such as 0-2, 2-4, and 4-6.

[0043] In step S5, the specific method for obtaining the trained JRC prediction model is as follows: ① The existing data contains N labeled two-dimensional joint contour images and their corresponding multi-scale roughness features, which are used as samples to construct a training sample library. Among them, the re-acquired two-dimensional joint contour images, contour point sequences, multi-scale roughness feature vectors, JRC labels and weights are all written into the training sample library. The JRC tags for the samples include: empirical formula tags, mechanical inversion tags, and fusion tags; The JRC intervals should be manually identified by at least one professional and compared with the Barton standard profile. When there are multiple professionals, the mean, median, or consistency-weighted value of the JRC interval given by all professionals is taken. Substituting the two-dimensional contour parameters extracted from the two-dimensional joint contour image into the publicly available empirical relation, we obtain the empirical formula label. The empirical formula labels in this embodiment are calculated by Tse and Cruden based on the Z2-JRC empirical relationship established by the Barton standard profile. This empirical relationship is not a self-defined inherent formula; in this embodiment, it is used as one of the label sources or a reference for verifying prediction results. Under different engineering or lithological conditions, it can also be replaced by a similar empirical formula recalibrated using samples from this project. The specific empirical formula labels in this embodiment are: ; The above formula is derived from two-dimensional joint profile statistical parameters. Empirical fit with the Barton JRC standard profile; where: , The number of contour sampling points, This represents the actual horizontal distance between adjacent sampling points. For the first The height of each sampling point.

[0044] When the sample has direct shear test data, construct the mechanical inversion label for the sample. The specific formula is as follows: ; in: This represents the peak shear stress. For normal stress, The basic friction angle, The compressive strength of the joint wall; For samples that have multiple labels, the following formula is used to construct fused labels: ; in: , and These are the weights corresponding to the empirical formula label and the mechanical inversion label, respectively.

[0045] The system records the label source for each sample and sets weights according to the application objective. Specifically, when the application objective is rapid identification of the two-dimensional standard JRC, the weight of manually compared labels is higher than that of experimentally retrieved labels; when the application objective is shear strength evaluation, the weight of experimentally retrieved labels is higher than that of manually compared labels. The fused labels are used for model training, while the original labels are retained for traceability.

[0046] In this embodiment, The empirical formula labels are based on the empirical relationship between publicly available profile statistics parameters and the JRC, and are applicable to the following situations: 1. Rapid estimation without experimental data (when the sample only has a two-dimensional contour image and the direct shear test conditions are not available, the empirical formula label can be used as an alternative calibration target for JRC). 2. Cross-validation of model prediction results (the system can compare empirical formula values ​​with model prediction values). 3. Replacement and adaptation under different engineering or lithological conditions (the empirical formula is not an inherent formula defined by this invention. Under different engineering or lithological conditions, it can be replaced by the same empirical formula that has been recalibrated by the project sample). 4. Reliability assessment of label source (the reliability coefficient of the label source can be determined based on the applicability of the empirical formula under specific lithology).

[0047] Mechanical inversion labels, based on direct shear test data, are the closest JRC source to the engineering mechanics meaning and are suitable for the following scenarios: 1. Engineering shear strength evaluation: When the application objective is to evaluate the shear strength of joints, mechanical inversion labels should be used as the primary label source, and their corresponding weights should be increased; 2. High-precision model training: For samples with experimental data, mechanical inversion labels can provide calibration targets directly related to mechanical behavior, improving the reliability of the model in engineering applications; 3. Supplementation and verification of manual comparison labels: When there is a dispute over manual comparison, mechanical inversion labels can be used as an independent verification method to help determine the true range of JRC; 4. High confidence sources in label fusion: The reliability coefficient of the source of mechanical inversion labels is usually set high (determined according to the completeness of experimental data) and given high weight in the fused labels.

[0048] ② Train the existing JRC prediction model based on the training sample library. After the convergence condition is met, the trained JRC prediction model is obtained and used as the current JRC prediction model. When the number of new samples in the training sample library reaches a preset number, the validation set error during training exceeds a preset threshold, or a new lithology / collection scale category appears, incremental training or retraining is initiated on the trained JRC prediction model based on the current training sample library. Then, the prediction error and confidence threshold of the trained JRC prediction model are verified using a pre-defined reserved test set to obtain a verified JRC prediction model, which is then used as the current JRC prediction model. In this embodiment, a new lithology / collection scale category appears when the rock type or image acquisition scale of the sample to be tested differs significantly from existing samples in the current training sample library, causing the existing JRC prediction model to be unable to provide reliable predictions for that type of sample.

[0049] This embodiment performs label supplementation and model retraining for low-confidence samples or newly added samples, enabling the system to continuously improve. Label supplementation results can be obtained by recalculating empirical formula labels, supplementing labels obtained from direct shear test inversions, or reacquiring high-quality images. When the number of new samples reaches a preset number, or the validation set error exceeds a preset threshold, or a new lithology / collection scale category appears, the system initiates incremental training or retraining, and uses the retained test set to verify the prediction error and confidence threshold of the updated model. In this embodiment, the prediction error is used to calculate the error of the trained model on the retained test set. If the error index exceeds a preset upper limit, the model accuracy is deemed substandard, requiring retraining or adjustment of the model structure.

[0050] In this embodiment, existing JRC prediction models can employ random forest replacement, XGBoost, LightGBM, support vector regression, BP neural network, convolutional neural network, Transformer, or multi-model ensemble.

[0051] Step S6: Calculate the credibility of the output result in step S5 based on image quality score, contour integrity score, model uncertainty score, feature distribution distance, and label source reliability. ; In S6, the credibility The specific calculation formula is as follows: ; in: Assigning points based on outline integrity, For model consistency score, Assign a score based on the reliability of the label's source; , , and Image quality scores Outline integrity , model consistency score And the reliability of the label source Non-negative weights; The outline integrity of this embodiment is divided into It can be calculated from the effective contour length, the proportion of broken segments, the interpolation ratio, and the burr removal ratio; model consistency score It can be calculated from the variance of the ensemble model prediction, the difference in predictions among different models, or the maximum value of the interval probability; the reliability of the label source is... The results can be determined by the source, consistency, and completeness of the labels of adjacent samples in the training set. All of the above items are normalized to the interval between 0 and 1, with larger values ​​indicating more reliable prediction results.

[0052] Contour integrity score The specific calculation formula is as follows: ; in: , and These are the proportions of the contour break segments. Contour interpolation ratio And the ratio of burrs or noise points The penalty weight; Model consistency score The specific calculation formula is as follows: ; in: The standard deviation of the prediction results of the JRC prediction model after training. To preset the reference standard deviation, The first output of the JRC prediction model after training j The probability of each JRC interval; Label source reliability score The specific calculation formula is as follows: ; in: , and These are the source reliability coefficients for empirical formula labels and mechanical inversion labels, respectively.

[0053] Step S7: Determine the credibility of the output result in step S5 based on the preset credibility threshold and the anomaly triggering conditions. Whether it is qualified or not, specifically: like If the exception triggering conditions are not met, then output a JRC prediction report; if If the hard constraints are not met, the two-dimensional joint contour image will be resampled and will not be directly used for engineering judgment; where: A preset confidence threshold is set. In this embodiment, the anomaly triggering conditions include scale calibration anomaly, contour integrity anomaly, feature distribution anomaly, model output conflict, cross-validation anomaly, and label source anomaly, specifically: 1. Scale calibration anomaly: The scale is not recognized, or the relative deviation of the actual length of the unit pixel obtained from repeated recognition results based on the same scale is greater than the preset scale error threshold; 2. Abnormal contour integrity: The effective contour length is less than the preset minimum length, or any one of the following is higher than the corresponding preset upper limit: the proportion of contour break segments, the proportion of contour interpolation, the proportion of burrs or noise points. 3. Abnormal feature distribution: The distance between the multi-scale roughness features of the test sample and the feature distribution of the training sample is greater than the preset feature distribution distance threshold; 4. Model output conflict: The maximum difference between consecutive JRC values ​​obtained by different prediction models or repeated predictions by the same model is greater than the preset model difference threshold, or the maximum value of the probability in each JRC interval is lower than the preset minimum interval probability. 5. Cross-checking anomaly: The absolute difference between the model-predicted JRC value and the empirical formula label or mechanical inversion label is greater than the preset deviation threshold; 6. Abnormal label source: The reliability score of the label source is lower than the preset lower limit.

[0054] If any of the above conditions are met, the abnormal triggering condition is determined. Each preset threshold is determined based on the validation set or the reserved test set.

[0055] Step S7 is followed by: Step S8: Output prediction report. The report includes the original image, extracted contours, scale information, main roughness features, JRC predicted values, prediction intervals, and confidence level.

[0056] This embodiment uses a two-dimensional cross-sectional photograph of rock joints containing a millimeter-level scale as an example. The image resolution is 2400×1200 pixels, and the actual length of the scale is... The system identifies the ruler pixel length as 100 mm. If it is 1000 pixels, then = 0.1 mm / pixel. The system corrects the main joint contour according to... = 0.5 mm equidistant sampling, to obtain = 201 contour points, and multi-scale features are extracted at full length, 5%, 10%, and 20% local window scales. The feature vectors are then input into the trained random forest and gradient boosting tree ensemble model, which outputs JRC predictions, interval probabilities, and confidence scores.

[0057] The exemplary processing results are as follows. This illustrative data is used to illustrate the data flow and output format of the present invention, and does not limit the present invention to using only the following parameters.

[0058] (1) Sample A: Input conditions are = 100 mm, P_s = 1000 pixels, k = 0.1 mm / pixel, dx = 0.5 mm, N = 201; Image quality score = 0.89, contour integrity score = 0.93, interpolation ratio is 2%; main output features include Z2 = 0.23, length ratio = 1.18, local extremum density = 0.31; the model outputs a continuous JRC value of 11.6, with a probability of 0.71 in the interval 10-12, and a confidence level of 0.93. = 0.86 ≥ The system outputs a formal prediction report, a contour overlay map, and a description of feature contributions.

[0059] (2) Sample B: Under the same acquisition conditions, there is local shadow, and the effective contour length is 62 mm; image quality score = 0.55, Outline Integrity Score = 0.68, interpolation ratio is 18%; main output features include = 0.15, and there are large differences between models; the model outputs a continuous JRC value of 7.9, but the interval probabilities are scattered, and the reliability is low. = 0.57 < It then prompts you to re-collect the data.

[0060] The specific parameter settings in this embodiment are as follows: (1) Image resolution: The number of pixels per millimeter in the effective contour area should be greater than the preset lower limit, preferably not less than 5 pixels / mm. The specific resolution can be adjusted according to the engineering accuracy requirements.

[0061] (2) Effective contour length: The actual length of the contour used for JRC prediction shall not be less than the preset minimum length, preferably not less than 50 mm; when the sample length is short, the system outputs an applicable range prompt.

[0062] (3) Equal sampling interval It can be set from 0.1 mm to 2 mm and matched to the image resolution and contour length.

[0063] (4) Image quality threshold : Can be set to 0.6 to 0.9; samples below the threshold will be re-acquired.

[0064] (5) Credibility threshold It can be set from 0.6 to 0.85.

[0065] (6) JRC output range: preferably limited to 0 to 20, and can simultaneously output ranges such as 0-2, 2-4, 4-6, 6-8, 8-10, 10-12, 12-14, 14-16, 16-18, 18-20.

[0066] (7) Tag fusion weight: , and All values ​​are non-negative; when a certain type of label does not exist, its weight is 0.

[0067] (8) Model training data division: The training set, validation set and test set can be divided in a ratio of 6:2:2, 7:2:1 or other ratios; similar images cut from the same rock sample should not appear in the training set and test set at the same time.

[0068] In the visualization output, the system can simultaneously display the original image, scale bar recognition results, extracted main contour and baseline, JRC interval probability histogram, confidence components, and a list of low confidence triggering reasons. Compared with simple manual visual inspection or a single empirical formula, the above process can generate traceable and iteratively updated JRC prediction results under ordinary two-dimensional image conditions.

[0069] Example 2: In this embodiment, two-dimensional cross-sectional photographs of multiple rock joint samples were acquired, with a millimeter-level scale placed in each photograph. After recognizing the scale, the system obtained the pixel ratio, performed grayscale conversion, noise reduction, and contrast enhancement on the images, extracted the main contours of the joints, and sampled at equal intervals of dx = 0.5 mm.

[0070] This embodiment calculates roughness features across the entire length and multiple local window scales, inputs these features into a trained random forest regression model, and outputs continuous JRC prediction values. In this embodiment, a sample outputs JRC=11.6, corresponding to the interval 10-12, with a confidence level of 0.82. This embodiment also displays the original image, extracted contours, and the contributions of major features.

[0071] Example 3: See Figure 2 This embodiment provides a rock joint surface roughness JRC prediction system for performing the rock joint surface roughness JRC prediction method described above. The rock joint surface roughness JRC prediction system includes an image acquisition and calibration layer, a contour recognition layer, a feature and label layer, and a prediction and verification layer. The image acquisition and calibration layer includes a two-dimensional image acquisition module, a scale calibration module, and an image quality evaluation module; the output of the two-dimensional image acquisition module is connected to the input of the scale calibration module, and both the two-dimensional image acquisition module and the scale calibration module are used to execute step S1; the output of the scale calibration module is connected to the input of the image quality evaluation module, and the image quality evaluation module is used to execute step S2. The contour recognition layer includes a preprocessing module, a joint main contour extraction module, and a contour correction and sampling module; the input of the preprocessing module is connected to the output of the image quality evaluation module, and the preprocessing module is used to perform step S3; the input of the joint main contour extraction module is connected to the output of the preprocessing module, and the joint main contour extraction module is used to perform step S4.1; the input of the contour correction and sampling module is connected to the output of the joint main contour extraction module, and the joint correction and sampling module is used to perform step S4.2. The feature and label layer includes a multi-scale roughness feature module, a JRC label calibration module, and a sample library management module. The input of the multi-scale roughness feature module is connected to the output of the joint correction and sampling module, and the multi-scale roughness feature module is used to continue step S4.3. The JRC label calibration module is used to manage the JRC label source of the samples. The sample library management module is used to store the training sample library results and support the model training, validation, and incremental updates of the JRC prediction module. The prediction and verification layer includes a JRC prediction module, a credibility evaluation module, and a result output and model update module. The JRC prediction module is connected to the multi-scale roughness feature module, the JRC label calibration module, and the sample library management module, respectively, and is used to execute step S5. The credibility evaluation module is connected to the output end of the JRC prediction module and is used to execute steps S6 and S7. The result output and model update module is connected to the output end of the credibility evaluation module and is used to output the JRC prediction value, JRC interval, roughness feature, credibility, and visual contour overlay map, and update the training sample library and the current JRC prediction model.

[0072] Since the rock joint surface roughness JRC prediction system includes the rock joint surface roughness JRC prediction method as described above, the rock joint surface roughness JRC prediction system possesses all the beneficial effects of the above-mentioned rock joint surface roughness JRC prediction method, which will not be elaborated here.

[0073] Example 4: This embodiment provides a readable storage medium storing computer program instructions, which, when executed by a processor, implement the JRC prediction method for rock joint surface roughness as described above.

[0074] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0075] Example 5: This embodiment includes an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, wherein the computer program instructions are executed by the processor to perform the JRC prediction method for rock joint surface roughness as described above.

[0076] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.

[0077] The electronic device can be a mobile phone, desktop computer, laptop, handheld computer, cloud server, or other computing device. The electronic device may include, but is not limited to, processors and memory. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0078] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the electronic device, connecting all parts of the electronic device via various interfaces and lines.

[0079] The memory can be used to store the computer program and / or modules. The processor implements the computer program by running or executing the computer program and / or modules stored in the memory, and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital card (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0080] If the modules / units integrated in the electronic device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0081] The above description is only a preferred embodiment of the present invention and does not limit the scope of the present invention. All equivalent structural transformations made under the inventive concept of the present invention using the contents of the present invention specification and drawings, or direct / indirect applications in other related technical fields, are included within the protection scope of the present invention.

Claims

1. A method for predicting the JRC roughness of rock joint surfaces, characterized in that, Includes the following steps: Step S1: Acquire one or more two-dimensional joint contour images of the rock to be tested; Step S2: Evaluate the image quality of each two-dimensional joint contour image, specifically: Calculate the image quality score corresponding to the two-dimensional joint contour image. ; Image quality is determined based on a preset image quality threshold and hard constraints. If the data is qualified, proceed to step S3; otherwise, output "Re-acquisition". Step S3: Preprocess and crop the regions of the two-dimensional joint contour image that meets the image quality score to obtain a binary boundary map and a preprocessed image; Step S4: Calculate multi-scale roughness features based on the binary boundary map and the preprocessed image; Step S5: Input the multi-scale roughness features into the current JRC prediction model, and output the continuous JRC values ​​and the probabilities corresponding to different JRC intervals; Step S6: Calculate the credibility of the output result in step S5 based on image quality score, contour integrity score, model uncertainty score, feature distribution distance, and label source reliability. ; Step S7: Determine the credibility of the output result in step S5 based on the preset credibility threshold and the anomaly triggering conditions. Whether it is qualified or not, specifically: like If the exception triggering conditions are not met, then output a JRC prediction report; if If the hard constraints are not met, the two-dimensional joint contour image will be resampled and will not be directly used for engineering judgment; where: The preset confidence threshold is used; the abnormal triggering conditions include scale calibration abnormality, contour integrity abnormality, feature distribution abnormality, model output conflict, cross-verification abnormality, and label source abnormality.

2. The JRC prediction method for rock joint surface roughness according to claim 1, characterized in that, In step S2, image quality is... The specific calculation formula is as follows: ; in: The sharpness score is obtained from the sharpness index derived from the Laplace variance; Contrast score is obtained from the grayscale difference between the outline and the background or the edge gradient; Exposure uniformity is determined by the local brightness variance; The effective contour proportion is obtained by the ratio of the effective contour length to the target length; The penalty for occlusion / stains is determined by the percentage of occlusion, shadow, and stain area. The ruler recognition score is derived from the ruler recognition success rate. , , , , and They are respectively divided into clarity scores Contrast Exposure uniformity Effective contour percentage Scale identification and penalties for covering / staining The non-negative weights are determined based on the training set or validation set; In step S2, when ≥ And when the hard constraints are met, the image quality of the two-dimensional joint contour image is deemed acceptable; when < If the hard constraints are not met, the data is deemed unqualified, and a re-acquisition prompt is output; where: Set a preset image quality threshold; The hard constraints include successful ruler recognition, effective contour length not less than the preset minimum length, occlusion ratio not higher than the preset upper limit, and contour contrast not lower than the preset lower limit.

3. The JRC prediction method for rock joint surface roughness according to claim 2, characterized in that, Step S3 includes: Step S3.1: Convert the two-dimensional joint contour image into a grayscale image or a brightness image; Step S3.2: Use median filtering, Gaussian filtering or bilateral filtering to process the grayscale image or brightness to remove isolated noise and retain joint edges, and obtain the filtered joint image; Step S3.3: Correct the filtered joint map using histogram equalization, CLAHE, or Retinex methods to obtain the corrected joint map; Step S3.4: Clip the region of interest based on the ruler position, candidate joint edges, and bounding box; wherein: the region of interest is the smallest bounding rectangle containing the main outline of the effective joint and its necessary neighborhood. The specific clipping method is as follows: Using the ruler position as a reference, the initial bounding box is determined by combining the distribution of candidate joint edges. Then, the bounding box is rotated and corrected by the principal direction estimation so that the long side of the cropped region is consistent with the joint contour direction. Finally, the sub-image that retains only the region of interest is output. Step S3.5: Use an existing contour extraction model to segment the region of interest to obtain candidate joint boundaries; Step S3.6: Remove small connected regions of candidate joint boundaries through opening and closing operations, thinning, and skeletonization, and fill in local breakpoints; Step S3.7: Use Hough transform, least squares linear or principal direction estimation to correct the tilt of the corrected joint map to obtain a binary boundary map and a preprocessed image.

4. The JRC prediction method for rock joint surface roughness according to claim 3, characterized in that, S4 includes: S4.

1. Based on the binary boundary map and the preprocessed image, candidate contours are extracted by combining edge detection and semantic segmentation. Then, the main contour among the candidate contours is selected according to continuity, length, direction and baseline position. S4.2 Remove isolated sharp noise in the main contour, interpolate the missing segments in the main contour whose projection length is not greater than the preset interpolation length, and resample according to the preset actual spacing to obtain an equally spaced contour point sequence. In S4.2, isolated spike noise is an anomalous segment that meets the following conditions: The number of sampling points continuously occupied on the main contour shall not exceed the preset number of points; The height deviation or absolute value of curvature relative to adjacent local windows is greater than the corresponding preset threshold. The height deviation or curvature of the front and rear contour points are within the same height deviation or curvature range; S4.

3. Multi-scale roughness features are calculated based on the equally spaced contour point sequence at the global scale and multiple local window scales. The multi-scale roughness features include height features, slope features, curvature features, frequency domain features, fractal features, and abrupt change features.

5. The JRC prediction method for rock joint surface roughness according to claim 4, characterized in that, In step S5, the specific method for obtaining the trained JRC prediction model is as follows: ① The existing data contains N labeled two-dimensional joint contour images and their corresponding multi-scale roughness features, which are used as samples to construct a training sample library. Among them, the re-acquired two-dimensional joint contour images, contour point sequences, multi-scale roughness feature vectors, JRC labels and weights are all written into the training sample library. ② Train the existing JRC prediction model based on the training sample library. After the convergence condition is met, the trained JRC prediction model is obtained and used as the current JRC prediction model. When the number of new samples in the training sample library reaches the preset number, the validation set error during the training process exceeds the preset threshold, or a new lithology / collection scale category appears, incremental training or retraining is started on the trained JRC prediction model based on the current training sample library. Then, the prediction error and confidence threshold of the trained JRC prediction model are checked using the pre-divided reserved test set to obtain the checked JRC prediction model, and the checked JRC prediction model is used as the current JRC prediction model.

6. The JRC prediction method for rock joint surface roughness according to claim 5, characterized in that, The JRC tags for the samples include: empirical formula tags, mechanical inversion tags, and fusion tags; Substituting the two-dimensional contour parameters extracted from the two-dimensional joint contour image into the publicly available empirical relation, we obtain the empirical formula label. ; When the sample has direct shear test data, construct the mechanical inversion label for the sample. The specific formula is as follows: ; in: This represents the peak shear stress. For normal stress, The basic friction angle, The compressive strength of the joint wall; For samples that have multiple labels, the following formula is used to construct fused labels: ; in: , and These are the weights corresponding to the empirical formula label and the mechanical inversion label, respectively.

7. The JRC prediction method for rock joint surface roughness according to any one of claims 1-6, characterized in that, In S6, the credibility The specific calculation formula is as follows: ; in: Assigning points based on outline integrity, For model consistency score, Assign a score based on the reliability of the label's source; , , and Image quality scores Outline integrity , model consistency score And the reliability of the label source Non-negative weights; ; Contour integrity score The specific calculation formula is as follows: ; in: , and These are the proportions of the contour break segments. Contour interpolation ratio And the ratio of burrs or noise points The penalty weight; Model consistency score The specific calculation formula is as follows: ; in: The standard deviation of the prediction results of the JRC prediction model after training. To preset the reference standard deviation, The first output of the JRC prediction model after training j The probability of each JRC interval; Label source reliability score The specific calculation formula is as follows: ; in: , and These are the source reliability coefficients for empirical formula labels and mechanical inversion labels, respectively.

8. A JRC prediction system for rock joint surface roughness, characterized in that, This system is used to perform the JRC prediction method for rock joint surface roughness as described in any one of claims 1 to 7; the rock joint surface roughness JRC prediction system includes an image acquisition and calibration layer, a contour recognition layer, a feature and label layer, and a prediction and verification layer. The image acquisition and calibration layer includes a two-dimensional image acquisition module, a scale calibration module, and an image quality evaluation module; the output of the two-dimensional image acquisition module is connected to the input of the scale calibration module, and both the two-dimensional image acquisition module and the scale calibration module are used to execute step S1; the output of the scale calibration module is connected to the input of the image quality evaluation module, and the image quality evaluation module is used to execute step S2. The contour recognition layer includes a preprocessing module, a joint main contour extraction module, and a contour correction and sampling module; the input of the preprocessing module is connected to the output of the image quality evaluation module, and the preprocessing module is used to perform step S3; the input of the joint main contour extraction module is connected to the output of the preprocessing module, and the joint main contour extraction module is used to perform step S4.1; the input of the contour correction and sampling module is connected to the output of the joint main contour extraction module, and the joint correction and sampling module is used to perform step S4.

2. The feature and label layer includes a multi-scale roughness feature module, a JRC label calibration module, and a sample library management module. The input of the multi-scale roughness feature module is connected to the output of the joint correction and sampling module, and the multi-scale roughness feature module is used to continue step S4.

3. The JRC label calibration module is used to manage the JRC label source of the samples. The sample library management module is used to store the training sample library and support the model training, validation, and incremental updates of the JRC prediction module. The prediction and verification layer includes a JRC prediction module, a credibility evaluation module, and a result output and model update module. The JRC prediction module is connected to the multi-scale roughness feature module, the JRC label calibration module, and the sample library management module, respectively, and is used to execute step S5. The credibility evaluation module is connected to the output end of the JRC prediction module and is used to execute steps S6 and S7. The result output and model update module is connected to the output end of the credibility evaluation module and is used to output the JRC prediction value, JRC interval, roughness feature, credibility, and visual contour overlay map, and update the training sample library and the current JRC prediction model.

9. A readable storage medium, characterized in that, It stores computer program instructions that, when executed by a processor, implement the JRC prediction method for rock joint surface roughness as described in any one of claims 1 to 8.

10. An electronic device, characterized in that, include: At least one processor, at least one memory, and computer program instructions stored in the memory, wherein the computer program instructions are executed by the processor using the JRC prediction method for rock joint surface roughness as described in any one of claims 1 to 8.