top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S6-SA2-0205

What is the Use of Trigonometry in Artificial Intelligence for Object Detection?

Grade Level:

Class 10

AI/ML, Physics, Biotechnology, Space Technology, Chemistry, Engineering, Medicine

Definition
What is it?

Trigonometry helps Artificial Intelligence (AI) 'see' and understand objects in images and videos, much like how our eyes use angles and distances. It allows AI systems to calculate an object's position, size, and orientation in 3D space from a 2D picture, which is crucial for tasks like self-driving cars or robot navigation.

Simple Example
Quick Example

Imagine you're playing cricket and want to hit a six. Your brain quickly calculates the angle and force needed based on the ball's speed and distance. Similarly, AI uses trigonometry to calculate angles and distances for objects it 'sees.' For instance, if a security camera (an AI system) spots a person, trigonometry helps it figure out how far away the person is and their height, just from the 2D image.

Worked Example
Step-by-Step

Let's say an AI camera is placed 10 meters away from a wall and needs to find the height of a poster on that wall. The camera measures the angle from its base to the bottom of the poster as 15 degrees and to the top of the poster as 20 degrees.

---1. We have a right-angled triangle formed by the camera, the wall, and the bottom of the poster. Let 'x' be the distance from the camera's base level to the bottom of the poster on the wall. We know tan(angle) = Opposite / Adjacent.
---2. So, tan(15 degrees) = x / 10 meters. Calculating tan(15 degrees) approximately gives 0.2679.
---3. Therefore, x = 0.2679 * 10 = 2.679 meters (height to the bottom of the poster).
---4. Now, consider the triangle formed by the camera, the wall, and the top of the poster. Let 'y' be the distance from the camera's base level to the top of the poster.
---5. So, tan(20 degrees) = y / 10 meters. Calculating tan(20 degrees) approximately gives 0.3640.
---6. Therefore, y = 0.3640 * 10 = 3.640 meters (height to the top of the poster).
---7. The actual height of the poster is the difference between y and x: 3.640 - 2.679 = 0.961 meters.
---Answer: The AI system calculates the poster's height to be approximately 0.961 meters.

Why It Matters

Trigonometry is the backbone for AI systems that interact with the physical world, like self-driving cars, drones delivering packages, and robots in factories. It helps engineers in fields like robotics and computer vision create smart machines that can navigate, avoid obstacles, and understand their surroundings, making our lives easier and safer.

Common Mistakes

MISTAKE: Students often confuse which side is 'opposite' or 'adjacent' to the angle in a right-angled triangle. | CORRECTION: Always remember that the 'opposite' side is across from the angle you are considering, and the 'adjacent' side is next to it, not the hypotenuse.

MISTAKE: Incorrectly using sine, cosine, or tangent for a given problem. | CORRECTION: Use SOH CAH TOA to remember: Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent. Choose the ratio that includes the sides you know and the side/angle you want to find.

MISTAKE: Forgetting to convert angles from degrees to radians (or vice-versa) if the calculator or software requires it. | CORRECTION: Always check your calculator's mode (DEG or RAD) before performing trigonometric calculations, especially in AI programming contexts.

Practice Questions
Try It Yourself

QUESTION: An AI drone is flying 50 meters above the ground. It spots a car at an angle of depression of 30 degrees. How far is the car horizontally from the point directly below the drone? | ANSWER: Approximately 86.6 meters (tan(30) = 50 / distance, so distance = 50 / tan(30) = 50 / 0.577 = 86.6 m)

QUESTION: A robot's camera is 1.5 meters off the ground. It measures the angle of elevation to the top of a box as 45 degrees. If the box is 2 meters away horizontally, what is the total height of the box? | ANSWER: 3.5 meters (tan(45) = height_above_camera / 2, so height_above_camera = 2 * tan(45) = 2 * 1 = 2m. Total height = 2m + 1.5m = 3.5m)

QUESTION: An AI system in a smart factory needs to identify the exact position of a component on a conveyor belt. The camera is 3 meters above the belt. It detects the component at a horizontal distance of 4 meters. What is the straight-line distance (hypotenuse) from the camera to the component, and what is the angle of depression from the camera to the component? | ANSWER: Straight-line distance = 5 meters (using Pythagoras: sqrt(3^2 + 4^2) = sqrt(9+16) = sqrt(25) = 5m). Angle of depression = 36.87 degrees (tan(angle) = 3/4 = 0.75, so angle = arctan(0.75) = 36.87 degrees)

MCQ
Quick Quiz

Which trigonometric ratio would an AI system most likely use to calculate the height of an object if it knows the horizontal distance to the object and the angle of elevation?

Sine

Cosine

Tangent

Cotangent

The Correct Answer Is:

C

Tangent (TOA: Tangent = Opposite/Adjacent) directly relates the height (opposite) to the horizontal distance (adjacent) when the angle of elevation is known. Sine uses the hypotenuse, and Cosine uses the hypotenuse.

Real World Connection
In the Real World

In India, AI-powered drones used for agricultural surveys employ trigonometry. They fly at a certain height and use angles to map crop areas, identify plant health, and even spray fertilizers accurately. Similarly, AI in security cameras in our cities uses these concepts to track movements and estimate distances of people or vehicles, enhancing public safety.

Key Vocabulary
Key Terms

OBJECT DETECTION: The task of identifying and locating objects within an image or video.| ARTIFICIAL INTELLIGENCE (AI): Systems that can perform tasks that typically require human intelligence, like learning, problem-solving, and decision-making.| ANGLE OF ELEVATION: The angle formed by the horizontal line of sight and the line of sight upwards to an object.| ANGLE OF DEPRESSION: The angle formed by the horizontal line of sight and the line of sight downwards to an object.| COMPUTER VISION: A field of AI that enables computers to 'see' and interpret digital images or videos.

What's Next
What to Learn Next

Next, explore 'How AI Uses Neural Networks for Image Recognition.' Understanding neural networks will show you how AI learns to 'see' patterns in the data that trigonometry helps it measure, taking your knowledge of AI to the next level. Keep learning!

bottom of page