Closed PRIYANSHU2026 closed 2 months ago
Thanks for opening a PR. I would like to see the network and road data actually being used, instead of cars just moving randomly.
Als try to show which problems or cases your model could actually solve. Agent-based models are meant to give some insight in behavior or system dynamics.
PS: I know there’s a lot of generative AI behind this PR. That’s okay, but you’re still responsible for the final product, so check it well.
here’s a lot of generative AI behind this PR. That’s okay, but you’re still responsible for the final product, so check it well.
sure sir definitely
done sir see
I know what ABM is, that was not the question :).
Sorry, but I’m going to stop replying if you don’t carefully read, comprehend and consider the feedback I’m giving.
sorry sir actually I was attending my academic classes that's why I gave that message my apologize
For example:- it can help them figure out the best timing for traffic lights to keep traffic flowing smoothly. They can also use it to see how new roads or public transport routes might affect traffic before building them. It can even help plan the fastest routes for emergency vehicles during emergencies.
Overall, this project can help cities plan better for traffic, make roads safer, and reduce congestion for everyone.
I know I am taking help of Generative ai for report writing but I am the responsible for my algorithm before that I did two research projects in dental field in that one of that software visualization by using pydicom with mesh mode and one more is by using CNN +vgg16 pre train model to find bone loss prediction.
Good. For this example to be useful, it need to actually simulate agents interacting with each other (so with other cars) and/or the network (roads). Could you try to integrate these two points in the notebook of this PR?
- I would like to see the network and road data actually being used, instead of cars just moving randomly.
- Also try to show which problems or cases your model could actually solve. Agent-based models are meant to give some insight in behavior or system dynamics.
Make sure the notebook is logically structured and reads tutorial-like.
Yes sir
sir I have represented 2 car in one frame
@EwoutH sir
Good. For this example to be useful, it need to actually simulate agents interacting with each other (so with other cars) and/or the network (roads). Could you try to integrate these two points in the notebook of this PR?
- I would like to see the network and road data actually being used, instead of cars just moving randomly.
- Also try to show which problems or cases your model could actually solve. Agent-based models are meant to give some insight in behavior or system dynamics.
Make sure the notebook is logically structured and reads tutorial-like.
All set for merging! Thank you 🙏 for believing in me and understanding my idea, and for assigning this project to me. I've learned a lot about this organization and its work.
This is moving into the right direction. But I would recommend you to do one step back:
Goals
- Create a realistic road network using Mesa-Geo.
- Define the behavior of two cars and how they interact with each other.
- Simulate the movement of the cars and visualize their interaction.
These are not goals, these are just things that you do, on a bit higher level.
A goal would be:
or something like that.
Then, you have to simplify the problem to the bare essentials.
Then, you have to select a right tools. That can be Mesa or not.
So start there, and really think deeply about it. What exactly is my problem? How can I make this problem as simple as possible? And what can ABM add to that to provide insights.
Take at least a day to really think this though. Iterate a bit on it. See if there are some components in Mesa that are useful for it. Then write up your goal and a high-level approach, without any code.
If you're interested in picking up this effort, I will hear back from you tomorrow :)
@EwoutH sure sir
**Visualize Traffic Flow:** We can represent how traffic flows through different parts of a city by simulating vehicle movements on a road network.
Analyze Traffic Management Strategies: The simulation helps in testing and evaluating various traffic management strategies, such as signal timing adjustments or changes in road layouts, to improve overall traffic efficiency.
Evaluate Emergency Vehicle Navigation: Planning routes that minimize delays is facilitated by this code since it simulates the navigation of emergency vehicles through dense traffic.
Study Pedestrian-Vehicle Interactions: Potential safety issues can be identified by simulating interactions between pedestrians and vehicles at busy intersections and planning improvements.
Assess Autonomous Vehicles: This simulation allows us to evaluate the impact of autonomous vehicles on traffic flow and safety thus facilitating future transportation scenarios’ planning.
Optimize Parking Spaces: Simulate parking space usage and help in optimizing allocation and use of parking spaces in urban areas.
Understand Construction Impacts: By modeling road construction scenarios, we can predict their impact on traffic patterns and plan mitigation strategies.
In summary, our code provides a powerful tool for urban planners, researchers, and policymakers to simulate, visualize, and analyze various traffic-related scenarios, leading to better decision-making and improved traffic management.
Example: India🇮🇳 road codition
@EwoutH sir ??
That looks like my ideas recycled though AI.
Stop letting AI take the wheel. AI can be a tool, but you need to make the decisions for now.
Pick one single topic, that really excites you, and then try to see if you can use Mesa in an interesting way to simulate that.
In the mean time, read a bit up about ABM and what it's strengths and weaknesses are (and thus for which problems its suitable).
Thank you sir @EwoutH for guiding me and enlightening me on my linguistic deficiencies fortunately, I am very lucky to have you at my top end sir I am poor in expression while gaining the skills kindly forgive me and keep guiding as ever .
here are the new expression
1)To resolve traffic congestion and making smooth flow of traffic at critical congested Urban areas(points). 2)To solve traffic related issue by traffic prediction in respect to time , days , months etc . 3)Providing Assistance to moving traffic by exploring Swift parking facilities by predictive model. 4)medical emergencies could be also taken care of with model.
No worries. For one example, start with one simple goal (so not four).
@EwoutH ok sir shall I start coding
@EwoutH sir I am working on the 1st Goal till yet I got these results
@EwoutH sir this is a map view representation
small demonstration
Looks interesting! Feel free to open another PR.
@EwoutH Sir if your permission can I update this same pr and add that thing because sir I did in same note book .
@EwoutH sir ??
That's fine. Make sure that it doesn't get too complicated.
@EwoutH done sir please look into it and Thank you for guiding me.
@EwoutH sir it correct
Thanks for your work. Please have a little patience though, we're all volunteers with other occupations.
The next step is adding short explanations the the most important steps. Focus on why you're doing things, and what the reader should learn or take away from it.
I see a lot of plots and figures. For each, consider how much value they add. If not a lot, remove them. If they do add value, explain them.
@EwoutH sir in notebook I have to explanation
@EwoutH sir I have updated this read me and any thing else required to change or remove
I mean in the notebook itself. At the beginning and the end of each chapter.
@EwoutH Sure sir
@EwoutH done sir please look into it is that correct ?
Good work. We're making progress, but still a lot to do!
I really appreciate the effort, and it's moving in a great direction, but there still is quite some work to do. Keep it up and it will be great!
@EwoutH sir I have updated the notebook again hope so it is correct and understandable for other user and thank you so much for guiding me and supporting me at every step .
@EwoutH sir ??
I have asked @wang-boyu to take a look at it, since he’s our lead om Mesa-Geo. Could take a bit of time.
@EwoutH sure sir
@EwoutH @wang-boyu sir sorry for disturbing is any update regarding of my PR
I'm going to be a bit blunt.
Currently, my main issue with this new example is that it's so undirected. It tries to do a lot of vaguely defined things, and it does them mediocre.
In modelling, the trick is always to make models smaller and less complicated Occam's razor, and be more focussed on whatever remains.
I think that also needs to happen with this example. It's now so much information and code just for the sake of it. Cut it down relentless.
To do that, you need to be really clear and specific what the purpose of this notebook is. What are you demonstrating, or what are you researching? This needs to be abundantly clear and specific.
I see two forms of examples in this repo:
Currently the notebook does neither, in my opinion. I see a (mediocre) solution without a clear problem.
If you want to continue this process, it needs to be in the form of three stages:
I really appreciate the time and effort you put in. I hope this is constructive.
@EwoutH sir,
I have been working diligently to use Mesa-Geo for my project, which features road planning. My aim is to be a part of this organization for GSoC 2025. I am trying my level best to make this happen. I have attempted to represent this notebook as a tutorial, but I struggle with expressing myself clearly.
If possible, could you help me merge and correct the sentences to improve the presentation?
Thank you for your understanding and assistance.
I appreciate your ambition. However, for GSoC you will have to learn how to communicate with maintainers and get support for your ideas.
I don't this this PR is adding value to Mesa-examples, and while you may perfectly fine use it for yourself, as a maintainer, part of my job is to guard the quality of our codebase.
So it isn't a question of just rewriting a few sentences, it's thinking about what ideas/concepts do I want to convey/demonstrate.
@EwoutH sir
Problem Definition: High vehicle density and complex road networks are two major reasons why traffic congestion is a big issue in Indian cities, especially in densely populated urban areas. This results in millions of travelers suffering from increased duration of travel, fuel combustion as well as pollution. Objective: By pursuing these future developments, this project has the potential to deliver more effective and adaptable solutions for managing traffic congestion in Indian cities. This, in turn, can lead to smoother commutes, reduced pollution, and an overall better quality of life for millions of urban residents.
these are the major thing which I want to represent and convey you.
It's a very clear problem. It's also a very big, multi-facetted problem. You can model it fully, so you have to make choices what to include and what not. Again, Ockham's razor.
So I fully agree with the motivation behind it, but to make it useful for Mesa-examples, you need to pick a very small part of it. See the points I made earlier.
(believe me, I'm doing my thesis on a similar topic)
@EwoutH sir,
If you don't mind, may I join you? I am eager to learn many things about the Mesa organization and would be grateful if you could merge my project. This would motivate me to learn new libraries and implement them.
My college professor advised me to contribute to the organization to increase my chances of selection for GSoC. Unfortunately, I was not selected for GSoC 2024. They mentioned that contributing to the organization beforehand would improve my chances.
Please, sir, help and guide me. Your assistance and consultation would mean a lot to me.
@EwoutH sir, I can create a basic UI for simulating traffic congestion where we can input coordinates and the number of vehicles. The previous notebook I shared might look a bit mediocre because I did everything step by step. However, I can develop a more comprehensive UI using PyQt widgets for simulation and add many features for future work.
Before going directly to complex solutions, you might be benefitted by increasing your foundational knowledge of ABM and complex systems. I can highly recommend these online lectures: https://ocw.tudelft.nl/courses/agent-based-modeling-of-complex-adaptive-systems-basic/
@EwoutH Sir,
I wanted to share that I'm making good progress on our agent-based simulation model. I've been at it for about 5 hours, focusing on the basic UI, and have taken some references from the TU Delft OCW course on Agent-Based Modeling of Complex Adaptive Systems.
Thank you so much sir for your continuous support and mentorship.
hope so this will pay off get into this orgnization for my GSoC
Join the next developer call, July 2nd (see the discussions). I will try to be there, and we can discuss things further.
@EwoutH sir that mean can we join as an open source in gsoc this year again ???
@wang-boyu @EwoutH this my prototype .
GIS-Based Traffic Simulation Using Mesa-Geo
Project Title:
GIS-Based Traffic Simulation Using Mesa-Geo
Abstract:
The proposed project aims to develop a GIS-based traffic simulation platform utilizing the Mesa-Geo library. The platform will model and visualize vehicle movements on a road network, providing insights into traffic patterns and enabling the analysis of traffic management strategies. This simulation tool will be valuable for urban planners, researchers, and policymakers in understanding and optimizing traffic flow in cities.
Motivation:
Traffic congestion is a significant issue in urban areas, leading to increased travel time, fuel consumption, and pollution. Understanding and managing traffic flow is crucial for improving urban mobility and reducing the environmental impact. By leveraging agent-based modeling and GIS, this project will create a realistic traffic simulation environment that can help in analyzing various traffic scenarios and strategies.
Goals:
Develop a GIS-based traffic simulation model:
Implement vehicle behavior models:
Visualization and analysis:
User interface:
Methodology:
Road Network Integration:
Vehicle Agent Modeling:
Simulation Execution:
Visualization and Analysis:
User Interface:
Expected Outcomes:
About Me:
I am Priyanshu Tiwari, a second-year BTech student in Artificial Intelligence and Machine Learning at SIR MVIT, India. My interest in traffic simulation and GIS stems from my passion for urban mobility and smart city solutions. With experience in Python, machine learning, and agent-based modeling, I am well-prepared to tackle this project and contribute to the GSOC community.