548.84K

Fake_News_Presentation

1.

PROGRAMMING FOR DATA ANALYSIS AND DATABASE
Fake News
Detection
A measured study of
38,313 news articles
BoW / TF-IDF / LSA / Neural E5
Kurmet Adilzhan · Tolegenov Nursultan
Issakulov Zeiin
AAI-2602
01

2.

01 / RESEARCH QUESTION
Which representation earns its complexity?
Predict the dataset label
from article text.
Quality
Macro-F1, precision, recall and real mistakes
Cost
Fit time, inference time and process memory
Stability
Different group splits and later articles
AAI-2602
02

3.

02 / DATA
From a public corpus to a clean experiment
44,898
38,313
116 MB
input articles
clean articles
raw CSV data
715 empty bodies removed
5,870 exact duplicate rows removed
ISOT public mirror, pinned commit
File hashes saved with every run
The selected corpus is below the volume guideline; an instructor exception is still needed.
AAI-2602
03

4.

03 / LEAKAGE CONTROL
Related publications stay together
Clean
Group
Separate
Remove HTML, URLs
and Reuters markers
Exact bodies, long titles
and 80-word prefixes
No detected family
crosses partitions
TRAIN
VALIDATION
TEST
26,815
5,744
5,754
Vocabulary and classifiers learn from train. Validation chooses the model. Test measures it.
AAI-2602
04

5.

04 / METHODS
Four representations, one classifier family
BoW
TF-IDF
LSA
E5
Normalized word
and bigram counts
Weighted words
and bigrams
128-dimensional
latent vectors
384-dimensional
neural vectors
Logistic Regression · C = 1 · Same primary split
Baseline: predict the most frequent training label.
E5 is frozen and sees the first 128 tokens; lexical models see full text.
AAI-2602
05

6.

05 / PRIMARY RESULTS
Measured quality on 5,754 held-out articles
BASELINE
0.3570
0.357–0.357
BOW
0.9764
0.972–0.980
TFIDF
0.9871
0.984–0.990
LSA
0.9856
0.982–0.989
E5
0.9501
0.944–0.956
Selected on validation: TFIDF. Right column: conditional 95% macro-F1 intervals.
AAI-2602
06

7.

06 / ERRORS
High accuracy still leaves meaningful mistakes
TFIDF · primary test
Predicted real
Real
Fake
3175
53
Predicted fake
73
20
misclassified articles
2506
False positives: 20
False negatives: 53
Confusion axes use the original dataset labels; the model does not independently verify claims.
AAI-2602
07

8.

07 / ERROR EXAMPLES
Inspect the article behind the score
FALSE POSITIVE
FALSE NEGATIVE
Text: Mitt Romney speech slamming Donald
Trump
N. KOREA’S LATEST MISSILE LAUNCH
Aimed At Testing Carrying “Large Scale
Heavy Nuclear Warhead”
Article 10471
P(fake): 0.982
Subject: politicsNews
Article 31797
P(fake): 0.015
Subject: politics
Shared vocabulary and reporting style are plausible error sources, not proven causal explanations.
AAI-2602
08

9.

08 / ROBUSTNESS
Does performance survive another split?
Macro-F1 across three extra group splits
BASELINE
0.3524 – 0.3560
Later articles: 0.1053
BOW
0.9745 – 0.9755
Later articles: 0.9597
TFIDF
0.9849 – 0.9870
Later articles: 0.9784
LSA
0.9835 – 0.9865
Later articles: 0.9767
Seeds 7 / 21 / 84. Chronological holdout is within the same corpus, not an external test.
AAI-2602
09

10.

09 / BIAS AUDIT
A shortcut hidden in the dataset
1.000
Our text models do not use subject.
macro-F1 using subject alone
But topic and publisher style
can still appear in vocabulary.
This diagnostic reveals complete
subject / label separation
on the held-out split.
An independent external corpus
is needed to test generalization.
Diagnostic only: the metadata model is not selected, deployed or counted as a text representation.
AAI-2602
10

11.

10 / COMPUTATION
The neural encoder has a measurable cost
Model
Fit seconds
Predict seconds
Peak RSS, MiB
BASELINE
0.0
0.0
552
BOW
34.7
4.8
1196
TFIDF
31.1
6.8
1188
LSA
59.9
4.1
1197
E5
1204.7
161.0
1041
E5: 4 CPU threads; lexical workers: 1. Background work affects timings.
These are observed execution costs, not a controlled hardware benchmark.
AAI-2602
11

12.

11 / DATABASE
Every prediction remains traceable
subjects
experiments
PK subject_id
name
PK model
config · metrics · runtime
articles
predictions
1 : many
PK article_id · FK subject_id
text · label · split · hash
PK / FK model + article_id
predicted · probability_fake
10 SQL queries: JOIN, GROUP BY/HAVING, subquery, CTE and window functions.
AAI-2602
12

13.

12 / REPRODUCE
A complete run leaves auditable evidence
01
02
03
04
Input
Models
Analysis
Deliver
CSV hashes
Cleaning manifest
Saved classifiers
Pinned neural weights
Predictions and errors
SQL and robustness
CSVs
Written report
Editable presentation
python main.py run --raw data/raw --include-e5
python -m newscheck.robustness --run runs/RUN_ID
AAI-2602
13

14.

13 / CONCLUSIONS
Useful evidence, with a defined scope
Established
Still limited
Real-data training and test results
Neural embeddings executed
Nonzero errors inspected
Split and temporal sensitivity measured
Historical source and topic biases
No independent external corpus
Heuristic duplicate families
128-token neural input budget
Before submission: approve the dataset-size exception
and record each member’s actual contribution.
AAI-2602
14

15.

14 / SOURCES
Data, implementation and image credits
Repository
github.com/Marticat/fake-news-detection-aai2602
Corpus
ISOT · emilurosev/isot-fake-news-dataset
Requested data card: Kaggle / Clement Bisaillon
Methods
scikit-learn · SQLite · intfloat/multilingual-e5-small
Photography
Mr Cup / Fabien Barral on Unsplash
unsplash.com/photos/Mwuod2cm8g4
All charts use the saved real-data run. Full references and hashes are in the report.
AAI-2602
15
English     Русский Правила