Grin logo
en de es fr
Shop
GRIN Website
Publish your texts - enjoy our full service for authors
Go to shop › Computer Sciences - Artificial Intelligence

Automated Train AI-Prototype using Neuro Fuzzy Inference

Summary Excerpt Details

This fuzzy control system is an AI prototype for an automated train, i.e. a train which runs by its own on the basis of two input parameters: distance from the signal (in km) and color of the signal (red, green or yellow). On the basis of the given input parameters, this system dynamically changes the speed of the train which is the output (in kmph).

If the signal color is red, then the train stops just before it. If it is yellow, then it stops at the upcoming station. It turns green, it surpasses the upcoming station.

Excerpt


Introduction:

So , basically this fuzzy control system is just an AI prototype for an automated train i e a train which runs by its own on the basis of 2 input parameters

- Distance from the signal (in km)
- Color of the signal (red , green or yellow )

On the basis of given input parameters , this system dynamically changes the speed of train which is the output (in kmph)

Basically If the signal color is red , then train stops just before it , If it is yellow then it stops at the upcoming station and last case when it turns green it surpasses the upcoming station

Principle:

- 1. Fuzzification of the input variables
- 2. Application of fuzzy operator(AND) on the antecedent parts of the rules
- 3. Evaluation of the fuzzy rules
- 4. Aggregation of fuzzy sets across the rules
- 5. Defuzzification of the resultant fuzzy set ( i e speed)

Working:

Abbildung in dieser Leseprobe nicht enthalten

Well , color of signals lie under nominal category , but I don't know to assign membership value to nominal value since I am new to this module (scikit fuzzy) , so i decided to declare range for each of them Here median membership value for Red signal is 0.4,1.3 for yellow light and 2.2 for green light Note:

Any changes like intersection were made based on analysis of output

Speed:

Abbildung in dieser Leseprobe nicht enthalten

Here we have speed of train ranging upto 120kmph which is segmented into 5 non-uniformly distributed membership function.

Unlike other parameter which have uniform triangular membership function.

This mixed membership function is has mixed geometry of triangular and trapezoidal shape

Rules of Inference:

Rule 1 :

If the distance from signal lies in the range d3 and color of signal is red then the speed of train should lie in the range of si

Rule 2 :

If the distance from signal lies in the range d2 and color of signal is red then the speed of train should lie in the range of s0

Rule 3 :

If the distance from signal lies in the range di and color of signal is red then the speed of train should lie in the range of s0

Rule 4 :

If the distance from signal lies in the range d0 and color of signal is red then the speed of train should lie in the range of s0

Rule 5 :

If the distance from signal lies in the range d3 and color of signal is yellow then the speed of train should lie in the range of s2

Rule 6 :

If the distance from signal lies in the range d2 and color of signal is yellow then the speed of train should lie in the range of s2

Rule 7 :

If the distance from signal lies in the range di and color of signal is yellow then the speed of train should lie in the range of si

Rule 8 :

If the distance from signal lies in the range d3 and color of signal is green then the speed of train should lie in the range of s4

Rule 9 :

If the distance from signal lies in the range d2 and color of signal is green then the speed of train should lie in the range of s4

Rule 10 :

If the distance from signal lies in the range di and color of signal is green then the speed of train should lie in the range of s3

Final Defuzzified Result :

We have tested it for some single tuple of input ( mostly boundaries ):

- When distance is less than 1 km and signal display red color

Abbildung in dieser Leseprobe nicht enthalten

- When distance is less than 2 km and signal display yellow color

Abbildung in dieser Leseprobe nicht enthalten

- When distance is less than 3 km and signal display green color

Abbildung in dieser Leseprobe nicht enthalten

On the basis of these boundary condition , we prepared a dataframe consisting of distance from signal , color of signal and speed of train of about 30 observation which depict a motion Of train when it first encounters red signal then yellow and then green.

And plotted distance against speed in from of scatterplot with hue of colour

Abbildung in dieser Leseprobe nicht enthalten

This depict that on approaching red signal it's speed tends to zero , on the other hand when it approaches yellow or green signal its speed increases.

Frequently Asked Questions

What is the purpose of this fuzzy control system?

This fuzzy control system is an AI prototype designed for an automated train. It allows the train to run autonomously based on two input parameters: distance from the signal (in km) and the color of the signal (red, green, or yellow).

How does the system determine the train's speed?

Based on the input parameters (distance and signal color), the system dynamically adjusts the train's speed, which is the output (in kmph). The logic is as follows: if the signal is red, the train stops before it; if it's yellow, the train stops at the upcoming station; and if it's green, the train passes the upcoming station.

What are the principles behind this system's operation?

The principles are: 1. Fuzzification of the input variables; 2. Application of a fuzzy operator (AND) on the antecedent parts of the rules; 3. Evaluation of the fuzzy rules; 4. Aggregation of fuzzy sets across the rules; 5. Defuzzification of the resultant fuzzy set (i.e., speed).

How are the signal colors represented in the system?

While signal colors are nominal categories, the system assigns a range to each color since the author is unfamiliar with directly assigning membership values to nominal values using the scikit-fuzzy module. The median membership values are approximately 0.4 for red, 1.3 for yellow, and 2.2 for green. Note that adjustments (intersections) were made based on output analysis.

What is the range of train speeds considered?

The train's speed ranges up to 120 kmph, segmented into five non-uniformly distributed membership functions. Unlike other parameters with uniform triangular membership functions, the speed uses a mixed membership function with both triangular and trapezoidal shapes.

Can you explain some of the rules of inference used?

Several rules dictate the train's behavior based on distance and signal color. For example:

  • If the distance from the signal is in the range d3 and the signal is red, the train's speed should be in the range s1.
  • If the distance is in the range d2 and the signal is red, the speed should be in the range s0.
  • If the distance is in the range d1 and the signal is red, the speed should be in the range s0.
  • If the distance is in the range d0 and the signal is red, the speed should be in the range s0.

What were some of the test cases used to validate the system?

The system was tested with several input tuples, including: distance less than 1 km with a red signal; distance less than 2 km with a yellow signal; and distance less than 3 km with a green signal. A dataframe with 30 observations was also created to simulate train motion encountering red, yellow, and then green signals.

What does the distance vs. speed scatterplot indicate?

The scatterplot of distance against speed, colored by signal color, demonstrates that as the train approaches a red signal, its speed tends towards zero. Conversely, when approaching yellow or green signals, the train's speed increases.

Excerpt out of 8 pages  - scroll top

Buy now

Title: Automated Train AI-Prototype using Neuro Fuzzy Inference

Project Report , 2020 , 8 Pages , Grade: 9

Autor:in: Girish Pandey (Author)

Computer Sciences - Artificial Intelligence
Look inside the ebook

Details

Title
Automated Train AI-Prototype using Neuro Fuzzy Inference
College
SRM University  (SRM Institute Of Science and Technology)
Course
Neuro and Fuzzy Logic
Grade
9
Author
Girish Pandey (Author)
Publication Year
2020
Pages
8
Catalog Number
V1308645
ISBN (PDF)
9783346781932
Language
English
Tags
Artificial Intelligence
Product Safety
GRIN Publishing GmbH
Quote paper
Girish Pandey (Author), 2020, Automated Train AI-Prototype using Neuro Fuzzy Inference, Munich, GRIN Verlag, https://www.grin.com/document/1308645
Look inside the ebook
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
  • Depending on your browser, you might see this message in place of the failed image.
Excerpt from  8  pages
Grin logo
  • Grin.com
  • Payment & Shipping
  • Contact
  • Privacy
  • Terms
  • Imprint