Overview

I teach courses in programming and algorithms, focusing on helping students build a clear and working understanding of core concepts. My approach emphasizes active learning through questioning, discussion, and problem-solving, with the goal of encouraging students to think independently and engage deeply with the material. I aim to create a classroom environment where students are comfortable exploring ideas, asking questions, and learning from mistakes.

My research focuses on the application of artificial intelligence across diverse real-world domains. I am particularly interested in areas such as biometrics, hydrology, and large language models, with an emphasis on building systems that have practical impact. I enjoy working on cross-disciplinary projects that bring together ideas from different fields to address complex problems. I have active collaborations with the University of Sydney, the University of Melbourne, and the University of Moratuwa (Sri Lanka), where we are developing exciting real-world solutions utilizing AI.

Visit Real-World AI Lab (RAIL@NUS) here: https://rail.nus.edu.sg/

Highlights

Google TPU Grant Awarded

by Google, 2026

DualFloodGNN-TPU: A Scalable Physics-Informed Graph Foundation Model for Large-Scale Hydrodynamic Flood Simulation.

Google TPU credits of 50,000 USD awarded for the research.

Faculty Teaching Excellence Award (FTEA) 2026

Placed on the Honor Roll for 2027-2031

Research Grant Awarded

NUS-USYD Ignition Grant, 2025

Real-Time Flood Modeling for Climate Resilience in Sustainable Cities using Physics-Informed GenAI and Graph Neural Networks: Launching FloodBench Dataset and International Ai Challenge

NUS PI: Sanka Rasnayaka, USYD Co-PIs: Prof Lucy Marshall, Dr Viraj Herath

Biometrics at the Borders

Event page.

Hosted this session at Identity Week Asia 2024, held at Suntec Convention Centre, Singapore.

Got to interview Lorraine Finlay, Human Rights Commissioner, Australian Human Rights Commission, and Prof. Terence Sim, Associate Professor at SoC, NUS, for the panel discussion.

Quoted in a Straits Times Article

"Queues spotted in S'pore as people get their eyes scanned for cryptocurrency" [News article]

Quote: "Dr Rasnayaka, who researches biometrics and artificial intelligence, said biometrics can be misused for identity theft, surveillance and discrimination, as it reveals information such as a person's age, race, gender and even certain medical conditions."

Education

  • Ph.D. in Computer Science, National University of Singapore, 2021.

    I completed my PhD in 2021, from the Department of Computer Science at the School of Computing in National University of Singapore. My thesis focused on the application of AI and Computer Vision for Continuous Authentication and privacy.

  • B.Sc. Engineering (Honours) in Computer Science and Engineering, University of Moratuwa, Sri Lanka, 2016.
  • Physical Sciences, Advanced Level, Dharmaraja College Kandy, Sri Lanka, 2010.

Experience

National University of Singapore

Singapore

  • Lecturer

    Full-time

    Jan 2022 - Present

  • Full-time Teaching Assistant

    Jan 2021 - Jan 2022

  • GAP Teaching Assistant

    Aug 2017 - Dec 2020

University of Moratuwa
  • Visiting Instructor

    Jun 2014 - Feb 2016 · 1 yr 9 mos

Awards

  • Faculty Teaching Excellence Award (FTEA), 2026 with Honor Roll for 2027-2031.
  • Annual Teaching Excellence Award (ATEA), 2025.
  • Faculty Teaching Excellence Award (FTEA), 2025.
  • Annual Teaching Excellence Award (ATEA), 2024.
  • Faculty Teaching Excellence Award (FTEA), 2024.
  • NUS Honor List of Student Tutors, AY 2020-21.
  • NUS Honor List of Student Tutors, AY 2018-19.
  • NUS Research Scholarship, 2017-2021.
  • UoM Dean's List of Academic Excellence, all semesters.

Current Courses

