Building a Telecom Intelligence Platform from Scratch: From Raw KPIs to an AI-Ready Rule Engine
From raw counters to an AI-ready rule engine: why features come before rules
Introduction
Modern telecom networks generate massive amounts of performance data every hour.
A large mobile network with multiple vendors such as:
- Huawei
- Ericsson
- Nokia
- ZTE
can generate millions of performance counters every hour.
These counters include:
- Traffic
- Active users
- PRB utilization
- Throughput
- Drop rates
- Accessibility counters
- Mobility counters
- Radio quality measurements
- Availability counters
However, raw counters alone do not provide operational intelligence.
Network engineers do not want to see:
PRB_Usage = 92
Counter_A = 123456
Counter_B = 234567They want answers:
Why is this cell congested?
Is this a coverage problem?
Is this an interference issue?
Will this cell fail soon?
What action should we take?To answer these questions, we need to build a system that transforms raw counters into:
Counters
↓
KPIs
↓
Features
↓
Rules
↓
Events
↓
Network IntelligenceThis article explains how to build this platform from scratch, even when we do not have a complete rule engine definition at the beginning.
1. The Wrong Approach: Start With Thousands of Rules
A common mistake is starting with:
Rule 1:
IF PRB > 80 THEN congestion
Rule 2:
IF drop_rate > 2 THEN alarm
Rule 3:
IF RSRP < -110 THEN coverage problemAfter several months, you have:
10,000 rules
but nobody knows:
- Which rules are useful?
- Which rules create false alarms?
- Which rules overlap?
- Which rules are outdated?
- Which features are actually important?
A rule engine without a feature foundation becomes a collection of hardcoded thresholds.
The correct approach is:
Build the intelligence platform first.
Add rules gradually.
Learn from historical data.2. Start With the Data Foundation
The first step is not the rule engine.
The first step is building a reliable KPI platform.
The architecture:
Vendor PM Files → Kafka → KPI Processing Layer → ClickHouse → Feature Platform → Rule Engine → Network Events3. Normalize Vendor Counters
Different vendors describe the same concept differently.
Example:
Huawei: RRCSuccRate
Ericsson: pmRrcConnEstabSucc
Nokia: L.RRC.ConnEstabSucc
ZTE: RRC.Setup.SuccessThey represent a similar concept:
RRC Connection Success
Therefore, create a canonical KPI model.
Example:
canonical_kpi_name:
rrc_connection_success_rate
vendor_mapping:
Huawei:
RRCSuccRate
Ericsson:
pmRrcConnEstabSucc
Nokia:
L.RRC.ConnEstabSucc
ZTE:
RRC.Setup.SuccessThe rule engine should never know vendor-specific counters.
It should understand:
rrc_connection_success_rate4. Build the KPI Layer
The first storage layer:
raw_counterscontains:
- cell_id
- vendor
- technology
- counter_name
- counter_value
- timestamp
Example:
CELL001
Huawei
PRB_USED
83
2026-07-21 10:00Then calculate KPIs.
Example:
Accessibility:
success_rate = successful_attempts / total_attemptsRetainability:
drop_rate = drop_calls / established_callsAvailability:
availability = available_time / total_timeStore:
hourly_kpiExample:
cell_id
kpi_name
value
hour5. Do Not Build Rules Yet
At this stage, we do not know all rules.
That is normal.
Instead, build a feature platform.
A feature describes network behavior.
Example:
KPI: PRB Utilization
Features:
current_value
average_3h
average_24h
p95_24h
change_vs_previous_hour
change_vs_yesterday
baseline_deviation
z_score
trendNow the system understands behavior, not only values.
6. Build the Feature Store
A feature store contains reusable intelligence.
Example:
cell_features_hourlyExample row:
Cell: LTE_CELL_1001
Features:
prb_avg_24h: 78
prb_p95_24h: 92
throughput_change_24h: -31%
active_users_change_24h: +22%
traffic_baseline_deviation: +15%
data_quality: 99%Now many different rules can use the same features.
7. Feature Calculation Architecture
Use different tools for different jobs.
Kafka
Responsible for:
- Data movement
- Streaming events
- Buffering
- Decoupling services
Example topics:
raw-counter-topic
hourly-kpi-topic
feature-ready-topic
network-event-topicClickHouse
Responsible for:
- Aggregation
- Historical analysis
- Feature calculation
- Large-scale queries
Good examples:
- AVG
- SUM
- MAX
- MIN
- P95
- 24 hour statistics
- 7 day baseline
- 28 day comparison
Airflow
Responsible for:
- Scheduling
- Backfills
- Recalculation
- Data validation
- Feature pipelines
Example:
Every hour:
1. Wait for KPI completion
2. Calculate features
3. Validate quality
4. Publish feature-ready eventPython
Use Python only when necessary.
Examples:
- Machine learning
- Anomaly detection
- Forecasting
- Complex algorithms
Do not use Python for:
- SUM()
- AVG()
- P95()
- Rolling average
ClickHouse is better for these.
8. Create Rules From Features
Now rules become simple.
Example rule: LTE Congestion Detection
Definition:
IF PRB p95 3h > 85%
AND User throughput decreased > 25%
AND Active users increased > 10%
AND Condition exists for 3 hours
THEN
Create congestion eventThe rule is no longer:
IF counter_x > 123It is:
IF network behavior matches congestion pattern9. Store Rules as Data
Do not hardcode rules.
Create a rules table.
Example:
{
"name": "LTE Congestion",
"conditions": [
{ "feature": "prb_p95_3h", "operator": ">", "value": 85 },
{ "feature": "throughput_change_24h", "operator": "<", "value": -25 }
],
"severity": "MAJOR"
}Now engineers can create rules without changing code.
10. Rule Evaluation Engine
The rule engine receives:
FEATURE_READYevent.
Example:
Cell LTE001
Feature set version 5
Hour 12:00The engine:
- Loads active rules.
- Loads features.
- Evaluates conditions.
- Creates events.
Example:
Input:
PRB = 92
Throughput change = -35%
Users change = +20%Output:
{
"type": "CONGESTION",
"cell": "LTE001",
"severity": "MAJOR",
"reason": "High utilization with throughput degradation"
}11. Use Event State Management
A network condition is not only TRUE or FALSE.
Real networks need state.
Example:
10:00 PRB high → State: PENDING
11:00 PRB high → State: PENDING
12:00 PRB high → State: ACTIVE ALARMStates:
- NORMAL
- PENDING
- ACTIVE
- RECOVERING
- CLOSED
This prevents alarm storms.
12. Create an Event Platform
Output events to the Kafka topic:
network-eventsExample:
{
"type": "CELL_CONGESTION",
"cell": "LTE001",
"severity": "MAJOR",
"time": "2026-07-21T12:00",
"evidence": {
"prb_p95": 92,
"throughput_change": -35
}
}Consumers can include:
- Dashboard
- Ticketing system
- Optimization system
- Automation platform
- AI assistant
13. Add AI Later
After collecting:
- Features
- Rules
- Events
- Engineer feedback
then add AI.
AI can:
Generate rules
Engineer: Find cells with possible congestion
AI: Create candidate rule.
Detect unknown problems
Machine learning:
feature vector → anomaly model → anomaly scoreExample:
Congestion probability: 0.94Explain alarms
Input:
PRB=92
Throughput=-35%
Users=+22%AI:
Cell congestion is likely caused by capacity shortage. Traffic increased while available radio resources decreased.
14. Complete Final Architecture
Vendors → PM Counters → Kafka → KPI Normalization → ClickHouse KPI Store → Feature Calculation (ClickHouse + Python ML) → Feature Store → Rule Engine → Kafka Network Events → Dashboard / Automation / AI15. Development Roadmap
Phase 1 — Foundation
Build:
- Kafka ingestion
- Vendor normalization
- ClickHouse KPI storage
- Basic feature calculation
Phase 2 — First intelligence
Create:
- 10 important rules
- Feature dependency matrix
- Rule engine
- Event generation
Phase 3 — Optimization
Add:
- Historical simulation
- False-positive analysis
- Rule versioning
- Engineer feedback
Phase 4 — AI
Add:
- AI rule assistant
- Anomaly detection
- Root cause prediction
- Network optimization recommendations
Conclusion
A telecom intelligent monitoring system should not start with thousands of rules.
The correct evolution is:
Raw Counters
↓
Normalized KPIs
↓
Reusable Features
↓
Simple Explainable Rules
↓
Events
↓
AI EnhancementThe biggest architectural decision is separating:
- Feature engineering (understanding network behavior)
- Rule evaluation (deciding whether action is required)
Once this foundation exists, adding new rules becomes easy, and the platform can naturally evolve into an AI-driven network intelligence system.
