Improved Computer Vision Framework for Mesoscale Simulation of Xiyu Conglomerate Using the Discrete Element Method
Abstract
:1. Introduction
2. Method
2.1. Improvements and Training of the SegFormer Network
2.1.1. Data Preparation
2.1.2. Constructing Networks
- CT images encapsulate high-resolution internal structural information, enabling applications in rock classification and mineral composition analysis. They excel in capturing subtle structures and details at the microscale, contributing to their larger dimensions.
- Owing to specific domain constraints, CT images typically possess a smaller overall data volume compared to extensive existing datasets. Moreover, data diversity may be relatively low, and the distinctions between labels might not be as apparent. Traditional algorithms may struggle to predict effectively in this context.
- In the research process, it is essential to output the porosity of specified regions based on CT images. This necessitates achieving more comprehensive segmentation on the boundaries of these regions and the capability to model long distances.
- The hierarchical Transformer encoder functions as the core network in the SegFormer model. It is tasked with extracting features from the input image and transmitting these features to the segmentation decoder. Its purpose is to capture features at various scales within the image and integrate global contextual information, thereby improving segmentation performance.
- The objective of this module is to generate CNN-like multi-level features when given an input image. These features offer high-resolution coarse features and low-resolution fine-grained features, typically enhancing the performance of semantic segmentation. More precisely, for an input image with a resolution of , patch merging is performed to yield a hierarchical feature map , with a resolution calculated as follows:
- Overlapped patch merging is employed to reduce the size of the feature maps while simultaneously increasing the number of channels.
- The self-attention layer in the encoder represents the most computationally demanding component. To mitigate computational complexity, a reduction ratio (RRR) is applied to decrease the length of the sequence:
- Mix-FFN: enhancing transformer layers with positional information. The Mix-FFN structure enhances Transformer layers by integrating positional information. This is accomplished by incorporating a 3 × 3 convolutional layer and an MLP layer into the FFN:
- Lightweight ALL-MLP decoder: The lightweight ALL-MLP decoder serves as the segmentation decoder in the SegFormer model. Its primary objective is to transform the feature maps extracted by the encoder into pixel-level semantic segmentation predictions. This is accomplished through multi-scale feature fusion and upsampling to produce the final semantic segmentation mask. An essential rationale for SegFormer’s use of MLP in the decoder lies in the larger receptive field of Transformers compared to CNNs. The decoding process can be summarized as follows:
- Multiple hierarchical features are fed into an MLP layer to standardize the channel dimension;
- Feature maps are upsampled to 1/4 of the original image size and subsequently concatenated;
- A single MLP layer aggregates the feature channels;
- The predicted segmentation mask is outputted with a resolution calculated as follows:
2.1.3. Improvements to SegFormer
2.1.4. Network Implementation
2.2. Modelling
2.2.1. Bitmap Vectorization
Algorithm 1 Boundary refinement using Douglas–Peucker algorithm [39] |
1: Set dt as the threshold distance, dp as perpendicular distance; 2: Find a separation line lm with the maximum length; 3: Separate El into two polylines as El(1) and El(2) with the line lm; 4: while dp >= dm; 5: for i = 1 to length(El) do 6: Calculate maximum dp to lm for the part BE(i) using Equation (2); 7: if dp > dm, then 8: Separate El(i) into two polylines El(1) and El(2); 9: Replace El(i) with El (1) and El(2); 10: Update the separation line; 11: end; 12: endfor; 13: end; 14: Set Bp as refined boundary; 15: for I = 1 to length(El) do 16: Set the head and tail vertex as vh and vt; 17: if i = 1 do 18: Bp(1) = vh,Bp(2) = vt; 19: else 20: Bp(i + 1) = vt; 21: endif; 22: endfor; 23: Return Bp. |
2.2.2. DEM Model Generation
- The area of a polygon with n vertices and coordinates (, ) for the kth vertex can be calculated as follows:By looping over all the polygons, we can obtain the statistical information of the area.
- MBR is a rectangle that encloses all the points in a given set of points and has the smallest area of all the enclosing rectangles. It is frequently used as an indicator of geographic features [41]. For each boundary polygon, a convex hull is computed. For each edge in the hull, the hull is rotated to obtain a possible rectangle. This process is performed for all the edges, and the smallest rectangle is selected. It is then rotated back to obtain the MBR.
- The particle size and direction are computed from the MBR of each particle. The short and long axes of the MBR correspond to the width and length of the particle, respectively. The width can serve as an approximation of the particle radius for composite materials. The direction is defined as the angle between the long axis and the horizontal line.
3. Results and Discussion
3.1. Performance of the Instance Segmentation
3.2. Model and Parameters
3.2.1. Numerical Simulation Model Generation
- Based on the porosity statistics in the previous section, we set the porosity to 0.2 and set the maximum-to-minimum particle size ratio Rmax/Rmin to 1.66. The file containing the coordinate points of the polygons generated earlier was imported into the PFC. The balls were automatically filled by approximating the medial surface of the geometry outlines.
- To simulate the different properties of various parts of the Xiyu conglomerate, we classified the contacts of the Xiyu conglomerate model into three categories. By judging the group to which the two ends of the contact belong, it can be divided into gravel contacts, matrix contacts, and gravel–matrix contacts.
3.2.2. Parameter Calibration
3.3. Destruction Process and Mechanical Characteristics
3.3.1. Destruction Phase
3.3.2. Comparison of Mechanical Parameters
4. Conclusions
- Based on the CT scan images, we proposed an improved SegFormer segmentation algorithm, which achieved high-accuracy instance segmentation by training the network after manually annotating the pores, matrix, and gravel. The performance of our method was compared with different algorithms under various evaluation methods, and the results show that our method was more accurate than the original one.
- The rock cohesion c of the Xiyu conglomerate is about 0.64 MPa, and the rock internal friction angle φ is about 34.70°. It has complex mechanical properties, manifested by various failure modes. The factors affecting the failure modes include the loading speed of the sample, the composition and distribution of the heterogeneous material, etc.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Chen, J.; Yin, J.; Qu, G.; Zhang, K. Timing, lower boundary, genesis, and defrormation of xiyu formation around the western margins of the tarim basin. Seismol. Geol. 2000, 22, 104–116. [Google Scholar]
- Li, B.; Wu, D.; Pang, L.; Lü, H.; Zheng, X.; Li, Y. Stratigraphic attribute and origin of the Xiyu conglomerates in NW China:progress and prospect. J. Earth Environ. 2019, 10, 427–440. [Google Scholar]
- Tian, W.; Chen, J.; Wu, B. Experimental study on material composition of Xiyu Formation calcareous cementitious conglomerate. Water Resour. Hydropower Eng. 2018, 49, 185–193. [Google Scholar]
- Fan, L.; Zhang, Y.-h.; Chen, C.; Wang, F.-x. Experimental research on resistance characteristics of surrounding rock of diversion tunnel in weak-cemented Xiyu conglomerate. Rock Soil Mech. 2019, 40, 2982–2988. [Google Scholar]
- Zhang, Q.; Zheng, Y.; Jia, C.; Sun, P.; Li, W. Investigation of the stability and failure mechanism of slopes in Xiyu conglomerate due to toe erosion. Bull. Eng. Geol. Environ. 2023, 82, 206. [Google Scholar] [CrossRef]
- Qin, X. Simulation study on damage mechanism of soft rock softening at the foot of Xiyu conglomerate high slopes. China Water Transp. 2019, 19, 258–259. [Google Scholar]
- Wang, Z.; Yuan, H.; Wang, D.; Zhang, Q. Back analysis of elastic resistance coefficient of tunnel surrounding rocks with measured displacement. J. Eng. Geol. 2013, 21, 143–148. [Google Scholar]
- Li, K.; Wang, Y.; Li, S.; Lin, X.; Sun, P.; Li, W. Study on failure mechanism of toe erosion of high Xiyu conglomerate slope. Water Resour. Hydropower Eng. 2017, 48, 184–190. (In Chinese) [Google Scholar]
- Meng, Q.; Wang, H.; Cai, M.; Xu, W.; Zhuang, X.; Rabczuk, T. Three-dimensional mesoscale computational modeling of soil-rock mixtures with concave particles. Eng. Geol. 2020, 277, 105802. [Google Scholar] [CrossRef]
- Yang, X. User Defined Heterogeneous Model Reconstruction and Internal Structure of Asphalt Concrete. Ph.D. Thesis, Michigan Technological University, Houghton, MI, USA, 2015. [Google Scholar]
- Abdulqader, A.; Rizos, D.C. Advantages of using digital image correlation techniques in uniaxial compression tests. Results Eng. 2020, 6, 100109. [Google Scholar] [CrossRef]
- Woodman, J.; Ougier-Simonin, A.; Stavrou, A.; Vazaios, I.; Murphy, W.; Thomas, M.E.; Reeves, H.J. Laboratory Experiments and Grain Based Discrete Element Numerical Simulations Investigating the Thermo-Mechanical Behaviour of Sandstone. Geotech. Geol. Eng. 2021, 39, 4795–4815. [Google Scholar] [CrossRef]
- Yu, Q.; Dai, Z.; Zhang, Z.; Soltanian, M.R.; Yin, S. Estimation of Sandstone Permeability with SEM Images Based on Fractal Theory. Transp. Porous Media 2019, 126, 701–712. [Google Scholar] [CrossRef]
- Qian, H.; Li, Y.; Yang, J.; Xie, L.; Tan, K.H. Segmentation and analysis of cement particles in cement paste with deep learning. Cem. Concr. Compos. 2023, 136, 104819. [Google Scholar] [CrossRef]
- Shi, C.; Yang, W.; Yang, J.; Chen, X. Calibration of micro-scaled mechanical parameters of granite based on a bonded-particle model with 2D particle flow code. Granul. Matter 2019, 21, 38. [Google Scholar] [CrossRef]
- Greco, O.D.; Ferrero, A.M.; Oggeri, C. Experimental and Analytical Interpretation of the Behaviour of Laboratory Tests on Composite Specimens. Int. J. Rock Mech. Min. Sci. Geomech. Abstr. 1993, 30, 1539–1543. [Google Scholar] [CrossRef]
- Jing, L. A review of techniques, advances and outstanding issues in numerical modelling for rock mechanics and rock engineering. Int. J. Rock Mech. Min. Sci. 2003, 40, 283–353. [Google Scholar] [CrossRef]
- Cundall, P.A.; Strack, O.D.L. A discrete numerical model for granular assemblies. Géotechnique 1980, 30, 331–336. [Google Scholar] [CrossRef]
- Itasca. PFC 5.0 Documentation, 5.0; Itasca Consulting Group: Minneapolis, MN, USA, 2016. [Google Scholar]
- Board, M. UDEC (Universal Distinct Element Code) Version ICG1. 5; Nuclear Regulatory Commission: Washington, DC, USA, 1989. [Google Scholar]
- Govender, N.; Wilke, D.N.; Pizette, P.; Abriak, N.E. A study of shape non-uniformity and poly-dispersity in hopper discharge of spherical and polyhedral particle systems using the Blaze-DEM GPU code. Appl. Math. Comput. 2018, 319, 318–336. [Google Scholar] [CrossRef]
- Lee, S.J.; Hashash, Y.M.A.; Nezami, E.G. Simulation of triaxial compression tests with polyhedral discrete elements. Comput. Geotech. 2012, 43, 92–100. [Google Scholar] [CrossRef]
- Shi, C.; Zhang, Q.; Wang, S. Numerical Simulation Techniques and Applications for Particle Flow (PFC5.0), 1st ed.; China Construction Industry Press: Nanjing, China, 2018; p. 449. [Google Scholar]
- Radjai, F.; Cheng, H.; Shuku, T.; Thoeni, K.; Yamamoto, H.; Nezamabadi, S.; Luding, S.; Delenne, J.Y. Calibration of micromechanical parameters for DEM simulations by using the particle filter. EPJ Web Conf. 2017, 140, 12011. [Google Scholar]
- Liu, G.-Y.; Xu, W.-J.; Zhou, Q.; Zhang, X.-L. Contact Overlap Calculation Algorithms and Benchmarks Based on Blocky Discrete-Element Method. Int. J. Geomech. 2022, 22. [Google Scholar] [CrossRef]
- Russell, B.C.; Torralba, A.; Murphy, K.P.; Freeman, W.T. LabelMe: A database and web-based tool for image annotation. Int. J. Comput. Vis. 2008, 77, 157–173. [Google Scholar] [CrossRef]
- Lin, T.-Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft coco: Common Objects in Context. In Computer Vision–ECCV 2014: 13th European Conference, Zurich, Switzerland, 6–12 September 2014, Proceedings, Part V 13, 2014; Springer: Berlin/Heidelberg, Germany, 2014; pp. 740–755. [Google Scholar]
- Cordts, M.; Omran, M.; Ramos, S.; Rehfeld, T.; Enzweiler, M.; Benenson, R.; Franke, U.; Roth, S.; Schiele, B. The Cityscapes Dataset for Semantic Urban Scene Understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; IEEE: Las Vegas, NV, USA, 2016; pp. 3213–3223. [Google Scholar]
- Wang, Z.; Wang, Q.; Yang, Y.; Liu, N.; Chen, Y.; Gao, J. Seismic Facies Segmentation via a Segformer-Based Specific Encoder–Decoder–Hypercolumns Scheme. IEEE Trans. Geosci. Remote Sens. 2023, 61, 1–11. [Google Scholar] [CrossRef]
- Li, M.; Rui, J.; Yang, S.; Liu, Z.; Ren, L.; Ma, L.; Li, Q.; Su, X.; Zuo, X. Method of Building Detection in Optical Remote Sensing Images Based on SegFormer. Sensors 2023, 23, 1258. [Google Scholar] [CrossRef] [PubMed]
- Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and efficient design for semantic segmentation with transformers. Adv. Neural Inf. Process. Syst. 2021, 34, 12077–12090. [Google Scholar]
- Ronneberger, O.; Fischer, P.; Brox, T. U-net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015: 18th International Conference, Munich, Germany, 5–9 October 2015, Proceedings, Part III 18; Springer: Berlin/Heidelberg, Germany, 2015; pp. 234–241. [Google Scholar]
- Sun, K.; Zhao, Y.; Jiang, B.; Cheng, T.; Xiao, B.; Liu, D.; Mu, Y.; Wang, X.; Liu, W.; Wang, J. High-resolution representations for labeling pixels and regions. arXiv 2019, arXiv:1904.04514. [Google Scholar]
- Wang, J.; Zhang, J.-H.; Zhang, J.-L.; Lu, F.-M.; Meng, R.-G.; Wang, Z. Research on fault recognition method combining 3D Res-UNet and knowledge distillation. Appl. Geophys. 2021, 18, 199–212. [Google Scholar] [CrossRef]
- Wang, J.; Sun, K.; Cheng, T.; Jiang, B.; Deng, C.; Zhao, Y.; Liu, D.; Mu, Y.; Tan, M.; Wang, X. Deep High-Resolution Representation Learning for Visual Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 43, 3349–3364. [Google Scholar] [CrossRef]
- Meng, Q.-X.; Xu, W.-Y.; Wang, H.-L.; Zhuang, X.-Y.; Xie, W.-C.; Rabczuk, T. DigiSim—An Open Source Software Package for Heterogeneous Material Modeling Based on Digital Image Processing. Adv. Eng. Softw. 2020, 148, 102836. [Google Scholar] [CrossRef]
- Gonzalez, R.C.; Woods, R.E.; Masters, B.R. Digital Image Processing, 3rd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2009; Volume 14. [Google Scholar]
- Yan, L.; Meng, Q.X.; Xu, W.Y.; Wang, H.L.; Zhang, Q.; Zhang, J.C.; Wang, R.B. A numerical method for analyzing the permeability of heterogeneous geomaterials based on digital image processing. J. Zhejiang Univ. Sci. A 2017, 18, 124–137. [Google Scholar] [CrossRef]
- Chen, S.; Yue, Z.Q.; Tham, L.G. Digital Image Based Approach for Three-Dimensional Mechanical Analysis of Heterogeneous Rocks. Rock Mech. Rock Eng. 2007, 40, 145. [Google Scholar] [CrossRef]
- Morin, Z.Q.Y. Isabelle, Digital image processing for aggregate orientation in asphalt concrete mixtures. Can. J. Civ. Eng. 1996, 23, 480–489. [Google Scholar]
- Sleit, A.; Salah, I.; Jabay, R. Approximating Images Using Minimum Bounding Rectangles. In Proceedings of the 2008 First International Conference on the Applications of Digital Information and Web Technologies (ICADIWT), Ostrava, Czech Republic, 4–6 August 2008. [Google Scholar]
- Potyondy, D.O.; Cundall, P.A. A bonded-particle model for rock. Int. J. Rock Mech. Min. Sci. 2004, 41, 1329–1364. [Google Scholar] [CrossRef]
- Song, H.; Meng, Q.; Guo, N.; Chen, X.; Xu, W.; Cao, Y. Modeling of Fracture Behavior of Four-Phase Concrete using a DEM-enhanced Structure Generation. Int. J. Multiscale Comput. Eng. 2024; in press. [Google Scholar]
- Ding, Y.; Zhang, Q.; Zhao, S.; Chu, W.; Meng, Q. An improved DEM-based mesoscale modeling of bimrocks with high-volume fraction. Comput. Geotech. 2023, 157, 105351. [Google Scholar] [CrossRef]
- Meng, Q.; Xue, H.; Song, H.; Zhuang, X.; Rabczuk, T. Rigid-block DEM modeling of mesoscale fracture behavior of concrete with random aggregates. J. Eng. Mech. 2023, 149, 04022114. [Google Scholar] [CrossRef]
- Wang, Y.; Sun, P.; Li, W.; Zhang, Q. Failure mechanism and stability analysis method of the Xiyu conglomerate slope. J. Tsinghua Univ. Sci. Technol. 2021, 61, 863–872. [Google Scholar]
- Xu, Z. Rock Mechanics, 3rd ed.; China Water Conservancy and Hydropower Press: Nanjing, China, 2005; pp. 48–49. [Google Scholar]
- Fan, H. Test Research on Structure Characteristics and Mechanical Characteristics of Xiyu Conglomerate; Beijing Jiaotong University: Beijing, China, 2016. [Google Scholar]
Algorithm/Metric | Label | IoU(%) | Dice(%) | F1(%) |
---|---|---|---|---|
UNet | gravel | 81.78 | 89.97 | 89.97 |
pore | 56.87 | 72.51 | 72.51 | |
matrix | 45.51 | 62.56 | 62.56 | |
HRNet | gravel | 82.47 | 90.39 | 90.39 |
pore | 62.3 | 76.77 | 76.77 | |
matrix | 55.98 | 71.78 | 71.78 | |
SegFormer | gravel | 83.67 | 91.11 | 91.11 |
pore | 72.98 | 84.38 | 84.38 | |
matrix | 59.2 | 74.37 | 74.37 | |
ModSegFormer | gravel | 86.24 | 92.61 | 92.61 |
pore | 77.81 | 87.52 | 87.52 | |
matrix | 67.99 | 80.94 | 80.94 |
Contact Parameters | Composition | ||
---|---|---|---|
Gravel | Matrix | Gravel–Matrix Interface | |
Effective modulus (Pa) | |||
K ratio (0–1) | 1.25 | 1.25 | 1.25 |
Parallel bond effective modulus (Pa) | |||
Parallel bond k ratio (0–1) | 1.25 | 1.25 | 1.25 |
Parallel bond tensile strength (Pa) | |||
Friction angle (°) | 45.0 | 40.0 | 40.0 |
Friction coefficient μ (0–1) | 0.577 | 0.577 | 0.577 |
Parallel bond cohesion (Pa) |
Parameter | Physical Experiment | Numerical Experiment | Absolute Error | Relative Error/% |
---|---|---|---|---|
c | 0.56 MPa | 0.64 MPa | 0.08 MPa | 14.29 |
φ | 39.0° | 34.70° | 4.3° | 11.29 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhang, Y.; He, Z.; Jiang, R.; Liao, L.; Meng, Q. Improved Computer Vision Framework for Mesoscale Simulation of Xiyu Conglomerate Using the Discrete Element Method. Appl. Sci. 2023, 13, 13000. https://doi.org/10.3390/app132413000
Zhang Y, He Z, Jiang R, Liao L, Meng Q. Improved Computer Vision Framework for Mesoscale Simulation of Xiyu Conglomerate Using the Discrete Element Method. Applied Sciences. 2023; 13(24):13000. https://doi.org/10.3390/app132413000
Chicago/Turabian StyleZhang, Yutao, Zijie He, Ruonan Jiang, Lei Liao, and Qingxiang Meng. 2023. "Improved Computer Vision Framework for Mesoscale Simulation of Xiyu Conglomerate Using the Discrete Element Method" Applied Sciences 13, no. 24: 13000. https://doi.org/10.3390/app132413000
APA StyleZhang, Y., He, Z., Jiang, R., Liao, L., & Meng, Q. (2023). Improved Computer Vision Framework for Mesoscale Simulation of Xiyu Conglomerate Using the Discrete Element Method. Applied Sciences, 13(24), 13000. https://doi.org/10.3390/app132413000