Current SOC Courses

  • CS1101S Programming Methodology [Course page]

    Introductory programming methodology module for CS undergraduates. The course provides experiential learning through the SourceAcademy platform, to a large cohort of 800+ students. Co-teaching since 2022.

  • CS2040 Data Structures and Algorithms [Course page]

    The course introduces fundamental data structures and algorithms using Java language. Co-teaching since 2024.

  • TIC2601 Database and Web Applications [Course page]

    The course introduces databases and web application development, using SQLite and nodejs. Co-teaching since 2023.

Summer Courses and Workshops

Teaching Awards

  • Faculty Teaching Excellence Award (FTEA), 2026 with Honor Roll for 2027-2031.
  • Annual Teaching Excellence Award (ATEA), 2025.
  • Faculty Teaching Excellence Award (FTEA), 2025.
  • Annual Teaching Excellence Award (ATEA), 2024.
  • Faculty Teaching Excellence Award (FTEA), 2024.
  • NUS Honor List of Student Tutors, AY 2020-21.
  • NUS Honor List of Student Tutors, AY 2018-19.

Previous Teaching

Previously Taught

  • CS3203 Software Engineering Project
  • CS1010S Programming Methodology
  • NM2207 Computational Media Literacy

Previously TA-ed

  • CS1231 Discrete Structures
  • CS1010E Programming Methodology
  • CS2010 Data Structures and Algorithms II
  • CS5332 Biometric Authentication
  • CS3230 Design and Analysis of Algorithms
  • SWS3026 Visual Computing

Pedagogical Research

My pedagogical research connects classroom practice with evidence-driven tools for large computing courses. The work sits around three related themes.

Research Threads

  • Scaffolded Problem Solving

    Supporting introductory computing students with explicit problem-solving structures before they are expected to internalize them through practice.

    • [1] Scaffolding the Problem-Solving Process for Introductory Computing Students Ashish Deepak Dandekar, Nitya Lakshmanan, Daren Ler, Adi Yoga Sidi Prabawa, Sanka Rasnayaka. IEEE Frontiers in Education Conference (FIE), Nov 2, 2025. IEEE
  • Learning Analytics at Scale

    Making repository activity, pull requests, team progress, and code quality visible to instructors in large project-based courses.

    • [2] Data Driven Insights: Pull Request Visualizations and Static Code Analysis in Multi-Git Repo Classrooms Rui Jie Koh, Kevin Eng Ger Tjan, Xinyi Wang, Sanka Rasnayaka, Ganesh Neelakanta Iyer. IEEE International Conference on Teaching, Assessment, and Learning for Engineering (TALE), Dec 4, 2025, pp. 1-8. IEEE
  • AI-Assisted Software Engineering Education

    Studying how students use LLMs in realistic team projects and how educators can guide productive human-AI collaboration.

    • [3] Analysis of Student-LLM Interaction in a Software Engineering Project Naman Agrawal, Ridwan Shariffdeen, Guanlin Wang, Sanka Rasnayaka, Ganesh Neelakanta Iyer. LLM4Code at ICSE, 2025. PDF
    • [4] An Empirical Study on Usage and Perceptions of LLMs in a Software Engineering Project Sanka Rasnayaka, Wang Guanlin, Ridwan Salihin Shariffdeen, Ganesh Neelakanta Iyer. LLM4Code at ICSE, 2024. PDF

Teaching Tools

CRISP platform screenshot
Classroom Repository Interactions and Status (CRISP) Platform

CRISP is a multi-git classroom management solution that allows educators to monitor student progress, create assignments, and grade submissions all in one place.

CRISP is built on the MERN stack and currently supports:

  • Pooling data from multiple git repositories
  • Course creation and user management / access control
  • Pooling project management data from JIRA, Github projects, TROFOS
  • Automated static code analysis of student repos using Sonar
  • Assessment creation and grading within CRISP

The product is currently in use for multiple courses within NUS. Available here: CRISP Platform.

Live Annotation Tool screenshot
Live Annotation Tool

