Prediction of Mobile Phone Price Class Using Supervised Machine Learning Techniques
Prediction of Mobile Phone Price Class Using Supervised Machine Learning Techniques
ISSN No:-2456-2165
Abstract:- The aim of this research is to develop a model to available to perform machine learning tasks. Examples of
predict the price of a mobile when the specifications of a some frequently used algorithms include Naïve Bayes, K-NN,
mobile are given and to find the ML algorithm that etc. Feature selection algorithms can be used to select and
predicts the price most accurately. The usage of archival extract only the best parameters to train a model to optimize
data to accurately forecast forthcoming instances is the the accuracy and lessen the computational time of the model.
essence of Predictive Analytics. One of the ways Predictive Any of these methods can be used to perform the task of
Analytics can be performed is by using Machine Learning. predicting the price of a product depending on the type of data
Predictive Machine Learning works by taking in data as available to train the model.
input to develop and train a prediction model and the
trained model is used to predict the outcome of future data Nowadays, a cellphone is an essential accessory of a
instances. Supervised Machine Learning algorithms make person. It is the fastest evolving and moving product in the
use of data that contains a pre-defined class label, which is technology market space. New mobiles with updated versions
the attribute that needs to be predicted. The class label is and new features are introduced into the market at a rapid pace.
the price of a mobile in our case. The Mobile Price Class Thousands of mobiles are sold each day. In such a fast-paced
dataset sourced from the Kaggle data science community and volatile market, a mobile company needs to set optimal
website (https://www.kaggle.com/iabhishekofficial/mobile- prices to compete with its rivals. The first step in fixing a price
price-classification) that categorizes mobiles into price is to estimate the price based on the features. The objective this
ranges was used to train the prediction model. Python is research is to develop an ML model capable of estimating the
used due to its readily accessible ML libraries. Various price of a mobile phone based on its features. A potential buyer
classification algorithms were used to train the model to try can also make use of the model to estimate the price of a mobile
and find the algorithm that is able to predict the mobile by inputting just the features they require into the tool. The
price class most accurately. Metrics like accuracy score, same approach to create a prediction model can be used to
confusion matrix, etc. are were used to evaluate the trained develop a price estimation model for most products that have
model to determine the algorithm most suitable among the similar independent variable parameters. The price of a mobile
ones used. is dependent on many features for example, the processor,
battery capacity, camera quality, display size and thickness,
Keywords:- Machine Learning, Predictive Analytics, etc. These features can be used to classify phones into various
Supervised Machine Learning, Python. categories like entry-level, mid-range, flagship, premium, etc.
Supervised ML algorithms are used in this paper as the dataset
used has a definitive class label for price range.
I. INTRODUCTION
II. RESEARCH METHODOLOGY
Price is the most important component in the marketing
of any product and is often the definitive factor in its sale to a The research was carried out in Google Colab’s Python
consumer. In a constantly evolving and volatile market, the kernel. The general workflow diagram of supervised ML tasks
price is often the factor that makes or breaks a product. Setting is as follows:
an optimal price before the release of a product is imperative
for any company. A tool that gives the estimated price of a
product after weighing in the features it provides can come in
handy and can help the company in making an informed
decision while setting the market price for a product. Such a
tool can also be used by a consumer to get an estimated price
based on the features they are looking for in the product.
Machine learning algorithms can perform various tasks The dataset is portioned into two – train for training the
which are to be chosen with respect to the data to be worked model and test for its evaluation. The computer tries to
with and the motive of the task. Various tools and languages comprehend the logic behind the pricing of a mobile based on
like Python, MATLAB, Java, WEKA, Cygwin, Octave, etc are its features and uses it to forecast future instances as correctly
as possible.
The Mobile Price Class dataset sourced from the Kaggle The first step in creating a model is to extract the required
data science community website features for training from the dataset and assigning the
(https://www.kaggle.com/iabhishekofficial/mobile-price- parameter that is to be the class label.
classification) that categorizes mobiles into price ranges was
used to train the prediction model.
KNN was used to train the model here. The certainty of LDA is found to be in the ballpark of 95%.
V. RESULTS AND DISCUSSION Naïve Bayes returned the correct classes with a veracity of
only 52.25% as Naïve Bayes is a poor classifier when
Metrics used to evaluate the algorithms in this paper are working with numeric data as input.
confusion matrix, classification report and accuracy score.
Accuracy score gives the accuracy of the trained model The efficiency of the model trained using the K-NN
after evaluating it using test data, for which we have sampled algorithm was found to be 92.75%.
20% of the dataset.
REFERENCES