Final Projects

yikjason_454768_16448965_TinyMLFinalVideo.mp4

Benchmarking LAVA Neuromorphic 

Authors: Jason Yik and Alicia Golden

Abstract:

Neuromorphic computing draws inspiration from biological neural systems, in order to create algorithms and architectures with advanced resource efficiency compared to traditional computing systems. It is a promising field for highly power constrained machine learning devices at the edge. As the technology is nascent, specialized neuromorphic hardware platforms are not obtainable for research, thus algorithmic innovation must currently rely on simulation on existing platforms such as general purpose CPUs. In this project, we build off previous work in benchmarking CPU simulators (Kulkarni et al., 2021), by evaluating the same workloads Intel’s LAVA simulation framework. We find that LAVA is well-suited to the tested neuromorphic tasks on CPU, which positions it favorably as a neuromorphic research tool in the near future.

kongdavid_LATE_449454_16472036_CS249R_Final_Video_Fall_2022_Shvetank_David.mp4

TinyML on Flexible ICs

Authors: Shvetank Prakash and David Kong 

Abstract:

Flexible integrated circuits (FlexICs) are an emerging technology that offer the potential to help us embed computing into everyday objects because they offer novel form factors, sub-penny costs, and a potential reduced manufacturing carbon footprint compared to traditional silicon devices— all of which are significant if we want to integrate computing into trillions of objects. Tiny Machine Learning (TinyML) is a growing field that is bringing ML to low-cost, low-power microcontroller-class hardware and has the potential to be coupled with FlexICs to enable ubiquitous smart computing in everyday objects. However, at the moment only tiny designs can be manufactured at scale in this emerging, flexible technology. To this end, we present characterization and analysis of a bit-serial microcontroller (MCU) running TinyML to better understand what such a processor is capable and how it compares to more familiar, modern bit-parallel processing.

ahmedzergham_LATE_200778_16471849_nerf project-1.mp4

TinyNeRF

Authors: He-Yen Hsieh, Zergham Ahmed and Xin Dong

Abstract:

Neural Radiance Fields (NeRF) is a method for creating novel views of scenes. Compressing the NeRF model to deploy it on resource constrained devices is interesting for several applications including extended reality (XR), interactive photography, and data augmentation. We explore several quantization and pruning schemes and report the results. We found that we are able to reduce the model size of NeRF by 87.5% through quantization and by 91.2% through a combination of both quantization and pruning while maintaining rendered image quality. NeRF is able to achieve good performance with less bits, network size and thus memory consumption.

orhan_Nestor_Matheus_Daniel_cs249_final_video.mp4

TinyRL for Quadruped Locomotion using Decision Transformers

Authors: Orhan Eren Akgun, Nestor Cuevas, Matheus Farias and Daniel Garces

Abstract:

Resource-constrained robotic platforms are particularly useful for tasks that require low-cost hardware alternatives due to the risk of losing the robot, like in search-and-rescue applications, or the need for a large number of devices, like in swarm robotics. For this reason, it is crucial to find mechanisms for adapting reinforcement learning techniques to the constraints imposed by lower computational power and smaller memory capacities of these ultra low-cost robotic platforms. We try to address this need by proposing a method for making imitation learning deployable onto resource-constrained robotic platforms. Here we cast the imitation learning problem as a conditional sequence modeling task and we train a decision transformer using expert demonstrations augmented with a custom reward. Then, we compress the resulting generative model using software optimization schemes, including quantization and pruning. We test our method in simulation using Isaac Gym, a realistic physics simulation environment designed for reinforcement learning. We empirically demonstrate that our method achieves natural looking gaits for Bittle, a resource-constrained quadruped robot. We also run multiple simulations to show the effects of pruning and quantization on the performance of the model. Our results show that quantization (down to 4 bits) and pruning reduce model size by around 30% while maintaining a competitive reward, making the model deployable in a resource-constrained system.

yinglance_455477_16461321_249 video-1.mp4

Pain Detection with physiological signals on Microcontrollers

Authors: Emma Chen and Lance Ying

Abstract:

Pain assessment often comes from patients’ self-report, which depends on effective communication between doctors and patients that may not always happen and can lead to suboptimal treatment plans. Machine learning (ML) algorithms have been explored to make objective pain assessments using physiological signals such as electrodermal activity (EDA) and electrocardiogram (ECG). Although it is not uncommon to collect these signals from wearables and run the predictive algorithms on the Cloud or a smartphone, this process relies on internet connectivity and contains the risk of patient information leakage. In comparison, running the algorithms ondevice can avoid data transmission for privacy-preserving and offline inference. In this study, we compare the performance and memory usage of different ML algorithms for pain assessment with EDA and ECG. We then demonstrate the feasibility of running a predictive algorithm with reasonable accuracy on a micro-controller.

uchenduike_450664_16471485_RLPerf Video.mp4

RLPerf: Benchmark for Autonomous Agents

Authors: Jason Jabbour and Ikechukwu Uchendu

Abstract:

Recent advances in artificial intelligence (AI) have been greatly fueled by benchmarks. While machine learning methods such as computer vision and natural language processing have seen extensive real-world adoption, reinforcement learning (RL) has not. We posit that this disparity in adoption is fueled by a lack of benchmarks for real-world use cases of autonomous agents. In this paper, we introduce RLPerf, a benchmark for autonomous agents that reflects real-world problems. We discuss the challenges associated with benchmarking real use cases of autonomous agents, and propose a new set of metrics to help accelerate the adoption of RL agents in production systems.

alvarezjonathan_267651_16449448_alvarez_tinyML_video.mp4

Unilateral Gait Classification by Measuring Local Muscle Deformation

Author: Jonathan Alvarez

Abstract:

Clinicians and researchers working across diagnosis, rehabilitation, and wearable lower-limb robotics all rely on accurate gait analysis tools and algorithms for assisting patients and end users. Accurate segmentation of events in the gait cycle is an important subset in the tool kit of gait analysis and involves partitioning the various phases of the gait cycle (e.g. initiation of the swing phase (toe off) or commencement of stance phase (heel strike)). Traditional approaches such as optical motion capture or instrumented treadmills serve as accurate ground-truths for gait segmentation, but are limited to lab-based analysis. Unsurprisingly, there has a been a lot of research focused on adapting existing, or developing novel, wearable sensing approaches for accurate gait segmentation outside of the lab and into the community. Inertial measurement units are the most common wearable sensor used for gait analysis, but often require several sensors, one of which needs to be mounted distally on the foot. This work leverages recent advances in soft strain sensor technology to locally measure muscle deformation of the lower-limb muscles to detect toe off and heel strike gait events during healthy treadmill walking. A data-driven tiny machine learning approach was created to detect gait events from the soft strain sensors, optimized for deployment on a resource-constrained microcontroller. A sensor-trained model performs as well as an IMU-based model (sensor-model accuracy = 98.21% vs. IMU-model accuracy = 98.21%) in detecting toe off and heel strike gait events. Furthermore, the model was deployed on an Arduino Nano 33 BLE Sense for a real-time inference demonstration.