Elephant–train collision prevention system
2020 – ongoing · graduate research
Objective
Develop a sensor unit and associated algorithms that detect elephants on or near a train track at a distance sufficient for the driver to react. The unit combines a Jetson Xavier computing platform, a laser range finder, a wide-angle camera, an infrared camera and a 3G/4G modem, powered by a solar-charged lithium-ion battery pack.
Approach
A Reolink infrared night-detection camera module was selected as the sensor unit and a YOLOv3 Darknet model used for detection. A custom dataset was collected and transfer learning applied on top of YOLOv3 weights. When an elephant is detected on the track, an alert is transmitted to the train driver and to nearby railway stations.
Funding
IEEE Special Interest Group on Humanitarian Technology (SIGHT), Robotics and Automation Society (RAS), USA · NVIDIA Applied Research Accelerator Program.
Collaborators
Prof. Lilantha Samaranayake — University of PeradeniyaProf. Kithsiri M. Liyanage — University of PeradeniyaDr. Nalin Harischandra — University of PeradeniyaDr. Tharindu Weerakoon — University of PeradeniyaDr. Parakrama Ekanayake — University of PeradeniyaProf. Gamini Dissanayake — University of Technology SydneyDr. Ravindra Ranasinghe — University of Technology SydneyMr. Maleen Jayasuriya — University of Technology Sydney
Files & links
Video presentationICIIS 2021 paper
Modifying CNN architectures for better performance
2020 · graduate research
Objective
Convolutional neural networks remain expensive to train, and the cost grows sharply with network size. This project asks whether the existing architecture can be modified to improve the trade-off between computational cost and accuracy.
Approach
Training deep networks has traditionally been difficult because vanishing gradients leave layers near the input effectively unchanged by errors computed on the training set. We are developing a cascaded layer-wise training architecture intended to reduce computational cost and mitigate the vanishing gradient problem. The work is at an early stage — literature review and testing of a small number of models.
Collaborators
Prof. Mahesan Niranjan — University of Southampton, UKDr. Maheshi B. Dissanayake — University of Peradeniya
Controller design for a robot manipulator
2019 – 2020 · graduate research
Objective
Build a complete mathematical model of a 5-DOF robot manipulator using forward and inverse kinematics, then implement a decoupling control system to improve smoothness and efficiency.
Approach
The PUMA 560 is a commercially available 6-DOF manipulator. Reverse engineering was used to derive a full forward and inverse kinematic model. Individual joint controllers were then implemented for all five joints, followed by a decoupling control system. The model was tested successfully in MATLAB Simulink using SimMechanics. The project was sponsored by GPV Lanka (Pvt) Ltd.
Collaborators
Prof. Lilantha SamaranayakeDr. Nalin Harischandra
Files & links
ICIIS 2021 paper
Active tactile sensor — an insect-inspired bionic antenna
2018 – 2019 · undergraduate research
Objective
Improve the accuracy of existing distance-estimation methods, compare artificial neural network and support vector machine performance, and identify the cause of anomalous behaviour at the antenna tip.
Approach
Many animals carry actively movable tactile sensors on their heads to explore near-range space; during locomotion an antenna is used to detect, localise, probe and negotiate obstacles. The sensor here was inspired by the antenna of the stick insect and detects an obstacle and its location in three dimensions. The probe must be vibration-sensitive and compliant, yet stiff enough to hold its shape during self-vibration, and soft enough not to damage the obstacle it taps.
An MPU6050 accelerometer at the antenna tip collected vibration data, with a Raspberry Pi 3 running motor control, data acquisition and the machine learning models in Python. Vibration signals were analysed in the frequency domain using the FFT to estimate distance, and signal processing, ANN and SVM approaches were compared for both distance estimation and material classification.
Accuracy degraded towards the tip of the probe, where vibration data has high variance. Modelling the probe with Euler–Bernoulli beam theory showed a change in vibration mode near the tip, with multiple modes appearing — a result then verified experimentally. Because the Fourier transform discards time information, wavelet-based algorithms were used to analyse the mode changes.
Outcome
A robotic solution for metal waste classification built on this sensor — METABOT, a metal tactile robot — won the IEEE R10 Asia-Pacific Humanitarian Robotics Challenge 2018. The work was recognised by the Institution of Engineers, Sri Lanka as one of the best electrical and electronic undergraduate projects in the country, and was selected among the best five undergraduate research projects in the department.
Collaborators
H. N. T. K. KalderaProf. Lilantha SamaranayakeDr. Nalin Harischandra
Files & links
Project siteThesis
Brain tumour identification and segmentation
2018 – 2019
Objective
Develop a machine learning method to classify, localise and segment brain tumours in MRI at low computational cost, and evaluate the result subjectively with clinicians.
Approach
Primary brain tumours may be malignant or benign; among them, gliomas are the most common and high-grade gliomas carry a poor prognosis. This work addresses fully automated classification and segmentation of MRI containing both glioma and meningioma tumours, using a CNN for classification and a Faster R-CNN combined with edge detection for segmentation.
Trained on 218 images, the system reached 100% accuracy on meningioma and 87.5% on glioma classification, with an average confidence above 94% in segmentation. Further analysis gave average detection accuracy, sensitivity, Dice score and confidence level of 99.81%, 87.72%, 91.14% and 93.6% respectively. Subjective quality evaluation was carried out with neurologists, medical officers and intern house officers, following ITU recommendations.
Collaborators
H. N. T. K. KalderaDr. Maheshi B. Dissanayake
Files & links
Journal of Healthcare EngineeringResearchGate
Image and video codec using a Huffman algorithm
2018 · individual project, EE596 Image and Video Coding
Objective
Implement a Huffman algorithm for image compression, then build an encoder and decoder for video transmission on top of it.
Approach
Hybrid video coding combines predictive and transform coding and underlies modern standards such as H.26x, MPEG-2/4, AVS and HEVC. This project implemented a simplified hybrid codec with discrete cosine transformation, quantisation, prediction and entropy coding, using a Huffman algorithm written from scratch for the entropy coding stage.
An image was first coded across all three layers and decoded successfully, with quality compared across quantisation levels. YUV video was then encoded and decoded with macroblock-based coding, basic motion estimation and intra prediction. The quantisation process was optimised for transmission in a fixed-bandwidth environment, using optimisation analysis to find the QP that meets a given bit rate. The entire project was written in MATLAB.
Collaborators
Dr. Maheshi B. Dissanayake (supervisor)
Maximum power point tracking device
2017 · third-year mini research project
Objective
Develop an algorithm based on the perturb and observe method to maximise photovoltaic array output power.
Approach
Tracking the maximum power point of a PV array is difficult because its I–V characteristic is nonlinear and depends on temperature and irradiation. With the standard perturb and observe method, the operating point converges towards the optimum but then oscillates around it rather than settling. The proposed method applies adaptive delta modulation to reduce that oscillation, and uses the PV array output to control the DC/DC converter directly, reducing system complexity.
Panel voltage, panel current, output power and battery voltage were transmitted to the main board over UART. A custom protocol was developed for this link: each byte carries a tag in the high nibble and a data value in the low nibble.
Outcome
Published at the IET Present Around the World technical conference 2018, University of Moratuwa, where it took third place in the best paper presenter category.
Collaborators
N. M. S. SilvaW. A. L. H. Wickramanayake
Files & links
Paper
Ghost Guitar
2017 · Access Hackathon
Objective
Design a device that plugs into any guitar and lets it be played with one hand.
Approach
Built for people who have use of a single hand and still want to play. The device produces any strumming pattern from user input, leaving the player to change chords with their one free hand.
Collaborators
N. M. S. SilvaR. T. Munasinghe