Ninewells Hospital, Dundee, where the University of Dundee's medical research operations are based. Photograph by Val Vannet
Ninewells Hospital, Dundee, where the University of Dundee's medical research operations are based. Photograph by Val Vannet.

Dundee Researchers Train Skin Cancer AI on NHS Patient Images

Researchers at the University of Dundee have begun training an artificial intelligence system to identify skin cancer using images and clinical information held within NHS research environments in Scotland and England, but the project’s published account does not establish whether the patients whose records are being used gave individual permission for that purpose.

The project, known as MELODY, is developing a method of training medical AI across separate NHS data systems without transferring the original patient images between institutions.

An update published by the university on 25 November confirms that the research team has established secure computing infrastructure between Dundee and Oxford, prepared a standardised dermatology dataset from NHS Tayside and begun training artificial intelligence models within the participating research environments.

The work involves the University of Dundee’s Health Informatics Centre, NHS Tayside, Oxford University Hospitals NHS Foundation Trust and the Thames Valley and Surrey Secure Data Environment.

The project is financed through a wider programme supported by DARE UK and UK Research and Innovation.

Its stated aim is to develop and test a system capable of assisting with the identification of skin cancer while allowing medical images to remain within the NHS research environments in which they are held.

The project has not yet delivered a clinically validated diagnostic system.

Its technical approach is known as federated machine learning.

Conventional AI development may involve collecting large quantities of training information in one central location, where a model is trained against the combined data.

Federated learning allows models to be trained using information held in separate computer systems. Updates from the training process can then be combined without requiring the original records to be transferred into a single shared database.

In the Dundee project, that means dermatology images and associated information can be used at NHS Tayside and Oxford while remaining within their respective secure research environments.

The university says the arrangement is intended to improve privacy and allow models to learn from more varied patient populations.

That addresses one of the technical difficulties facing medical AI.

A diagnostic model developed using images collected from a limited group of patients may not perform equally well when exposed to different skin types, photographic conditions, clinical equipment or disease presentations.

Combining experience from different NHS settings could improve the breadth of the training data.

However, the presence of secure computing systems does not settle the separate question of how patients’ information was originally collected or what permission governs its later use.

Medical images may be taken during diagnosis, referral, treatment or monitoring. Their original purpose is often to support an individual patient’s care.

Using those images subsequently to train an artificial intelligence system involves a different activity, even where the research is intended to improve future clinical treatment.

The University of Dundee’s November update does not specify how many NHS Tayside patients are represented in the dermatology dataset, when their photographs were taken, whether they were originally collected for clinical care or research, or whether individual patients were asked to consent to AI development.

Nor does the announcement identify the project’s specific data-governance approvals, the terms under which NHS Tayside authorised access to the images or the arrangements governing use of the resulting models.

Those details have not been established in the material published about MELODY.

There is, however, an established legal framework for the use of NHS information in research, and it does not require individual consent in every circumstance.

The Health Informatics Centre’s privacy notice, updated in August 2025, identifies public-interest research as the basis on which it processes health information.

It cites Article 6(1)(e) of the UK General Data Protection Regulation, which allows necessary processing for a task carried out in the public interest, together with Article 9(2)(j), covering scientific research using sensitive personal information subject to appropriate safeguards.

The centre also relies on provisions of the Data Protection Act 2018 and the statutory responsibilities of universities and NHS organisations.

The Information Commissioner’s Office makes clear that consent is not the only lawful basis for processing personal information.

However, the lawful basis under data protection legislation is not the same question as whether a patient has agreed to participate in research or whether confidential medical information may be used outside the direct care team.

Separate duties of confidentiality and research governance requirements can apply.

In Scotland, Dundee’s own research guidance provides for Caldicott Guardian approval when identifiable NHS patient information is used without consent within a single health board.

Where identifiable information from more than one Scottish health board is involved, an application may be required to the Public Benefit and Privacy Panel for Health and Social Care.

The approvals required for a particular project depend on the information being processed, the institutions involved and whether the research uses identifiable, pseudonymised or anonymised records.

