A comprehensive framework for reproducible scientific publications in embodied AI, featuring reusable analysis methods, automated validation, and professional presentation standards.
Ant Stack provides a modular, reproducible framework for scientific publications in embodied AI, enabling researchers to:
-
β Reuse validated analysis methods across papers
-
β Ensure reproducible results through automated validation
-
β Generate publication-quality figures with consistent styling
-
β Maintain scientific rigor with statistical validation
-
β Scale research workflows with automated build pipelines
| Feature | Description |
|---|---|
| π Reusability | Modular analysis methods for energy estimation, statistics, and visualization |
| π Quality Assurance | Automated validation, cross-reference checking, and statistical verification |
| π¨ Professional Output | Publication-ready figures, LaTeX integration, and consistent formatting |
| β‘ Performance | Optimized algorithms with comprehensive benchmarking |
| π¬ Scientific Rigor | Bootstrap confidence intervals, uncertainty quantification, reproducibility |
| π§ͺ Test-Driven | 70%+ test coverage with comprehensive edge case testing |
-
π€ Embodied AI Research: Energy analysis for robotic systems
-
π§ Neuroscience: Computational complexity of neural networks
-
β‘ Engineering: Power optimization and scaling analysis
-
π Data Science: Statistical validation and visualization
β Fully Operational: All core systems working and validated
- 4 Papers: Successfully building with comprehensive validation
- 70%+ Test Coverage: Extensive test suite with edge cases
- Complete Documentation: Comprehensive guides and references
- Production Ready: Scientific validation and quality assurance
π Latest Results (from build_report.md):
- All Papers: β SUCCESS (4/4 built successfully)
- All Tests: β PASSED (11/11 tests passing)
- Zero Issues: No validation errors or broken references
graph TB
A[π¦ Core Package] --> B[Analysis Methods]
A --> C[Figure Generation]
A --> D[Publishing Tools]
B --> B1[Energy Estimation]
B --> B2[Statistical Validation]
B --> B3[Workload Modeling]
C --> C1[Publication Plots]
C --> C2[Mermaid Processing]
C --> C3[Cross-References]
D --> D1[PDF Generation]
D --> D2[Quality Validation]
D --> D3[Template System]
E[π Paper Structure] --> F[Ant Stack Framework]
E --> G[Complexity Analysis]
H[π§ Build Pipeline] --> I[Unified Validation]
H --> J[Quality Assurance]
H --> K[Automated Testing]
| Component | Purpose | Key Features |
|---|---|---|
energy.py |
Energy estimation and analysis | Physical modeling, efficiency calculations |
statistics.py |
Statistical methods and validation | Bootstrap CI, scaling relationships |
workloads.py |
Computational workload modeling | Body/brain/mind workload patterns |
scaling_analysis.py |
Scaling relationship analysis | Power laws, regime detection |
enhanced_estimators.py |
Advanced energy estimation | Multi-scale analysis, theoretical limits |
experiment_config.py |
Experiment configuration | YAML/JSON management, validation |
| Component | Purpose | Key Features |
|---|---|---|
plots.py |
Publication-quality plotting | Matplotlib integration, styling |
mermaid.py |
Diagram preprocessing | Mermaid to PNG conversion |
references.py |
Cross-reference validation | Figure/table reference checking |
assets.py |
Asset management | File organization, optimization |
| Component | Purpose | Key Features |
|---|---|---|
pdf_generation.py |
PDF generation utilities | Pandoc integration, LaTeX processing |
templates.py |
Document templates | Consistent formatting, styling |
validation.py |
Quality assurance | Automated checking, error detection |
Focus: Biological framework for collective intelligence
| Section | File | Purpose |
|---|---|---|
| π Introduction | Background.md |
Theoretical foundation |
| π¦Ώ Body Layer | AntBody.md |
Locomotion and sensing |
| π§ Brain Layer | AntBrain.md |
Neural processing and learning |
| π Mind Layer | AntMind.md |
Decision making and planning |
| π§ Methods | Methods.md |
Implementation details |
| π Results | Results.md |
Experimental validation |
| π‘ Applications | Applications.md |
Real-world use cases |
| π£οΈ Discussion | Discussion.md |
Implications and future work |
Focus: Computational complexity and energy scaling
| Section | File | Purpose |
|---|---|---|
| π Introduction | Background.md |
Problem statement |
| π¬ Theory | Complexity.md |
Complexity analysis framework |
Energetics.md |
Energy modeling approach | |
Scaling.md |
Scaling relationship theory | |
| π οΈ Methods | Methods.md |
Analysis methodology |
| π Results | Generated.md |
Auto-generated analysis results |
Results.md |
Interpretation and validation | |
| π£οΈ Discussion | Discussion.md |
Scientific implications |
System Requirements:
-
Python 3.8+
-
Node.js 14+
-
LaTeX distribution
-
Pandoc 2.10+
# System dependencies
sudo apt-get update
sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended fonts-dejavu nodejs npm
# Enhanced diagram rendering
sudo npm install -g mermaid-filter
# Python dependencies
pip3 install matplotlib numpy pandas pyyaml pytest scipy# System dependencies
brew install pandoc node python3
brew install --cask mactex-no-gui
# Enhanced diagram rendering
npm install -g mermaid-filter
# Python dependencies
pip3 install matplotlib numpy pandas pyyaml pytest scipy# Clone repository
git clone https://github.com/docxology/ant_stack.git
cd ant
# Install in development mode
pip install -e .
# Run tests
python -m pytest
# Build documentation
python scripts/build_docs.py# Ant Stack framework paper
python3 scripts/common_pipeline/build_core.py --paper ant_stack
# Complexity analysis paper
python3 scripts/common_pipeline/build_core.py --paper complexity_energetics# Build all papers
python3 scripts/common_pipeline/build_core.py
# With validation only
python3 scripts/common_pipeline/build_core.py --validate-onlyfrom antstack_core.analysis.energy import EnergyCoefficients, estimate_detailed_energy
from antstack_core.analysis.statistics import bootstrap_mean_ci
# Energy analysis example
coeffs = EnergyCoefficients()
workload = ComputeLoad(flops=1e9, memory_bytes=1e6)
energy = estimate_detailed_energy(workload, coeffs)
# Statistical validation
data = [1.2, 1.5, 1.3, 1.8, 1.4]
mean, ci_lower, ci_upper = bootstrap_mean_ci(data, n_bootstrap=1000)Test Coverage Goals:
-
Core modules: 80%+ coverage
-
Analysis methods: 90%+ coverage
-
Edge cases: Comprehensive coverage
-
Integration tests: End-to-end validation
Running Tests:
# All tests
python -m pytest
# With coverage report
python -m pytest --cov=antstack_core --cov-report=html
# Specific module
python -m pytest tests/antstack_core/test_energy.py -v
# Performance benchmarks
python -m pytest tests/ --benchmark-onlyLinting and Formatting:
# Run linters
python -m flake8 antstack_core/
python -m black antstack_core/
python -m isort antstack_core/
# Type checking
python -m mypy antstack_core/Pre-commit Hooks:
# Install hooks
pre-commit install
# Run manually
pre-commit run --all-filesBuilding Docs:
# Generate API documentation
python scripts/generate_docs.py
# Build user guide
python scripts/build_user_guide.py
# Deploy to GitHub Pages
python scripts/deploy_docs.py-
Getting Started: Installation and basic usage
-
API Reference: Complete method documentation
-
Best Practices: Development guidelines
-
Troubleshooting: Common issues and solutions
-
Theoretical Foundation: Mathematical underpinnings
-
Validation Framework: Quality assurance methods
-
Benchmarking: Performance analysis
-
Reproducibility: Ensuring scientific validity
-
Contributing Guide: Development workflow and standards
-
Workflow Guides: Complete workflow documentation
-
Configuration Summary: Configuration management
-
PDF Rendering Guide: Publication system details
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Write tests for new functionality
- Implement your changes
- Run tests:
python -m pytest - Update documentation if needed
- Submit a pull request
-
All PRs require review
-
Tests must pass CI pipeline
-
Documentation updates required for API changes
-
Maintain backward compatibility
-
Use GitHub Issues for bug reports
-
Provide minimal reproducible examples
-
Include system information and error traces
-
Follow issue templates for consistency
This project is licensed under the MIT License - see the LICENSE file for details.
-
Scientific Contributors: Domain experts in embodied AI and computational neuroscience
-
Open Source Community: Libraries and tools that power this framework
-
Research Institutions: Partners supporting reproducible science initiatives
-
Issues: GitHub Issues
-
Discussions: GitHub Discussions
Built with β€οΈ for reproducible science in embodied AI