Skip to content

Latest commit

 

History

328 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaterialGraph

Deterministic, explainable materials research intelligence and decision support

MaterialGraph is a proprietary knowledge-graph platform that computationally generates, ranks, compares, and explains material opportunities using available data and explicit deterministic rules.

MaterialGraph is a research-assistance system. Its outputs are hypotheses and prioritization signals—not proof of novelty, structural preservation, transformation or synthesis feasibility, physical performance, or scientific correctness. Researchers retain responsibility for interpretation and must validate relevant conclusions through literature, structural analysis, domain-specific computation, experiments, or other appropriate methods.

In this project, discovery means deterministic computational exploration and prioritization. It does not mean experimental discovery, novelty confirmation, synthesis feasibility, or validated performance.


Why MaterialGraph?

Materials research requires investigators to compare chemistry, stability, criticality, supply risk, evidence, and competing research constraints.

MaterialGraph helps users:

  • find computationally related material opportunities;
  • explore inspectable substitution and pathway hypotheses;
  • analyze graph relationships and communities;
  • evaluate research objectives and constraints;
  • compare strengths, trade-offs, warnings, and assumptions;
  • identify missing evidence and validation priorities.

It does not autonomously select a scientifically correct material or pathway.


The MaterialGraph Research Cycle

MaterialGraph is designed as an explainable scientific exploration workspace, not as a collection of disconnected endpoints or isolated analysis tools. A researcher should be able to move through one continuous investigation:

flowchart TD
    A["Research need / scientific question"] --> B["Formalize problem and starting context"]
    B --> C["Define explicit research objective"]
    C --> D["Generate ranked, explained candidates"]
    D --> E["Inspect evidence, assumptions, and gaps"]
    E --> F["Explore relationships and pathways"]
    F --> G["Compare alternatives"]
    G --> H["Save the investigation"]
    H --> I["Share and collaborate"]
    I --> J["Refine the objective"]
    J --> D
Loading

The cycle is iterative because scientific exploration rarely ends with one ranking or comparison. Each result should help the researcher refine the question, inspect another possibility, or identify the next validation step. Problem formalization is a planned research-assistance capability: when the researcher already has a precise objective, it should be possible to enter that objective directly.

Longer term, MaterialGraph is intended to preserve not only research outputs but the objective, assumptions, evidence state, reasoning, exclusions, and researcher decisions through which those outputs were reached.


Core Principles

  • deterministic and reproducible computation;
  • explicit data, rules, scoring, provenance, and limitations;
  • researcher-in-the-loop decision support;
  • structured data before inferred representations;
  • unknown evidence is not favourable evidence;
  • internal model support is not external scientific validation;
  • scientific and graph semantics before performance;
  • no LLM reasoning in canonical scientific computation.

Given the same inputs, source-data version, configuration, software version, and ordering rules, MaterialGraph should produce the same ordered outputs and explanations. Determinism makes results reproducible; it does not make them scientifically valid.


Current Capabilities — v1.9.6

Foundation Intelligence

  • Material Graph Foundation;
  • Material Neighborhood and Family Intelligence;
  • Similarity and Recommendation Engines;
  • Criticality Analysis;
  • Scenario Policy Engine.

Discovery Intelligence

  • Discovery Candidate Engine;
  • Explainable Discovery Scoring and Warnings;
  • Substitution Path Engine;
  • Multi-Hop Discovery Chains;
  • Discovery Path Ranking;
  • Research-Objective Exploration.

Knowledge-Graph Intelligence

  • Graph Builder and Traversal;
  • BFS, DFS, Dijkstra, and K-best path workflows;
  • Community Detection and Intelligence;
  • Ranked Subgraph Exploration;
  • Graph Analytics;
  • Material Quality;
  • Node and Edge Intelligence;
  • PostgreSQL-backed graph-job persistence and lifecycle primitives. Public graph-job routes are intentionally not registered while worker ownership, lifecycle, and API-contract requirements remain incomplete.

Research and Evidence Intelligence

  • Scientific Pathway Analysis;
  • Research Opportunity Analysis;
  • Objective Evaluation;
  • Comparative Research Intelligence;
  • Endpoint-Sensitive Research Ranking;
  • Structured Evidence Summaries and Attribution;
  • Missing-Evidence and Weak-Assumption Reporting;
  • Validation Priorities and Evidence Readiness.

These capabilities are implemented and partly tested. “Implemented” does not mean independently scientifically validated.


Interpreting Research Outputs

MaterialGraph distinguishes:

Output category Meaning
Source data Imported or recorded fields such as composition and source identifiers
Derived measurement Deterministically calculated values such as criticality or centrality
Rule-based inference Classifications and pathway hypotheses produced by encoded rules
External validation evidence Literature, structural analysis, DFT, synthesis, or experimental results

Confidence and readiness fields describe support within MaterialGraph's current data and rules. They are not probabilities of scientific correctness.

The platform should separately expose internal rule support, data completeness, external evidence coverage, validation readiness, and scientific-validation status. A pathway can have strong internal support while having no external validation evidence. Graph/path outputs should be interpreted as reasoning pathways or pathway hypotheses unless appropriate evidence explicitly supports a physical transformation or synthesis pathway.

Objectives distinguish preferences, soft constraints, hard endpoint constraints, and hard path-wide constraints. Unknown evidence cannot be assumed to satisfy a hard constraint unless explicitly permitted.


Architecture

flowchart TD
    A["Materials source data"] --> B["Graph foundation"]
    B --> C["Foundation intelligence"]
    C --> D["Discovery intelligence"]
    D --> E["Knowledge-graph intelligence"]
    E --> F["Research and evidence intelligence"]
    F --> G["Researcher review and external validation"]
