0% found this document useful (0 votes)
29 views22 pages

Deep Learning Stock Prediction with LSTM

The document summarizes an internship presentation on stock price prediction using deep learning with PyTorch and LSTM. It describes the company and initiatives, includes an abstract on the internship tasks, and outlines technical skills learned like NumPy, PyTorch, RNNs and LSTM. It then details the stock prediction project and shows predicted vs actual results.

Uploaded by

sirisatishakadur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views22 pages

Deep Learning Stock Prediction with LSTM

The document summarizes an internship presentation on stock price prediction using deep learning with PyTorch and LSTM. It describes the company and initiatives, includes an abstract on the internship tasks, and outlines technical skills learned like NumPy, PyTorch, RNNs and LSTM. It then details the stock prediction project and shows predicted vs actual results.

Uploaded by

sirisatishakadur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Visvesvaraya Technological University

Belagavi,Karnataka

An Internship Seminar Presentation


On
“Deep Learning using PyTorch for Stock Price Prediction with
LSTM”

Presented By
SIRI K S 4JN20CS101

Under the Guidance of : Coordinator:


Mr. Hiriyanna G S B.E., [Link]. Mrs. Sowmya D B.E., [Link].
Assistant Professor, Assistant Professor,
Dept. of CS&E Dept. of CS&E
Contents
 Company Profile
 Initiatives of CIE
 Abstract
 Technical skills
 Task Performed
 Results
 Reflection Notes
 Conclusion
 References
Company Profile

 Ekathva Innovations was established in 2018 in Karnataka at the


campus of JNNCE.
 Ekathva innovations mainly aims in making user friendly and
economic products in the areas of design and development of the
Embedded Systems.
 The company also aims at web development and app development both
on android and IOS in the field of information technology.
 They are experienced in providing high quality solutions to clients in
diverse business areas.
Center for Innovation &
Entrepreneurship ( CIE)

 Center for Innovation and Entrepreneurship (CIE) was started in 2018 in

JNNCE with the support of various Government departments and agencies.

 CIE aims to create innovation, startup and entrepreneurial ecosystem at

JNNCE in & around Shivamogga.

 It provides all the required facilities like incubation support, funding and

infrastructure space for startup establishment


Initiatives of CIE

 New Generation Innovation and Entrepreneurship Development


Centre
 New Age Incubation Network (NAIN) Centre
 JNNCE Research & Innovation Centre (JNNRIC)
 JNNCART
 Entrepreneurship Cell (E-Cell)
 Technology Business Incubator (TBI)
 Technology Activities & Programs (TAP)
Abstract
The Internship in AI for unstructured data delves from foundational
operations in NumPy to the sophisticated implementation of PyTorch for
predictive modeling. The strategic integration of the gradient descent
algorithm enriched the understanding of optimization in real-world
scenarios. Building up to a project involving Long Short-Term Memory
(LSTM) networks for Stock price prediction, the Internship demonstrated
the adaptability and effectiveness, underscoring the dynamic and
miscellaneous nature of AI applications for unstructured data.
Technical Skills

 Overview of AI

 NumPy

 PyTorch

 Recurrent Neural Networks

 Long Short term memory(LSTM)


Overview of AI
Artificial Intelligence (AI) is a field of computer science that focuses on
creating intelligent machines that can perform tasks that typically
require human intelligence, such as learning, problem-solving, and
decision-making.

Fig 1: Artificial Intelligence v/s Machine Learning v/s Deep Learning


Applications of Artificial Intelligence

Fig 2: Applications of Artificial Intelligence


NumPy
NumPy stands for Numerical Python, a library used
for working with arrays. It is also de facto standard for
multidimensional arrays in Python data science.
Benefits of NumPy
 More speed: NumPy uses algorithms written in C that complete in
nanoseconds rather than seconds.
 Fewer loops: NumPy helps to reduce loops and keep from getting
tangled up in iteration indices.
 Clearer code: Without loops, code will look more like the equations
trying to calculate.
 Better quality: There are thousands of contributors working to keep
NumPy fast, friendly, and bug free.
PyTorch
PyTorch provides a core data structure, the tensor, which is a
multidimensional array that shares many similarities with NumPy array.

Why PyTorch?

Pythonic Nature: Python is one of the fastest growing programming


languages from the last 5-10 years.
Easy to Learn.
Strong Community.
Easy Debugging.
Recurrent Neural Network
A recurrent neural network (RNN) is a deep learning model that is trained
to process and convert a sequential data input into a specific sequential
data output.

Fig 3: Recurrent Neural Network


Long Short-Term Memory(LSTM)
 LSTM is an improved version of the regular RNN which was designed
to make it easy to capture long-term dependencies in sequence data.
 A regular RNN functions in such a way that the hidden state activation is
influenced by the other local activations nearest to them, which
corresponds to a “short-term memory”, while the network weights are
influenced by the computations that take place over entire long sequences,
which corresponds to “long-term memory”.
 Hence the RNN was redesigned so that it has an activation state that can
also act as weights and preserve information over long distances, hence the
name “Long Short-Term Memory”.
LSTM Architecture

Fig 4: LSTM Architecture


Task Performed
 Implemented algorithms using NumPy and its operations on sets of data
for efficient manipulation and analysis.
 Implemented tokenization techniques to break down textual data into
meaningful units, a crucial step in natural language processing.
 Explored stemming methodologies to reduce words to their root forms,
enhancing text processing capabilities.
 Utilized Part-of-Speech (POS) tagging to identify grammatical elements
in sentences, contributing to language understanding in AI applications.
 Applied lemmatization to derive the base or dictionary form of words,
