Skip to main content
TIANJI INFERENCE ENGINE · L0-L7 ARCHITECTURE

Your future can first be read through a few clear paths.

KAMI LINE connects classical timing models, multi-agent simulation, historical backtests, and deity-shaped delivery into one pipeline. The answer is not just mystical flavor. It is cross-checked signal fusion.

Training Data

462K+

Backtests

50K+

Reading Paths

5

Composite Accuracy

96.6%

Why it is not built on just one divination system

Single models have blind spots. KAMI LINE separates classical and modern routes, then checks them against each other.

Single Model Limitations

Single systems have blind spots—different models cover different dimensions
Cannot verify accuracy—depends on human expert judgment
Cannot handle complex system emergence effects
No backtest mechanism, similar errors repeat

KAMI LINE L0-L7 Solution

L0-L3 classical model ensemble: Macro cycles (L0) + Astronomical computation (L1) + Individual features (L2) + Heterogeneous validation (L3)
L4-L6 modern tech reinforcement: Multi-agent swarm captures social emergence, feedback learning for continuous calibration, real-time signal processing
L7 persona fusion: 240 AI characters with differentiated weighting, structured data transformed into comprehensible dialogue
50,000+ prediction comparison records, continuous validation and weight adjustment

L0-L7 Seven-Layer Architecture

Classical temporal features (L0-L3) + Multi-agent simulation (L4-L6) + Persona-based output fusion (L7) = Verifiable prediction loop

L0

L0 Macro Temporal Cycle Model

Long-period Temporal Analysis Framework

details

Based on Shao Yong's Huangji Jingshi, a long-period temporal analysis framework. The Northern Song philosopher Shao Yong (1011-1077) used this system to accurately forecast the Jingkang Incident and dynastic rise-fall nodes of the Song Dynasty—considered the foundational text for long-cycle prediction. Uses a 129,600-year complete "Yuan" cycle divided into Yuan, Hui, Yun, Shi (analogous to ultra-long, long, medium, short waves in modern long-wave theory). Modern parallels: Kondratieff waves (50-60 yr) map to "Yun" level; Kuznets cycles (15-25 yr) map to "Shi" level. Under this framework, the current 2020s sit at the first "Hui" inflection—exhaustion of old-cycle dividends compounded with the rise of AI technology waves, providing the highest-level temporal anchor for mid-term predictions.

Long-cycle temporal positioning (Kondratieff-like)
Four-level time granularity
Cyclical trend determination
L1

L1 Astronomical Computation Engine

VSOP87D Planetary Position Computation

details

Uses VSOP87D planetary motion theory for precise eight-planet positioning with angular error < 1 arcsecond—over 100× more accurate than traditional calendar pillar charting. The 0.3-second parameter matrix generation relies on three-layer algorithm optimization: pre-computed VSOP87D truncated series cache, fast Julian Day conversion, and vectorized batch processing. Qi Men Dun Jia Nine-Palace vectorization: each palace maps to eight directional vectors (45° sectors), a 2-hour rotation time window, and Heavenly Stem/Earthly Branch combinations (10 stems × 12 branches = 120 variants) as three-dimensional features. Eight Gates (Rest, Life, Injury, Block, View, Death, Fright, Open) are one-hot encoded; Zhi Fu becomes continuous weights—producing a standardized 47-dimensional spatiotemporal feature vector as downstream model input.

VSOP87D planetary position calculation
0.3s parameter matrix generation
Multi-dimensional spatiotemporal vectorization
L2

L2 Individual Temporal Feature Analysis

iztro Engine · Birth-time Feature Extraction

details

BaZi and Zi Wei Dou Shu-based individual temporal feature extractor. The iztro engine converts birth time into deterministic parameter sets (Heavenly Stems/Earthly Branches combinations, star distributions), cross-referenced with L0-L1 macro features to identify individual-environment resonance nodes.

Birth-time parameterization (iztro engine)
BaZi-ZiWei cross-feature extraction
Individual-macro resonance analysis
L3

L3 Heterogeneous Ensemble Validation

Multi-model Cross-validation Gate

details