Live Annotation Tool is a desktop overlay app that allows you to draw anywhere on your screen with many customizations aimed at making the annotation process more intuitive and easy for educators.

Currently supports:

  • Pen, highlighter, eraser, text input
  • Customizable annotation colors and widths
  • Shortcut keys for changing annotation settings on the fly
  • Save and export annotations

The product has currently released its first version and is available here: Download Live Annotation Tool.

Research Interests and background

I am interested in the application of Artificial Intelligence and Machine Learning to real-world problems across diverse domains. My research focuses on adapting AI systems to domain-specific requirements, constraints, and expert knowledge, rather than treating AI as a one-size-fits-all solution. I enjoy working at the intersection of AI and applied domains, building practical systems that are robust, deployable, and useful in operational environments.

I founded the RAIL (Real-world AI Lab) @ NUS, which focuses on translating modern AI advances into practical systems with real societal and industrial impact. Through RAIL, I work on cross-disciplinary collaborations spanning biometrics, environmental modeling, software engineering, and large language models. I actively collaborate with researchers from the University of Sydney, the University of Melbourne, and the University of Moratuwa (Sri Lanka), alongside interdisciplinary and industry partners, to develop AI-driven solutions for real-world challenges.

Research Grants

  • Google TPU Research Grant (2026)

    DualFloodGNN-TPU: A Scalable Physics-Informed Graph Foundation Model for Large-Scale Hydrodynamic Flood Simulation.

    Awarded USD 50,000 in Google TPU credits to support large-scale AI model training and hydrodynamic flood simulation research.

  • NUS-USYD Ignition Grant (2025)

    Real-Time Flood Modeling for Climate Resilience in Sustainable Cities using Physics-Informed GenAI and Graph Neural Networks: Launching FloodBench Dataset and International AI Challenge.

    NUS PI: Sanka Rasnayaka. USYD Co-PIs: Prof. Lucy Marshall, Dr. Viraj Herath.

Research Areas

Biometrics and continuous authentication research

Biometrics and Continuous Authentication

A major part of my research has focused on behavioral biometrics and continuous authentication for mobile and personal devices. Continuous Authentication aims to transparently verify users throughout device usage using behavioral signals such as gait, touch interactions, keystroke dynamics, and IMU sensor data.

  • Behavioral Biometrics

    I work on robust behavioral biometric systems using signals such as gait, keystroke dynamics, touch behavior, and motion sensor data. Recent work explores transformer-based architectures and multimodal behavioral biometrics that combine IMU and interaction data.

  • Continuous Authentication

    My PhD research focused on practical and deployable continuous authentication systems for mobile devices, including authentication accuracy, resource consumption, usability, and real-world deployment trade-offs.

  • Privacy and Ethics of Biometrics

    I study function creep in biometric data, the privacy invasiveness of gait and sensor data, and how users perceive continuous biometric monitoring systems.

  • Real-world Deployment and Evaluation

    I am interested in moving biometric systems beyond laboratory settings through benchmarking, masked-face biometrics, mobile deployment constraints, and practical adoption studies.

Physics-informed AI for environmental modeling research

Physics-Informed AI for Environmental Modeling

Another major research direction focuses on applying AI to environmental and physical systems modeling. My work explores how modern generative AI and machine learning techniques can be combined with physical constraints and domain knowledge to model complex real-world systems.

  • Physics-Informed Environmental AI

    I study AI systems for real-world environmental modeling, where purely data-driven approaches must operate alongside physical laws, sparse observations, and operational constraints.

  • Flood Mapping, Hydrology, and Rainfall Estimation

    Current projects investigate diffusion models, graph neural networks, and subgrid-informed neural architectures to improve the efficiency, scalability, and generalizability of environmental simulations.

  • Ocean and Deep Sea Modeling

    I am beginning new collaborative projects related to deep sea and ocean environment modeling, extending this work into broader environmental systems.

Large language models and AI systems research

Large Language Models and AI Systems