improving text normalization for more accurate analysis.
 Employed chunking to group words into meaningful phrases or
"chunks," aiding in the extraction of higher-level information from text.
 Leveraged broadcasting and vectorization techniques in NumPy to
efficiently perform operations on arrays and datasets.
 Implemented the gradient descent algorithm for optimizing model
parameters during the training of predictive models in PyTorch.
 Gained hands-on experience with PyTorch, a powerful deep learning
framework, and applied its functionalities to develop predictive models.
 Utilized PyTorch for real-world applications, including the creation of
algorithms for predicting water potability and forecasting stock prices.
 The project is to predict Stock Price with LSTM using PyTorch in Deep
Learning.
 The dataset include attributes such as Date, Open, High, Low, Adj Close,
Close and Volume.
 The dataset is divided into training and testing sets. The training set is
used to train the LSTM model and the test set is used to evaluate the final
performance of the LSTM model.
 The input layer consists of the variables used in the analysis, while the
output layer produces the predicted stock prices along with validation loss.
 The output is displayed in the form of a graph, plotted along days over
closing stock price, both actual close price and predicted close price are
depicted in the same graph.
Results

Fig 5: Snapshot of final result


Reflection Notes

This internship provided an opportunity to carry out a real time mini project.
The internship training gave an opportunity to express individual’s ideas and
to put those ideas in the project assigned. My internship as an intern for
Ekathva innovations has been the most rewarding and motivational
experiences. In this Internship, I got to learn so many frameworks and modern
world technologies which are prominently used for projects around the world
and this is definitely a valuable asset for my upcoming career as a software
engineer.
Conclusion

The Internship on AI for unstructured data, from NumPy to applying


PyTorch for predictive models, has showcased a versatile skill set. The
strategic implementation of the gradient descent algorithm, have been
pivotal in addressing real-world challenges. The application of these
acquired skills was used in a project involving Long Short-Term Memory
(LSTM) networks for Stock price prediction. The internship also helped to
gain valuable experience.
Reference

[1] [Link]

[2] [Link]

[3] [Link]

Common questions

Powered by AI

PyTorch supports efficient model development through its Pythonic nature, making it easy to learn and integrate with Python's vast ecosystem. Its dynamic computation graph allows for easier debugging compared to static graph frameworks like TensorFlow. These features, combined with a strong community and a robust architecture, facilitate rapid experimentation and model tuning, making PyTorch a preferred choice for developers working on dynamic and complex deep learning models .

The practical application of AI frameworks like PyTorch and NumPy during the internship enhanced understanding of real-world optimization challenges by facilitating the hands-on experience with key AI concepts such as gradient descent and LSTM for predictive modeling. This experience highlighted the intricacies of tuning model parameters and handling unstructured data, providing insights into the complex interplay of algorithmic efficiency and accuracy requirements in real-life conditions .

Chunking contributes to the extraction of higher-level information from text data by grouping words into grammatical phrases or 'chunks.' This approach allows the AI application to recognize entities like noun phrases, which are more informative than individual words. Through chunking, it becomes possible to gather contextual and syntactically relevant structures, facilitating better natural language understanding and more effective text analysis in AI applications .

The internship at Ekathva Innovations provided exposure to modern AI frameworks like PyTorch and methodologies such as LSTM and gradient descent, enhancing both technical acumen and problem-solving skills. This experience underlined the importance of adapting to new technologies, making it a valuable asset for a career in software engineering by broadening one's capability to tackle complex real-world problems and innovate in various tech domains .

LSTM architecture enhances regular RNNs by incorporating memory cells and gated structures to capture long-term dependencies in sequence data. While regular RNNs struggle with long sequences due to vanishing gradients, LSTMs use mechanisms like forget, input, and output gates to regulate the flow of information, preserving relevant data across long intervals. This capability allows LSTMs to effectively manage the complexity of financial time series data, thereby improving the accuracy of tasks like stock price prediction .

The use of LSTM networks in the stock price prediction project proved effective due to its design, allowing for the capturing of temporal patterns in time-series data. The model's performance was influenced by factors such as the quality and size of the dataset, the feature selection process, and the tuning of hyperparameters during training. The graphical representation of predicted versus actual prices helped validate the model's accuracy and demonstrated its predictive capabilities .

NumPy offers significant advantages for data manipulation and analysis in AI projects by providing fast computation through algorithms written in C, reducing iteration complexity with fewer loops, and promoting clearer code structures that align with mathematical expressions. Additionally, its comprehensive array operations and support from a large community ensure it remains efficient and reliable. These benefits make NumPy an essential component for handling large datasets in AI projects .

Ekathva Innovations integrates their technological capabilities by focusing on design and development of user-friendly and economic products in Embedded Systems. They extend their services beyond traditional embedded systems to include web and app development on both Android and iOS. This multi-faceted approach allows them to cater to a diverse set of client needs in various business areas by providing high-quality, tailored solutions .

In the internship project on stock price prediction, the gradient descent algorithm plays a crucial role in optimizing the predictive models by iteratively adjusting model parameters to minimize the loss function. This process involves calculating the gradient of the loss with respect to model parameters and updating them in a direction that reduces error, allowing the model to learn the underlying patterns in stock data more effectively .

The Center for Innovation & Entrepreneurship (CIE) at JNNCE aims to foster an innovation, startup, and entrepreneurial ecosystem in and around Shivamogga. It achieves these goals by providing facilities like incubation support, funding, and infrastructure space. CIE also engages in initiatives such as the New Generation Innovation and Entrepreneurship Development Centre, New Age Incubation Network (NAIN) Centre, and a Technology Business Incubator (TBI), which collectively support innovation and entrepreneurial activities .

You might also like