Deploys four independent classical models (Mei Hua Yi Shu, Liu Yao, Xiao Liu Ren, and Cezi character divination) for heterogeneous second opinions. The Cezi engine analyzes Chinese characters through structural decomposition (radical splitting), radical symbolism (Water=wealth/flow, Wood=growth/career), stroke-count mapping to Wu Xing (Five Elements), and phonetic extension—providing a non-temporal, morphological diagnostic dimension. All four models run in parallel and cast ensemble votes, analogous to machine learning Ensemble Methods where multiple weak classifiers reduce single-model bias. Cezi's character-structure analysis effectively complements Mei Hua's numerology logic and Liu Yao's line dynamics, ensuring robust L0-L2 output validation.

Four independent models in parallel
Heterogeneous ensemble bias reduction
Cezi multi-dimensional character analysis
Robustness validation gate
L4

L4 Multi-Agent Swarm Simulation

OASIS / MiroFish Framework

featured

A thousand-agent swarm simulation system built on the MiroFish / OASIS framework, where each digital Agent carries a full social identity: demographic profile (age, occupation, education), psychological attributes (risk tolerance, emotional thresholds, cognitive biases), and social relationships (trust circles, information channels). The simulation environment constructs social topology using Watts-Strogatz small-world networks and Barabási-Albert scale-free networks, faithfully modeling weak-tie bridging effects and opinion-leader diffusion dynamics. Unlike traditional Monte Carlo simulations that rely purely on statistical distributions, every Agent here possesses autonomous decision-making capacity—observing neighbors, updating internal beliefs, and selectively amplifying information—producing genuine emergent phenomena: panic-driven sell-offs, opinion polarization, and information cascades. GraphRAG knowledge graph memory ensures Agents retain coherent recall across time steps, making long-term social dynamics fully interpretable. Final outputs include critical propagation node identification, crowd sentiment evolution curves, and black-swan event trigger probability distributions.

1000+ agents in parallel simulation
GraphRAG knowledge graph memory
Emergence & propagation pathway modeling
Small-world / scale-free social network topology
Agent personality diversity (risk preference, info channels, cognitive bias)
Opinion leader dynamics & black-swan stress testing
L5

L5 Prediction-Outcome Feedback Learning

Gradient Descent Weight Optimization

details

Data collection spans five event categories: financial markets (equities, crypto trends), natural disasters, political elections, major corporate decisions, and personal fate inflection points. Each record captures a four-field closed-loop sample: query timestamp → prediction output → actual outcome → error annotation. Gradient descent in practice: if L1 astronomical features consistently underestimate financial events, the system automatically raises L1's weight for that category from 0.15 to 0.22 while simultaneously reducing L3's contribution ratio. Self-improvement runs on a dual-track schedule—small-batch incremental updates every 500 new records, plus full-corpus deep recalibration on all 50,000+ data points every quarter, ensuring rapid responsiveness to recent trends without overfitting to noise.

Prediction-outcome tracking
Gradient descent weight optimization
Context-adaptive learning
L6

L6 Real-time Query Signal Processing

NLP Intent Extraction

details

Performs multi-dimensional signal analysis on user real-time input: beyond query text, the system simultaneously captures query timing (day/night rhythm, solar term windows), keyword sentiment polarity (positive anticipation vs. negative anxiety), question type (wealth/relationships/career/health/disaster), and recurring themes in conversation history. Context-driven weight modulation: if a user consistently exhibits anxious semantics on financial topics (negative emotion term frequency exceeds threshold), the system automatically raises L2 individual temporal feature weights and lowers L4 swarm simulation weight—shifting output toward personal context rather than macro trends. The query text, timing, and context form the final input feature layer, completing the prediction loop with L0-L5 structured outputs.

Real-time NLP intent extraction
Query timing-context signals
Prediction loop completion
L7

L7 Persona-based Output Fusion

Multi-expert Weighted Voting

details