My recent work explores the use of Large Language Models and Small Language Models for practical applications, particularly in software engineering, education, and decision support systems.

  • LLMs for Software Engineering and Education

    I study how students and software engineers interact with LLMs during software development, including prompting practices, human-AI collaboration, and the role of AI-assisted coding in education and professional workflows.

  • Reliable and Constrained LLM Systems

    I investigate techniques for enforcing constraints and rules within LLM systems, including structured reasoning, controllability, and integrating expert knowledge into LLM workflows.

  • Applied LLMs and SLMs

    I am exploring domain-adapted LLM systems for applications such as real-estate decision support, as well as tabular reasoning and structured-data understanding in Small Language Models for constrained deployment settings.

Selected Publications (domain research)

  1. DUALFloodGNN: Physics-informed Graph Neural Network for Operational Flood Modeling. 2026

    Carlo Malapad Acosta, Herath Mudiyanselage Viraj Vidura Herath, Jia Yu Lim, Abhishek Saha, Sanka Rasnayaka, Lucy Marshall. International Joint Conference on Artificial Intelligence, IJCAI 2026

  2. AniFaceDiff: Animating stylized avatars via parametric conditioned diffusion models. 2026

    Ken Chen, Sachith Seneviratne, Wei Wang, Dongting Hu, Sanjay Saha, Md Tarek Hasan, Sanka Rasnayaka, Tamasha Malepathirana, Mingming Gong, Saman Halgamuge. Pattern Recognition Journal

  3. Subgrid informed neural networks for high-resolution flood mapping. 2025

    H. M. V. V. Herath, Lucy Marshall, Abhishek Saha, Sanka Rasnayaka, Sachith Seneviratne. Journal of Hydrology

  4. Spatio-Temporal Dual-Attention Transformer for Time-Series Behavioral Biometrics. 2024

    Kim-Ngan Nguyen, Sanka Rasnayaka, Sandareka Wickramanayake, Dulani Meedeniya, Sanjay Saha, Terence Sim. IEEE Transactions on Biometrics, Behavior, and Identity Science (TBIOM)

  5. Explainable artificial intelligence for enhanced living environments: A study on user perspective. 2024

    Sandareka Wickramanayake, Sanka Rasnayaka, Madushika Gamage, Dulani Meedeniya, Indika Perera. Advances in Computers, Elsevier

  6. TEZARNet: temporal zero-shot activity recognition network. 2023

    Pathirage N Deelaka, Devin Y De Silva, Sandareka Wickramanayake, Dulani Meedeniya, Sanka Rasnayaka. International Conference on Neural Information Processing

  7. BehaveFormer: A Framework with Spatio-Temporal Dual Attention Transformers for IMU enhanced Keystroke Dynamics 2023

    Pan Yubo, Sanka Rasnayaka, Terence Sim. International Joint Conference on Biometrics (IJCB) 2023

  8. Undercover Deepfakes: Detecting Fake Segments in Videos 2023

    Sanjay Saha, Rashindrie Perera, Sachith Seneviratne, Tamasha Malepathirana, Sanka Rasnayaka, Deshani Geethika, Terence Sim, Saman Halgamuge. Workshop and Challenge on DeepFake Analysis and Detection at ICCV 2023

  9. Re-evaluating Keystroke Dynamics for Continuous Authentication 2023

    Dilshan Senarath, Sanuja Tharinda, Maduka Vishvajith, Sanka Rasnayaka, Sandareka Wickramanayake, Dulani Meedeniya. International Conference on Advanced Research in Computing (ICARC) 2023

  10. DALLE-URBAN: Capturing the urban design expertise of large text to image transformers 2022

    Sachith Seneviratne, Damith Senanayake, Sanka Rasnayaka, Rajith Vidanaarachchi, Jason Thompson. International Conference on Digital Image Computing: Techniques and Applications (DICTA) 2022

  11. Action invariant IMU Gait for Continuous Authentication 2022

    Sanka Rasnayaka, Terence Sim. International Joint Conference on Biometrics (IJCB) 2022

  12. Does a Face Mask Protect My Privacy?: Deep Learning to Predict Protected Attributes from Masked Face Images 2022

    Sachith Seneviratne, Nuran Kasthuriarachchi, Sanka Rasnayaka, Danula Hettiachchi, Ridwan Shariffdeen. Australasian Joint Conference on Artificial Intelligence (AJCAI) 2022

  13. Multi-dataset benchmarks for masked identification using contrastive representation learning 2021

    Sachith Seneviratne, Nuran Kasthuriarachchi, Sanka Rasnayaka. Digital Image Computing: Techniques and Applications (DICTA) 2021

  14. MFR 2021: Masked face recognition competition 2021

    Fadi Boutros, Naser Damer, Jan Niklas Kolf, Kiran Raja, Florian Kirchbuchner, Raghavendra Ramachandra, Arjan Kuijper, et al. International Joint Conference on Biometrics (IJCB) 2021

  15. Your Tattletale Gait, Privacy Invasiveness of IMU Gait Data 2020

    Sanka Rasnayaka, Terence Sim. International Joint Conference on Biometrics (IJCB), 2020

  16. Towards wider adoption of continuous authentication on mobile devices. 2020

    Sanka Rasnayaka, Terence Sim. [Book chapter in] Securing Social Identity in Mobile Platforms: Technologies for Security, Privacy and Identity Management.

  17. Making the most of what you have! Profiling biometric authentication on mobile devices 2019

    Sanka Rasnayaka, Sanjay Saha, Terence Sim. International Conference on Biometrics (ICB), 2019

  18. Who wants Continuous Authentication on Mobile Devices? 2018

    Sanka Rasnayaka, Terence Sim. Biometric Techniques Applications and Systems (BTAS) 2018

