Professional Documents
Culture Documents
INTRODUCTION
Fig: 1.1
1
1.2 Machine learning:
Machine learning is an application of artificial intelligence (AI) that provides systems the
ability to automatically learn and improve from experience without being explicitly
programmed. Machine learning focuses on the development of computer programs that
can access data and use it learn for themselves. The process of learning begins with
observations or data, such as examples, direct experience, or instruction, in order to look
for patterns in data and make better decisions in the future based on the examples that we
provide. The primary aim is to allow the computers learn automatically without human
intervention
• Supervised Learning
• Unsupervised Learning
Supervised Learning:
Supervised learning refers to the generalization of the relationship (function) between the
input data and their corresponding outputs (labels). The relationship (function) is learned
through a training set of examples, each of which is a pair of an input data and a desired
output. During the training, the error between the actual and the desired outputs is
frequently fed back into the system for tuning the system parameters according to certain
learning rule. After the training, the performance of the learned relationship (function)
should be evaluated on a test set (of examples) that is separate from the training set.
Unsupervised Learning:
2
2. ORGANISATION PROFILE
ADRESS: #2/3, 8th 'A' Cross, M. T. Street, Vasanthnagar, Bengaluru - 560052, INDIA
3
3. CHAPTER
3.1 Industrial Internet of Things in Graphical System Design:
Shared variables interact with the host application through the LabVIEW Shared Variable
Engine (SVE) and the updates are handled through the Publish Subscribe Protocol (NI-
PSP). For Data Dashboard to have access to these variables, they must be deployed to the
SVE through a library project item. Each variable in the library will be deployed and the
SVE will reserve a memory space for it. They will remain in the memory space as part of
the LabVIEW process whether Data Dashboard is interacting with them or not. With
larger data types and data types that can vary in size (strings and arrays) it is important to
remember that mobile devices are very different from a full development system.
Fig: 3.1
4
LabVIEW code:
Fig: 3.2
Data Dashboard:
Fig: 3.3
5
TCP/IP Server:
Fig: 3.4
TCP/IP Client:
Fig: 3.5
Because anyone can initiate a connection to a server, you might want server access
control. The following block diagram shows how the server uses the remote address
output value of the TCP Listen VI to determine whether a remote client has permission to
access the server.
Cloud Communication:
All cloud computing platforms securely send and receive data, use strong authentication
and authorization methods, and use encryption. The majority also have audit capabilities.
Communication protocols are responsible for the network connectivity to the server.
Protocols like Wi-Fi, Ethernet, cellular, and LoRaWAN are all communication protocols
that provide this level of connectivity. Application protocols sit on top of them to
communicate application-specific messages.
6
Multiple standards handle the communication between devices and the cloud. As
application requirements differ, specific IoT protocols have been developed and therefore
the confusion is understandable. Protocols may even have multiple implementations and
IoT platforms may have proprietary IoT solutions. To provide a universal solution,
devices, applications, and platforms need to be interoperable.
Google Firebase:
The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and
synchronized in real-time to every connected client. When you build cross-platform apps
with our iOS, Android, and JavaScript SDKs, all of your clients share one Realtime
Database instance and automatically receive updates with the newest data.
LabVIEW Program:
Fig: 3.6
Google Firebase:
7
Web-based Communication with a LabVIEW Application:
A web client can exchange data with a remote LabVIEW stand-alone application over a
network through LabVIEW Web services. A Web service consists of VIs and other files
running on a server that respond to HTTP requests from clients.
Fig: 3.7
Web services are useful in the following situations:
Users can invoke the Web service VIs with any HTTP-capable web client, including a
standard web browser, to exchange data using a URL and standard HTTP methods such
as POST. For example:
Users can remotely monitor and control embedded applications using custom thin clients.
For example:
8
• Starting or stopping a process
Fig: 3.8
Supervised learning is useful for pattern recognition, function regression, etc. One
example of applications is recognition of handwriting numbers. A supervised classifier
can be trained with a reservoir of handwriting numbers, each with a label (the true
9
numbers it represents). Having been validated on a separate test set, the trained classifier
can be used for fast and accurate recognition of future handwriting numbers.
Unsupervised Learning:
Fig: 3.9
Clustering is one of the main and important approaches of unsupervised learning.
Clustering means the assignment of class memberships to a set of objects so that similar
objects are assigned into the same class and dissimilar ones are assigned into different
classes. Each class often represents a meaningful pattern in the respective problem.
Clustering is thereby useful for identification of different patterns in data. For example, in
image processing, clustering can be used to divide a digital image into distinct regions for
border detection or object recognition.
B) Prediction:
“Prediction” refers to the output of an algorithm after it has been trained on a historical
dataset and applied to new data when forecasting the likelihood of a particular outcome,
such as whether or not a customer will churn in 30 days. The algorithm will generate
probable values for an unknown variable for each record in the new data, allowing the
model builder to identify what that value will most likely be.
10
The k-NN algorithm is used to predict new data based on the trained data set. The health
status of the patients and their BPM data are structured in a database and it is fed to the k-
NN algorithm to train. Once the algorithm is trained if any new BPM data is given to the
trained k-NN algorithm, it then predicts the health status.
Fig: 3.10
Fig: 3.11
1. Load the known data & its labels (class) 2. Initialize K to choose the number of
neighbour’s
11
2. Load the new data.
3. Calculate the distance between the new data with each known data points.
4. Sort the ordered collection and indices from smallest to largest by the distances.
7. Return the mode of the K label which has the maximum entry.
Fig: 3.12
Health Status Prediction Implementation:
12
Fig:
3.13
C) Optical
Character
Recognition:
Optical character
recognition or
optical character
reader (OCR) is
the electronic or mechanical conversion of images of typed, handwritten or printed text
into machine-encoded text, whether from a scanned document, a photo of a document, a
scene-photo (for example the text on signs and billboards in a landscape photo) or from
subtitle text superimposed on an image.
LabVIEW Implementation:
Fig: 3.14
Step 2: Testing
13
Fig: 3.15
Step 3: Deployment
Fig: 3.16
Fig: 3.17
14
D. Image Segmentation:
In digital image processing and computer vision, image segmentation is the process of
partitioning a digital image into multiple segments (sets of pixels, also known as image
objects). The goal of segmentation is to simplify and/or change the representation of an
image into something that is more meaningful and easier to analyse.
LabVIEW Implementation:
Fig: 3.18
15
Fig: 3.19
(D) Waveform Identification:
Fig: 3.20
Step 2: Training
16
Fig: 3.21
Fig: 3.22
Fig: 3.23
17
Fig: 3.24
18
4. ASSESMENTS & CONCLUSION
Assignment 1: Train Berth
Front Panel
Fig: 4.1
Block Diagram
Fig: 4.2
19
Assignment 2: Boolean Counter
Front Panel
Fig: 4.3
Block Diagram
20
Fig: 4.4
21