The strategy of ecological priority and green development in China has made the fuel consumption of inland ships receive unprecedented attentions. Reliable fuel consumption prediction is the vital basis of navigation planning, energy supervision, and efficiency optimization. In this paper, a cargo ship sailing on the Yangtze River trunk line was taken as the research object. A comprehensive fitting analysis of inland ship fuel consumption was conducted, and a prediction method was proposed. First, the multi-source data including ship navigation status and environment information were collected by multi-source sensors. Second, to conduct a detailed analysis of the collected data, the authors proposed data pre-processing and trajectory segmentation methods and analyzed the correlation between multi-source variables and fuel consumption. Third, a Back Propagation Neural Network with double hidden layers (DBPNN) was tailored to build a fuel consumption prediction model. Fourth, the developed model was validated using real ship measurement data. Different input variables were selected for fuel consumption prediction, and the results showed that after adding the variables of environmental feature including water level, water speed, wind speed, wind angle, and route segment, the prediction error RMSE (root mean square error) and MAE (mean absolute error) were reduced by 35.31% and 30.30%, respectively, while the R 2 (R-squared) increased to 0.9843. What's more, compared with other ANNs (artificial neural networks) such as Elman, RBF (radial basis function), three support vector regression (SVR) models, random forest regression (RFR) model, GRNN (generalized regression neural network), RNN (recurrent neural network), GRU (gated recurrent unit) and LSTM (long short-term memory) the proposed DBPNN model showed better performance in fuel consumption prediction.