Smart Ticketing Systemfor Railwaysin Smart Citiesusing Softwareasa Service Architecture
Smart Ticketing Systemfor Railwaysin Smart Citiesusing Softwareasa Service Architecture
net/publication/320252621
Smart ticketing system for railways in smart cities using software as a service
architecture
CITATIONS READS
8 3,941
4 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Online Signature Recognition using Software as a Service (SaaS) Model on Public Cloud View project
All content following this page was uploaded by Godson D'silva on 09 May 2018.
Abstract— Ticketing system for railways in Mumbai suburbs pass from manually set-up counters are time consuming for the
was introduced in order to authenticate and authorize valid commuters since they have to wait in a queue. Paper tickets also
commuters to suit ones comfort, purpose or needs while travelling. generates a lot of paper waste on a daily basis from millions of
Due to very high job prospects in Mumbai city, the population commuters travelling from various source to destination. The
which started travelling through this train increased immensely, introduction of technologies has only paved way for quick &
which resulted in various issues such in never ending queues, fast computing and also information gathering which are
wastage of paper, lots of resource and staff utilization. The directly or indirectly beneficial for the authorities. There were
alternatives techniques introduced to resolve this issues failed also alternative machines being introduced to stay clear from
drastically. Moreover in spite of having such a massive amount of
never ending queues with the introduction of CVM coupons.
data generated of the commuters, no analysis was ever done ever
to improve the railway service and the commuter’s experiences.
The consumers had to line themselves in a queue in order to
To overcome the above pitfalls this paper proposes a smart avail these coupon booklets from manually set up counters.
ticketing system architecture for railways which completely scraps These coupons had separate digital machines which printed the
the idea of paper tickets and completely harness the amount of Date & Time before travelling commenced. The major
money commuters has invested for their travelling. If the disadvantage of using these coupons is that it could not restrict
commuter intends to travel from a source to destination with no the reuse of same coupons by reprinting the new dates over old
intention to return on the very same day, then only half ticket ones. It also failed to record and print the commuter’s source
costing will be taken into consideration. The commuters will be and destination.
benefited with the provision of using the seasonal tickets as per The Automatic Ticket vending Machine was introduced to
there requirements depending on the number of days they has scrap CVM coupons and avoid long queues. The consumers had
subscribed. This model also enables the authorities to detect those to maintain a balance amount in their respective Smart cards in
commuters who never pay and buy or fail to carry their tickets or order to avail services from the ATVM machines. This system
pass while travelling. The proposed system will also have features overcomes the drawback to record and print source and
like crowd analysis and suggesting cost effective offers to the destination on the tickets of the commuters as compared to
railway commuters. Coupon vending Machines. But ATVM machines still does not
scrap the idea of paper ticketing. Mobile application were
Keywords— Smart Ticketing; AWS; Lambda; IoT;
further introduced to make it more feasible and convenient for
Raspberry Pi; Dynamo DB; Simple Notification Service; ML
the consumers to book tickets online. But this type of
technology requires Internet provisions and Smart phones to
I. INTRODUCTION
avail these services. All these existing systems fails to
A train ticket is a ticket issued by a railway operator that authenticate commuters with valid tickets or pass and there are
enables the commuters to travel on the railway network. Tickets no provisions to catch hold of such peculating commuters.
can authorize the commuters to travel a set itinerary at a specific To overcome the above drawbacks this paper proposes a
time. The introduction of manual ticketing has always made it smart ticketing system architecture for mumbai suburb railways
easier for the authorities to keep a track on various events which completely violates the concept of paper tickets .If the
involving financial matters and the travelling patterns of the user intends to travel from a source to destination with no
people. However, these activities had to be carried out manually intention to return on the very same day, then only half ticket
with the help of a huge man power and resources. The use of costing will be taken into consideration. The users will be
electronic equipment’s like computers, printing machines, benefited with the provision of using the seasonal tickets as per
paper & ink are the major and most important resources his/her requirements depending on the number of days he/she
required for paper ticketing systems. Besides, the use of has subscribed. This model also enables the authorities to detect
electrical equipment’s like ceiling fans, tube lights and air those commuters who never pay and buy or fail to carry their
conditioners have proved to be a costly affair. Besides time tickets or pass while travelling. The proposed system will also
consumption and cost, these systems seek a lot of maintenance have features like crowd analysis and suggesting cost effective
and repairs on a regular basis. Banking transactions also needs offers to the railway commuters. This proposed system is
to be carried out manually from place to place on a consistent implemented on AWS public cloud which makes this system a
basis. In the present-day, availing railway tickets or seasonal highly robust, scalable, pluggable and faster architecture.
II. RELATED THEORY milliseconds, required to run it. amazon S3, dynamodb, kinesis,
In this proposed architecture the railway ticketing system is SNS and other AWS services can trigger lambda to run code to
implemented on AWS public cloud using services, such as AWS process data in real time. The code runs in response to every
IoT, Lambda and Dynamo DB. Even supervised machine trigger within milliseconds scaling automatically and precisely
learning is done in lambda to get some useful insights. Taking with the size of the workload.
into consideration the huge amount of event data generated, auto The lambda makes it easy to create mobile and IoT
scalability and performances is taken care by AWS public cloud. backbends as well as web applications. Just write the code in
This AWS services are elaborated in detail in this section below. lambda and it takes care off running it. One can just write his
code and upload it to Aws lambda. Among many benefits there
A. AWS IoT are no servers to manage or maintain and never pay for idle
The AWS IoT allows us to securely connect and manage servers. The service scales automatically to match the incoming
devices, at any scale beta available today and build IoT load and sub second metering. The developer can use AWS
applications. AWS IoT platform allows us to much more easily lambda to execute code in response to triggers such as changes
connect devices into the cloud. It allows organization to easily in data, shifts in system state, or actions by users. AWS lambda
collect, store, analyze and take action against large volumes of can be directly triggered by AWS services such as Amazon S3,
data that are streaming from connected devices. It provides us Amazon dynamodb, Amazon kinesis, Amazon simple
SDKs that developer can use on our devices and connect them notification service (SNS) and Amazon cloud watch allowing us
into the cloud. It also provides Lightweight communication to build a variety of real time data processing systems.
protocol network capabilities with MQTT. The Device gateway AWS lambda automatically scales the application by
allows connected devices to talk over the MQTT message running code in response to each triggers within milliseconds.
protocol. It is highly fault tolerant protocol which is perfect for Performance remains consistently high regardless of the
intermittent connectivity. It is very much efficient in terms of frequency of triggers. This is because the code runs in parallel
network bandwidth requirement which makes it perfect for and processes each trigger individually, scaling precisely within
connecting devices. the size of the workload. There is no requirement of new
These devices talk over TLS (Transport Layer security) languages, tools or frameworks to learn with AWS lambda. The
which is the successor of SSL and makes it very easy to create developer can use any third party library, even native libraries.
manage and deploy X509 certificates for authentication. X509 AWS lambda supports Java and Node.js code respectively with
certificates are used to uniquely identify devices. It also makes support for other languages coming in the future.
it possible to map the roles and policies for access to each of D. Machine Learning in lambda
these individual certificates and authorize devices to have access
to AWS IoT and associate those roles and policies with AWS Machine Learning algorithms discover patterns and data and
IAM roles which allows access not just to the IoT but also to the construct mathematical models using these patterns. Then, the
rest of AWS and this makes it really easy to authorize new developer can use these models to make prediction on new data.
devices but also revoke access to devices without having to ML is something the developer can use for lots of applications
touch them. The device gateway uses publication and subscribe but learning and implementing complex algorithm required to
programming model and this allows one to many connectivity build models is difficult and time consuming and then deploying
between different devices. and managing infrastructure to analyze the large data sets
required to build accurate models and generate predictions at
B. AWS Dynamodb high scale is expensive and requires continual maintenance to
The dynamodb is a fully managed NoSQL database service. keep it all running. When Machine learning in done in lambda,
A relational database stores items across a set of related tables that allows developers to quickly and easily build smart
to minimize duplicate values. However those table relationships applications that can perform important functions like fire
make scaling more resource-intensive. The NoSQL Database detection, Demand forecasting, Predictive customer support and
typically store each item as a single document for high click prediction. In machine learning, the developer can use
scalability. The NoSQL databases trade some of the query and powerful algorithms to create machine learning models by
transaction capabilities of relational databases in favor of finding patterns in existing data and using these patterns to make
performance and scalability. With dynamodb, the developer predictions from new data as it becomes available.
need not have to worry about database maintenance There are common types of machine learning problems:
administration. The developer can download the local version of Classification, Regression and clustering. In the proposed
dynamodb and then use dynamodb service to scale globally. It’s system, carries out Supervised Learning. Classification problem
applicable to attach with, big data, gaming, mobile and other involves predicting whether given observation belongs to a
applications that needs fast response times and the ability to certain category. However based on earlier observations of how
easily scale with demand. Dynamodb is reliable and to input maps to the output, classification tries to estimate a
automatically backs up data in three separate facilities. classifier that can generate an output for arbitrary input. A
classifier can then label an unseen data with the class. A
C. AWS Lambda regression problem is a kind of machine learning problem that
The AWS lambda lets the developer run code without tries to predict a continuous accredited value for input based on
provisioning or managing servers. There is no charge when the previous information. The input variables are called the
code is not running. The developer pay only for the number of predictors and output the response. Therefore, Regression is
times the code is triggered and the time in units of 100 pretty similar to classification where aim is to estimate a
function that maps input to output based on early observations
that is this time when the actual values are estimated rather than lambda. The computation of whether the user has completed
a class of an observation. This type of machine learning is his/her journey and the costing is done in the next stage where
termed as Supervised Learning. the data from the dynamodb is analyzed by lambda according
the analysis parameters. For the Seasonal ticket, the user pays
III. CONCEPTUAL FRAMEWORK
the amount in advance on basis of source and destination. If the
The proposed system architecture consists of main commuter commences the journey in both ways, then a day is
components such as Raspberry Pi, AWS IoT, AWS lambda, deducted from the 30 days allotted to him. If commuter extends
dynamodb, SNS (Simple Notification Service) as illustrated in the journey beyond the destination, then the amount will be
Figure1. The RFID reader captures the user's’ RFID tag which deducted from commuter bank account whose cost will be
consist of unique identification information which is then send similar to that of the regular ticket. However, if commuter
to Raspberry Pi. This event data information will be forwarded commences from source to destination and does not return,
to AWS IoT form Raspberry Pi in JSON format through MQTT which is a halfway journey, then only half day would be
protocol along with the information such as name, time, deducted instead of the one whole day which can be
location etc. Aws IOT will send this event data to AWS lambda compensated later. For Regular Ticket, the source and
for doing the further processing. AWS Lambda is used for destination is not predefined but is dynamic. Hence, on basis of
computation purposes. In AWS Lambda, it determines and the travel journey, be it a direct source to destination type or
persist how the event information should be stored in different with ‘n’ number of breaks, the relevant cost is computed and
tables according to its type of ticketing namely seasonal the amount is deducted from the bank account directly. The
ticketing or regular ticketing in dynamodb. lambda then stores the results in dynamodb as well as sends the
The dynamodb is a NoSQL database service, which stores message to SNS (i.e. Simple Notification Service). Simple
huge amount of data as well as provide the ease of scalability Notification Service is used to notify the end user.
of the information when needed. In this proposed system
dynamodb is used for persisting values coming from the AWS
VI. CONCLUSION
Smart Ticketing system is a total express railway ticketing
solution architecture that will change everything in railways
business. Smart Ticketing system offers a wide variety of
benefits build for commuters and Railway authorities. For
Figure 7: Captured RFID tag by raspberry pi commuters travel is unified, simplified, cost-effective and
comfortable. Even they are notified with attractive offers based
In the proposed system there are three RFID reader installed
on their travelling patterns and details of less crowded coaches
and connected to a raspberry pi devices. The first RFID sensor
is installed on the entry door barricade, so when the commuters in a train, which make their journey safe, happy and comfortable.
passes through this door the RFID identifies the tag and send this For Railway authorities, only authorize commuters travel, no
event data raspberry pi which send it to AWS IoT, from which wastage of paper, security of commuters is ensured, No cash
the source information can estimated as illustrated in Figure 8. money transaction needs to be done and less staff and resources
The second RFID sensor are installed at the door of the train required. With this Smart Ticketing architecture implemented on
coach, so whenever a commuters entry the train coach, the train cloud, give an added benefit of scalability and performances at
coach door RFID reader will record this event data and send it any point of time.
to raspberry pi which then send to AWS IoT, from which the
system will know which train the commuter has boarded and VII. REFERENCE
how many commuter are present in the train coach. And lastly [1] Train ticket: https://en.wikipedia.org/wiki/Train_ticket/, Accessed on
the third sensor will be installed on the exit door barricades at 08.08.2016, 9:07 AM.
[2] AWS Documentation, https://aws.amazon.com/documentation , Accessed
the station. so when the commuters moves out from this exit
on 09.04.2016, 7:09 AM.
door barricades the RFID reader will record this event data and [3] Md. Foisal Mahedi Hasan, Golam Tangim, Md. Kafiul Islam, Md.
send it to raspberry pi which send it to AWS IoT, from which Rezwanul Haque Khandokar, Arif Ul Alam “RFID-based ticketing for public
the commuter's destination can be estimated. The raspberry pi is transport system: Perspective megacity Dhaka”, Computer Science and
connected to AWS IoT through MQTT protocol. Information Technology (ICCSIT), 2010 3rd IEEE International Conference,
07 September 2010.
[4] Shao Xiwen “RFID technology-based museum ticketing and visitor
management systems”, Information Management, Innovation Management and
Industrial Engineering (ICIII), 09 January 2014.
[5] Prasun Chowdhury, Poulami Bala, Diptadeep Addy “RFID and Android
based smart ticketing and destination announcement system”, Advances in
Computing, Communications and Informatics (ICACCI), 03 November 2016.
[6] V. A. Bharadi and G. M. DSilva, “Online Signature Recognition Using
Software as a Service (SaaS) Model on Public Cloud,” in 2015 IEEE
International Conference on Computing Communication Control and
Automation, pp. 65–72, Feb. 2015.
[7] G. M. DSilva and V. A. Bharadi, “Modified Online Signature Recognition
Using Software as a Service (SaaS) Model on Public Cloud,” IEEE
International Conference on Information Processing, December 16-19, 2015.
Figure 8: Event data published on AWS IoT