The invention discloses a method for predicting a gas deviation factor of a
sulfur-containing gas reservoir, which belongs to the technical field of exploration and development, and is characterized by comprising the following steps: S1, collecting parameter data; s2, carrying out dimensionless operation; s3, calculating an absolute value, a minimum value and a maximum value of a difference value; s4, calculating each
correlation coefficient; s5, calculating the correlation degree; s6, sorting is carried out; s7, defining related variables of the BP neural network; s8, calculating input and output of each layer of neurons; s9, calculating a partial derivative of the
error function to each
neuron of the output layer; s10, calculating a partial derivative of the
error function to each
neuron of the
hidden layer; s11, correcting a connection weight; s12, correcting the connection right; s13, carrying out error calculation; and S14, obtaining a prediction result. Modeling is carried out on the basis of a large amount of experimental data, the gas deviation factor of the
sulfur-containing gas reservoir is simulated and calculated, and the method has the advantages of being comprehensive in consideration factor, objective in calculation method, reliable in result and easy and convenient to operate.