<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by The LiFE Project on Medium]]></title>
        <description><![CDATA[Stories by The LiFE Project on Medium]]></description>
        <link>https://medium.com/@thelifeproject?source=rss-1a373d363156------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_86H1z4YwXoPMV7qq-w9DA.jpeg</url>
            <title>Stories by The LiFE Project on Medium</title>
            <link>https://medium.com/@thelifeproject?source=rss-1a373d363156------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:22:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thelifeproject/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reinforcement Learning for Autonomous Vehicle Route Optimisation]]></title>
            <link>https://becominghuman.ai/reinforcement-learning-for-autonomous-vehicle-route-optimisation-d97efec9abbd?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/d97efec9abbd</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[autonomous-vehicles]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Fri, 23 Feb 2018 13:43:54 GMT</pubDate>
            <atom:updated>2018-10-18T15:23:06.510Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the fourth in a series of posts surrounding Song Sang Koh’s research for The LiFE Project. Read the first instalment </em><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336"><em>here</em></a><em>, the second instalment </em><a href="https://medium.com/@thelifeproject/using-simulation-of-urban-mobility-for-reinforcement-learning-8b73b894d072"><em>here</em></a><em>, and the third instalment </em><a href="https://becominghuman.ai/reinforcement-learning-sumo-and-complex-urban-traffic-management-82e3b8cdd110"><em>here.</em></a></p><p>This blog will demonstrate a simple simulation that applies a reinforcement learning approach in SUMO simulator by using TraCI. This simulation is to demonstrate how a vehicle learns to arrive at its destination by selecting the right path to avoid traffic congestion. It also shows how the vehicle can optimise its path selection policy based on the reward it receives.</p><p>First, we need to prepare a network file which contains the roadway information, and a route file which contains the vehicle route information for building the simulation environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7PVNIOEvqf-MIsn-." /><figcaption>Figure 1</figcaption></figure><p>Figure 1 shows the roadway network of the simulation which is generated by the .net file and .rou file. The three little green rectangle shapes on the roadway are the trucks which block the road and cause the congestion. The little triangle shape on the left is the simulation vehicle, with its destination on the righthand side of the network.</p><h3>Trending AI Articles:</h3><blockquote><a href="https://becominghuman.ai/top-100-medium-com-c2695ab3270c">1. TOP 100 medium articles related with Artificial Intelligence</a></blockquote><blockquote><a href="https://becominghuman.ai/ms-or-startup-job-which-way-to-go-to-build-a-career-in-deep-learning-2d62a5b10f9e">2. MS or Startup Job — Which way to go to build a career in Deep Learning?</a></blockquote><blockquote><a href="https://becominghuman.ai/digital-processes-inspiring-analog-paintings-a358eb7801a0">3. How I used machine learning as inspiration for physical paintings</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zdu5Dl8tGM5xY-Z1." /><figcaption>Figure 2</figcaption></figure><p>Figure 2 has the same network design as figure 1. However, it shows the ID of the edges that connect each node, which also indicate the path that the vehicle would take. If a vehicle moves from a left to right node or an up to down node, we record that the vehicle takes that path using a positive edge ID. Otherwise, (from right to left or down to up) we record that the vehicle takes that path using a negative edge ID. For instance, if a vehicle moves from node A -&gt; C -&gt; F -&gt; E -&gt; B -&gt; C and back to node A, the taken path would be recorded as [“gneE0”, “gneE1”, “-gneE15”, “-gneE6”, “gneE5”, “gneE0”].</p><p>For the next step, we control the SUMO simulator by using TraCI library, as connecting to the library allows for a reinforcement learning approach. In this case, numpy and pandas libraries would be used. The numpy library is for supporting multi-dimensional arrays and matrices, along with a large set of mathematical functions. However, the pandas library is for data manipulation and analysis. Both libraries are widely used in machine learning.</p><p>Before we start the simulation for learning, we initialised the q-table. A q-table is an updatable table for path selection policy. The value of the table would be updated every time an action is taken in order to optimise the policy. The table will record every state of the environment and the probability of taking each action. The format of the q-table for this case is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*Slrby3RQOL5AnbtryplP9w.png" /><figcaption>Figure 3</figcaption></figure><p>In figure 3, we could set the edge ID as the stage with the score of their three available moves. If the vehicle enters a new edge that is not covered in the q-table, we will record the edge ID as a new record and assign it as moving randomly, then update the score depending on next edge entered by the vehicle.</p><p>We set the learning episode as 30, meaning we will run the simulation 30 times. Each simulation will run until the vehicle on the left finds its way to the destination or is stuck in the congestion. The vehicle starts from edge “gneE0”, aiming to arrive at edge “gneE4” and trying to avoid the congestion edges, which are “gneE2”, “gneE6” and “gneE13”. Therefore, a reward is given when the vehicle arrives at edge “gneE4” and a punishment is given if the vehicle enters “gneE2”, “gneE6” or “gneE13”.</p><p>Reinforcement learning makes action moves that are based on the q-table. After which it updates the q-table regarding the reward or punishment it receives in the next stage by making that action. Therefore, the next time it will act ‘greedier’ by looking for the action that contains a higher score. In this case, we update the q-table score with the algorithm below:</p><blockquote>q_table.[edge_id, action] += learning_ rate * (q_target — q_predict) where discount factor is 0.1, q_target is the reward or punishment that we receive in the next stage, and q_predict is the current score for the particular action (initially 0).</blockquote><p><strong>After running the simulation 30 times, we can see the vehicle is getting smarter, learning to reach its destination by avoiding the congestion path. </strong>Figure 4 shows the total path taken by the vehicle in each simulation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8t4fJ1WgClli8x44." /><figcaption>Figure 4</figcaption></figure><p>In figure 4, from episode 1 to 10 we can see if the vehicle enters the congestion path or takes the longer path to arrive at the destination. From episode 11 to 20, it is getting smarter but still takes the longer path occasionally. <strong>From episode 21 to 30, it consistently takes the shortest path to arrive at the destination without entering the congested path.</strong></p><p>To summarise, we developed a simple program to perform reinforcement learning in the SUMO simulator via TraCI, and <strong>showed that the vehicle is getting more intelligent</strong>, reaching the destination and avoiding the congested path. <strong>This proves that reinforcement learning is applicable in SUMO and it performs well in result</strong>. In the next article, we will introduce Monte Carlo Tree Search, another scientific method that works well with reinforcement learning.</p><p><em>Song Sang Koh’s research focuses on the optimisation of urban transport networks through the use of artificial intelligence. His combination of Reinforcement Learning and a neural network will allow for a better understanding of the transport network, leading to better traffic management. This in turn will minimise the total travel time of every driver within the urban transport network, leading to a decrease in fuel consumption and a reduction in carbon emissions. Koh conducts his research at John Moores University in Liverpool, working in partnership with Red Ninja.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F8f5f8b%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F8f5f8b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href">https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href</a></iframe><figure><a href="https://becominghuman.ai/artificial-intelligence-communities-c305f28e674c"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*2f7OqE2AJK1KSrhkmD9ZMw.png" /></a></figure><figure><a href="https://upscri.be/8f5f8b"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*v-PpfkSWHbvlWWamSVHHWg.png" /></a></figure><figure><a href="https://becominghuman.ai/write-for-us-48270209de63"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*Wt2auqISiEAOZxJ-I7brDQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d97efec9abbd" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/reinforcement-learning-for-autonomous-vehicle-route-optimisation-d97efec9abbd">Reinforcement Learning for Autonomous Vehicle Route Optimisation</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The LiFE Project]]></title>
            <link>https://medium.com/@thelifeproject/the-life-project-105fef831b39?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/105fef831b39</guid>
            <category><![CDATA[transportation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[smart-cities]]></category>
            <category><![CDATA[nhs]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Wed, 07 Feb 2018 12:31:01 GMT</pubDate>
            <atom:updated>2018-02-12T17:02:40.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFEl1x4dNdcCVAAjUsV0OQ.png" /></figure><p>Born out of 5 years of Red Ninja research, supported by the UK government, in collaboration with the NHS, Future Cities Catapult, Transport Systems Catapult, Dynniq and Siemens, the LiFE project seeks to develop an innovative application for an intelligent transport system. It operates in real-time to enable ambulances to reach life-threatening emergency cases quicker by integrating ambulance route finder applications with traffic management systems.</p><blockquote>We believe that cooperation between smart technologies, real-world knowledge and human experience can save people’s lives.</blockquote><p>Using Big Data principles, the LiFE algorithm integrates real-time city congestion data and ambulance location data to clear congestion through traffic light control, getting paramedics to life threatening calls as quickly and smoothly as possible.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGrakPo27udY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGrakPo27udY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGrakPo27udY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/94090630aca36d10f701acb4f780e5fe/href">https://medium.com/media/94090630aca36d10f701acb4f780e5fe/href</a></iframe><p><em>To read about the reinforcement learning research behind LiFE </em><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336"><em>click here</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=105fef831b39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are we the nuisance callers?]]></title>
            <link>https://medium.com/@thelifeproject/are-we-the-nuisance-callers-873f27c99d7?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/873f27c99d7</guid>
            <category><![CDATA[nhs]]></category>
            <category><![CDATA[transportation]]></category>
            <category><![CDATA[emergency-response]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Tue, 23 Jan 2018 12:06:39 GMT</pubDate>
            <atom:updated>2018-01-23T15:39:30.568Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Funded by </em><a href="https://www.gov.uk/government/organisations/innovate-uk"><em>Innovate UK </em></a><em>and led by </em><a href="http://www.redninja.co.uk/"><em>Red Ninja</em></a><em>, the Life First Emergency Traffic Control (LiFE) project brings together the NHS, Future Cities Catapult, Transport Systems Catapult, Dynniq and Siemens to develop innovative solutions for reducing the time it takes emergency vehicles to reach patients in a critical condition.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4pohEYpvzTqqfQSzZY8HQ.png" /></figure><p><strong>Laura Pye, a Writer-Researcher at the </strong><a href="http://futurecities.catapult.org.uk/"><strong>Future Cities Catapult</strong></a><strong>, blogs about the findings from the LiFE project. Her previous post can be found </strong><a href="https://medium.com/@thelifeproject/improving-ambulance-journey-times-76b3299732bc"><strong>here</strong></a><strong>.</strong></p><h3>Dialling 999</h3><p>The service journey of an ambulance begins the moment a 999 call is made. After being transferred to the emergency medical centre, the call is picked up by a call taker, who, using a script, asks a number of questions to quickly establish the address of the emergency, the telephone number of the caller and the reason they are calling. Depending on their response, the script will determine whether an ambulance is needed or not.</p><p>At the same time, details of the incident appear on the screen of a dispatcher, who follows the call and prepares any resources that may be needed. If the incident is considered to be <a href="http://www.nhs.uk/nhsengland/aboutnhsservices/emergencyandurgentcareservices/pages/ambulanceservices.aspx">life threatening</a>, the dispatcher will attempt to allocate two resources, such as a rapid response vehicle (RRV) and an ambulance, to the incident. If an RRV and/or an ambulance are available, the closest vehicles will be assigned to the job. If no vehicles are available, the dispatcher will usually send out a radio message to all paramedics on shift that another job is waiting and notify the call taker that there will likely be delays in reaching the patient.</p><p>Ambulance trusts are measured against the time it takes them to reach patients, and in the case of a life-threatening emergency, they are expected to arrive at the incident within 7 minutes of the call being received. <strong>If an ambulance trust does not reach this 7-minute target 75% of the time (as set by the NHS) they will lose vital funding for the following year. </strong>Therefore, if no vehicles are available when a call comes in, it is likely that the trust will miss this target and patients’ lives will be put at risk.</p><h3>Why we dial 999</h3><p>While headlines regularly remind us of some of the extreme requests that 999 call takers receive, interviews with employees from ambulance services allowed us to observe some of the more common reasons behind why people call the line for non-emergency incidents and contribute to increased demand for ambulances.</p><p>A small percentage of people intentionally abuse the service with hoax calls, but a growing problem is frequent callers: people who repeatedly call and claim that they are suffering from certain symptoms, which they know an ambulance must be sent for — paramedics then arrive on scene only to find that the situation is not as described. <strong>Frequent callers are often vulnerable people with mental health issues, who are either seeking support and do not know which other services are available to them, or they genuinely believe they are suffering from a certain condition.</strong></p><p>This tendency to exaggerate symptoms has been exacerbated by the Internet, with many 999 calls being made by people who have misdiagnosed themselves online and subsequently report that their symptoms are more serious than they are — a condition now termed ‘cybercondria.’</p><p>The Internet has also reinforced our on-demand culture, where we expect services to be available 24/7. This has meant that if someone is feeling generally unwell or has suffered a minor injury out of hours, they will call 999 to access instant healthcare, rather than calling 111 (the NHS non-emergency medical helpline) or waiting until their local GP, pharmacist or walk-in clinic re-opens.</p><blockquote>Although many of us may not be surprised by these reasons, we may not consider ourselves to be contributing to the problem. Yet, what would you do if a colleague fell down a few steps at work and thought they may have broken their ankle? Or if a member of the public started having a seizure in a public space? Would your immediate reaction be to call 111, a taxi… or 999?</blockquote><p>An ambiguous area, where many members of the public often make the wrong call, is when witnessing a serious, but not life-threatening incident. It seems that despite our best intentions, it is still hard for many of us to identify what constitutes a real emergency. This is especially challenging when we are in shock and feeling panicked, as calling 999 feels like the quickest means of reaching a medical professional and alleviating the situation. Examples of this might include minor breaks or burns, flu, vomiting or an epileptic seizure (<em>see </em><a href="http://www.nhs.uk/Livewell/Epilepsy/Pages/Ifyouseeaseizure.aspx"><em>here</em></a><em> for exceptions of when you should call 999 for a seizure</em>). Although it might feel like an emergency in the moment, if it is not life threatening and it’s possible for you to make your own way to a hospital or a walk-in clinic, it’s likely not to be considered an emergency by the ambulance services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pp-L5O8WIAKazy61wNXtIA.png" /></figure><h3>Dialling 999 impacts ambulance journey times</h3><p>Ambulance services exist to respond to life threatening emergencies. When resources are routinely consumed for responding to non-life threatening incidents –whether by phone lines being occupied, time being spent redirecting people to other services, or ambulances being unnecessarily dispatched because of misreported symptoms — the service becomes inefficient. This inefficiency at the start of the ambulance journey has a substantial impact on a trust’s ability to meet strict NHS targets around journey times and deliver a quality service to those most in need.</p><p>North West Ambulance Service runs a successful social media campaign ‘<a href="http://www.maketherightcall.co.uk/">Make the Right Call</a>,’ which aims to educate members of the public of when to use 999 versus other public services. But is there more that we can be doing to shift public behaviour around dialling 999 and give our emergency services a better chance of reaching critical emergencies in a timely manner?</p><blockquote><strong>How could we better educate the public around when to call 999 versus 111 or visiting their GP or taking a taxi to A&amp;E? </strong>Do we need to improve the efficiency of the triage system? Should we be fining nuisance callers? Or should we be providing free first aid courses to equip people with basic medical response skills?</blockquote><p><strong>Future Cities Catapult LIFE Research Team:</strong></p><p>Anja Maerz, Research Lead/Cultural Anthropologist <br>Belen Palacios, Designer/Researcher</p><p><em>To read about the reinforcement learning research behind LiFE, </em><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336"><em>click here</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=873f27c99d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reinforcement Learning, SUMO, and Complex Urban Traffic Management]]></title>
            <link>https://becominghuman.ai/reinforcement-learning-sumo-and-complex-urban-traffic-management-82e3b8cdd110?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/82e3b8cdd110</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[urban-planning]]></category>
            <category><![CDATA[traffic-optimization]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Fri, 19 Jan 2018 15:04:17 GMT</pubDate>
            <atom:updated>2018-02-27T16:17:41.673Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the third in a series of posts surrounding Song Sang Koh’s research for The LiFE Project. Read the first instalment </em><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336"><em>here</em></a><em> and the second instalment </em><a href="https://medium.com/@thelifeproject/using-simulation-of-urban-mobility-for-reinforcement-learning-8b73b894d072"><em>here.</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35JHOzT_thqMXP3iDeGI5A.jpeg" /></figure><p>Simulation of Urban Mobility (or SUMO for short) is a powerful simulator designed to handle a large load network and specified traffic demand, including a vehicle route and car following model. It also provides a lot of useful information such as vehicle speed, model, and position. One of the major features of SUMO is the Traffic Control Interface (or TraCI for short), which is a Python API that treats the SUMO simulation as a server, and allows users to gain information from a traffic simulation, or modify the simulation. TraCI enables an interface to allow third party systems (or libraries) to integrate with the SUMO traffic simulation. <strong>This article aims to explain how a reinforcement learning method could work with SUMO by using TraCl, and how this could benefit urban traffic management.</strong></p><p>Reinforcement learning as a machine learning technique has led to very promising results as a solution for complex systems. A reinforcement learning method is able to gain knowledge or improve the performance by interacting with the environment itself. <strong>The theory of reinforcement learning is inspired by behavioural psychology</strong>, it gains reward after taking certain actions under a policy in an environment. The goal of reinforcement learning is to learn an optimal policy based on the reward obtained by repeating the interaction with the environment. This consistently optimises the policy and eventually creates a solution.</p><h3>Trending AI Articles:</h3><blockquote><a href="https://becominghuman.ai/making-a-simple-neural-network-2ea1de81ec20">1. Making a Simple Neural Network</a></blockquote><blockquote><a href="https://becominghuman.ai/keras-cheat-sheet-neural-networks-in-python-738c0d170c2e">2. Keras Cheat Sheet: Neural Networks in Python</a></blockquote><blockquote><a href="https://becominghuman.ai/a-noobs-guide-to-implementing-rnn-lstm-using-tensorflow-1907a5bbb1fa">3. A noob’s guide to implementing RNN-LSTM using Tensorflow</a></blockquote><p><strong>A good example of the application of reinforcement learning in a real world situation is in urban traffic management. </strong>As the number of vehicles within our urban transport network increases, designing a smart traffic management system to perform intelligent routing for vehicles is in high demand. However, the complexity of the urban transportation network causes a lot of challenges in traffic management, such as high-speed changes in traffic systems and the wide distribution of vehicles on the roadway. To deal with these challenges, a reinforcement learning approach would be useful as it has already successfully proven that it is able to handle complex optimisation problems.</p><p>As we mentioned in the beginning of this article, the SUMO simulator can enable third party systems to approach reinforcement learning. In this case, TraCI will play the role of the “convertor” between SUMO and the reinforcement learning approach to establish this interaction. TraCI is able to retrieve every piece of information in the simulation, including the vehicle and network. This provides useful features for the reinforcement learning agent to justify the states of the environment. <strong>Based on the observation of the states, we could set and assign the rewards accordingly and let reinforcement learning optimise the policy based on the reward.</strong> After that, the reinforcement learning agent will assign a new action to SUMO through TraCI and continuously observe the environmental state.</p><p>TraCI could be accessed using multiple programming languages, with the most common language being Python. The package tools/TraCl in the SUMO simulator allows users to interact with SUMO using Python. This is advantageous as Python is already a well established script language for machine learning, providing useful libraries (such as Numpy and Pandas) whilst implementing a machine learning algorithm.</p><p>The interaction between the reinforcement learning agent and the environment via TraCI would be continued until it reaches a terminal state, or the agent meets a termination condition. Essentially, the reinforcement learning techniques apply the Markov decision processes (MDPs). A MDP is defined as a five-tuple &lt; S, A, T, R, γ &gt;, where S is the collection of states, A is the set of actions which could change the status, T is the transition function, which is the probability of the state change under the certain action, R is the reward function, and γ is known as the discount factor, which models the importance of the future and immediate rewards.</p><p>Reinforcement learning optimises its policy by repeating the following step: at each time step t, the reinforcement learning agent perceives the state from state collection S and, based on its observation, selects an action and executes it to lead the state of the environment transition to the next state. Then, the agent receives immediate reward R, observes the new state, and updates the policy with the equation above including the discounted reward γ.</p><p>In order to approach reinforcement learning in the SUMO simulator, we need corresponding elements for a Markov decision process in SUMO. The SUMO simulator uses default routing method “DuaRouter” to generate route files for every vehicle in the simulation. “DuaRouter” performs dynamic user assignment (DUA) based on shortest path computation. The reinforcement learning agent will replace the default routing method with the optimal policy that it has learnt.</p><p>In conclusion, reinforcement learning would be an ideal solution for a complex urban traffic management problem, and the SUMO simulator provides a good interface (TraCI) for applying reinforcement learning to run simulation and learn the optimal policy to reroute the vehicles. In the <a href="https://medium.com/@thelifeproject/reinforcement-learning-for-autonomous-vehicle-route-optimisation-d97efec9abbd">next article</a>, I will demonstrate how to apply a reinforcement learning method to reroute a vehicle in SUMO by using TraCI.</p><p><em>Song Sang Koh’s research focuses on the optimisation of urban transport networks through the use of artificial intelligence. His combination of Reinforcement Learning and a neural network will allow for a better understanding of the transport network, leading to better traffic management. This in turn will minimise the total travel time of every driver within the urban transport network, leading to a decrease in fuel consumption and a reduction in carbon emissions. Koh conducts his research at John Moores University in Liverpool, working in partnership with Red Ninja Studios.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F8f5f8b%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F8f5f8b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href">https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href</a></iframe><figure><a href="https://becominghuman.ai/artificial-intelligence-communities-c305f28e674c"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*2f7OqE2AJK1KSrhkmD9ZMw.png" /></a></figure><figure><a href="https://upscri.be/8f5f8b"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*v-PpfkSWHbvlWWamSVHHWg.png" /></a></figure><figure><a href="https://becominghuman.ai/write-for-us-48270209de63"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*Wt2auqISiEAOZxJ-I7brDQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82e3b8cdd110" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/reinforcement-learning-sumo-and-complex-urban-traffic-management-82e3b8cdd110">Reinforcement Learning, SUMO, and Complex Urban Traffic Management</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Ambulance Journey Times]]></title>
            <link>https://medium.com/@thelifeproject/improving-ambulance-journey-times-76b3299732bc?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/76b3299732bc</guid>
            <category><![CDATA[transportation]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Tue, 16 Jan 2018 12:31:01 GMT</pubDate>
            <atom:updated>2018-01-16T12:31:01.822Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Funded by </em><a href="https://www.gov.uk/government/organisations/innovate-uk"><em>Innovate UK </em></a><em>and led by </em><a href="http://www.redninja.co.uk/"><em>Red Ninja</em></a><em>, the Life First Emergency Traffic Control (LiFE) project brings together the NHS, Future Cities Catapult, Transport Systems Catapult, Dynniq and Siemens to develop innovative solutions for reducing the time it takes emergency vehicles to reach patients in a critical condition.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ya-c8rHwMqdRNNNtvWkdgA.jpeg" /></figure><p><strong>Laura Pye, a Writer-Researcher at the </strong><a href="http://futurecities.catapult.org.uk/"><strong>Future Cities Catapult</strong></a><strong>, discusses the background research for the LIFE project.</strong></p><h3>The challenge</h3><p>Ambulance services across the UK are required to meet 75% of life-threatening cases within 7 minutes to guarantee NHS funding and avoid fines. Many struggle to meet this target and aging demographics, a growing population and continual public health cuts put additional strain on resources.</p><h3>Our research</h3><p>To understand the range of issues impacting emergency response times, the project’s research phase focused on mapping the service journey of an ambulance — from the initial emergency call to the patient’s treatment.</p><p>Taking a user-centred and design-led approach, this exercise was informed through urban observation and interviews with ambulance staff.</p><p>Conversations with call takers, dispatchers, paramedics and higher management revealed the human perspective of the ambulance journey, whilst urban observation — in emergency vehicles, at junctions near hospitals and through ambulance CCTV ­– provided the wider context of these insights.</p><h3>What we learned…</h3><p>One of the biggest challenges ambulance crews face in meeting the 7-minute target is the unpredictable behaviour of other road users.</p><p>The UK Highway Code currently advises drivers to “pull to the side of the road and stop” if an ambulance with flashing lights or sirens is approaching. However, such ambiguous guidelines can be confusing for members of the public, who often panic or inadvertently obstruct one another while attempting to make room for emergency vehicles. To compensate for this uncertainty and navigate through traffic safely, front-line crews must remain especially alert to how other road users could behave, adding to the pressure they are already under and further contributing to delays.</p><p>As emergency response times are routinely affected by this confusion on the roads, is there a need for the UK government to provide clearer guidelines on how to behave around ambulances? Or could more effective solutions be found in adapting existing signalling infrastructure?</p><p>Our research identified a number of additional areas where innovative solutions could reduce ambulance journey times, and we will be exploring these in more detail in future posts.</p><p><em>To read about the reinforcement learning research behind LiFE </em><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336"><em>click here</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76b3299732bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Simulation of Urban Mobility for Reinforcement Learning]]></title>
            <link>https://medium.com/@thelifeproject/using-simulation-of-urban-mobility-for-reinforcement-learning-8b73b894d072?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b73b894d072</guid>
            <category><![CDATA[smart-cities]]></category>
            <category><![CDATA[transportation]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[simulation]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Fri, 22 Dec 2017 16:01:01 GMT</pubDate>
            <atom:updated>2018-01-03T14:39:36.330Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the second in a series of posts surrounding Song Sang Koh’s research for The LiFE Project, the first instalment can be found</em><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336"><em> here</em></a><em>.</em></p><p>Simulation of Urban Mobility (or SUMO for short) is an open source, microscopic, multimodal traffic simulator. It allows the user to simulate how a specified traffic demand performs on a given road network. SUMO is an excellent choice for urban traffic simulation as it is able to perform an optimised traffic distribution method based on vehicle type or driver behaviour. It is also able to update the vehicle’s route if there is any congestion or if an accident occurs, finding the best routing option to enhance urban sustainability and resilience. It also supports Traffic Control Interface (TraCI for short), which is a Python API that treats the SUMO simulation as a server and allows the user to gather data from a traffic simulation or modify the simulation. This makes TraCI a perfect tool for performing Reinforcement Learning in the SUMO simulator.</p><p>The SUMO simulator does not support a traditional map format. It only supports a NETMAP format map, represented as an xml file. To use a map with SUMO we need to first convert it to a NETMAP format using a SUMO NETCONVERT tool. The most common approach is to use OpenStreetMap as the original map file and convert this to NETMAP format. OpenStreetMap is very detailed, easy to import and modify and can be downloaded as an .osm file. In most scenarios, users can extract the required area from a larger map which is supplied initially with the program. Every latitude and longitude in open street map is represented as a node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IDWaI8dmuNkrga03." /><figcaption>Figure 1.1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1GKoJvZ9_IIxSRvf." /><figcaption>Figure 1.2</figcaption></figure><blockquote>Figures 1.1 and 1.2 show how NETCONVERT in SUMO converts the highlighted map in Liverpool City Centre to a SUMO readable version.</blockquote><p>The microscopic nature of SUMO could also be beneficial. Each vehicle in the simulation is modelled explicitly, it has its own route and moves individually through the network which means personal driving behaviour or vehicle type could be specifically customised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*W81ad6Xua5XPaRro." /><figcaption>Figure 2</figcaption></figure><blockquote>Figure 2 shows the properties of single vehicle during SUMO simulation.</blockquote><p>From there we can see it provides very detailed information for each vehicle, including waiting time, CO2 and noise generate amount, this makes SUMO a suitable tool for this project.</p><p>TraCI is increasingly used by researchers to perform Reinforcement Learning with the SUMO simulator. There are several reasons for this. Firstly, TraCI provides the user with access to a running traffic simulation. Therefore, it is easy to retrieve the data of the simulated objects (such as vehicle, road, route) and to manipulate their behaviour online. Secondly, TraCI allows multiple programming languages to control its interface, such as Python, Matlab, and C++, which allows the user to easily import a Reinforcement Learning library and perform Reinforcement Learning functions with SUMO. The compatibility between the environment (SUMO) and training (Reinforcement Learning) is fabulous and the performance is very promising. Lastly, the output of the SUMO simulation provides a different set of data for Reinforcement Learning training and testing purposes, such as vehicle type probe (position of vehicles over time for a certain vehicle type), raw vehicle position dump (all vehicle position and speed over time), emission output (emission values of all vehicles for every simulation step). With this data, users can train the machine to performer faster and more accurately, determining how to improve the traffic management in a transport network.</p><p>By using TraCI, we can easily simulate congestion or perform rerouting. A congestion refers to anything that stops the traffic flow. Examples in the real world could be a collision, road works, bad weather conditions causing very slow speeds, or just sheer volume of traffic. There are a few options in SUMO to simulate such events. Stopping a car for a fixed period of time, by defining a point along its route when it should halt and for how long. Manipulating traffic lights so that one stays red for a longer period of time than the regular phase duration, or setting the speed limit on a lane so low that the traffic is practically static.</p><p>A rerouting however refers to a change in the path that a vehicle initially takes under certain conditions. Traditionally, vehicle routing uses the statically defined routing mechanism provided by SUMO. This static method is deployed by adding a re-routing file to SUMO’s configuration. All vehicles that need to be re-routed have to be listed in this file prior to simulation runtime. This method was tested using very small scale scenarios in which it worked well. However, since all the vehicles had to be defined prior to runtime, it was not feasible to use this approach for large scale testing. This static method could be made dynamic by writing a script and this is where TraCI comes in.</p><p>Conclusively, SUMO is a free, user friendly and useful simulator for urban traffic simulation. It is also a very promising environment to cooperate with Reinforcement Learning as TraCI establishes a connection between two of them. In our next article, we will demonstrate how to combine the manipulation of the traffic and Reinforcement Learning approach together with TraCI.</p><p><em>Song Sang Koh’s research focuses on the optimisation of urban transport networks through the use of artificial intelligence. His combination of Reinforcement Learning and a neural network will allow for a better understanding of the transport network, leading to better traffic management. This in turn will minimise the total travel time of every driver within the urban transport network, leading to a decrease in fuel consumption and a reduction in carbon emissions. Koh conducts his research at John Moores University in Liverpool, working in partnership with Red Ninja Studios.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b73b894d072" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimising Traffic Using Reinforcement Learning]]></title>
            <link>https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336?source=rss-1a373d363156------2</link>
            <guid isPermaLink="false">https://medium.com/p/898944885336</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[smart-cities]]></category>
            <dc:creator><![CDATA[The LiFE Project]]></dc:creator>
            <pubDate>Fri, 15 Dec 2017 16:46:43 GMT</pubDate>
            <atom:updated>2017-12-18T19:29:35.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*dZNGHSJLm-LwML9JDFmb3w.png" /></figure><p><em>This is the first in a series of posts surrounding Song Sang Koh’s research for The LiFE Project.</em></p><p>Over the past decade, sustainability and resilience have become a major concern in urban development. In 2014, 54% of the world’s population lived in urban areas, this is projected to reach 66% by 2050. As urban populations continue to grow, cities around the world will need to transform their infrastructure to meet their daily economic and environmental needs.</p><p>Poorly managed transport networks can cause severe damage to the environment, contributing to air pollution, noise, and dust. Optimising these networks can lead to a decrease in fossil fuel consumption as journey times are shortened, and better air quality for citizens. Therefore, <strong>resilient transport network development plays an important role in the urbanisation and sustainability of the cities of tomorrow.</strong></p><p>Fundamentally, the root of the urban traffic distribution problem is in multi-criteria decision making. The Reinforcement Learning framework, in which an agent learns from a model with optimal policy based on its environment, could provide an advantageous method for algorithmic development and network improvement.</p><p>Each action that the agent would take will lead to a reward or punishment with the new observation of the state. Through its learning progress, the agent will learn a distributed routing policy that could maximise the capacity of an urban transport network. This process could be treated as a <strong>Markov Decision Process</strong> (MDP), which ultimately aims for the best solution by optimising specific policy step by step.</p><p>A Markov Decision Process contains 5 key elements as shown below:</p><blockquote>S: The collection of the states which could reflect the situation with specific properties.</blockquote><blockquote>A: A set of actions which could change the status.</blockquote><blockquote>P(SA): The probability of the state S change under action A.</blockquote><blockquote>γ: The discount factor.</blockquote><blockquote>R(SA): The expected reward that state S change under action A.</blockquote><p>Considering the urban transport network is a rather rapid and complex system (the decision tree is hard to evaluate, and multiple decisions need to be made at the same time), a model-free Reinforcement Learning method would be applied. In this case, we use Q-learning with function approximation to learn the best vehicle distribution method for sustainable and resilient urban transportation.</p><p><strong>A Q-learning algorithm is a model free Reinforcement Learning solution</strong> able to find an action selection policy for MDP. Q-learning algorithms work with a general MDP as described below. Under a MDP with fixed transition probabilities and rewards, the Bellman equation (Equation 1) gives the optimal policy:</p><blockquote><em>Q(s, a) = R(s’) + γ max Q(s’, a’) — — — — </em>(1)</blockquote><p>Where Q(s,a) is the immediate reward R(s’) for making an action plus best utility Q for the resulting state Q(s’, a’). For each state and action pair Q(s, a), we initialise its value to zero then observe the current state ‘s’ by repeating the following steps:</p><ul><li>Pick an action and execute it</li><li>Receive immediate reward R</li><li>Observe new state s’</li><li>Update Q(s, a) with the equation above with the discounted reward <em>γ</em>.</li><li>Set s = s’</li></ul><p>The Bellman equation plays an important role in Reinforcement Learning as it is widely applied during policy assessment. If the Q function can be correctly estimated, a better policy <em>π(s) </em>will become the optimal policy and lead the actions according to Equation 2.</p><blockquote><em>π(s) = arg max Q(s, a) — — — — </em>(2)</blockquote><p>With the Q-learning approach, a few key values can be extracted, including the value for the state features, action, reward, and the next state features when it works together in simulation.</p><p>The main objective function is to minimise the total travel time of every driver in an urban transportation network. Therefore, it could lead to <strong>reduced carbon dioxide emissions, and decreased fossil fuel consumption.</strong> The reward of this approach is inherited from the objective function, which is to minimise the total travel time of the group of vehicles in the urban transportation network. The action, however, is rather simple; it only contains path selection.</p><p>With a predetermined level of average wait times, the agent will choose which car to assign a designated path for group route optimisation. The state features are the properties that show the situation of the traffic. It has to reflect the busy level of the urban transportation network. In order to achieve this, a neural network might be applied to “read” the situation of the transportation network.</p><p><strong>By combining reinforcement learning and a neural network, we could have the ability to determine the situation of the transport network and manage the traffic accordingly. </strong>Reinforcement Learning is a promising solution to this problem as it allows multiple opportunities to present itself and deliver the optimal route . Using several actions (in this case routing instructions) changes the state of the transport network, from which we can determine whether to reward or punish the algorithm with correct properties. This is good for dynamic control and is predominantly designed for the adaption of new conditions.</p><p><em>Song Sang Koh’s research focuses on the optimisation of urban transport networks through the use of artificial intelligence. His combination of reinforcement learning and a neural network will allow for a better understanding of the transport network, leading to better traffic management. This in turn will minimise the total travel time of every driver within the urban transport network, leading to a decrease in fuel consumption and a reduction in carbon emissions. Koh conducts his research at John Moores University in Liverpool, working in partnership with Red Ninja Studios.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F8f5f8b%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F8f5f8b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href">https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href</a></iframe><figure><a href="https://becominghuman.ai/artificial-intelligence-communities-c305f28e674c"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*2f7OqE2AJK1KSrhkmD9ZMw.png" /></a></figure><figure><a href="https://upscri.be/8f5f8b"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*v-PpfkSWHbvlWWamSVHHWg.png" /></a></figure><figure><a href="https://becominghuman.ai/write-for-us-48270209de63"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*Wt2auqISiEAOZxJ-I7brDQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=898944885336" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/optimising-traffic-using-reinforcement-learning-898944885336">Optimising Traffic Using Reinforcement Learning</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>