#Introduction
AI is often linked with machine learning today, but in reality it was present long before ML became popular. Early AI systems relied mostly on AI based approaches, whereas humans did it manually , defining rules for decision making. With the passage of time, as real world issues became more complex, these systems started to fail. In this blog, i will try to argue why rule based systems were not enough and how machine learning improved upon them and also put light on an integral AI branch beyond ML: Search and planning.
#Why rule based systems fail
Rule-based systems work using fixed instructions such as for example:
-if a message contains "free" ,mark it as spam
-if it contains "win" ,mark it as spam
Although it seems simple and effective, it has major limitations,
#1. Lack of flexibility
Rule-based systems cannot adapt to new pattern. If spam messages change wording, the system fails.
#2. Scalability issues
As the problem grows, the number of rules increase which makes the system complex and hard to maintain.
#3.No Learning ability
These kind of systems are unable to learn from data, as they follow only predefined instructions.
#Example : Spam detection
To demonstrate this, I implemented a rule-based spam detection system using simple keyword rules.
While it worked reasonably well, it still made mistakes because:
Some spam messages did not contain known keywords
Some normal messages contained words like “free” and were wrongly classified
This shows that real-world problems cannot be fully solved using fixed rules.
#how Machine learning solves this
Machine learning takes a different approach, in which instead of writing rules manually, we train models on data.
For this, i used a logistic regression model with TF-IDF features.
#Results
Rule-based Accuracy: 94%
Machine Learning Accuracy: 96%
The ML model perform significantly better because :
-It learned patterns automatically
-It handled variations better in text
-It generalized better to unseen data.
This shows why machine learning is necessary.
## AI Beyond Machine Learning -- Search and Planning
AI is not just limited to machine learning. One important branch is "Search and Planning". This involves finding the best sequence of actions to reach a goal.
Examples:
Google Maps finding shortest route
Robots planning movement
Game AI making decisions
Algorithms like:
Breadth-First Search
Depth-First Search
A* Search
are still widely used today in many applications.
## Why it still matters
Even modern AI systems combine ML with Planning
-ML fully understand the environment
-Planning decides what action to take
Hence, classical AI is still relevant to this day.
#Conclusion
In earlier stages, rule based systems were an important step in AI but with later stages as problems became more difficult, they started to fail. Here comes machine learning which improved AI by enabling systems to learn from data instead of fully relying on fixed pre defined rules.
AI is a very vast field, techniques like search and planning continue to play a crucial role in intelligent systems. In order to fully grasp the complexity of AI , we have to understand both perspectives.
Raqeeb thanks to my TA
About the author
- I write about whatever springs to my mind related to what i am studying.
Comments
Join the discussionNo comments yet. Be the first to comment.
