MSc Individual Projects
Above: A selection of images from projects in previous years
If you are interested in applications of machine learning and computer vision to robotics, then you may be interested in one of the five MSc individual projects described below. All these projects are genuine research projects, based on a new idea which I have recently been thinking about. So if you are productive during the project, then there is every chance that you would be able to get a publication at a top international conference, which would look fantastic on your CV. And for top students, there may also be an opportunity to apply for a PhD position in my lab.
Projects will be done remotely, with regular meetings with me on Microsoft Teams. However, if College opens up over the summer, then for some projects there may be an opportunity to test out your final method on the robots in our lab.
For students interested in one or more of these projects, please send me an email at firstname.lastname@example.org. In your email, please attach your CV, and include a brief statement (~5 sentences) on what your potential career plans are after graduation, and how the project fits in with those plans. I will then arrange a meeting where we can discuss the project(s) in more detail. Further departmental guidelines can be found by clicking here.
I look forward to hearing from you!
Curriculum Reinforcement Learning: Re-visiting Tabular Methods
Robot Learning from Human Demonstrations via Imagination
When training a robot to perform a new task, one of the first steps is to describe the task to the robot. For example, if the robot uses reinforcement learning, then this description is in the form of a reward function. However, in practice, we want the average person to be able to teach a robot a new task, without that person needing to understand what a reward function is, or how to write Python code to tell the robot about this reward function. For example, a commercial robot that can clean and tidy the home, will need to be able to learn these particular cleaning tasks directly from its owner. One solution to this is imitation learning , where the person provides a demonstration of the task , such as by physically moving the robot's arm to interact with an object. The robot's job is to then understand how to perform that same task when the environment subsequently changes, such as when the object is in a new position.
This project will explore an imitation learning method where a robot learns to interact with an object, using a camera mounted to the robot's wrist as the robot's "eye" (e.g. , and the image on the right). The main idea is that images of the object would be captured during the demonstration, and then used to estimate the pose (position + orientation) of the object relative to the camera, such as with a convolutional neural network . This pose can then be used to train a robot controller using labels from the human demonstrations, such as training a neural network with supervised learning to map from the object pose to the robot's action .
However, what happens if the object is in a pose which was not observed during the demonstrations? This method would fail.
Therefore, the main idea in this project is to use "imagination", where the robot can imagine what the object looks like from new viewpoints that have never previously been observed. This imagination module would be a neural network which would take as input two images, and output the relative pose between them. You will train this network over a large dataset of other random objects, and we would study how well this can then generalise to estimating poses for a novel object, even if that object was not in the original dataset. Hopefully, this would then allow a robot to learn a new task from just a single demonstration, without requiring you to manually move the object around between demonstrations. I would be very excited to see a system like this working in practice! Nobody in the world has achieved single-demonstration imitation learning for complex tasks yet.
Experiments will initially be conducted in simulation using CoppeliaSim , which has an easy-to-use Python API . If College opens up over the summer, you will then be able to perform some real-world experiments with our robots, where you will physically provide the human demonstrations yourself.
Robot Learning from Human Demonstrations
Self-Supervised Robot Learning from "Playing"
Imagine you wanted to ask a robot to perform a task. One way of describing this task to the robot, is to provide an image of the completed task. For example, you could show a robot an image of your desk in its "tidy" state, and then ask the robot to re-create this environment state every time the desk becomes messy. For a machine learning approach to this, a neural network could be trained, which takes as input the target image and the current image, and outputs an action. Then, a sequence of such actions would be executed by the robot in a loop, until the target state is achieved.
But how could we train such a network? This project will investigate an idea based on exploration, similar to reinforcement learning.
The overall idea is that a robot could randomly explore its environment, "playing" with objects in an arbitrary and unstructured manner , in a similar way to how babies learn motor skills. This would then generate data tuples: the initial image, the final image, and the action. And this data could then be used to train the above network with supervised learning, simply from random data collection. Since the data is collected and labelled automatically, this is a form of self-supervised learning. The first milestone is to achieve a basic implementation of this idea, with a robot that randomly pushes around objects on a table .
One of the challenges you will soon face is that of scalability. The amount of data collected could be huge, and it would be difficult for a single neural network to do a good job of remembering all of this data. Therefore, one idea to make this more scalable, is based on the intuition that some actions require less precision than other actions. For example, imagine a task which involves a robot inserting a plug into a socket. When the plug is far away from the socket, the specific trajectory taken by the robot's arm is not very important. But when the plug is just a few mm away from the socket, then the specific trajectory is very important. Therefore, the loss function for the supervised learning could be adjusted such that the network "tries harder" at remembering important actions, such as when two objects are very close to each other. The second milestone is therefore to develop a method to automatically tune this loss function as training progresses.
Following this, there are a number of interesting directions in which the project could go. For example, we could investigate a curriculum learning approach, where the tasks become more and more difficult over time. This would also emulate how babies learn, where more and more complex tasks are attempted as the baby grows older and gains experience. A recent Master's project in my lab made some good progress with curriculum learning for robotics . So I would personally be very interested to see just how far we can push this, and see if it can enable a robot to learn genuinely complex tasks purely with random exploration. Another extension would be to speed up learning by providing some human demonstration, to guide the agent such that it explores interesting behaviours based on human intuition . Or, we could investigate more open-ended methods for exploration, such as those which encourage natural curiosity . So, lots of exciting options!
Experiments will be conducted in simulation using CoppeliaSim , which has an easy-to-use Python API .
Robot Learning from Random Exploration
Residual Reinforcement Learning with Discrete and Continuous Actions
Deep reinforcement learning  is a very exciting area of research, but current methods are notoriously unstable. You will have found this in the Reinforcement Learning coursework, when your trained agent suddenly "forgot" how to solve the task, and its policy changed dramatically all of a sudden. One of the reasons for this is that updating a neural network based on one transition, will change the network's prediction for another transition. Whilst this generalisation can be useful for interpolating between data points, sometimes it causes a smoothing effect between data points when this is actually unintentional, and the state of the network before the update was actually better. This slows slows down the agent's ability to learn, and makes performance highly sensitive to hyper-parameters.
In this project, you will study a new idea for addressing this, which I think has great potential. The idea is based on the fact that neural networks are much more stable when trained for classification, than when trained for regression. This is because with classification, the final layers of the network are independent for each discrete class, which "shields" some parts of the network from other parts: if two data points have different class labels, then updating the weights for one data point does not necessarily change the associated weights for a different data point. However, with regression, the final layers are used to make all predictions: updating the weights for one data point changes the weights for another data point, which may be undesirable.
This motivates the formulation of a "residual" implementation of deep reinforcement learning. Here, the networks used in deep reinforcement learning (e.g. the Q-network) will have two heads: a classification head, and a regression head. The classification head outputs a coarse estimate of the prediction (e.g. a classification of the Q-values with respect to a discrete set of potential values). Then, the regression head outputs a residual value, which is added to the classification value. In this way, the regression head does not need to predict the full range of values across the dataset: it only needs to predict a "correction", which is a much easier function to learn. Hopefully, this will also reduce the instability of pure regression approaches, since the regression range is significantly smaller and so instability effects will be attenuated.
There is good reason to believe that this will work for deep reinforcement learning algorithms, since similar reasoning has been shown to improve the performance in supervised learning. I am very curious to see if we can get this working for a range of different tasks in OpenAI Gym  and DeepMind Control Suite , and there will likely be some interesting theoretical contributions of this project. For example, you will have to work out how to adjust the Bellman Equation under this residual framework. And as the project progresses, you will then look into making similar adaptations to other reinforcement learning algorithms, such as actor-critic methods .
 OpenAI Gym