Full list of publications: Google Scholar.

Student Supervision

I actively supervise undergraduate and postgraduate students across Final Year Projects (FYP), Master's dissertations, and PhDs at NUS. I also provide external dissertation supervision. The records below are grouped into NUS students and external supervision. Each row represents one supervision entry, so group projects count as one entry.

If you are interested in working with me, please contact me directly. sanka(at)nus.edu.sg

Total Supervisions 0
FYP Projects 0
MSc Dissertations 0
PhD Supervisions 0

NUS Final Year Project (FYP) & Undergraduate Research Opportunity (UROP) Students

No. Student Project Title Cat Year Sem
*Maximus Simon Lee GNN-Based Super-Resolution for Flood Maps R 26/27 S1
*Skyler Ng Ynn Zee Scalable Physics-Informed GNNs for Large-Scale Flood Modeling R 26/27 S1
*Sky Lim Kai Yi Modelling spatial-rainfall distributions and Rainfall Forecasting with AI R 26/27 S1
*Saravanan Sivaram Jeychand Conditional Latent Diffusion Models (LDMs) for Probabilistic Flood Mapping R 26/27 S1
*Yong Sook Mun Vision-Language Model (VLM) for Real Estate Decision Support R 26/27 S1
*Nguyen Le Quoc Hung XAI-Guided Compression for Behavioral Biometric Authentication on Wearable Devices R 26/27 S1
*Gauhar Vishesh Vision-Language-Action (VLA) models for robotic manipulation R 26/27 S1
*Tram Minh Man AI-assisted optimisation for Floating Wind Turbine-Mooring System R 26/27 S1
*Wang Junrui, Jeremy Hybrid Modelling Framework for Structural Simulations of Floating Wind Turbine Foundations R 26/27 S1
Low Jun Yu Modelling spatial-rainfall distributions with AI R 25/26 S1
[UROP] Yao Shy Wei, Lincoln Memory-Limited Graph Neural Networks for Operational Flood Modeling R 25/26 S1
Ngyuen Khoi Nguyen Enforcing LLMs to follow game rules using RL R 25/26 S1
Tan Wee Kian Justin Enhancing CRISP platform I 25/26 S1
Gallen Ong Kai Bin Peer Review Feature for Software Engineering Project Classes I 25/26 S1
Ibnu TaimIbnu Taimiyyah Bin Adam Deployment of Transformer-Based Behavioral Biometric Authentication on Mobile Devices R 25/26 S1
Yiming Tan Explainable AI for Debugging Deep Learning-based Behavioral Biometric Authentication R 25/26 S1
Koh Rui Jie Static code quality analysis for multi-git-repo classrooms I 24/25 S1
Tjan Eng Ger, Kevin Assessment framework for multi-git-repo classrooms I 24/25 S1
Wang Xinyi Data-Driven Insights: Visualizing Dashboards and PR Reviews in Multi-git-repo Classrooms I 24/25 S1
Neo Sun Han Physics Informed Generative AI for High Resolution Flood mapping R 24/25 S1
Rachel Angelyn Gunawan LLMs for real-time question answering with proper context in live lectures I 24/25 S1
Guai Tze Yang Ryan Christopher LLMs for real-time question answering with proper context in live lectures I 24/25 S1
Sim Choon Hong Dexter Web dashboard for multi-git-repo classrooms I 23/24 S2
Elvis Teo Chin Hao Plugin for PowerPoint presenters to enhance their live-stream quality. I 23/24 S2
Chua Min Hong Web dashboard for multi-git-repo classrooms I 23/24 S1
Lin Fangyuan Web dashboard for multi-git-repo classrooms I 23/24 S1
Tan Yan Lyn Dashcam videos for driver identification, driving style profiling and other predictive tasks R 22/23 S1