Loading

The planned Scientific Knowledge Layer will preserve attributed literature, observations, simulations, experiments, review status, disagreement, and the scientific context needed to interpret evidence appropriately. Evidence will not silently alter canonical computation; reviewed evidence may enter later, explicitly versioned datasets or policies. Planned investigation persistence should also preserve enough versioned objective and reasoning context to make important eligibility, rejection, and ranking decisions inspectable.

MaterialGraph is also being architected toward a domain-extensible model. The shared Core should preserve domain-independent scientific-reasoning semantics such as constraints, evidence states, provenance, validation awareness, deterministic graph reasoning, and reproducibility, while future validated domain extensions provide domain-specific scientific meaning. Cross-domain decision contexts such as supply risk or sustainability may eventually be composed with those domains. This is a planned architecture boundary, not a claim that multiple industry verticals are currently implemented or scientifically validated.


Current Validation and Audit Status

Validation type Status
Unit and regression testing Implemented; coverage continues to expand
API and deterministic-behaviour verification Completed for tested workflows
Architecture and implementation audit (MG-AUD-*) Complete: 92 remediated, 2 accepted behavior, 0 open
Independent implementation audit (MG-IA-*) Closed: 20 of 20 actionable findings verified; 1 post-freeze invalidation
Stage 1 security review (MG-SEC-*) Inspection complete; 11 confirmed findings, 4 verified, and 1 identifier retired after revalidation
Literature-backed case studies Not yet completed
Independent materials-researcher review Not yet completed
DFT cross-validation Not yet completed
Experimental validation Not completed

The completed architecture register tracks 94 findings: 92 are remediated and 2 are accepted behavior. The later independent pass preserved 21 confirmed findings; exact-baseline revalidation made one non-actionable, and all remaining 20 actionable findings are verified. Retired MG-IA-022 also received defense-in-depth migration-configuration hardening during closure.

“Resolved” means that a specified implementation defect was corrected and verified within scope. It does not mean that the affected output has been scientifically validated.


Technology Stack

Backend

  • Python;
  • FastAPI;
  • SQLAlchemy;
  • Pydantic v2;
  • PostgreSQL;
  • Alembic;
  • NetworkX.

Infrastructure

  • AWS EC2;
  • Neon PostgreSQL;
  • Nginx;
  • systemd;
  • Docker for local development.

Testing

  • pytest.

Quick Start

The minimal sequence below requires a running PostgreSQL instance and an empty database. For platform-specific environment activation, database creation, secret-scanning setup, and verification steps, see the Getting Started guide.

git clone https://github.com/MaterialGraph/materialgraph.git
cd materialgraph

python -m venv .venv
pip install -r requirements.txt

# Copy .env.example to .env, then set DATABASE_URL to the prepared database.
# Linux/macOS: cp .env.example .env
# Windows PowerShell: Copy-Item .env.example .env

alembic upgrade head

# Optional manifest build; first set MATERIALS_PROJECT_API_KEY in .env.
# This fetches source data but does not write to the database.
# python -m scripts.import_materials_project --manifest ./materials-manifest.json \
#   --source-release 2026.09.01 \
#   --retrieved-at 2026-09-15T00:00:00+00:00

uvicorn app.main:app --reload

DATABASE_URL is required for migrations and application startup. MATERIALS_PROJECT_API_KEY is required only when running the optional Materials Project import.


Documentation

Document Description
Getting Started Local setup and project bootstrapping
System Architecture Implemented layers and cross-cutting architecture
Scientific Principles Governing scientific and evidence boundaries
Research Architecture Researcher workflow and validation responsibilities
Roadmap Validation, product, and future milestones
Dataset Expansion Controlled dataset-growth readiness, evidence, and implementation
Known Issues Current limitations and tracked issues
Deployment Guide AWS EC2, Neon PostgreSQL, systemd, and Nginx deployment
Security Documentation Security architecture and implementation plan

Roadmap Priorities

  1. Continue the approved Stage 1 security sequence with scoped, evidence-backed hardening of the remaining findings.
  2. Harden graph-job worker ownership, lifecycle, authorization, and recovery before considering public route activation.
  3. Measure repository-scale graph/search cost and address evidenced bottlenecks.
  4. Establish literature-backed cases and independent researcher review.
  5. Validate the Core/domain-extension boundary against representative workflows before stabilizing domain extension or template contracts.
  6. Add governed evidence capture and a versioned Scientific Knowledge Layer.
  7. Build the researcher-facing workflow and frontend over the verified API.
  8. Introduce Go or Rust computation only where profiling justifies it.
  9. Explore ML or LLM assistance without replacing canonical deterministic computation.

See the roadmap for status definitions and the full sequence.


Project Scope

MaterialGraph does not:

  • replace literature review or domain expertise;
  • prove structural or framework preservation;
  • replace crystallographic analysis, DFT, or other domain computation;
  • guarantee transformation or synthesis feasibility;
  • guarantee material performance or industrial scalability;
  • replace laboratory experiments, peer review, or scientific judgment.

Researchers remain responsible for selecting, interpreting, and validating research opportunities.


Licensing

MaterialGraph's original software is proprietary. No general permission is currently granted to use, copy, modify, or redistribute its source code.

Third-party components and materials remain subject to their respective licenses, notices, and attribution requirements. Repository visibility does not change these terms or grant an open-source licence.

About

Graph-based material intelligence platform for battery material screening, criticality analysis, similarity search, and recommendation-driven decision support.

Topics

Resources

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages