Ian Bayley

Dr. Ian Bayley

Department of Computing and Communication Technologies, Oxford Brookes University, Oxford, UK

Research Focus & Metrics

Academic Career Length

22Years (2005-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
1 April 2018 in Artificial Intelligence in Medicine
Verified
Journal Article
Open access
DBDaniel Brown
Daniel Brown
AAArantza Aldea
Arantza Aldea
RHRachel Harrison
Rachel Harrison
CMClare Martin
Clare Martin
Ian BayleyIan Bayley
Ian Bayley
Individuals with type 1 diabetes have to monitor their blood glucose levels, determine the quantity of insulin required to achieve optimal glycaemic control and administer it themselves subcutaneously, multiple times per day. To help with this process bolus calculators have been developed that suggest the appropriate dose. However these calculators do not automatically adapt to the specific circumstances of an individual and require fine-tuning of parameters, a process that often requires the input of an expert. To overcome the limitations of the traditional methods this paper proposes the use of an artificial intelligence technique, case-based reasoning, to personalise the bolus calculation. A novel aspect of our approach is the use of temporal sequences to take into account preceding events when recommending the bolus insulin doses rather than looking at events in isolation. The in silico results described in this paper show that given the initial conditions of the patient, the temporal retrieval algorithm identifies the most suitable case for reuse. Additionally through insulin-on-board adaptation and postprandial revision, the approach is able to learn and improve bolus predictions, reducing the blood glucose risk index by up to 27% after three revisions of a bolus solution.


1 January 2006 in Electronic Workshops in Computing
Verified
Conference Paper
Open access
PDF file
Ian BayleyIan Bayley
Ian Bayley
DLDavid W. Lightfoot
David W. Lightfoot
CMClare Martin
Clare Martin
We teach a second-stage undergraduate module called Formal Specification using the Z notation to students who do not typically have a high level of mathematics. We have done this with a good degree of success for many years and the module continues to be viable. We discuss the pattern of our course and speculate on why it is successful.

3 October 2025 in arXiv
Verified
Preprint
Open access
PDF file
DPDebalina Ghosh Paul
Debalina Ghosh Paul
Hong ZhuHong Zhu
Hong Zhu
Ian BayleyIan Bayley
Ian Bayley
Context: Large Language Models (LLMs) are increasingly being used to generate program code. Much research has been reported on the functional correctness of generated code, but there is far less on code quality. Objectives: In this study, we propose a scenario-based method of evaluating the quality of LLM-generated code to identify the weakest scenarios in which the quality of LLM generated code should be improved. Methods: The method measures code smells, an important indicator of code quality, and compares them with a baseline formed from reference solutions of professionally written code. The test dataset is divided into various subsets according to the topics of the code and complexity of the coding tasks to represent different scenarios of using LLMs for code generation. We will also present an automated test system for this purpose and report experiments with the Java programs generated in response to prompts given to four state-of-the-art LLMs: Gemini Pro, ChatGPT, Codex, and Falcon. Results: We find that LLM-generated code has a higher incidence of code smells compared to reference solutions. Falcon performed the least badly, with a smell increase of 42.28%, followed by Gemini Pro (62.07%), ChatGPT (65.05%) and finally Codex (84.97%). The average smell increase across all LLMs was 63.34%, comprising 73.35% for implementation smells and 21.42% for design smells. We also found that the increase in code smells is greater for more complex coding tasks and for more advanced topics, such as those involving object-orientated concepts. Conclusion: In terms of code smells, LLM's performances on various coding task complexities and topics are highly correlated to the quality of human written code in the corresponding scenarios. However, the quality of LLM generated code is noticeably poorer than human written code.

17 July 2018 in IEEE Systems, Man, and Cybernetics Magazine
Verified
Journal Article
Closed access
Hong ZhuHong Zhu
Hong Zhu
Ian BayleyIan Bayley
Ian Bayley
One of the most compelling challenges for data analytics is to obtain reusable, verifiable, and transferable knowledge from data. A solution to this is the pattern-oriented approach to knowledge representation that we propose in this article. The foundation of this approach is a formal theory of patterns, including a formal language for defining them, and an algebra of operations for composing patterns and instantiating them. This article outlines a road map for the study of so-called cyberpatterns: the patterns of cyberspace. It explores the scope of research, views the current state of the art, and identifies the key research questions.

26 January 2022 in arXiv
Verified
Preprint
Open access
PDF file
Hong ZhuHong Zhu
Hong Zhu
Ian BayleyIan Bayley
Ian Bayley
Testing has been widely recognised as difficult for AI applications. This paper proposes a set of testing strategies for testing machine learning applications in the framework of the datamorphism testing methodology. In these strategies, testing aims at exploring the data space of a classification or clustering application to discover the boundaries between classes that the machine learning application defines. This enables the tester to understand precisely the behaviour and function of the software under test. In the paper, three variants of exploratory strategies are presented with the algorithms implemented in the automated datamorphic testing tool Morphy. The correctness of these algorithms are formally proved. Their capability and cost of discovering borders between classes are evaluated via a set of controlled experiments with manually designed subjects and a set of case studies with real machine learning models.