Define the prediction task
Decide whether the model flags individual items, bags, or whole bins and collect labels that match the chosen granularity.
Detect recycling contamination. Assess prediction reliability.
A recycling-contamination detector flags items or collection batches that are likely to contain non-recyclable materials. Typical inputs include images, sensor readings or labelled collection records; important failure modes include class imbalance, domain shift between sites, and ambiguous labels when human operators disagree.
Learning concept · Not a validated service
A recycling-contamination detector flags items or collection batches that are likely to contain non-recyclable materials. Typical inputs include images, sensor readings or labelled collection records; important failure modes include class imbalance, domain shift between sites, and ambiguous labels when human operators disagree.
A proposed application: triage for sorting facilities where the model flags suspicious bins for human inspection. The extension below is a suggested pilot and is not implemented in the supplied starter code.
Decide whether the model flags individual items, bags, or whole bins and collect labels that match the chosen granularity.
Gather images or sensor records from target facilities, label them consistently and reserve a geographically separated test set to check generalisation.
Start with a simple baseline (for example a lightweight CNN for images or a RandomForest for tabular sensors) and track metrics relevant to operations such as false-alert and miss rates.
Add human-in-the-loop review for flagged items, monitoring for data drift, and an escalation policy for uncertain predictions.
The supplied starter generates a synthetic tabular classification dataset with sklearn.make_classification, fits a Pipeline that scales features and trains a RandomForestClassifier, then prints a sklearn classification report on a held-out test split. It does not use recycling images, sensor data, geospatial inputs or labels tied to contamination.
model = Pipeline(
steps=[
("scale", StandardScaler()),
("classifier", RandomForestClassifier(n_estimators=250, random_state=RANDOM_STATE)),
]
)
model.fit(X_train, y_train)
predictions = model.predict(X_test)The starter uses a synthetic sklearn.make_classification dataset with arbitrary numeric features and binary labels; it does not include any recycling-specific inputs (images, sensor streams or field labels). Results from this toy data do not validate performance on real recycling contamination tasks, and the synthetic class balance and feature semantics do not reflect operational datasets.
A proposed extension is a pilot that collects camera images and operator labels from one sorting facility, trains an image classifier to flag contaminated bins, and pairs predictions with a human-review dashboard for rapid feedback and label correction.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.