PhD Thesis Prototype — Dominique S. Loyer (UQAM)
Citation Key: loyerModelingHybridSystem2025
> [!NOTE] **Version stable : v2.4.1 (12 mars 2026) — (dashboard explainers, TREC metrics, GraphRAG)** > - **Fact-Checking** multi-sources (Google Fact Check API) - **E-E-A-T** (Experience, Expertise, Authority, Trust) - **NER** — Extraction d'entités nommées (spaCy) - **GraphRAG** — Réseau Neuro-Symbolique (D3.js) - **Métriques** — Precision, Recall, nDCG, MRR - **Bias Analysis** — Détection de biais
systemFactChecking_Production/ ├── src/ │ └── syscred/ ← Package Python principal │ ├── __init__.py │ ├── core/ ← Cœur du système │ │ ├── config.py ← Configuration centralisée │ │ ├── verification_system.py │ │ └── scoring.py │ ├── api/ ← Interface web │ │ ├── backend_app.py ← Flask app │ │ ├── routes/ │ │ └── middleware/ │ ├── ml/ ← Modèles ML │ │ ├── sentiment.py │ │ ├── ner_analyzer.py ← À fusionner depuis HF │ │ └── eeat_calculator.py ← À fusionner depuis HF │ ├── graph/ ← GraphRAG & Ontologie │ │ ├── graph_rag.py │ │ ├── ontology_manager.py │ │ └── queries.py │ ├── ir/ ← TREC & Information Retrieval │ │ ├── ir_engine.py │ │ ├── trec_retriever.py │ │ └── eval_metrics.py │ ├── datasets/ ← Gestion datasets │ │ └── liar_dataset.py │ └── utils/ ← Utilitaires │ ├── api_clients.py │ ├── database.py │ └── helpers.py │ ├── data/ ← Données (hors git pour gros fichiers) │ ├── ontology/ │ │ ├── sysCRED_onto26avrtil.ttl │ │ └── sysCRED_data.ttl │ └── datasets/ │ ├── liar/ ← Dataset LIAR │ └── trec/ ← Corpus TREC AP88-90 (276MB) │ ├── docs/ ← Documentation │ ├── DEV_LOGS/ ← Journaux de développement │ ├── PUBLICATIONS/ ← Papers et présentations │ └── API.md │ ├── tests/ ← Tests │ ├── unit/ │ ├── integration/ │ └── benchmarks/ │ ├── notebooks/ ← Jupyter notebooks │ └── exploration/ │ ├── deploy/ ← Configurations déploiement │ ├── huggingface/ ← Spécifique HF Space │ │ ├── Dockerfile.hf │ │ ├── requirements-hf.txt │ │ └── static/ ← Assets HF │ └── docker/ ← Docker générique │ ├── Dockerfile │ └── docker-compose.yml │ ├── scripts/ ← Scripts utilitaires │ ├── start_syscred.sh │ ├── deploy_huggingface.sh │ └── run_benchmarks.py │ ├── 99_Archive/ ← ARCHIVES (jamais supprimées) │ └── 2026-03-14_restructuration/ │ ├── systemFactChecking-1/ ← Copie complète préservée │ ├── syscred-space_backup/ ← Version HF préservée │ ├── v2_syscred/ ← Ancienne version │ ├── syscred_legacy/ │ └── SysCRED_v2.1_Update/ │ └── README.md ← Documentation des archives │ ├── pyproject.toml ← Configuration package Python ├── requirements.txt ├── requirements-dev.txt ├── .env.example ├── .gitignore ← Mis à jour avec data/large └── README.md ← Mis à jour
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 (DistilBERT) and NER (spaCy)
- IR Engine: BM25, TF-IDF, and PageRank estimation
- E-E-A-T: Google Quality Rater Guidelines scoring
The system provides explainable credibility scores (High/Medium/Low) with detailed factor breakdown.
systemFactChecking/
├── README.md # This file
├── LICENSE
├── pyproject.toml # Python/PyPI config
├── Dockerfile # Render deployment (Lite, <528MB)
├── Dockerfile.huggingface # HuggingFace Spaces (Full, with ML)
├── requirements.txt # Standard dependencies
├── requirements-lite.txt # Render (no ML models)
├── requirements-full.txt # HF/Local (PyTorch, spaCy, etc.)
├── .env # Environment variables
├── .gitignore
│
├── syscred/ # ⭐ SOURCE CODE (single source of truth)
│ ├── __init__.py
│ ├── backend_app.py # Flask server (entry point)
│ ├── verification_system.py # Main verification pipeline
│ ├── api_clients.py # External API clients
│ ├── config.py # Configuration
│ ├── database.py # DB management (Supabase/PostgreSQL)
│ ├── db_store.py # Database storage layer
│ ├── ir_engine.py # IR engine (BM25, TF-IDF)
│ ├── ontology_manager.py # Ontology management (OWL/RDF)
│ ├── seo_analyzer.py # SEO analysis
│ ├── eval_metrics.py # Evaluation metrics (MAP, NDCG, etc.)
│ ├── graph_rag.py # GraphRAG module (D3.js)
│ ├── ner_analyzer.py # NER (spaCy)
│ ├── eeat_calculator.py # E-E-A-T scoring
│ ├── trec_retriever.py # TREC evidence retrieval
│ ├── trec_dataset.py # TREC AP88-90 corpus parser
│ ├── liar_dataset.py # LIAR benchmark dataset
│ └── static/
│ └── index.html # Frontend dashboard
│
├── ontology/ # OWL/RDF ontology files
│ ├── sysCRED_onto26avrtil.ttl # Base ontology schema
│ └── sysCRED_data.ttl # Ontology data (triplets)
│
├── huggingface_space/ # HuggingFace Space config
│ ├── Dockerfile
│ └── README.md
│
├── tests/ # Unit tests
├── 01_Presentations/ # PhD presentations (LaTeX)
├── 03_Docs/ # Documentation & dev logs
├── 04_Bibliography/ # Research references
├── 99_Archive/ # Archived older versions
└── assets/ # Images and graphs
Paramètres clés:
| Paramètre | Description | Valeur par défaut |
|---|---|---|
HOST |
Adresse du serveur | 0.0.0.0 |
PORT |
Port du serveur | 5000 |
DEBUG |
Mode debug | true |
LOAD_ML_MODELS |
Charger les modèles ML | true |
WEB_FETCH_TIMEOUT |
Timeout HTTP (sec) | 10 |
cd systemFactChecking python -m venv venv source venv/bin/activate pip install -r requirements-full.txt python -m syscred.backend_app # → Access at http://localhost:5001
docker build -t syscred-lite -f Dockerfile .
docker run -p 5000:5000 --env-file .env syscred-litedocker build -t syscred-full -f Dockerfile.huggingface .
docker run -p 7860:7860 --env-file .env syscred-full| Endpoint | Method | Description |
|---|---|---|
/api/verify |
POST | Full credibility verification |
/api/seo |
POST | SEO analysis only |
/api/ontology/stats |
GET | Ontology statistics |
/api/ontology/graph |
GET | D3.js graph data |
/api/trec/search |
POST | TREC evidence retrieval |
/api/trec/metrics |
POST | Calculate IR metrics |
/api/trec/corpus |
GET | TREC corpus info |
/api/trec/health |
GET | TREC module health |
/api/health |
GET | Server health check |
curl -X POST http://localhost:5001/api/verify \ -H "Content-Type: application/json" \ -d '{"input_data": "La Terre est ronde"}'
| 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 |
E-E-A-T Score (Google Quality Rater):
- Experience: Domain age, content richness
- Expertise: Technical vocabulary, citations
- Authority: Estimated PageRank, backlinks
- Trust: HTTPS, unbiased sentiment
Pondérations des scores:
SCORE_WEIGHTS = { 'source_reputation': 0.25, # Réputation de la source 'domain_age': 0.10, # Âge du domaine 'sentiment_neutrality': 0.15, # Neutralité du ton 'entity_presence': 0.15, # Présence d'entités vérifiables 'coherence': 0.15, # Cohérence textuelle 'fact_check': 0.20 # Résultats fact-check }
# Google Fact Check API key export SYSCRED_GOOGLE_API_KEY=your_key_here # Supabase Database export SYSCRED_DATABASE_URL=postgresql://... # Base URL export SYSCRED_BASE_URL=https://syscred.uqam.ca # Server settings export SYSCRED_PORT=5001 export SYSCRED_DEBUG=true export SYSCRED_ENV=production
Variables d'environnement:
export SYSCRED_ENV=production # Environnement (dev/prod/testing) export SYSCRED_PORT=8080 # Port personnalisé export SYSCRED_GOOGLE_API_KEY=xxx # Clé Google Fact Check export SYSCRED_LOAD_ML=false # Désactiver ML
| Platform | URL | Type |
|---|---|---|
| HuggingFace | DomLoyer/syscred | Full (ML models) |
| Render | syscred-deploy-v2 | Lite (no ML) |
| UQAM | syscred.uqam.ca | Mirror (iframe → HF) |
cff-version: 1.2.0 title: "systemFactChecking: v2.4.1 --- Neuro-Symbolic AI Credibility System" message: | To cite this software, please use the following entry: @software{Loyer2026sysCREDv241, author = {Loyer, Dominique}, title = {DominiqueLoyer/systemFactChecking: v2.4.1 --- Neuro-Symbolic AI Credibility System}, year = {2026}, month = mar, doi = {10.5281/zenodo.18436691}, orcid = {0009-0003-9713-7109}, url = {https://github.com/DominiqueLoyer/systemFactChecking/releases/tag/v2.4.1}, publisher = {Zenodo}, license = {CC-BY-4.0}, repository = {https://github.com/DominiqueLoyer/systemFactChecking}, version = {2.4.1} } type: software abstract: | SysCRED is a hybrid neuro-symbolic system for assessing information credibility, combining ontological rules, symbolic reasoning and neural methods to evaluate the reliability and trustworthiness of digital content. authors: - family-names: Loyer given-names: Dominique orcid: "https://orcid.org/0009-0003-9713-7109" identifiers: - type: doi value: "10.5281/zenodo.18436691" keywords: - credibility - fact-checking - neuro-symbolic AI - knowledge graph - information verification license: CC-BY-4.0 version: 2.4. embeddings: 1
MIT License — See LICENSE.
| Version | Date | Changes |
|---|---|---|
| v2.4 | Feb 22, 2026 | Consolidated restructuration, full TREC, bias analysis |
| v2.3 | Feb 8-9, 2026 | NER, E-E-A-T, Google Fact Check API, GraphRAG, blue glow UI |
| v2.2 | Jan 29, 2026 | GraphRAG, D3.js graph, Docker & Supabase integration |
| v2.0 | Jan 2026 | Complete rewrite, modular architecture, REST API |
| v1.0 | Apr 2025 | Initial prototype |