Internship 7th Sem
Internship 7th Sem
Internship Report
on
“ Stock Market Prediction using Support Vector Machine ”
CERTIFICATE
18CS74
Certified that the Internship work titled “Stock Market Prediction using Support Vector
Machine” carried out by Priyanshu Kumari (1RV19CS120), a bonafide student, submitted in
Submitted
partial fulfilment for the award of Bachelor by in Computer Science and Engineering
of Engineering
of RV College of Engineering , Bengaluru, affiliated to Visvesvaraya Technological University,
®
2. ____________________ __________________
2022-23
Certificate provided by Company
(i)
ACKNOWLEDGEMENT
We are indebted to our guide, Prof Ramma A, Associate Professor, Dept of IEM for
her wholehearted support, suggestions and invaluable advice throughout our internship
and also helped in the preparation of this thesis.
Our sincere thanks to Dr. C K Nagendra Gupta., Professor and Head, Department of
Industrial Engineering and Management, RVCE for his support and encouragement.
Our sincere thanks to Dr. Ramakanth Kumar P., Professor and Head, Department of
Computer Science and Engineering, RVCE for his support and encouragement.
We express sincere gratitude to our beloved Principal, Dr. K. N. Subramanya for his
appreciation towards this project work.
We thank all the teaching staff and technical staff of Industrial Engineering and
Management department and Computer Science and Engineering department, RVCE for their
help.
Priyanshu Kumari
1RV19CS120
(ii)
Executive Summary
The application of deep learning in the field of stock market prediction has attracted the
interest of many researchers. The work done in this area involves a combination of two ANN
model Support vector machine and Regression and Classification to achieve the regression
line and simultaneously generating context of those given data (prices) to predict the
upcoming price as a caption. This project aims to help the challenged in getting the context of
any image.
A combination of pretrained SVM and LSTM is used here to generate captions, trained on a
dataset of over 5,772 days prices with 5 attributes per day. The algorithm, SVM (Support
Vector Machine) which memorizes the history data for prediction. The paper focuses on the
US market that include companies like Yahoo, Microsoft, Apple, Intel etc. and uses stock
parameters like the date, open, high, low, close and volume. Specifically, Microsoft.
With a training time of over 24 hours, each algorithm was run 30 times to calculate the
prediction accuracy. SVM resulted in 65% mean accuracy and whereas the earlier developed
LSTM model achieved 60% accuracy. Ambiguities within the dataset have been highlighted
and ways to improve the accuracy of the model is also discussed. Challenges with the model,
and the methods of tuning have been explained further.
(iii)
Table of Contents
Certificate from Industry/Organization (i)
Acknowledgement (ii)
Executive Summary (iii)
Chapter 1
Profile of the Organization
1.1 Organizational Structure 1
1.2 Products 1
1.3 Services 2
1.4 Financials 2
Chapter 2
Activities of the Department
2.1 About the department 3
2.2 Products 3
Chapter 3
Tasks Performed
3.1 Summary of the tasks performed during 5
Chapter 4
Reflections
4.1 Technical Knowledge acquired 9
4.2 Soft skills acquired 9
(iv)
List of Figures
1.1.1. Organization structure 1
3.1.1. Installation of python libraries 5
3.1.2. Simple calculator program in python 5
3.1.3. Importing Libraries in Google collab and Collecting
Stock Data 6
3.1.4. Data Pre-processing 6
3.1.5. Using Matplotlib Libraries 6
3.1.8. Predicted Value form all three models and the root mean
square value 8
(v)
Chapter 1 Profile of the Organization
1.2. Products
R & D sector of BITS has started on smart home and industrial automation devices.
Industrial automation products refer to use of control systems such as information
technologies, robots and tools for handling different types of machinery and processes used in
several types of industries.
Industrial systems have seen large shifts in their wired and wireless infrastructure this past
decade with the shift from traditional fieldbus technologies to industrial Ethernet, with
protocols such as Ethernet/IP, ProfitNET, and EtherCAT overtaking legacy networks,
Industrial robot manipulators have been utilized in a wide array of industries to perform
repetitive, strenuous, and precise tasks.
Many products have been launched in the sector of home appliances automation devices
which includes wireless water controller for industry and home purposes. Automatic water
level controllers are a product that was created to automatically control a motor, which helps
to ensure a constant reserve of water in a storage tank. These automatic water level
controllers are used to automatically fill the over-head tank when it starts or has become
empty as well as monitor the water level in it.
The technique of water level monitoring and controlling system concentrated with some basic
parts which are softly aggregated together such as Water level Indicator, Level sensors,
microcontroller, pump controlling system etc. The company has successfully made 14 smart
homes and automated 11 industries/factories with custom devices based on client
requirements.
1.3. Services
BITS offer services for the clients which includes consultancies, maintenance of
websites or creation of multimedia presentations for other firms etc. The service provided by
BITS team is to provide the product to the client as per their requirement. Mainly it includes
the services like managing and development of website using several software tools available.
Web Managers are responsible for managing websites for organizations. Their duties include
managing website upgrades, testing for website performance, implement a strategy to
increase web traffic and subscribers, troubleshooting website issues, and responding to
security breaches. These IT specialists from BITS help other organizations by managing their
website. They oversee the functionality of the website, evaluate, and manage website
performance, facilitate hosting and server management, and develop, maintain, and update
website content.
Following duties are performed by IT specialists in BITS:
• Ensure that the website is protected by enabling the appropriate security measures.
• Ensure full compliance on the website with all laws and regulations.
• Keep up-to-date with industry best practices and monitor competitor websites.
1.4. Financials
BITS have authorized share capital as Rs. 5 lakh and its paid-up capital is Rs. 15
lakhs. The last balance sheet was filed on 31st March 2020.
The Centre offers internships in collaboration with “Bhargawa Info Tech Solutions Private
Ltd” to facilitate skill enhancement in the domains like Audit, Marketing Group, Logistic,
Computer Vision, Mobile app development, Internet of Things, Natural Language Processing,
Human Computer Interaction etc. The available infrastructure of the Centre includes high end
workstations integrated with Titan X Pascal and Quadro RTX 8000 GPU cards and embedded
devices like Jetson Nano, Developer and Tx2 kits.
2.2. Products
R & D sector of BITS has started on smart home and industrial automation devices.
Industrial automation products refer to use of control systems such as information
technologies, robots and tools for handling different types of machinery and processes used in
several types of industries.
The company has successfully made 14 smart homes and automated 11 industries/factories
with custom devices based on client requirements. Many products have been launched in the
sector of home appliances automation devices which includes wireless water controller for
industry and home purposes. Automatic water level controllers are a product that was created
to automatically control a motor, which helps to ensure a constant reserve of water in a
storage tank. These automatic water level controllers are used to automatically fill the over-
head tank when it starts or has become empty as well as monitor the water level in it.
The technique of water level monitoring and controlling system concentrated with some basic
parts which are softly aggregated together such as Water level Indicator, Level sensors,
microcontroller, pump controlling system etc.
Chapter 3 Tasks Performed
Training sessions attended in python basics, machine learning algorithms, and various
frameworks. It also included Data science introduction. Assignments were completed with
the use of python libraries. Exploration of various other python libraries was also involved.
The libraries were meant to be used for machine learning, data cleaning and analysis, and
data visualization techniques.
Figure 3.1.3. Importing Libraries in Google collab and Collecting Stock Data
Explored and understood the various python libraries such as matplotlib, numpy, scipy,
seaborn, plotly, pandas, scikit-learn, librosa and many more. Interns gained a sound
knowledge on machine learning models such as classification, regression. Classification
based machine learning algorithms such as Naïve bayes, K-Nearest neighbours, Decision tree,
SVM. Regression techniques such as Linear regression, Logistic regression, Polynomial and
Bayesian regressions.
Gained good knowledge on design and development of prediction analysis models using
neural networks like Artificial neural networks, Support Vector Machine, etc. the accuracy is
evaluated of both the methods. The dataset contains the prices of ten years of NIFTY and SP
index. After
evaluating all the methods, the random forest algorithm performs better than other three
models.
Microsoft finance is a type of database which contains the prices of the stock. The stock
prices were scraped from the site using python request library. The data that was extracted
from the companies belonging to the technology sector. The data is ranges from January 2002
till December 2020. The stocks mentioned in the database are Oracle, Amazon, Intel, Lonovo,
Google etc. The most important factors were extracted like the date, volume, close, high, low.
Few other parameters taken into considerations are stock momentum, index volatility, index
momentum and sector momentum.
Figure 3.1.8. Predicted Value form all three models and the root mean square value
All the three models Radial Basis Model, Linear Model and Polynomial model is depicted in
the form of graph and the next price is also predicted.
[1.] Patel, J., Shah, S., Thakkar, P., Kotecha, K. (2015). Predicting stock and stock
price index movement using trend deterministic data preparation and machine
learning techniques. Expert systems with applications, 42(1), 259-268.
[2.] Nelson, D. M., Pereira, A. C., de Oliveira, R. A. (2017, May). Stock market’s
price movement prediction with LSTM neural networks. In 2017 International
joint conference on neural networks (IJCNN) (pp. 1419-1426). IEEE.
[3.] Lee, J. W. (2001, June). Stock price prediction using reinforcement learning. In
ISIE 2001. 2001 IEEE International Symposium on Indus- trial Electronics
Proceedings (Cat. No. 01TH8570) (Vol. 1, pp. 690-695). IEEE.
[4.] Usmani, M., Adil, S. H., Raza, K., Ali, S. S. A. (2016, August). Stock market
prediction using machine learning techniques. In 2016 3rd international
conference on computer and information sciences (ICCOINS) (pp. 322-327).
IEEE.
[5.] Shah, V. H. (2007). Machine learning techniques for stock prediction.
Foundations of Machine Learning— Spring, 1(1), 612.
[6.] Sonakshi Mehra , Dr.G.Manju , Aishwarya D , Yashaswi Bhavaraju Stock Price
Prediction using SVM and LSTM (July 2020), Student, CSE, SRM Institute of
Science and Technology, Kattankulathur, Chennai, India. e-ISSN: 2395-0056.
[7.] WEN Fenghua, XIAO Jihong, HE Zhifang, GONG Xu, ‘Stock Price Prediction
Based on SSA and SVM’, 2nd International Conference on Information
Technology and Quantitative Management, ITQM 2014 Business School of
Central South University, Changsha, 410081, China.
[8.] Ince H, Trafalis T. Short term forecasting with support vector machines and
application to stock price prediction. International Journal of General Systems;
2008, 37(6), p. 677-687.
[9.] Sai Ying, Zhang Fengting, Zhang Tao. China’s stock index futures regression
prediction research based on SVM. China Journal of Management Science;
2013, 03, p. 35-39
[10.] Beneki, C.Eeckels, B., and Leon L., Signal Extraction and Forecasting of the UK
Tourism Income Time Series: A Singular SpectrumAnalysis Approach. Journal
of Forecasting; 2012, 31(5), p. 351-400.