Research

Current themes

Figure for Vision-Language Models: Calibration and Adaptation

Vision-Language Models: Calibration and Adaptation

Large vision-language models such as CLIP are adapted to new tasks through prompt tuning, but the adapted models are often poorly calibrated: their confidence does not match their accuracy. We study calibration through the geometry of the text embeddings on the unit hypersphere. A-TPT improves calibration in test-time prompt tuning by maximizing the minimum pairwise angular distance between class-wise text features. M-PFT addresses prompt-tuned models that are underconfident on base classes and overconfident on novel classes, using an angular margin that keeps the class embeddings apart while anchoring each one to its zero-shot counterpart. In related work, we use language guidance and feature modulation for semi-supervised domain generalization.

  • Shihab Aaqil Ahamed, Mohamed Ansaff, Nang Khin Myat Lay Phyu, Udaya S.K.P. Miriya Thanthrige, Chamira Edussooriya, Ranga Rodrigo, and Muhammad Haris Khan, “M-PFT: Angular Margin for Calibrated Prompt-Tuning of Fine-Tuned Vision-Language Models,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2027. PDF Link
  • Shihab Aaqil Ahamed, Udaya S.K.P. Miriya Thanthrige, Ranga Rodrigo, and Muhammad Haris Khan, “A-TPT: Angular Diversity Calibration Properties for Test-Time Prompt Tuning of Vision-Language Models,” in Proceedings of the International Conference on Learning Representations, 2026. PDF Code Link
  • Muditha Fernando, Kajhanan Kailainathan, Krishnakanth Nagaratnam, Isuranga Senavirathne, and Ranga Rodrigo, “SemAlign: Language Guided Semi-supervised Domain Generalization,” in Proceedings of International Conference on Pattern Recognition, Leon, France, 2026. PDF
  • Venuri Amarasinghe, Kalinga Bandara, Isun Randila, Asini Jayakody, Chamuditha Galappaththige, and Ranga Rodrigo, “Domain-Agnostic Feature Modulation for Semi-Supervised Domain Generalization,” in Proceedings of the IEEE/CVF Computer Vision and Pattern Recognition Workshop on Domain Generalization: Evolution, Breakthroughs, and Future Horizons, 2026, pp. 1–10. PDF
Figure for Computational Pathology Second figure for Computational Pathology

Computational Pathology

PathKGen is a knowledge-graph-assisted multimodal large language model for generating histopathology reports from whole-slide images. A visual path feeds pathology foundation-model features to the language model, and a knowledge path queries a pathology knowledge graph for the key morphological features, so that the diagnostic reasoning is visible as a graph. Our other works advance AI-driven cancer pathology by addressing two key challenges: multimodal data integration and limited annotations. The SENCA-st framework introduces a cross-attention-based shared encoder to effectively fuse histopathology images with spatial transcriptomics, enabling precise identification of tumor heterogeneity and microenvironmental regions by capturing both structural and functional differences. Complementing this, the uncertainty-aware learning approach improves cancer subtyping by estimating model confidence and strategically selecting only the most informative samples for expert annotation, achieving state-of-the-art performance with minimal labeled data. Together, these contributions provide a scalable and efficient pathway for more accurate and data-efficient computational pathology systems.

  • Nadun Rajapaksha, Sandun Herath, Devnith Wijesinghe, Isiri Amani Withanawasam, Hasindri Watawana, and Ranga Rodrigo, “PathKGen: Pathology Knowledge Assisted MLLM for Explainable Histopathology,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2027. PDF Code Link
  • Shanaka Liyanaarachchi, Chathurya Wijethunga, Shihab Aaqil Ahamed, Akthas Absar, and Ranga Rodrigo, “SENCA-st: Integrating Spatial Transcriptomics and Histopathology with Cross Attention Shared Encoder for Region Identification in Cancer Pathology,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, March 2026, pp. 3578–3587. PDF Link
  • Nirhoshan Sivaroopan, Chamuditha Galappaththige, Chalani Ekanayake, Hasindri Watawana, Ranga Rodrigo, and Chamira Edussooriya, “Uncertainty Awareness Enables Efficient Labeling for Cancer Subtyping in Digital Pathology,” in Proceedings of the Winter Conference on Applications of Computer Vision (WACV), 2025, pp. 589–598. PDF Link
Figure for 3D and 4D Scene Understanding Second figure for 3D and 4D Scene Understanding

3D and 4D Scene Understanding

