UTP Risk AI helps academic advisors and learning platforms identify students who may need support before they fall behind. By combining current grade average, attendance rate, task-submission rate, participation, weekly study hours, and the most recent practice exam score, the model assigns each student to one of three risk bands and offers targeted improvement tips.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JoseOlivares19/Proyecto-PC3-JavaScript-Avanzado/llms.txt
Use this file to discover all available pages before exploring further.
Model Details
| Property | Value |
|---|---|
| Model key | utp-risk |
| Endpoint | POST /predict/utp-risk |
| Training samples | 260 synthetic samples |
| Classifier | RandomForestClassifier(n_estimators=180, max_depth=7, random_state=42, class_weight="balanced_subsample") |
Output Labels
| Label | Meaning |
|---|---|
RIESGO_BAJO | Low academic risk — student is on track |
RIESGO_MEDIO | Moderate academic risk — monitor and offer targeted support |
RIESGO_ALTO | High academic risk — immediate intervention recommended |
Label Decision Logic
The labelling function computes a weighted academic performance score across all six inputs:| Feature | Weight | Notes |
|---|---|---|
promedio_actual | ×3.2 | Strongest single predictor |
nota_pc_anterior | ×2.5 | Recent exam performance |
horas_estudio_semana | ×1.20 | Practice intensity |
asistencia_pct | ×0.18 | Engagement proxy |
tareas_entregadas_pct | ×0.16 | Consistency signal |
participacion_pct | ×0.10 | Active learning indicator |
Input Fields
Student’s current weighted grade average on the UTP 0–20 scale. Range: 0 – 20. Carries the highest weight (×3.2) in the scoring formula.
Percentage of scheduled classes the student has attended. Range: 0 – 100. Values below 75 % trigger a specific attendance recommendation.
Percentage of assigned tasks submitted on time. Range: 0 – 100. Values below 70 % trigger a task-submission recommendation.
Percentage of class activities in which the student actively participated. Range: 0 – 100.
Average self-reported study hours per week. Range: 0 – 40. Values below 6 hours trigger a study-hours recommendation.
Grade obtained on the most recent practice exam (PC) on the 0–20 scale. Range: 0 – 20. Values below 12 trigger an exam-review recommendation.
Recommendations
Recommendations are generated by inspecting the raw input values against four thresholds:| Condition | Recommendation |
|---|---|
asistencia_pct < 75 | Raise attendance — the system detects a loss of academic continuity |
tareas_entregadas_pct < 70 | Regularise task submissions — tasks demonstrate sustained practice |
horas_estudio_semana < 6 | Increase weekly practice hours with guided exercises |
nota_pc_anterior < 12 | Reinforce weak points from the previous exam before the final evaluation |
| None of the above | Maintain the pace and solve an additional React + services integration challenge |
Example Request & Response
Response Fields
Always
"UTP RiskAI" for this endpoint.Predicted risk label:
RIESGO_ALTO, RIESGO_MEDIO, or RIESGO_BAJO.Probability of the top prediction, rounded to 4 decimal places.
All three risk classes sorted by probability descending. Each element contains
clase (string) and probabilidad (float).Personalised list of academic improvement tips derived from the student’s actual input values.
Echo of the exact request payload received by the server.