The arrangements for a collaboration extending into England may also require approval under the governance system applying to the English NHS organisation.

The public information available for MELODY does not identify which of these routes was followed.

The Health Informatics Centre operates as a Scottish Safe Haven, also known as a Trusted Research Environment.

Its published governance procedures state that identifiable information is received, encrypted and processed in a restricted NHS computing environment, while researchers ordinarily work with de-identified data.

Project records, approvals and data releases are retained within an internal management system. Researchers must sign agreements governing their access.

These controls restrict the handling of patient information, but they do not establish whether an individual patient was informed that a photograph taken during clinical care might subsequently be used to train artificial intelligence.

The centre’s general privacy notice explains that individuals may have rights to access, correct, restrict or object to some uses of their information.

It also states that research exemptions can limit certain rights where their exercise would seriously impair the research.

The practical arrangements applying specifically to patients included in MELODY have not been described in the university’s progress announcement.

The project has included public contributors in its development, according to the university.

Public involvement can help researchers examine the acceptability of using medical records and develop safeguards reflecting patients’ concerns.

It is not equivalent to obtaining permission from every patient whose information is used.

That requires separate consideration of the dataset’s provenance, the research approvals and the legal basis governing the processing.

The absence of these details from the progress report does not establish that the research is being conducted without the necessary permissions.

It does mean that the information published so far is insufficient to establish whether individual consent was sought, whether it was required or what alternative authorisations apply.

There are also unanswered technical questions.

Although the project is designed to keep original images within separate NHS research environments, the published update does not describe in detail which model updates or other derived information may pass between those environments.

Nor does it publish the results of any assessment of the risk that information about individual patients could be recovered from the trained model or associated outputs.

The researchers have begun developing standardised datasets and are progressing towards validation of the proposed detection model.

The university has not published a clinical accuracy figure, a timetable for NHS deployment or evidence establishing that the system can safely replace any existing diagnostic procedure.

That work remains at the research stage.

The Health Informatics Centre has a long history of working with routinely collected NHS data. It manages records relating to substantial populations in Tayside and Fife, including hospital diagnoses, prescribing, laboratory results and medical images.

Its work is intended to support research without requiring the routine transfer of identifiable records to individual research teams.

MELODY extends that approach into the training of artificial intelligence systems across institutional boundaries.

The technical infrastructure has now been established and training is under way. The outstanding public record concerns the precise origin and governance of the images being used, the consent arrangements applying to patients and the specific safeguards approved for the federated training process.

The researchers have not yet published those project-level details alongside their account of the progress achieved.

Sources

The Research World Exemplar Project Updates — MELODY — University of Dundee, 25 November 2026

https://www.dundee.ac.uk/case-study/research-world-exemplar-rwe-project-updates

Health Informatics Centre Privacy Notice — University of Dundee, updated 5 August 2025

https://www.dundee.ac.uk/corporate-information/health-informatics-centre-privacy-notice

Data Service at the Health Informatics Centre — University of Dundee

https://www.dundee.ac.uk/hic/data-service

Data Security and Confidentiality at HIC — University of Dundee

https://www.dundee.ac.uk/hic/governance-service/data-security-confidentiality

NHS Research and Development Approval — University of Dundee and Tayside Medical Science Centre

https://www.dundee.ac.uk/tasc/start-research/nhs-research-development-approval

How Do the Research Provisions Affect the Principles and Grounds for Processing? — Information Commissioner’s Office

https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/the-research-provisions/how-do-the-ras-provisions-affect-the-principles-and-grounds-for-processing/

Principles for the Operation of Safe Havens in Scotland Handling Data From NHS Patient Records — Scottish Government

https://www.gov.scot/publications/charter-safe-havens-scotland-principles-standards-scottish-safe-haven-network-support-use-data-enable-research-innovation-scotland/pages/5/

Editorial Team

Editorial Team

Modern Scot focuses on clear, factual reporting and analysis of Scotland’s civic, cultural, economic and environmental life.

Latest from Scottish Healthcare