Analyzing the void structure of the packing system of caved ore and rock and establishing the causal relationship between void structure and macroscopic properties are critical research areas in the field of gravity flow. However, the current method of analyzing void structure primarily involves manual threshold segmentation, leading to low analysis efficiency and the need for improved accuracy. This study introduces a novel approach using a dataset of two-dimensional Computed Tomography (CT) slices of an irregular limestone particle packing system. The primary goal is to enhance existing algorithms by focusing on data and network aspects to address the challenges in identifying this type of image dataset. As a result, a model named Data Attention gate with Recurrent Residual convolutional neural network based on U-net (DA2RU-net) is developed and evaluated for its convergence, accuracy, and robustness. The findings indicate the following: (1) To identify voids in the packing system of caved ore and rock using CT slices, it is advisable to employ 1000 images with dimensions between 300 and 400 pixels. It is essential to ensure that both large and small voids are represented in the image dataset. (2) The DA2RU-net model demonstrates superior performance with an average Dice value of 0.9859 for identifying large voids and 0.9654 for identifying small voids, surpassing other iterations of the U-net model and traditional algorithms. (3) The DA2RU-net model shows robustness to variations in brightness levels.