🍪 Our Cookies

This site uses cookies, including from our partners, to give you the best browsing experience, to create content personalised for you and to analyse website use.

Blog

GenAI to Optimise Train Network Operations

Understanding passenger behaviour and optimising operations are essential for providing superior service and boosting profitability. GenAI offers powerful tools for simulating and analysing user journeys, revealing invaluable insights that can drive effective marketing strategies and efficient train network operations. This blog explores how GenAI's capabilities can transform the way we manage train networks, with a focus on the geographical distribution of users and purchasing behaviours.

Andrea Rosales, Lead Data Scientist

With a PhD in Computer Science, Andrea Rosales specialises in domain adaptation, transfer learning, continual learning, and generative AI. Andrea is passionate about developing innovative data science models that deliver impactful solutions. She has a proven track record of creating novel deep-learning models to address real-world problems in both industry and academia, and she is recognised as a Global UK Talent.

Andrea Rosales

Lead Data Scientist

How GenAI Simulates User Journeys

GenAI utilises advanced machine learning algorithms to simulate user journeys and analyse large datasets efficiently. Here's how it works:

1. Data Collection: first we aggregate data from various sources, including ticket sales, travel history, and user demographics.

2. Journey Simulation: By simulating potential journeys based on collected data, GenAI can predict future travel behaviours and identify trends.

3. Pattern Recognition: The AI system recognises patterns in the data, such as peak travel times, common routes, and frequent destinations.

4. Predictive Analysis: GenAI's predictive capabilities allow for forecasting demand, enabling train operators to optimise schedules, manage capacity, and enhance overall service.

Use Case

Reinforcement Learning (RL) is a subset of machine learning where an agent learns to make decisions by taking actions in an environment to maximise a cumulative reward. RL plays a pivotal role in strengthening the capabilities of GenAI by providing a robust framework for learning through interaction and optimising decisions over time.

In the context of simulating user journeys, RL is a powerful tool to model and predict passenger behaviours in a train network, enabling operators to optimise service and marketing strategies effectively.

To simulate user journeys using RL, we need to define the following components:

1. Environment: The train network, including stations, routes, and schedules.

2. State: The current context of the user, including location, time, ticket type, and travel history.

3. Actions: Possible choices the user can make, such as selecting a train route, buying a specific ticket type, or travelling at a particular time.

4. Reward: Feedback based on the outcome of the action, such as reduced travel time, cost savings, or increased comfort.

Example Scenario: Commuter Journey Optimisation

Let's consider an example where we use RL to simulate and optimise the journey of a commuter, who travels from a suburban area to the city centre.

1. Define the Environment:

  • The train network with nodes representing stations and edges representing routes.
  • Schedules and capacities of trains on different routes.

2. Set the Initial State:

  • User's current location (suburban station).
  • Time of day (e.g., 7:00 AM).
  • User's historical travel data and ticket preferences.

3. Action Space:

  • Choice of train routes.
  • Decision to buy a single ticket, return ticket, or season pass.
  • Time of travel (current time or delayed departure).

4. Reward Function:

  • Positive rewards for actions leading to reduced travel time, lower cost, or increased convenience.
  • Negative rewards for delays, higher costs, or overcrowding.

Simulation Process

1. Initialisation:

  • The user is at the suburban station at 7:00 AM, needing to reach the city centre by 8:00 AM.

2. Agent Decision:

  • The RL agent evaluates possible actions (e.g., taking the express train, choosing a less crowded but slower train etc.).

3. Action Execution:

  • The user selects a train route based on the RL agent's policy.

4. Reward Feedback:

  • User's travel experience is evaluated: Did he arrive on time? Was the train crowded? How much did the ticket cost?
  • The reward is calculated based on these factors.

5. Policy Update:

  • The RL agent updates its policy to favour actions that resulted in higher rewards, learning to make better decisions over time.

Benefits of Using RL for Journey Simulation

  • RL can adapt to changing conditions in real-time, such as delays or changes in passenger volume.
  • By learning individual user preferences, RL can provide personalised journey recommendations that enhance user satisfaction.
  • RL can help in optimising train schedules, route planning, and resource allocation based on predicted user behaviour.
  • Insights gained from RL can inform targeted marketing campaigns, such as promotions for specific ticket types or travel times.

Applying GenAI to User Locations

Geospatial data analysis is crucial for train operators to understand where their users live and travel. GenAI can be effectively applied to map user locations, providing insights that drive operational efficiency and targeted marketing strategies.

By analysing where users live, operators can predict travel patterns and peak times, enabling better resource allocation and scheduling. The maps below provide a visual representation of the busiest train stations on a Monday morning and a Friday morning. The maps use geohashing, a method for encoding geographic coordinates into a short string of letters and digits, to highlight the stations with the highest demand across different regions.

Monday

Monday

Friday

Friday

Identifying areas with high demand helps train operators in planning new routes, increasing train frequency, and improving station facilities in high-demand areas.

The second map illustrates the types of tickets purchased by users in different regions. This map categorises ticket purchases, such as 5-day travel tickets, flexible tickets, anytime return tickets, and young traveller passes, providing a granular view of consumer preferences.

Ticket type distribution

Ticket type distribution

By visualising ticket type distribution, train operators can identify which products are most popular in specific regions. For example, areas with a high concentration of 5-day travel tickets holders might indicate a commuter-heavy population. Also, this analysis provides insights for targeted marketing campaigns. Promotions can be tailored to encourage the purchase of less popular ticket types or to provide special offers for frequent travellers.

Applications in Marketing Strategies

The insights derived from GenAI analysis can significantly enhance marketing efforts:

1. Personalised Offers: Tailor promotions and discounts based on user preferences and travel habits. For instance, offer discounts on season passes to frequent single-ticket purchasers.

2. Regional Campaigns: Develop marketing campaigns that resonate with specific regions, such as promoting weekend getaways in areas with a high number of weekend travellers.

3. Customer Engagement: Use insights to engage with customers through personalised communication, improving customer loyalty and satisfaction.

Enhancing Train Network Operations

Operational efficiency can be greatly improved by leveraging GenAI insights:

1. Resource Allocation: Allocate resources such as trains and staff based on predicted demand, ensuring optimal service during peak times.

2. Route Planning: Introduce new routes or modify existing ones based on user density and travel patterns, making the network more responsive to passenger needs.

3. Capacity Management: Manage train capacity effectively by understanding and anticipating passenger volume, reducing overcrowding and enhancing the travel experience.

Conclusion

GenAI's ability to simulate and analyse user journeys offers a transformative approach to managing train networks and creating marketing strategies. By identifying user's behaviour, train operators can make data-driven decisions that enhance service quality, operational efficiency, and customer satisfaction. GenAI is not just about keeping up with technology; it's about revolutionising the way we understand and adjust to the needs of train users.

Refrences

  • Data source: http://crowding.data.tfl.gov.uk/
,