Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
[Science Advances 2026] Bridging Electron Microscopy and Materials Analysis with an Autonomous Agentic Platform
Fetched from the repository for this visit.
EMSeek bridges raw electron microscopy (EM) data to actionable materials insights by pairing advanced reasoning with specialised actions. Rather than a monolithic model, EMSeek runs a provenance-tracked multi-agent system where a Maestro planner delegates work to targeted controllers, maintains shared memory, and streams NDJSON progress so every decision is auditable.
git clone https://github.com/PEESE/EMSeek.git
cd EMSeek
conda create -n emseek python=3.10 -y
conda activate emseek
# or: python -m venv .venv && source .venv/bin/activate
Follow PyTorch's official instructions for your platform (CPU-only is fine). Then install the EMSeek stack:
pip install flask gunicorn litellm requests numpy pillow opencv-python scikit-image scipy matplotlib tqdm joblib ase pymatgen torchvision
Optional extras
pip install paper-qapip install segmentation-models-pytorchpip install fairchem mace-torch mattersimEMSeek speaks to LLM/MLLM providers via LiteLLM. Export the keys you need (OpenAI-compatible shown below) before launching:
export OPENAI_API_KEY="your_openai_key"
# Optional providers
export CORE_API_KEY="your_core_key"
export LLM_MODEL="gpt-5-nano" # overrides cfg.py defaults
export MLLM_MODEL="gpt-4o-mini" # vision-capable model for captions
pretrained/ according to cfg.py:TASK2MODEL.database/cif_lib/ (CIF files).database/papers_lib/ for offline literature review.history/<user>/<session>/ automatically.Browser UI (development):
python app.py
# visit http://localhost:8000
Production-ready gunicorn:
gunicorn -w 2 -k gevent -b 0.0.0.0:8000 "app:app"
REST NDJSON request:
curl -N -H 'Content-Type: application/json' \
-d '{"text": "Segment and describe the uploaded EM image.", "files": ["/abs/path/to/image.png"], "model": "general_model"}' \
http://localhost:8000/api
Python API:
from emseek.platform import Platform
import cfg
platform = Platform(cfg)
platform.init_agent()
payload = {"text": "Segment EM image", "files": ["samples/oblique_AgBiSb2S6-1cbf0237027e_supercell_24x20x1_dose30000_sampling0.1_iDPC_V3.png"]}
for frame in platform.query_unified(payload):
print(frame.strip()) # JSON objects per step/final
If uploads are rejected with HTTP 413, raise the proxy limit (client_max_body_size in Nginx) and optionally export MAX_UPLOAD_MB before starting Flask.
All runtime knobs live in cfg.py:
LLM_MODEL, MLLM_MODEL, EMBEDDING_MODEL).LLM_MAX_TOKENS, MLLM_TEMPERATURE, etc.).HISTORY_ROOT, CIF_LIB_DIR, PDF_FOLDER).Environment variables override module defaults, so ops teams can configure deployments without editing code.
history/<user>/<session>/ for audit trails.We welcome pull requests for new agents, analysis tools, retrieval pipelines, and documentation. Open an issue to discuss ideas or share reproducible bug reports. Please ensure new features include tests or runnable notebooks when applicable and respect existing logging and provenance patterns.
This project is released under the Apache License 2.0.
@misc{chen2025emseek,
title = {Bridging Electron Microscopy and Materials Analysis with an Autonomous Agentic Platform},
author = {Chen, Guangyao and Yuan, Wenhao and You, Fengqi},
year = {2025},
note = {CUAISci, Cornell University}
}
GitHub checked 40h ago - refresh overdue. Recently viewed repositories target hourly refresh.