DeepMind Control Suite
Deep Learning for Robotics: Transferring from Simulation to Reality
Deep reinforcement learning  and deep imitation learning  have proven to be very attractive avenues for robot learning, with a growing body of work showing their applicability to a wide variety of robotics tasks. However, the scalability of those algorithms -- and deep learning in general -- is hindered by their reliance on a massive amount of data. A promising solution to this issue is the use of computer simulation to train the networks, followed by a subsequent deployment of those networks to the real world. Nonetheless, a major challenge in this sim-to-real transfer lies in the “reality gap”, which refers to the differences between the training (simulation) and testing (real world) domains.
This project aims to study the visual aspect of the reality gap for robot control policies, and find the best method to achieve sim-to-real transfer. The project will consist of two parts. The first part, is the implementation and deployment of several methods [3-7] which claim to address this issue. These methods have never been evaluated against each other, and some have only been shown to work on very simple tasks in virtual environments. We aim to determine which of these works best in a real robot control setting. For the second part of the project, once a conclusion is reached for the existing methods, you will be given freedom to innovate by proposing your own sim-to-real method, in an effort to improve even further on the state-of-the-art. For policy training, initial experiments will study basic visual servoing tasks with supervised learning, and then later you will have the opportunity to investigate sim-to-real for both reinforcement learning and imitation learning methods.
Experiments will initially be conducted in simulation using CoppeliaSim , which has an easy-to-use Python API . Two simulated worlds will be created, with one of these acting as the training domain, and the other acting as the testing domain (where the simulator emulates the real-world). If College begins to open up over the summer, you will then be able to perform experiments with the robots in our lab, and study how well these policies perform in the real world, even though they have only ever been trained in simulation.
Simulated policies (left and middle) being deployed in the real world (right)