Coal structures exhibit considerable differences in rock properties and adsorption capacities. The physical properties of coal rocks are fundamental to understanding oil and gas reservoirs, while adsorption capacity directly impacts the gas content in coal seams. The accurate recognition of coal structures is essential for evaluating productivity and guiding coalbed methane well development. This study examines coal rocks of Benxi Formation in Ordos Basin. Using core photographs and logging curves, we classified the coal structures into undeformed coal, cataclastic coal, and granulated-mylonitized coal. AC, DEN, CAL, GR, and CN15 logging curves were selected to build a coal structure recognition model utilizing a long short-term memory (LSTM) neural network. This approach addresses the gradient vanishing and exploding issues often encountered in traditional neural networks, enhancing the model’s capacity to handle nonlinear relationships. After numerous iterations of learning and parameter adjustments, the model achieved a recognition accuracy of over 85%, with 32 hidden units, a minimum batch size of 28, and up to 150 iterations. Validation with independent well data not involved in the model building process confirmed the model’s effectiveness, meeting the practical needs of the study area. The results suggest that the study area is predominantly characterized by undeformed coal, with cataclastic coal and granulated-mylonitized coal more developed along fault trends.