LP-IV Lab Manual
LP-IV Lab Manual
Pervasive Computing
By,
Prof. R. L. Paikrao,
Head of Department, Computer Engineering
Amrutvahini College of Engineering, Sangamner
(These are suggested assignments however faculty member can also
choose different but related practical assignment)
Assignments to be covered
• GPS and other satellite technologies lack precision or fail entirely, such as inside
multistory buildings, airports, alleys, parking garages, and underground locations.
• A large variety of techniques and devices are used to provide indoor positioning
ranging from reconfigured devices already deployed such as:
- smartphone inbuilt sensors, WiFi, WiMax, ZigBee, Bluetooth antennas etc.
Continued…
• Students have to develop an Android application which will search for the
required book on website and once he clicks on show direction button,
App should show a complete path to reach to specific rack/cupboard
where that book is placed.
• Additionally all navigations (Left/Right/Straight) must be shown to the
user.
• Extra features like voice based assistance, can be added.
Continued…
• The book search is to take place on the smartphone with the website
offered by the library.
• Afterwards the way to the book is to be represented on a map.
• It is much easier for the user to use his own smartphone because he is
familiar with it and does not have to find his way into a custom
development
Tasks to do:
Here, the presentation of a website, extraction of desired data, linking to a
database containing information between semantic and topological
information of the book, localization and tracking of the smartphone and
presentation of the route and the environment on a map are used.
Sample workflow of a system
• Car parking has become a serious issue in today's congested areas due to a
lack of parking facilities.
• In most metropolitan places, finding a parking spot is extremely tough and
irritating, especially during rush hour.
• Here, students have to develop an Android Application that will allow the
user to view various parking spots as well as determine whether parking
space is available or not. If the space is available, he/she can reserve it for
a certain time frame.
Continued…
• Step 1: User has to do one time registration in the mobile application. Registration requires the
following details name, mobile number, number plate text. Username and password is also
required.
• Step 2: The Users can view the parking slot and book the slots for parking.
• Step 3: Users can set the time for the slot while booking.
• Step 4: The slot will be reserved until the user parks the vehicle. If the user fails to park the
vehicle in the allotted time then the park will be marked vacant.
• Step 5: Once the user parks the vehicle timer starts and timer ends when he/she leaves the slot.
Tasks to do:
Android Application Development
Interfacing of RFID with Microcontroller
NodeMCU module programming
SMPS for power supply
WiFi module ESP8266 interfacing with Microcontroller
Bluetooth Interfacing
4. Android User Activity Recognition – Still, Walking, Running, Driving etc.
• The more we know about our users the better application we can build for our
users. So, here student should develop an Android application that uses this
Activity Recognition of the users.
Continued…
We have to constantly communicate with the sensors of the mobile and after
collecting the data, we have to use some Machine Learning algorithm to find which
activity the user is currently doing.
The Activity Recognition Client returns a list of activities that a user might be doing
with some confidence percentage. This confidence percentage tells you about the
surety of the activity.
For example, the activity which is having more than 75% confidence, then there is a
probability that the user might be doing that activity. So the confidence parameter
tells you the probability of an activity being done by the user.
Activities detected by the Activity Recognition Client
• STILL: When the mobile device will be still i.e. the user is either sitting at some place or the mobile device is
having no motion, then the Activity Recognition Client will detect the STILL activity.
• ON_FOOT: When the mobile device is moving at a normal speed i.e. the user carrying the mobile device is
either walking or running then the Activity Recognition Client will detect the ON_FOOT activity.
• RUNNING: This is also a sub-activity of ON_FOOT activity which is detected by the Activity Recognition Client
when the user carrying the mobile device is running.
• IN_VEHICLE: This activity detected when the mobile device is in the bus or car or some other kind of vehicle
or the user holding the mobile device is present in the vehicle.
• ON_BICYCLE: When the device is on the bicycle or the user carrying the mobile is on a bicycle then this
activity will be detected.
• TILTING: When the mobile device is being lifted and is having some angle with the flat surface then the
Activity Recognition Client will detect this activity.
• UNKNOWN: The Activity Recognition Client will show this result when the device is unable to detect any
activity on the mobile device.
5. Design and build a sensing system using micro-controllers like - Arduino /
Raspberry Pi / Intel Galileo to sense the environment around them and act
accordingly.
Basically, here we are going to write a code to sense any event in the surrounding
and then actuator will take further action on it. It can be as simple as temperature
sensing system as illustrated below:
Students should develop an Android application that can be used to set silent mode,
ringer mode, and vibrate mode based on orientation of Android phone.
Requirements:
Android Studio version 2.3.3
Little bit XML and Java knowledge.
Android Emulator (or) Android mobile
What is orientation of phone?
Features:
• Uses the GPS from Android mobile to match the current location.
• Automatically sends a message for Order once it is placed.
• Displays on the Screen a message.
8. Mini Project : Design a mobile sensing platform mounted on a glove that
integrates several sensors, such as touch pressure, imaging, inertial measurements,
localization and a Radio Frequency Identification (RFID) reader for fruit classification
and grading system.
Information Retrieval
By,
Prof. R. L. Paikrao,
Head of Department, Computer Engineering
Amrutvahini College of Engineering, Sangamner
1. To compute similarity between two text documents
Where,
- PR(A) = the pagerank of your page A
- d = damping factor (The probability, at any step, that the person will
continue with the same page is a damping factor d) which is usually 0.85
- C = outbound links
3. Pre-processing of a Text Document: stop word removal
Text pre-processing is the process of preparing text data so that machines can use the
same to perform tasks like analysis, predictions, etc.
Stop words are actually the most common words in any language that does not add
much information to the text.
Objective - By removing these words, we remove the low-level information from our text
in order to give more focus to the important information.
For example -
Continued…
Different libraries for StopWord Removal:
• NLTK is an amazing library to play with natural language. When you will start your NLP
2. spaCy:
• spaCy is an open-source software library for advanced NLP. This library is quite popular now
and NLP practitioners use this to get their work done in the best way.
3. Gensim:
• Gensim (Generate Similar) is an open-source software library that uses modern statistical
machine learning.
4. Scikit-Learn:
• Scikit-Learn needs no introduction. It is a free software machine learning library for Python. It
• MapReduce is used by Google for much of their processing of large data sets
• How it Works
o Map. The input data is first split into smaller blocks.
o Reduce. After all the mappers complete processing, the framework
shuffles and sorts the results before passing them on to the reducers. ...
o Combine and Partition.
Continued…
- Hadoop Framework -
5. Simple web crawler
• Parsing means to read information from a file and split it into pieces by
identifying parts of that particular XML file. Let’s move on further to see how
we can use these modules to parse XML data.
• For example:
Continued…
XML Parsing Modules
1. SAX:
• It is a module that means simple API for XML
2. DOM:
• It stands for document object module. It has all the features of XML
and works by storing data in hierarchical form. This module is used
mainly when dealing with large data as it is faster.
3. ElementTree:
• This module helps us store the data in the XML document in the tree
structure, showing in a hierarchical format. We can parse data, find
elements and also modify the data.