Fuel types are essential for the control systems of briquette biofuel boilers, as the optimal combustion condition varies with fuel type. Moreover, the use of coal in biomass boilers is illegal in China, and the detection of coals will, in time, provide effective information for environmental supervision. This study established a briquette biofuel identification method based on the object detection of fuel images, including straw pellets, straw blocks, wood pellets, wood blocks, and coal. The YoloX-S model was used as the baseline network, and the proposed model in this study improved the detection performance by adding the self-attention mechanism module. The improved YoloX-S model showed better accuracy than the Yolo-L, YoloX-S, Yolov5, Yolov7, and Yolov8 models. The experimental results regarding fuel identification show that the improved model can effectively distinguish biomass fuel from coal and overcome false and missed detections found in the recognition of straw pellets and wood pellets by the original YoloX model. However, the interference of the complex background can greatly reduce the confidence of the object detection method using the improved YoloX-S model.