Concept Flow - Machine learning vs rule-based systems
Start: Input Data
Apply Rules
Output Result
End: Decision Made
The system receives input data, then either applies fixed rules or uses a trained model to produce an output.
Input: data If rule-based: Apply fixed rules Else: Use learned model Output result
| Step | Input | System Type | Action | Output |
|---|---|---|---|---|
| 1 | Temperature=30 | Rule-based | Check if temp > 25 | Output: 'Hot' |
| 2 | Temperature=20 | Rule-based | Check if temp > 25 | Output: 'Not Hot' |
| 3 | Temperature=30 | Machine learning | Model predicts based on data | Output: 'Likely Hot' |
| 4 | Temperature=20 | Machine learning | Model predicts based on data | Output: 'Likely Not Hot' |
| 5 | Temperature=15 | Rule-based | Check if temp > 25 | Output: 'Not Hot' |
| 6 | Temperature=15 | Machine learning | Model predicts based on data | Output: 'Likely Not Hot' |
| 7 | - | - | - | End of processing |
| Variable | Start | After 1 | After 2 | After 3 | After 4 | After 5 | After 6 | Final |
|---|---|---|---|---|---|---|---|---|
| Input Temperature | N/A | 30 | 20 | 30 | 20 | 15 | 15 | N/A |
| Rule-based Output | N/A | 'Hot' | 'Not Hot' | N/A | N/A | 'Not Hot' | N/A | N/A |
| ML Output | N/A | N/A | N/A | 'Likely Hot' | 'Likely Not Hot' | N/A | 'Likely Not Hot' | N/A |
Machine learning systems learn patterns from data to predict outputs. Rule-based systems use fixed rules to decide outputs. Rule-based outputs are exact; ML outputs are probabilistic. ML adapts with data; rule-based does not change unless rules are updated. Both process inputs but differ in flexibility and learning ability.