A method of viscosity estimation for an oil-water emulsion is proposed. The method can also be used to identify the components of an oil-water emulsion. Inversion accuracy of the ingredients can satisfy the engineering applications. Results can also meet the need of real-time online measurement.