Summer is now at its peak (in the Northern Hemisphere) but, while most of us enjoy basking in the sun, it comes with an inherent risk. The number of diagnoses of basal cell carcinoma, the most common skin cancer, continues to rise while cases of melanoma skin cancer – the most dangerous of them all – are reaching record highs. “According to The Skin Cancer Foundation, skin cancer is the most common cancer globally,” says scientist Tess Watt. “Despite this, if melanoma is detected and treated at an early stage, its five-year survival rate is 99%.”
With this in mind, Tess, a PhD candidate in the School of Mathematical and Computer Sciences at Heriot-Watt University in Edinburgh, has created an early detection system. She’s developed a set of AI tools designed to diagnose skin cancer and other skin conditions using a Raspberry Pi 3 Model B computer attached to a small camera. The aim has been to produce a low-cost device that can be used by patients living in remote areas of the world. It allows skin conditions to be monitored from home without the need for an internet connection.
Making a diagnosis
Tess’s system uses machine learning to analyse images of skin lesions. “Machine learning has overcome most of the challenges faced in traditional methods of skin lesion classification by analysing many images at once, more accurately than human dermatologists,” she says. “Machine learning can then identify patterns that the human eye cannot and can therefore be more accurate and objective.”
To assess a skin complaint, patients equipped with one of Tess’s devices would be asked to take a photograph of the affected area. Since the skin lesion image datasets are stored on the Raspberry Pi computer, her program is able to analyse the photograph in real-time before comparing it to thousands of images stored in the dataset. The idea is that the information would be shared with a GP and a decision made over potential treatment. “Current legislation [in the UK] requires a medical professional to validate the outputted diagnosis,” Tess says.
Global impact
Tess envisages LesionIQ being used in rural Scotland and she is in talks with NHS Scotland to gain ethical approval. But it could also become a vital tool for remote communities across the world, particularly given Raspberry Pi devices are so widely used and affordable. “I am often asked why I chose not to deploy my AI model on a smartphone, and this is because smartphones are costly and not widely available/used in developing countries where access to the Internet is also limited,” she explains.
The device certainly looks promising. Currently, it’s proving to be 85% accurate in diagnosing skin cancer and Tess says this can be improved. “I am working with the small amount of publicly available skin lesion datasets available and I am working to create and access new datasets soon which are larger and more diverse,” she reveals. This is proving to be the greatest challenge, however.
“There is a lack of diverse skin lesion data available and the landscape of clinical AI is still in its infancy,” Tess adds. “My future plans are to create/source more diverse data and conduct a study to test this device in a real-world setting.” She hopes the device will be well on the path to being used by real-life patients before 2030.
Find more Raspberry Pi projects in Raspberry Pi Official Magazine
This article appears in issue 169 of Raspberry Pi Official Magazine, which you can access online. You can also subscribe to the print version of our magazine. Not only do we deliver worldwide, but those who sign up to the six- or twelve-month print subscription will receive a FREE Raspberry Pi Pico 2 W!
You can find Raspberry Pi Official Magazine on Facebook, X, Threads, LinkedIn, and Mastodon. You can also contact the team via email: [email protected]
3 comments
Jump to the comment form
cruble
Why (a Pi)?
I do not agree with the cost of a phone. You don’t need a new phone. A used one can be cheaper than a new Pi. The software can run local as well.
Better control of the sensor quality, near IR without OTG, less versions of the OS, … but hardware cost and off grid usability?
Tess Watt
Hi cruble,
Thanks for your comment. There are a couple of key reasons for using a Pi over a smartphone for this project.
1) The specific model of Pi used (Pi 3 model B) only costs around £35.
2) Security is vital when handling medical images. An offline Pi is more secure than a smartphone.
Of course, there is no ‘one-size fits all’ for different demographics, but for the remote areas this project is targeting, the Pi has been the most suitable device.
Hope that helps!
-Tess
crumble
Thanks for the quick reply. But I still disagree.
PIs are very good and cheap for prototyping. If you have to build a real product, chinese industrial computers are much cheaper.
Your 35$ are a Pi in a paper box. You need more stuff and time to build the whole system. A ready build phone or tablet is cheaper. Especially if it is not a single use device.
In your paper there shall be better reasons than 1/4 calculated cost. When you do not need special hardware, an existing software ecosystem, experiance with the development system or even “I had a spare Pi”.
When you have to defend your paper, half calculated cos is perfect amunition to build up some pressure.
Facts Only
* Basal cell carcinoma and melanoma skin cancer diagnoses are rising.
* Melanoma has a five-year survival rate of 99% if detected and treated early.
* Tess Watt developed an early detection system using AI tools.
* The system uses a Raspberry Pi 3 Model B computer and a small camera.
* The goal is to create a low-cost device for use in remote areas.
* The system uses machine learning to analyze skin lesion images.
* The analysis occurs in real-time by comparing photos to stored datasets on the Raspberry Pi.
* The outputted diagnosis requires validation from a medical professional.
* Current accuracy is 85% in diagnosing skin cancer.
* Tess plans to create and access larger, more diverse skin lesion datasets.
Executive Summary
Full Take
Sentinel — Human
The text presents a well-structured narrative about an AI skin cancer diagnostic tool, supported by expert commentary and direct stakeholder feedback, indicating human authorship.
