Analytics And Intelligent Systems

NUS ISS AIS Practice Group

Traffic Accident Event Processing Network using Node-RED — November 14, 2016

Traffic Accident Event Processing Network using Node-RED

This is a short description on implementing event processing networks using IBM Node-RED. Although designed for wiring Internet of Things (IoT), the programming model of Node-RED follows closely to that of an event processing network, making it an excellent open source tool to prototype an EPN. To install Node-RED, follow the installation guide on its website. Node-RED programming guide website is also a good resource.

We shall assume that we already have an EPN in mind to implement. In this tutorial, we will model the following EPN designed to detect traffic accidents.

EPN to detect traffic accidents

The basic flow of events is as follows: on-board unit (OBU) of a car detects a possible collision and sends out a “Possible Crash Event – OBU” event. The event is then enriched with more information from the “Vehicle Registration Database”, which is a global state element. When this event reaches the event processing agent “Compose Accident Info”, the agent will open up a spatial and temporal context window and wait for the image detection confirmation from the traffic camera. When a crash image from the same location and same time frame is detected, the EPA logs the accident in a database. Affected area is then calculated based on domain expertise / knowledge base and alert is sent out to the relevant dashboard and on-board units.

We implement the network in IBM Node-Red using websockets as event producers and channels, functions as processing agents and PostgreSQL database connection nodes as global states.

Node-RED representation of the EPN

Due to time constraint, we substituted a toggle switch in place of image detection nodes. When building the “Compose Accident Events,” we found that the “context” concept of Node-RED similar to the “stateful agent” concept in EPNs. Putting incoming message values in the context of a node allows it to remember it when the next message arrives.

We also found Node-RED to be able to connect to IBM Watson using node extensions, and could definitely serve as a future enhancement by using IBM Watson image recognition API.

Note: This post is based on the work done for KE5208 Sense Making and Insight Discovery CA project completed in November 2016.

Team members: Randy Phoa (A0135933A), Chan Chia Hui (A0135940H), Zay Yar Lin (A0090806E)

National Population and Talent Division – Demographic is Destiny, Singapore Immigration Story —

National Population and Talent Division – Demographic is Destiny, Singapore Immigration Story

We present a balance scorecard dashboard for National Population and Talent Division of Prime Minister’s Office, Singapore. This unfolds a story of immigration in Singapore since beginning.

The 4 strategic thrusts of this division lies in following areas :

  • Supporting marriage and parenthood
  • Engaging and rooting talent
  • Naturalising and integrating our new immigrants
  • Engaging overseas Singaporeans



With this dashboard we have tried to answer following questions, keeping in mind the four strategic thrusts defines above in context to the immigration story of Singapore.

  • How are Immigration and GDP of Singapore correlated – GDP as the Proxy for Immigrants growth
  • Are we addressing their aspiration and providing the quality of life in terms of infrastructure and environment to retain them?
  • What are the factors encouraging the more inflow of immigrants – Singapore is among top five countries in the world for Ethics & Corruption, Global Consumer Index, Health and Primary Education, Pay and Productivity, Public Sector Performance, Transport and Technology, thus an amazing country to live in, attracting more Immigrants from all over the world !
  • How the diffusion of the immigrant people with Singapore locals would have the cultural, Social and economic impact on Singapore – contributed to the Rich Cultural Diversity in Singapore.
  • As the median age of the population is increasing YoY, what is the impact of the ageing population on Singapore Economy and given the conception that the reasons for the ageing population is due to population what are the reasons that the Career Oriented Population is not able to have a positive impact on the GDP of Singapore.
  • Do we have the required local talents to fill new jobs in the new economy? – Vacancy to Unemployed ratio, as shown is greater than one considering the local population, which means Singapore doe not have enough skilled local labour to fill up the job vacancies and thus remain unemployed !
  • Talents for the 4th industrial revolution, Is Singapore well placed to prepare the population for the technological disruption? – proportion of immigrants in PMET (Professional, Management, Executive and Technical) population suggests that Singapore needs more skilled overseas labour to prepare itself for industrial revolution
  • What kind of aspirations are these talents aspiring to while working in Singapore – Here you will retire rich because of low taxes, compared to US, so fulfils the aspirations of working class

Dashboard Link :

Conclusion : With this dashboard we have unfolded the immigration story of Singapore and established the need of highly skilled immigrants in Singapore. Thus, Singapore should frame welcoming policies for immigrants to prepare itself for the industrial revolution and position itself a pioneer on Global platform.

Team Members :

  • Akanksha Sharma – A0148508Y
  • Shivain Mehta – A0148633B
  • Snigdha Chadha – A0148629R
  • Tan Aik Chong – A0150378A




Geovisualisation on Human Development Index & Immigration in ArcGIS —

Geovisualisation on Human Development Index & Immigration in ArcGIS

ArcGIS Visualization on International Immigration and changes in Human Development Index in OECD countries:

About Human Development Index

The Human Development Index (HDI) is a composite statistic of life expectancy, education, and per capita income indicators, which are used to rank countries into four tiers of human development.


  • This Geo Visualisation is done to see Human Development Index growth over the years for the several countries from 1980-2010.
  • It is splitted into 5 groups with each group comprising 5 year HDI data.

HDI of 1980-85 :


  • We can see that North American Countries and Australia have higher HDI.
  • African Countries and India has lower HDI.

We can see how the HDI is changing over the next 20 years visually below :

HDI changes over the years(1985-2010)

1985-90 :


1990-95 :


1995-2000 :


2000-05 :


2005-10 :


Summary of changes in words over the 20 years :

Based on the above visualizations,we can conclude that :

  • There is a marginal increase in HDI for India compared to the previous years.
  • Most of the South American countries and Russia has achieved the higher HID over the period of 20 years.
  • Barring few countries, all other African countries still possess a lower HDI. North American nations, European nations and Australia consistently has a higher HDI over the period of 20 years.


International Immigration:



Effects of Immigration on Human Development Index in OECD countries

  • Thus, from the analysis of the visualizations obtained, it can be visualized that the immigration might be one of the factors contributing to an increase in Human Development Index in most of the OECD countries.
  • We can also infer that majority of immigrants target countries with a high human development index than their countries of origin.

Team Details :

  • Aravind Prabhu(A0148607Y)
  • Bala Gowtham(A0148536X)
  • Herald Nithesh(A0148613E)
  • Vignesh Mohan(A0148543B)