CL4D pre-trains an encoder on 4D point-cloud streams with a contrastive language objective, to support vision-language reasoning about dynamic scenes. DARB-Splatting generalizes 3D Gaussian splatting to decaying anisotropic radial basis functions. Point clouds, usually obtained using LiDARs, is an important perception manner commonplace in vision based autonomous navigation. One challenge of large-scale outdoor LiDAR point clouds is the high volume of points; generally millions of points per frame of observation. Object detection, and semantic segmentation important problems in the point-cloud domain.

  • Kumal Hewagamage, Isuranga Senavirathne, Sasika Amarasinghe, Hasitha Gallella, Dulanga Weerakoon, Vigneshwaran Subbaraju, and Ranga Rodrigo, “CL4D: Contrastive Language-4D Pretraining for Vision-Language Reasoning in Dynamic Scenes,” in Proceedings of the European Conference on Computer Vision, 2026, pp. 594–612. PDF Code Link
  • Hashiru Pramuditha, Vinasirajan Viruthshaan, Vishagar Arunan, Saeedha Nazar, Sameera Ramasinghe, Simon Lucey, and Ranga Rodrigo, “DARB-Splatting: Generalizing Splatting with Decaying Anisotropic Radial Basis Functions,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2026, pp. 4504–4514. PDF Code Link
  • Mohamed Afham, Isuru Dissanayake, Dinithi Dissanayake, Amaya Dharmasiri, Kanchana Thilakarathna, and Ranga Rodrigo, “CrossPoint: Self-Supervised Cross-Modal Contrastive Learning for 3D Point Cloud Understanding,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, June 2022, pp. 1–10. PDF Code Link
  • Arulmolivarman Thieshanthan, Amashi Niwarthana, Pamuditha Somarathne, Tharindu Wickremasinghe, and Ranga Rodrigo, “HPGNN: Using Hierarchical Graph Neural Networks for Outdoor Point Cloud Processing,” in Proceedings of the International Conference on Pattern Recognition, Montreal, QC, 2022, pp. 1–7. PDF Code Link
  • Dishanika Denipitiyage, Vinoj Jayasundara, Chamira Edussooriya, and Ranga Rodrigo, “PointCaps: Raw point cloud processing using capsule networks with Euclidean distance routing,” Journal of Visual Communication and Image Representation, vol. 88, pp. 103612, 2022. PDF Link
Figure for Efficient Model Composition

Efficient Model Composition

Public repositories host many low-rank adapters (LoRAs) for the same backbone, each for a different concept or task. Combining several of them forces a trade-off: merging the weights is fast but the adapters interfere, whereas running each adapter in its own forward pass keeps the quality at a cost that grows with the number of adapters. We observed that, in real LoRA pools, the stacked low-rank factors need far fewer directions than their summed ranks. LoRASpace is a training-free method that computes this shared subspace once per pool and reuses it in a static mode at merge cost and in a dynamic mode for input-dependent routing.

  • Thamirawaran Sathiyalogeswaran, Navindu De Silva, Chamikara Siriwardane, W. K. Alwis, Jason Mars, Udaya S.K.P. Miriya Thanthrige, and Ranga Rodrigo, “LoRASpace: A Pool-Wide Shared Substrate for Static and Dynamic Multi-LoRA Composition,” in Advances in Neural Information Processing Systems, December 2026. PDF Code Link
Figure for Vision for Self-Driving

Vision for Self-Driving

Computer vision is an enabler for self-driving, whether the input is camera based-video or LIDAR-based point clouds. We are working along multiple avenues to contribute to this important area.

Road marking detection and lane detection directly assist self-driving. We have introduced a novel road marking benchmark dataset for road marking detection, addressing the limitations in the existing publicly available datasets such as lack of challenging scenarios, prominence given to lane markings, unavailability of an evaluation script, lack of annotation formats and lower resolutions. In SwiftLane, we presented a simple and light-weight, end-to-end deep learning based framework, coupled with the row-wise classification formulation for fast and efficient lane detection. Both these were with the support from Creative Software under the supervision of Dr. Peshala Jayasekara.

