AI for Good Hackathon | Snowflake + Cortex AI
Schools often struggle to identify students who need early academic attention due to irregular attendance or declining performance.
Manual monitoring is time-consuming, reactive, and error-prone, which delays timely intervention.
This project leverages Snowflake Cortex AI to analyze student attendance and performance data and generate human-readable explanations and recommendations for at-risk students.
The system enables educators to make early, data-driven decisions using AI-powered insights.
- Snowflake Data Warehouse
- Snowflake Cortex AI (snowflake-arctic)
- SQL
- Synthetic student dataset (CSV)
Fields used:
student_idstudent_nameclassdateattendancemarks
The dataset represents daily attendance and academic performance records for students.
- β Attendance anomaly detection
- β Performance risk identification
- β Natural-language explanations using Snowflake Cortex AI
- β Non-technical, easy-to-understand outputs
- Student attendance & performance data is stored in Snowflake
- SQL queries aggregate attendance and marks
- Snowflake Cortex AI generates explanations and recommendations
- Educators receive clear, actionable insights
SELECT
student_name,
SNOWFLAKE.CORTEX.COMPLETE(
'snowflake-arctic',
CONCAT(
'Student risk analysis. ',
'Absent days: ',
COUNT_IF(attendance = ''Absent''),
'. Average marks: ',
ROUND(AVG(marks), 2),
'. Provide a short recommendation.'
)
) AS ai_recommendation
FROM SCHOOL_DB.PUBLIC.STUDENT_ATTENDANCE
GROUP BY student_name
HAVING COUNT_IF(attendance = 'Absent') >= 2
OR AVG(marks) < 60;
## π Impact
- Enables early identification of at-risk students
- Reduces manual monitoring effort for educators
- Supports timely academic intervention using AI-driven insights
## π How to Run
1. Create a Snowflake account
2. Upload the provided CSV dataset
3. Run the SQL scripts from the repository
4. Execute the Cortex AI query to generate insights