Open Access Articles

Contact Us

Ausasia Science and Technology Press, Australia

Press address: Unit 3/3 Peace St, Box Hill South, Melbourne, Victoria 3128, Australia

Press email:

Press phone: 0421672696

Journal office email:

Our Visitors

437553 visitors Look details

Modeling viscosity of crude oil using k-nearest neighbor algorithm

Mohammad Reza Mahdian, Ehsan Khamehchi, Sassan Hajirezaie, Abdolhossein Hemmati−Sarapardeh

(Published: 2020-11-25)

Corresponding Author and Email:Abdolhossein Hemmati-Sarapardeh, &; ORCID:

Citation:Mahdiani, M.R., Khamehchi, E., Hajirezaie, S., Hemmati-Sarapardeh, A. Modeling viscosity of crude oil using k-nearest neighbor algorithm. Advances in Geo-Energy Research, 2020, 4(4): 435-447, doi: 10.46690/ager.2020.04.08.

Article Type:Original article


Oil viscosity is an important factor in every project of the petroleum industry. These processes can range from gas injection to oil reservoirs to comprehensive reservoir simulation studies. Different experimental approaches have been proposed for measuring oil viscosity. However, these methods are often time taking, cumbersome and at some physical conditions, impossible. Therefore, development of predictive models for estimating this parameter is crucial. In this study, three new machine learning based models are developed to estimate the oil viscosity. These approaches are genetic programing, k-nearest neighbor (KNN) and linear discriminant analysis. Oil gravity and temperature were the input parameters of the models. Various graphical and statistical error analyses were used to measure the performance of the developed models. Also, comparison study between the developed models and the well-known previously published models was conducted. Moreover, trend analysis was performed to compare the predictions of the models with the trend of experimental data. The results indicated that the developed models outperform all of the previously published models by showing negligible prediction errors. Among the developed models, the KNN model has the highest accuracy by showing an overall mean absolute error of 8.54%. The results show that the new developed models in this study can be potentially utilized in reservoir simulation packages of the petroleum industry.

Keywords:Oil viscosity, machine learning, k-nearest neighbor, genetic programming, linear discriminant analysis.


Download this Manuscript:PDF

Copyright ©2016. All Rights Reserved