Inspired by recent improvements in point cloud processing for autonomous navigation, we focused on using hierarchical graph neural networks for processing and feature learning over large-scale outdoor LiDAR point clouds. In point based and GNN models for semantic segmentation with our work achieves a significant improvement for GNNs on the SemanticKITTI dataset. We have also made a more fundamental contribution in using cross-modal contrastive learning approach to learn transferable 3D point cloud representations.

  • Oshada Jayasinghe, Damith Kawshan Anhettigama, Sahan Hemachandra, Shenali Kariyawasam, Ranga Rodrigo, and Peshala Jayasekara, “SwiftLane: Towards Fast and Efficient Lane Detection,” in Proceedings of the International Conference on Machine Learning and Applications, 2021, pp. 1–6. PDF Link
  • Oshada Jayasinghe, Sahan Hemachandra, Damith Kawshan Anhettigama, Shenali Kariyawasam, Ranga Rodrigo, and Peshala Jayasekara, “CeyMo: See More on Roads - A Novel Benchmark Dataset for Road Marking Detection,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Wikoloa, HI, January 2022, pp. 3104–3113. PDF Code Link

Earlier work

Figure for Board Games: Learning beyond Simulations

Board Games: Learning beyond Simulations

Reinforcement learning algorithms have been successfully trained for games like GO, Atari, and Chess in simulated environments. However, in cue sport-based games like Carrom, real world is unpredictable unlike in Chess and GO due to the stochastic nature of the gameplay as well as the effect of external factors such as friction combined with multiple collisions. Hence, solely training in a simulated platform for games like Billiard and Carrom, which need precise execution of a shot, would not be ideal in actual gameplay. This paper presents a real-time vision based efficient robotic system to play Carrom against a proficient human opponent. We demonstrate the challenges of adopting a reinforcement learning algorithm beyond simulations in implementing strategic gameplay for the robotic system. We currently achieve an overall shot accuracy of 70.6% by combining heuristic and reinforcement learning algorithms. Analysis of the overall results suggests the possibility of adopting a realworld training for board games which need precise mechanical actuation beyond simulations.

  • Naveen Karunanayake, Achintha Wijesinghe, Chameera Wijethunga, Chinthani Kumaradasa, Peshala Jayasekara, and Ranga Rodrigo, “Towards a Smart Opponent for Board Games: Learning beyond Simulations,” in Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics, Toronto, CA (virtual), 2020, pp. 1–8.
Figure for Context-Aware Occlusion Removal

Context-Aware Occlusion Removal

In this work, we identify objects that do not relate to the image context as occlusions and remove them, reconstructing the space occupied coherently. We detect occlusions by considering the relation between foreground and background object classes represented by vector embeddings, and removes them through inpainting. Notice how the skier has been automatically removed.

  • Kumara Kahatapitiya, Dumindu Tissera, and Ranga Rodrigo, “Context-Aware Automatic Occlusion Removal,” in Proceedings of the IEEE International Conference on Image Processing, Taipei, Taiwan, September 2019, pp. 1–4. PDF Link
Figure for Extensions to Capsule Networks

Extensions to Capsule Networks

We extended the capsule networks taking several paths. In the TextCaps work, we adjust the instantiation parameters with random controlled noise to generate new training samples from the existing samples, with realistic augmentations which reflect actual variations that are present in human hand writing. Our results with a mere 200 training samples per class surpass existing character recognition results in MNIST and several other datasets.

In DeepCaps we developed a deep capsule network architecture which uses a novel 3D convolution based dynamic routing algorithm. Further, we propose a class-independent decoder network, which strengthens the use of reconstruction loss as a regularization term. This leads to an interesting property of the decoder, which allows us to identify and control the physical attributes of the images represented by the instantiation parameters.

  • Jathushan Rajasegaran, Vinoj Jayasundara, Sandaru Jayasekara, Hirunima Jayasekara, Suranga Seneviratne, and Ranga Rodrigo, “DeepCaps: Going Deeper with Capsule Networks,” in Proceedings of the IEEE CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, June 2019, pp. 1–9. PDF Code Link
  • Vinoj Jayasundara, Sandaru Jayasekara, Hirunima Jayasekara, Jathushan Rajasegaran, Suranga Seneviratne, and Ranga Rodrigo, “TextCaps: Handwritten Character Recognition With Very Small Datasets,” in Proceedings of the IEEE Winter Conference on Applications of Computer Vision, Waikoloa, HI, January 2019, pp. 254–262. PDF Code Link
Figure for Deep Learning of Augmented Reality based Human Interactions for Automating a Robot Team

Deep Learning of Augmented Reality based Human Interactions for Automating a Robot Team

