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:

text
PRB_Usage = 92
Counter_A = 123456
Counter_B = 234567

They want answers:

text
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:

text
Counters
   ↓
KPIs
   ↓
Features
   ↓
Rules
   ↓
Events
   ↓
Network Intelligence

This 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:

text
Rule 1:
IF PRB > 80 THEN congestion

Rule 2:
IF drop_rate > 2 THEN alarm

Rule 3:
IF RSRP < -110 THEN coverage problem

After 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:

text
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:

text
Vendor PM Files → Kafka → KPI Processing Layer → ClickHouse → Feature Platform → Rule Engine → Network Events

3. Normalize Vendor Counters

Different vendors describe the same concept differently.

Example:

text
Huawei:  RRCSuccRate
Ericsson: pmRrcConnEstabSucc
Nokia:   L.RRC.ConnEstabSucc
ZTE:     RRC.Setup.Success

They represent a similar concept:

RRC Connection Success

Therefore, create a canonical KPI model.

Example:

text
canonical_kpi_name:
rrc_connection_success_rate

vendor_mapping:
Huawei:
  RRCSuccRate
Ericsson:
  pmRrcConnEstabSucc
Nokia:
  L.RRC.ConnEstabSucc
ZTE:
  RRC.Setup.Success

The rule engine should never know vendor-specific counters.

It should understand:

text
rrc_connection_success_rate

4. Build the KPI Layer

The first storage layer:

text
raw_counters

contains:

  • cell_id
  • vendor
  • technology
  • counter_name
  • counter_value
  • timestamp

Example:

text
CELL001
Huawei
PRB_USED
83
2026-07-21 10:00

Then calculate KPIs.

Example:

Accessibility:

text
success_rate = successful_attempts / total_attempts

Retainability:

text
drop_rate = drop_calls / established_calls

Availability:

text
availability = available_time / total_time

Store:

text
hourly_kpi

Example:

text
cell_id
kpi_name
value
hour

5. 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:

text
current_value
average_3h
average_24h
p95_24h
change_vs_previous_hour
change_vs_yesterday
baseline_deviation
z_score
trend

Now the system understands behavior, not only values.

6. Build the Feature Store

A feature store contains reusable intelligence.

Example:

text
cell_features_hourly

Example row:

text
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:

text
raw-counter-topic
hourly-kpi-topic
feature-ready-topic
network-event-topic

ClickHouse

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:

text
Every hour:
1. Wait for KPI completion
2. Calculate features
3. Validate quality
4. Publish feature-ready event

Python

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:

text
IF PRB p95 3h > 85%
AND User throughput decreased > 25%
AND Active users increased > 10%
AND Condition exists for 3 hours

THEN
Create congestion event

The rule is no longer:

text
IF counter_x > 123

It is:

text
IF network behavior matches congestion pattern

9. Store Rules as Data

Do not hardcode rules.

Create a rules table.

Example:

json
{
  "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:

text
FEATURE_READY

event.

Example:

text
Cell LTE001
Feature set version 5
Hour 12:00

The engine:

  1. Loads active rules.
  2. Loads features.
  3. Evaluates conditions.
  4. Creates events.

Example:

Input:

text
PRB = 92
Throughput change = -35%
Users change = +20%

Output:

json
{
  "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:

text
10:00  PRB high  →  State: PENDING
11:00  PRB high  →  State: PENDING
12:00  PRB high  →  State: ACTIVE ALARM

States:

  • NORMAL
  • PENDING
  • ACTIVE
  • RECOVERING
  • CLOSED

This prevents alarm storms.

12. Create an Event Platform

Output events to the Kafka topic:

text
network-events

Example:

json
{
  "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:

text
feature vector → anomaly model → anomaly score

Example:

text
Congestion probability: 0.94

Explain alarms

Input:

text
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

text
Vendors → PM Counters → Kafka → KPI Normalization → ClickHouse KPI Store → Feature Calculation (ClickHouse + Python ML) → Feature Store → Rule Engine → Kafka Network Events → Dashboard / Automation / AI

15. 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:

text
Raw Counters
      ↓
Normalized KPIs
      ↓
Reusable Features
      ↓
Simple Explainable Rules
      ↓
Events
      ↓
AI Enhancement

The 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.