Master's Dissertation Students

No. Student Thesis Title Year
Carlo Acosta Physics-informed Graph Neural Networks for Operational Flood Modeling. 2025
Pan Yubo Facial Key Point Landmark Dynamics as a Behavioral Biometric 2022

External Dissertation Supervisions

No. Student(s) Co-Supervisor/University Category Thesis Title Year
*Niramay Himmatlal Kachhadiya Dr. Viraj Herath/University of Sydney MSc Graph Neural Network-based Multisource Rainfall Data Fusion Framework for Australia 2026
*Roland Clemson, Sangmin Lee Dr. Viraj Herath/University of Sydney FYP Super-resolution of coarse grid flood simulations using graph neural networks for operational flood modelling 2026
*Aathif M.N.M, Khan M.I, Nilackshan A.P.P, Theesan L.M Dr. Sandareka Wickramanayake/CSE, University of Moratuwa FYP A Cross-Modal Audit of Demographic Privacy Leakage and Suppression in Behavioral Biometric Embeddings 2026
Devin De Silva, Nipun Deelaka Dr. Sandareka Wickramanayake, Prof. Dulini Meedeniya/CSE, University of Moratuwa FYP Explainable Zero-shot Learning for Sensor-based Human Activity Recognition 2023
D. U. Senarath, A. S. Tharinda, H. G. M. Vishvajith Dr. Sandareka Wickramanayake, Prof. Dulini Meedeniya/CSE, University of Moratuwa FYP Enhancing Behavioural Biometrics with IMU Data 2022

Interests

Music

I enjoy music and play the guitar and piano. As a hobbyist musician I have released two songs.

  • "Magemai Samada", my music with vocals by my wife and me. Audio, Video
  • "Nethu Thula Siththam", college music group. Audio

I have got together with friends during my PhD to record some cover songs as well.

My guitar instrumental performances: Guitar 1, Guitar 2, Guitar 3.

Drawing

I dabble in a bit of scribbling and art from time to time.

Reading

I enjoy fantasy and sci-fi books. My books are tracked on Goodreads.

Fitness

I enjoy running, cycling and exercising. My runs and rides are tracked on Strava.

Interest photo 1 Interest photo 2 Interest photo 3 Interest photo 4 Interest photo 5 Interest photo 6 Interest photo 7 Interest photo 8