Getting a team of robots to achieve a relatively complex task using manual manipulation through augmented reality is interesting. However, the true potential of such an approach manifests when the system can learn from humans. We propose a system comprising a team of robots that performs a previously unseen task---a variant, to be specific---by learning from the sequences of actions taken by multiple human beings doing this task in various ways using deep learning. The training inputs can be through actual manipulation of the team of robots using an augmented-reality tablet or through a simulator. Results indicate that the system is able to fulfill the specified variant of the task more than 80% of the time, inaccuracies mainly owing to unrealistic specifications of tasks. This opens up an avenue of training a team of robots, instead of crafting a rule base.

  • Adhitha Dias, Hasitha Wellaboda, Yasod Rasanka, Menusha Munasinghe, Ranga Rodrigo, and Peshala Jayasekara, “Deep Learning of Augmented Reality based Human Interactions for Automating a Robot Team,” in Proceedings of the International Conference on Control, Automation and Robotics (ICCAR), Singapore, 2020, pp. 175–182. PDF Link
Figure for Gait Analysis

Gait Analysis

There are several systems that use one or several Kinect sensors for human gait analysis, particularly for diagnosis of patients. However, due to the limited depth sensing range of the Kinect-a sensor manufactured for video gaming-the depth measurement accuracy reduces with distance from the Kinect. In addition, self-occlusion of the subject limits the accuracy and utility of such systems. We overcome these limitations by first by using a two-Kinect gait analysis system and second by mechanically moving the Kinects in synchronization with the test subject and each other. These methods increase the practical measurement range of the Kinectbased system whilst maintaining the measurement accuracy.

  • Madhura P. Pathegama, Dileepa M. Marasinghe, Kanishka Wijayasekara, Ishan Karunanayake, Chamira Edussooriya, Pujitha Silva, and Ranga Rodrigo, “Moving Kinect-Based Gait Analysis with Increased Range,” in Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics, Miyazaki, Japan, October 2018, pp. 4126–4131. PDF Link
  • Ravindu Kumarasiri, Akila Niroshan, Zaman Lantra, Thanuja Madusanka, Chamira Edussooriya, and Ranga Rodrigo, “Gait Analysis Using RGBD Sensors,” in Proceedings of the International Conference on Control, Automation, Robotics and Vision, Singapore, November 2018, pp. 460–465. PDF Link
Figure for Video Synopsis

Video Synopsis

Video synopsis, summarizing a video to generate a shorter video by exploiting the spatial and temporal redundancies, is important for surveillance and archiving. Existing trajectory-based video synopsis algorithms are not able to work in real time because of the complexity due to the number of object tubes that need to be included in the complex energy minimization algorithm. We propose a real-time algorithm by using a method that incrementally stitches each frame of the synopsis by extracting object frames from the user specified number of tubes in the buffer in contrast to global energy minimization based systems. This also gives flexibility to the user to set the threshold of maximum number of objects in the synopsis video according his or her tracking ability and creates collision-free summarized videos which are visually pleasing. Experiments with six common test videos, indoors and outdoors with many moving objects, show that the proposed video synopsis algorithm produces better frame reduction rates than existing approaches in real-time.

  • Anton J. Ratnarajah, Sahani Goonetilleke, Dumindu Tissera, Balagobalan Kapilan, and Ranga Rodrigo, “Moving Object Based Collision-Free Video Synopsis,” in Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics, Miyazaki, Japan, October 2018, pp. 1658–1663. PDF Link

Former research students

Dr. Sameera Ramasinghe
Dr. Sameera Ramasinghe Pluralis Research
Dr. Manosha Chathuramali
Dr. Manosha Chathuramali Kyushu University
Dileepa Jayamanne
Dileepa Jayamanne University of Hertfordshire
Dr. Dumindu Tissera
Dr. Dumindu Tissera Rumi Labs Inc.
Dr. Kumara Kahatapitiya
Dr. Kumara Kahatapitiya Meta
Sutharsan Mahendren
Sutharsan Mahendren QUT
Dr. Mahendra Samarawickrama
Dr. Mahendra Samarawickrama OECD.AI

Grants

  1. National Science Foundation of Sri Lanka Grant No. RG/2012/CSIT/01 (2012).
  2. National Research Council of Sri Lanka Grant No. 12-018 (2012).
  3. The University of Moratuwa, Senate Research Committee Grant No. SRC/LT/2016/04 (2016).
  4. Accelerating Higher Education Expansion and Development (AHEAD) Operation of the Ministry of Higher Education, Sri Lanka, funded by the World Bank.