Fast assessment of the initial carbon to nitrogen ratio (C/N) of organic fraction of municipal solid waste (OFMSW) is an important prerequisite for automatic composting control to improve efficiency and stability of the bioconversion process. In this study, a novel approach was proposed to estimate the C/N of OFMSW, where an instance segmentation model was applied to predict the masks for the waste images. Then, by combining the instance segmentation model with the depth-camera-based volume calculation algorithm, the volumes occupied by each type of waste were obtained, therefore the C/N could be estimated based on the properties of each type of waste. First, an instance segmentation dataset including three common classes of OFMSW was built to train mask region-based convolutional neural networks (Mask R-CNN) model. Second, a volume measurement algorithm was proposed, where the measurement result of the object was derived by accumulating the volumes of small rectangular cuboids whose bottom area was calculated with the projection property. Then the calculated volume was corrected with linear regression models. The results showed that the trained instance segmentation model performed well with average precision scores AP50 = 82.9, AP75 = 72.5, and mask intersection over unit (Mask IoU) = 45.1. A high correlation was found between the estimated C/N and the ground truth with a coefficient of determination R2=0.97 and root mean square error RMSE = 0.10. The relative average error was 0.42% and the maximum error was only 1.71%, which indicated this approach has potential for practical applications. Keywords: carbon to nitrogen ratio, estimation, volume measurement, organic fraction of municipal solid waste, depth camera, instance segmentation DOI: 10.25165/j.ijabe.20211405.6382 Citation: Huang J J, Zhang H D, Xiao X, Huang J Q, Xie J X, Zhang L, et al. Method for C/N ratio estimation using Mask R-CNN and a depth camera for organic fraction of municipal solid wastes. Int J Agric & Biol Eng, 2021; 14(5): 222–229.