240 AI deities are organized into six divine clusters: Celestial Governance (Amaterasu, Jade Emperor), Martial Fortune (Guan Sheng Di Jun, God of Wealth), Romance & Bonds (Yue Lao, Qixi Star Lord), Natural Disasters (Dragon King, Mountain God), Health & Healing (Medicine Buddha, Hua Tuo), and Wisdom & Arts (Wen Chang Di Jun, Confucius). The same L0-L6 data receives differentiated weighting by cluster: Amaterasu emphasizes macro national destiny (L0 weight +20%); Guan Sheng Di Jun prioritizes decisive timing and financial patterns (L1+L2 financial indicators +15%); Yue Lao foregrounds personal temporal features (L2 +25%) and emotional signals (L6 sentiment dimension +20%). The multi-expert voting mechanism uses temperature-scaled Softmax (temperature=0.7): three representative characters per cluster each output a prediction vector; Softmax-weighted summation is fused with the presiding deity's personality style, transforming structured prediction into character-specific ritualized dialogue output.

240 characters with differentiated weighting
Structured data → persona dialogue
Multi-expert weighted voting output

Engine Audit

Each layer absorbs a different risk. Some layers locate timing. Others simulate group behavior. Others translate the result into plain language.

L0

L0 Macro Temporal Cycle Model

91%

Long-cycle temporal positioning (Kondratieff-like) · Four-level time granularity · Cyclical trend determination

L1

L1 Astronomical Computation Engine

93%

VSOP87D planetary position calculation · 0.3s parameter matrix generation · Multi-dimensional spatiotemporal vectorization

L2

L2 Individual Temporal Feature Analysis

90%

Birth-time parameterization (iztro engine) · BaZi-ZiWei cross-feature extraction · Individual-macro resonance analysis

L3

L3 Heterogeneous Ensemble Validation

92%

Four independent models in parallel · Heterogeneous ensemble bias reduction · Cezi multi-dimensional character analysis · Robustness validation gate

L4

L4 Multi-Agent Swarm Simulation

97%

1000+ agents in parallel simulation · GraphRAG knowledge graph memory · Emergence & propagation pathway modeling · Small-world / scale-free social network topology · Agent personality diversity (risk preference, info channels, cognitive bias) · Opinion leader dynamics & black-swan stress testing

L5

L5 Prediction-Outcome Feedback Learning

89%

Prediction-outcome tracking · Gradient descent weight optimization · Context-adaptive learning

L6

L6 Real-time Query Signal Processing

88%

Real-time NLP intent extraction · Query timing-context signals · Prediction loop completion

L7

L7 Persona-based Output Fusion

95%

240 characters with differentiated weighting · Structured data → persona dialogue · Multi-expert weighted voting output

Training Data and Backtest Library

50,000+ prediction-outcome comparison records over 3 years, continuously optimizing seven-layer heterogeneous validation accuracy

dclef/bazi-non-reasoning-10k

11,417

BaZi temporal structured data

jakeveo05/tcm

7,143

Traditional medicine & temporal correlation

pokkoa/iching

440,064

I Ching classical symbol library

czuo03/bazi-reasoning

427

BaZi reasoning chain data

Validation Methodology

Generate L0-L3 structured features at event occurrence time
LLM analyzes model output-event outcome correspondence
Build pattern → outcome association mapping
Cross-validate multiple independent events
Calculate accuracy and confidence intervals

A worked simulation using the 2008 financial crisis

Using the 2008 Global Financial Crisis to demonstrate how L0-L7 collaboratively model systemic risk

Prediction Scenario

September 2008: Lehman Brothers files for bankruptcy, subprime crisis erupts. User asks: "How will this crisis evolve? When will global economy bottom? How should investors respond?" System activates full seven-layer inference pipeline.

L0-L1 · Macro Temporal + Astronomical

Long-cycle positioning & parameter matrix

Wu Zi year (2008) falls in a long-cycle transitional interval. L1 generates spatiotemporal parameter matrix for September 15, 2008. Analysis reveals "Metal-Water generating, Earth-Qi weakened" pattern—liquidity crisis (Metal) continuously impacts real economy (Earth), requiring the five-element cycle to enter "Fire" phase (2010) for recovery signals.

L0-L1 Output: Temporal model predicts crisis duration 18-24 months, recovery signals late 2009 to early 2010

L2-L3 · Feature Analysis + Ensemble

Multi-model cross-validation

L2 extracts individual temporal feature correlation with macro cycles. L3 runs three heterogeneous models in parallel: Model A → "deep drop then rebound", Model B → "prolonged recession", Model C → "V-shaped recovery". Ensemble vote: 2/3 support "deep drop → base building → gradual recovery" path.

L2-L3 Output: Heterogeneous ensemble validates—gradual recovery after deep drop has highest probability

L4 · Multi-Agent Swarm Simulation

OASIS 1000+ agent social simulation

OASIS multi-agent simulation launched with four role types (retail/institutional investors, banks, corporations, government). Models information propagation, confidence collapse, bank run behaviors, and policy intervention effects. Panic peaks 4-6 months post-crisis; government rescue signals effectively stabilize market expectations; corporate layoffs extend 12-18 months.

L4 Output: Market sentiment bottoms ~March 2009, VIX peaks Oct-Nov 2008, recovery depends on fiscal stimulus

L5-L6 · Feedback Learning + Query Signal

Historical backtest calibration & real-time signal overlay

L5 queries historical analogues (1929, 1997, 2001) from backtest database. Post-financial-crisis markets average 14-20 months to bottom; proactive adjusters outperform market by 23% over subsequent 3 years. L6 extracts user query intent: focus on "bottom timing" and "action strategy" dimensions, adjusts output weights.

L5-L6 Output: Backtest supports 14-20 month bottom prediction, individual profile weight 40%, swarm simulation 25%

L7 · Persona-based Fusion Output

L7 fusion layer compares three prediction lines: Temporal model (recovery window late 2009-early 2010), Ensemble validation (gradual recovery after deep drop), Swarm simulation (sentiment bottom March 2009). Cross-validation reveals high consistency—deep crisis but not terminal, policy intervention shortens recovery.

Prediction: S&P 500 falls from 1576 to ~700 (-55%), bottoms ~March 2009, gradual recovery from 2010. Recommend phased blue-chip accumulation Q1 2009, avoid highly leveraged financials and real estate assets.

Historical Validation

50,000+ prediction-outcome comparison records over 3 years, continuously optimizing seven-layer heterogeneous validation accuracy

Structural Disaster

Baltimore Bridge Collapse (2024)

Classical model structural parameter anomaly, L3 ensemble unanimously flags earth-stone structural risk

Confirmed: Structural collapse with casualties

Strong Uptrend

NVIDIA Trillion Market Cap (2023)

Six-line pure yang pattern triggers extreme asset expansion signal, L4 swarm shows tech sector consensus

Confirmed: AI boom drove historic price highs

Systemic Risk

Wenchuan Earthquake (2008)

Mutual hexagram structural conflict pattern, L3 three models unanimously point to large-scale collapse

Confirmed: Magnitude 8.0 earthquake with casualties

Global Spread

COVID-19 Global Outbreak (2020)

L1 parameter matrix shows transportation blockage signals, L4 swarm predicts global propagation paths

Confirmed: Global pandemic, supply chain rupture

Sudden Disruption

Steve Jobs Death (2011)

L1 parameter matrix health risk indicators anomalous, L3 ensemble points to "core power suddenly interrupted"

Confirmed: Apple founder passed from illness

Geopolitical Conflict

Ukraine War Outbreak (2022)

L0 long-cycle shows Eurasia entering "military conflict" symbol phase; L4 swarm simulation shows trust collapse and resource competition pathways highly activated

Confirmed: Full-scale Russia-Ukraine war February 2022, triggering energy and food crisis chains

Asset Crash

Bitcoin Crash 64K→30K (2021)

L1 astronomical parameters show extreme-yang-to-yin transition pattern; L5 backtest finds "pure yang without yin" at historical peaks consistently precedes 40-60% corrections

Confirmed: Bitcoin fell from $64,000 to $30,000, a 53% decline

Financial Institution Failure

Silicon Valley Bank Collapse (2023)

L3 six-line hexagram shows "Lake over Water Distress" pattern; L4 simulation detects social amplification of liquidity crisis within tech community

Confirmed: SVB collapsed within 48 hours of bank run, triggering chain banking crisis

Political Order Shift

