How maher121/phd-blockchain-ai works
This is a research prototype for supply-chain anomaly detection, security evaluation, and blockchain integrity—not a production ledger service. The documented workflow begins with DataCo discovery and leakage-safe preparation, then supports anomaly modeling and controlled attack evaluation; later source-indexed modules add feature optimization, resource measurement, and order-chain construction/validation. The README excerpt documents V0.1–V0.4, while the source index shows later experimental stages. Some subsystem links are therefore documented capabilities rather than a single verified end-to-end runtime path.
Main entry points: pipeline_v02.py Data pipeline runner · pipeline_v06g.py Robustness runner · ground_truth.py Attack ground truth · models.py Anomaly models
Components 20
Data preparation
- Dataset discovery
src/data/dataset_discovery.py - Data audit
src/data/audit.py - DataCo preprocessing
src/preprocessing/dataco_pipeline.py - Feature engineering
src/preprocessing/feature_engineering_v2.py - Data pipeline runner
src/pipeline_v02.py
Security and AI
- Attack generation
src/security/experiment_data.py - Attack ground truth
src/security/ground_truth.py - Anomaly models
src/lightweight/models.py - Security evaluation
src/security/evaluation.py - AI evaluation
src/ai/evaluation.py
Research experiments
- Robustness runner
src/pipeline_v06g.py - Feature selection
src/feature_selection/methods.py - BPSO optimization
src/optimization/bpso.py - Final-test evaluation
src/pipeline_v10e.py
Blockchain ledger
- Order-chain mapping
src/blockchain_mapping/chain_builder.py - Order chain
src/blockchain_engine/order_chain.py - Block validation
src/blockchain_engine/validation.py
Resource analysis
- Resource measurement
src/green/measurement.py - Energy estimation
src/energy/estimation.py
Other components
- Researcher
Connections 17
- Researcher → Data pipeline runner: runs
- Data pipeline runner → Dataset discovery: discovers data
- Data pipeline runner → Data audit: audits data
- Data pipeline runner → DataCo preprocessing: preprocesses splits
- DataCo preprocessing → Feature engineering: engineers features
src/preprocessing/dataco_pipeline.py - Robustness runner → Attack generation: prepares attacks
src/pipeline_v06g.py - Attack generation → Attack ground truth: builds labels
src/security/experiment_data.py - Robustness runner → Anomaly models: uses models
src/pipeline_v06g.py - Robustness runner → Security evaluation: evaluates robustness
src/pipeline_v06g.py - Security evaluation → Attack ground truth: scores against
src/security/evaluation.py - AI evaluation → Anomaly models: uses detector
src/ai/evaluation.py - AI evaluation → Attack ground truth: references labels
src/ai/evaluation.py - BPSO optimization → Feature selection: uses fitness
- Final-test evaluation → Anomaly models: evaluates classifiers
src/pipeline_v10e.py - Order-chain mapping → Order chain: builds chains
src/blockchain_mapping/chain_builder.py - Order-chain mapping → Block validation: validates chain
src/blockchain_mapping/chain_builder.py - Resource measurement → Energy estimation: separates estimation