Skip to main content

A Neuro-Symbolic AI System for Information Credibility Verification

Project description

Fact Checking System: Information Credibility Verification

Open In Colab Kaggle Buy me a coffee Sponsor on GitHub

PhD Thesis Prototype - Dominique S. Loyer
Citation Key: loyerModelingHybridSystem2025

[!NOTE] New in v2.2 (Jan 29, 2026):

  • GraphRAG: Contextual memory from Knowledge Graph.
  • Interactive Graph: D3.js visualization with physics and details on click.
  • Cloud Ready: Docker & Supabase integration.

๐Ÿ“‹ Overview

A neuro-symbolic AI system for verifying information credibility that combines:

  • Symbolic AI: Rule-based reasoning with OWL ontologies (RDF/Turtle)
  • Neural AI: Transformer models for sentiment analysis and NER
  • IR Engine: BM25, TF-IDF, and PageRank estimation

The system provides explainable credibility scores (High/Medium/Low) with detailed factor breakdown.


๐Ÿš€ Quick Start (v2.0 - January 2026)

Option 1: Run on Kaggle/Colab (Recommended)

  1. Click the Kaggle or Colab badge above
  2. Enable GPU runtime
  3. Run All cells

Option 2: Local Installation (Docker / Recommended)

# Clone the repository
git clone https://github.com/DominiqueLoyer/systemFactChecking.git
cd systemFactChecking/02_Code

# Run with Startup Script (Mac/Linux)
./start_syscred.sh
# Access at http://localhost:5001

Option 3: Manual Python Run

cd systemFactChecking/02_Code
pip install -r syscred/requirements.txt
python syscred/backend_app.py

Option 3: Python API

from v2_syscred.verification_system import CredibilityVerificationSystem

# Initialize
system = CredibilityVerificationSystem()

# Verify a URL
result = system.verify_information("https://www.lemonde.fr/article")
print(f"Score: {result['scoreCredibilite']} ({result['niveauCredibilite']})")

# Verify text directly
result = system.verify_information(
    "According to Harvard researchers, the new study shows significant results."
)

๐Ÿ“ก REST API Endpoints

Endpoint Method Description
/api/verify POST Full credibility verification
/api/seo POST SEO analysis only (faster)
/api/ontology/stats GET Ontology statistics
/api/health GET Server health check

Example Request

curl -X POST http://localhost:5000/api/verify \
  -H "Content-Type: application/json" \
  -d '{"input_data": "https://www.bbc.com/news/article"}'

Example Response

{
  "scoreCredibilite": 0.78,
  "niveauCredibilite": "HIGH",
  "analysisDetails": {
    "sourceReputation": "High",
    "domainAge": 9125,
    "sentiment": {"label": "NEUTRAL", "score": 0.52},
    "entities": [{"word": "BBC", "entity_group": "ORG"}]
  }
}

๐Ÿ“ Project Structure

systemFactChecking/ โ”œโ”€โ”€ README.md # This file โ”œโ”€โ”€ 01_Presentations/ # Presentations (.pdf, .tex) โ”œโ”€โ”€ 02_Code/ # Source Code & Docker โ”‚ โ”œโ”€โ”€ syscred/ # โญ CORE ENGINE (v2.2) โ”‚ โ”‚ โ”œโ”€โ”€ graph_rag.py # [NEW] GraphRAG Module โ”‚ โ”‚ โ”œโ”€โ”€ verification_system.py โ”‚ โ”‚ โ”œโ”€โ”€ database.py # [NEW] Supabase Connector โ”‚ โ”‚ โ””โ”€โ”€ ... โ”‚ โ”œโ”€โ”€ start_syscred.sh # Startup Script โ”‚ โ”œโ”€โ”€ Dockerfile # Deployment Config โ”‚ โ””โ”€โ”€ requirements.txt โ”œโ”€โ”€ 03_Docs/ # Documentation (.pdf) โ””โ”€โ”€ 04_Bibliography/ # References (.bib, .pdf)


---

## ๐Ÿ”ง Configuration

Set environment variables or edit `02_Code/v2_syscred/config.py`:

```bash
# Optional: Google Fact Check API key
export SYSCRED_GOOGLE_API_KEY=your_key_here

# Server settings
export SYSCRED_PORT=5000
export SYSCRED_DEBUG=true
export SYSCRED_ENV=production  # or development, testing

๐Ÿ“Š Credibility Scoring

The system uses weighted factors to calculate credibility:

Factor Weight Description
Source Reputation 25% Known credible sources database
Domain Age 10% WHOIS lookup for domain history
Sentiment Neutrality 15% Extreme sentiment = lower score
Entity Presence 15% Named entities (ORG, PER)
Text Coherence 15% Vocabulary diversity
Fact Check 20% Google Fact Check API results

Thresholds:

  • HIGH: Score โ‰ฅ 0.7
  • MEDIUM: 0.4 โ‰ค Score < 0.7
  • LOW: Score < 0.4

๐Ÿ“š Documentation & Papers


๐Ÿท๏ธ Citation

@software{loyer2025syscred,
  author = {Loyer, Dominique S.},
  title = {SysCRED: Neuro-Symbolic System for Information Credibility Verification},
  year = {2025},
  publisher = {GitHub},
  url = {https://github.com/DominiqueLoyer/systemFactChecking}
}

๐Ÿ“œ License

MIT License - See LICENSE for details.


๐Ÿ”„ Version History

Version Date Changes
v2.0 Jan 2026 Complete rewrite with modular architecture, Kaggle/Colab support, REST API
v1.0 Apr 2025 Initial prototype with basic credibility scoring

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

syscred-2.2.0.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

syscred-2.2.0-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

Details for the file syscred-2.2.0.tar.gz.

File metadata

  • Download URL: syscred-2.2.0.tar.gz
  • Upload date:
  • Size: 55.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for syscred-2.2.0.tar.gz
Algorithm Hash digest
SHA256 2ae5bb64880dcee47f73abfbced2cb0dbca3f04bf42da6c50da6de792818f466
MD5 61c4eee37516575123d51789fe83d2d7
BLAKE2b-256 35a454993b47cf973bc83a29d1e392a284f68dee969cbad93b976e7930e2fc38

See more details on using hashes here.

File details

Details for the file syscred-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: syscred-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for syscred-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 786c283bdeaa3357c148b726f2f30946e1c6622e4785531a7e5b49d69ac2882c
MD5 8eb459b2675480046fdffbddb3d1d284
BLAKE2b-256 a92d1682a286ab40dda57c2d50787eb60c0be4ea922996ec1d21a69f27708966

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page