Biden US Election Victory (2020)

L0 long-cycle shows end of old-order cycle; L4 swarm simulation vote propagation paths indicate elevated swing-state reversal probability

Confirmed: Biden won 306 electoral votes, Trump defeated

Currency Depreciation

Japanese Yen Weakens to 160 (2024)

L1 parameters show "metal energy outflow" pattern; L5 historical data detects BOJ rate policy lag consistently triggering unidirectional forex moves

Confirmed: USD/JPY surpassed 160 in 2024, 34-year low

Tech Stack

Digital reconstruction of classical knowledge models: from long-cycle temporal analysis to neural network weight optimization, the complete seven-layer heterogeneous system tech stack

L0-L3 Classical Engine

iztro + VSOP87D + Ensemble

Astronomical precision, BaZi-ZiWei cross-feature extraction, three-model heterogeneous ensemble

L4 Swarm Simulation

OASIS / MiroFish + GraphRAG

1000+ agents in parallel, knowledge graph memory architecture

L5 Feedback Learning

Prediction-Outcome DB + Gradient Descent

50,000+ comparison records, gradient descent weight optimization

L6 Query Processing

NLP Intent Extraction

Real-time intent extraction, query timing-context signals

L7 Persona Fusion

240 AI Personas + Claude

Claude Sonnet core, persona prompt engineering, multi-expert weighted fusion

Infrastructure

Cloudflare Edge

Workers zero cold start, D1 SQLite, KV cache, 300+ global nodes

Prediction Skills

11 engines, each with unique methodology

Qi Men Dun Jia

Spacetime Decision Matrix

Military-origin system analyzing timing, location, and human factors through a nine-palace grid.

Bazi Analysis

Birth Time Sequence Analysis

Analyzes Five Elements balance from birth data to infer personality and fortune cycles.

Zi Wei Dou Shu

Star Position Calculation

Maps 100+ stars across 12 life palaces — the Eastern equivalent of Western astrology.

Mei Hua Yi Shu

Stochastic Observation Topology

Builds a hexagram from the inquiry's casting cue, then reads the changing relationship between the primary, mutual, and transformed hexagrams.

Liu Yao

How to break through bottlenecks?

Six-line divination focusing on changing lines to reveal breakthrough points.

Character Analysis

Give a character, see what the universe says

Deconstructs character structure for associative analysis. Dates to the Tang Dynasty.

Annual Fortune

Where's this year's focus?

Calculates current decade cycle and annual fortune from Bazi chart.

Life K-Line

Chart your life trajectory as K-lines

Uses financial candlestick concepts to visualize life fortune phases.

Oracle Reading

Interpret divine messages

Simulates traditional temple fortune stick drawing with deity interpretation.

Thousand Perspectives

Read the situation through five paths first

Focus the question, run five possible paths, and keep the three directions worth watching most.

Frequently Asked Questions

L0-L7 FAQ

What is the L0-L7 seven-layer architecture?

L0-L3 are classical temporal model layers: L0 macro cycle analysis, L1 astronomical computation (VSOP87D), L2 individual temporal features (iztro), L3 heterogeneous ensemble validation. L4-L6 are modern reinforcement layers: L4 multi-agent swarm simulation (OASIS), L5 prediction-outcome feedback learning, L6 real-time query signal processing. L7 is the persona-based output fusion layer.

How accurate are the predictions?

We use a "blind test + reveal" continuous validation mechanism. Each prediction is automatically tagged at generation, tracked against actual outcomes, with per-layer (symbolic/data/simulation) independent accuracy calculated and dynamic weight adjustment.

What role do classical models play?

Classical models provide a "temporal structuring framework"—classifying time points according to traditional wisdom (favorable/unfavorable, active/passive, expanding/contracting). This is the primary prediction line, forming three-line cross-validation with real-world data and swarm simulation.

How can individual users access this?

Individual users can currently use "Divine Dialogue" for personal fortune consultation, with the system combining classical models and AI analysis. World-event-level prediction will launch in the Pro version for institutional investors and research organizations.

Want to try the engine directly?

The fastest way to understand it is not to read more. Bring a real question and start a live session.