Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SYSTEM AND METHOD FOR NEURAL CONTROL
Document Type and Number:
WIPO Patent Application WO/2020/152359
Kind Code:
A1
Abstract:
A neural control system comprises an input controller arranged to receive neural data regarding neural signals relating to a bodily state of a subject from at least one neural sensor, at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state, and means arranged to send the determined output signal to at least one output device, whereby the neural control system forms a first control loop providing closed loop control of the bodily state.

Inventors:
ARMITAGE OLIVER (GB)
HEWAGE EMIL (GB)
GONSHAW SAMUEL (GB)
JAKOPEC MATJAŽ (GB)
EDWARDS TRISTAN (GB)
Application Number:
PCT/EP2020/051832
Publication Date:
July 30, 2020
Filing Date:
January 24, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BIOS HEALTH LTD (GB)
International Classes:
A61N1/36; G16H40/63
Domestic Patent References:
WO2010109448A12010-09-30
WO2015138981A12015-09-17
Foreign References:
US20160287877A12016-10-06
US20160346164A12016-12-01
CA2981044A12016-10-06
Other References:
SONG KANG-IL ET AL: "Ankle-Angle Estimation from Blind Source Separated Afferent Activity in the Sciatic Nerve for Closed-Loop Functional Neuromuscular Stimulation System", IEEE TRANSACTIONS ON BIOMEDICAL ENGINEERING, IEEE SERVICE CENTER, PISCATAWAY, NJ, USA, vol. 64, no. 4, 1 April 2017 (2017-04-01), pages 834 - 843, XP011642868, ISSN: 0018-9294, [retrieved on 20170317], DOI: 10.1109/TBME.2016.2580705
Attorney, Agent or Firm:
DENTONS UK AND MIDDLE EAST LLP (GB)
Download PDF:
Claims:
Claims

1 . A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state of a subject from at least one neural sensor;

at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state.

2. The system of claim 1 , wherein the at least one machine learning model comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

3. The system of claim 1 , wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

4. The system of claim 1 , wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

5. The system of claim 1 , wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

6. The system of claim 4 or 5, wherein the desired bodily setpoint is calculated within the closed loop controller based on received neural data or received neural biomarkers.

7. The system of claim 5 or 6, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

8. The system of claim 4 or 5, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

9. The system of claim 8 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

10. The system of claim 8 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

1 1 . The system of claim 8, 9, or 10 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

12. The system of claim 1 1 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

13. The system of any preceding claim, wherein the neural control system further

comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

14. The system of any preceding claim, wherein the neural control system further

comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

15. The system of claim 14, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

16. The system of claim 15, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

17. The system of claim 16, wherein the real time modulation happens in 1 to 100

microseconds.

18. The system of any one of claims 15 to 1 7, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

19. The system of any one of claims 15 to 1 7, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

20. The system of any preceding claim, wherein the output signal is a control signal of an end effector device.

21 . The system of any preceding claim, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

22. The system of any preceding claim, wherein the output signal is a control signal for an applied drug treatment.

23. The system of claim 21 , wherein the neural control system further comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

24. The system of claim 23, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

25. The system of any preceding claim, wherein the neural control system further

comprises means for sending the received neural data to an update machine.

26. The system of any preceding claim wherein the neural control system further

comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

27. The system of any preceding claim, wherein the neural control system further

comprises means for receiving updates of the at least one machine learning model.

28. The system of claim 27, wherein the updates to the at least one machine learning model are calculated based on the received neural data, calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

29. The system of any preceding claim, wherein the neural control system further

comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

30. The system of any of claims 8 to 12, wherein the neural control system further

comprises means for receiving updates to the body model.

31 . The system of claims 26 to 30 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

32. The system of claim 26 to 30 wherein the update machine is an automated cloud system.

33. The system of claim 26 to 30 wherein the update machine is a manual connection over a local wired or wireless connection.

34. The system of claims 26 to 30 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

35. The system of claims 26 to 30 wherein the updates are chosen by a treating clinician.

36. The system of any preceding claim, wherein the neural control system incorporates a safety module for monitoring performance of the neural control system.

37. The system of claim 36, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning data processor;

b. Control module;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

38. The system of claim 36 or 37, wherein the safety module further monitors the

performance of the real time input controller and output controller within the real time loop.

39. The system of claims 36 to 38, wherein the safety module is arranged to act to

selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

40. The system of claims 36 to 39, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

41 . The system of claims 36 to 40, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system; and the safety module is arranged to act based on commands from the auditing module.

42. The system of any preceding claim, wherein the neural control system further

comprises an auditing module arranged to monitor version control of the neural control system.

43. The system of claim 41 or 42, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

44. The system of claim 42 or 43, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

45. The system of any one of claims 42 to 44, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning c. Unauthorised versioning

46. The system of any preceding claim in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

47. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one machine learning model for processing the received neural data to identify neural biomarkers; and

means arranged to send the identified neural biomarkers to at least one output device for performing operations;

wherein the neural control system forms a first control loop providing closed loop control of the bodily state.

48. The system of claim 47, wherein the neural biomarkers are learnt over a population of patients to be stationary representations of neural population activity.

49. The system of claim 47 or 48, wherein the neural biomarkers are learnt over a

population of patients to be stationary representations of neural population activity.

50. The system of any of claims 47 to 49, wherein the neural control system further

comprises means for receiving updates of the at least one machine learning model.

51 . The system of claim 50, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

52. The system of any of claims 47 to 51 , wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

53. The system of any of claims 47 to 52, wherein the neural control system further

comprises means for receiving updates to the body model.

54. The system of claims 47 to 53 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

55. The system of claim 47 to 53 wherein the update machine is an automated cloud system.

56. The system of claim 47 to 53 wherein the update machine is a manual connection over a local wired or wireless connection.

57. The system of claims 47 to 53 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

58. The system of claims 47 to 53 wherein the updates are chosen by a treating clinician.

59. The system of any one of claims 47 to 58, wherein the neural control system

incorporates a safety module for monitoring performance of the neural control system.

60. The system of claim 59, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

61 . The system of claim 59 or 60 wherein the safety module is arranged to act to

selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

62. The system of claims 59 to 61 , wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

63. The system of claims 59 to 62, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system; and

the safety module is arranged to act based on commands from an auditing module.

64. The system of any one of claims 47 to 63, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

65. The system of claim 63 or 64, the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements

66. The system of claim 64 or 65, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

67. The system of any one of claims 62 to 66, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

68. The system of claim of any of claims 47 to 67, wherein the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

69. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state;

wherein the output controller is further arranged to receive selected data regarding timing of received neural data from the input controller; and

wherein the output controller is arranged to control the time at which the determined output signal is sent to the at least one output device based on the selected data regarding timing of received neural data.

70. The system of claim 69, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

71 . The system of claim 69, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

72. The system of claim 69, wherein the neural data processing means comprises: a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

73. The system of claim 69, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

74. The system of claim 72 or 73, wherein the desired bodily setpoint is calculated within the closed loop controller based on received neural data or received neural biomarkers.

75. The system of claim 73 or 74, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

76. The system of claim 72 or 73, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

77. The system of claim 76 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

78. The system of claim 76 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

79. The system of claims 76 to 78 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

80. The system of claim 79 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

81 . The system of any of claims 69 to 80, wherein the neural control system further

comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

82. The system of any of claims 69 to 81 , wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

83. The system of claim 82, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

84. The system of claim 83, wherein the real time modulation happens in 1 to 100

microseconds.

85. The system of any one of claims 82 to 84, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

86. The system of any one of claims 83 to 85, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

87. The system of any of claims 70 to 86, wherein the output signal is a control signal of an end effector device.

88. The system of any of claims 70 to 87, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

89. The system of any of claims 70 to 88, wherein the output signal is a control signal for an applied drug treatment.

90. The system of claim 88, wherein the neural control system further comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

91 . The system of claim 90, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

92. The system of any of claims 69 to 91 , wherein the neural control system further comprises means for sending the received neural data to an update machine.

93. The system of any of claims 69 to 92, wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

94. The system of any of claims 69 to 93, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

95. The system of claim 94, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

96. The system of any of claims 69 to 95, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

97. The system of any of claims 69 to 96, wherein the neural control system further comprises means for receiving updates to the body model.

98. The system of claims 94 to 97 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

99. The system of claim 94 to 98 wherein the update machine is an automated cloud system.

100. The system of claim 94 to 98 wherein the update machine is a manual connection over a local wired or wireless connection.

101 . The system of claims 94 to 98 wherein the updates are automatically

calculated by one or more machine learning systems for calculating long term treatment.

102. The system of claims 94 to 98 wherein the updates are chosen by a treating clinician.

103. The system of any of claims 69 to 1 02 wherein the neural control system incorporates a safety module for monitoring performance of the neural control system.

104. The system of claim 103 wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

105. The system of claim 103 or 104 wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

106. The system of claims 103 to 105 wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

107. The system of claims 103 to 106 wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

108. The system of claims 103 to 107, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

109. The system of any of claims 69 to 1 08, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

1 10. The system of claim 108 or 109, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

1 1 1 . The system of claim 109 or 1 10, wherein the the neural control system

comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor; c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

1 12. The system of any one of claims 109 to 1 1 1 , wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

1 13. The system of any of claims 69 to 1 12 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

1 14. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state;

wherein the output controller is further arranged to receive selected data regarding amplitude of received neural data from the input controller; and

wherein the output controller is arranged to control the amplitude of the determined output signal sent to the at least one output device based on the selected data regarding amplitude of received neural data.

1 15. The system of claim 1 14, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

1 16. The system of claim 1 14, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

1 17. The system of claim 1 14, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

1 18. The system of claim 1 14, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

1 19. The system of claim 1 17 or 1 18, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

120. The system of claim 1 18 or 1 19, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

121 . The system of claim 1 17 or 1 18, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

122. The system of claim 121 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

123. The system of claim 121 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

124. The system of claims 121 to 123 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

125. The system of claim 125 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

126. The system of any of claims 1 14 to 125, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

127. The system of any of claims 1 14 to 126, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

128. The system of claim 127, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

129. The system of claim 128, wherein the real time modulation happens in 1 to 100 microseconds.

130. The system of any one of claims 127 to 129, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

131 . The system of any one of claims 127 to 129, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

132. The system of any of claims 1 14 to 131 , wherein the output signal is a control signal of an end effector device.

133. The system of any of claims 1 14 to 132, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

134. The system of any of claims 1 14 to 133, wherein the output signal is a control signal for an applied drug treatment.

135. The system of claim 134, wherein the neural control system further

comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

136. The system of claim 135, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

137. The system of any of claims 1 14 to 136, wherein the neural control system further comprises means for sending the received neural data to an update machine.

138. The system of any of claims 1 14 to 137, wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

139. The system of any of claims 1 14 to 138, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

140. The system of claim 139, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

141 . The system of any of claims 1 14 to 140, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

142. The system of any of claims 1 14 to 141 , wherein the neural control system further comprises means for receiving updates to the body model.

143. The system of claims 138 to 142 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

144. The system of claim 138 to 142 wherein the update machine is an automated cloud system.

145. The system of claim 138 to 142 wherein the update machine is a manual connection over a local wired or wireless connection.

146. The system of claims 138 to 142 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

147. The system of claims 138 to 142 wherein the updates are chosen by a

treating clinician.

148. The system of any of claims 1 14 to 147, wherein the neural control system incorporates a safety module for monitoring performance of the neural control system.

149. The system of claim 148, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

150. The system of claim 148 or 149, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

151 . The system of claims 148 to 150, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

152. The system of claims 148 to 151 , wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

153. The system of claims 148 to 152, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

154. The system of any of claims 1 14 to 153, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

155. The system of claim 153 or 154, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

156. The system of claim 154 or 155, wherein the the neural control system

comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

157. The system of any one of claims 154 to 156, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

158. The system of claim of any of claims 1 14 to 1 57 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

159. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output neural stimulation signal required to achieve a desired value of the bodily state; and

an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state;

wherein the output controller is further arranged to receive selected data regarding amplitude of received neural data from the input controller; and

wherein the output controller is further arranged to send data regarding the timing of the determined output neural stimulation signal to the input controller; and the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

160. The system of claim 159, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

161 . The system of claim 159, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

162. The system of claim 1 59, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

163. The system of claim 159, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

164. The system of claim 162 or 163, wherein the desired bodily setpoint is calculated within the closed loop controller based on received neural data or received neural biomarkers.

165. The system of claim 163 or 164, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

166. The system of claim 162 or 163, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

167. The system of claim 166 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

168. The system of claim 166 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

169. The system of claims 166 to 168 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

170. The system of claim 169 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

171 . The system of any of claims 159 to 170, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor; wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

172. The system of any of claims 159 to 171 , wherein the output controller is

arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

173. The system of claim 172, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data

characterizing the received neural data.

174. The system of claim 173, wherein the real time modulation happens in 1 to 100 microseconds.

175. The system of any one of claims 172 to 174, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

176. The system of any one of claims 172 to 174, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

177. The system of any of claims 159 to 176, wherein the output signal is a control signal of an end effector device.

178. The system of any of claims 159 to 177, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

179. The system of any of claims 159 to 178, wherein the output signal is a control signal for an applied drug treatment.

180. The system of claim 178, wherein the output controller is arranged to send data regarding the timing of the determined output neural stimulation signal to the input controller.

181 . The system of any of claims 159 to 180, wherein the neural control system further comprises means for sending the received neural data to an update machine.

182. The system of any of claims 159 to 181 , wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

183. The system of any of claims 159 to 182, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

184. The system of claim 183, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

185. The system of any of claims 159 to 184, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

186. The system of any of claims 159 to 185, wherein the neural control system further comprises means for receiving updates to the body model.

187. The system of claims 183 to 186 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

188. The system of claim 183 to 187 wherein the update machine is an automated cloud system.

189. The system of claim 183 to 187 wherein the update machine is a manual connection over a local wired or wireless connection.

190. The system of claims 183 to 187 wherein the updates are automatically

calculated by one or more machine learning systems for calculating long term treatment.

191 . The system of claims 183 to 187 wherein the updates are chosen by a

treating clinician.

192. The system of any of claims 159 to 191 , wherein the neural control system incorporates a safety module for monitoring performance of the neural control system.

193. The system of claim 192, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

194. The system of claim 192 or 193, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

195. The system of claims 192 to 194, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

196. The system of claims 192 to 195, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

197. The system of claims 192 to 196, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

198. The system of any of claims 159 to 197, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

199. The system of claim 197 or 198, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

200. The system of claim 198 or 199, wherein the the neural control system

comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

201 . The system of any one of claims 198 to 200, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

202. The system of claim of any of claims 159 to 201 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

203. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and

wherein the neural control system is connected to a separate update machine, including means for sending the received neural data to the update machine;

wherein the update machine is arranged to use the received neural data to perform machine learning training to produce an updated machine learning model; and

the neural control system is further arranged to replace the at least one machine learning model with the updated machine learning model.

204. The system of claim 203, wherein the uploaded neural data is used to retrain the machine learning means.

205. The system of claim 203 or 204, wherein the at least one machine learning means is used to calculate neural biomarkers.

206. The system of claims 203 to 205, wherein the at least one machine learning means calculating neural biomarkers is updated based on a machine learning retraining from neural data representative of one or more patients across one or more time periods.

207. The system of claims 204 to 205, wherein the at least one machine learning model comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

208. The system of claims 203 to 205, wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

209. The system of claims 204 to 206, wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

210. The system of claims 203 to 205, wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

21 1 . The system of claim 209 or 210, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

212. The system of claim 210 or 21 1 , wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

213. The system of claim 209 or 210, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

214. The system of claim 213 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

215. The system of claim 213 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

216. The system of claim 213 to 215 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

217. The system of claim 216 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

218. The system of claims 203 to 21 7, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

219. The system of claims 203 to 218, wherein the neural control system further comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

220. The system of claim 219, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

221 . The system of claim 220, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data

characterizing the received neural data.

222. The system of claim 221 , wherein the real time modulation happens in 1 to 100 microseconds.

223. The system of any one of claims 220 to 222, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

224. The system of any one of claims 220 to 222, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

225. The system of any of claims 203 to 224, wherein the output signal is a control signal of an end effector device.

226. The system of claims 203 to 225, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

227. The system of any of claims 203 to 226, wherein the output signal is a control signal for an applied drug treatment.

228. The system of claim 227, wherein the neural control system further

comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

229. The system of claim 228, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

230. The system of any of claims 203 to 229, wherein the neural control system further comprises means for sending the received neural data to an update machine.

231 . The system of any of claims 203 to 230, wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

232. The system of any of claims 203 to 231 , wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

233. The system of claim 232, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

234. The system of any of claims 203 to 233, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

235. The system of any of claims 213 to 217, wherein the neural control system further comprises means for receiving updates to the body model.

236. The system of claims 231 to 235 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

237. The system of claim 231 to 235 wherein the update machine is an automated cloud system.

238. The system of claim 231 to 235 wherein the update machine is a manual connection over a local wired or wireless connection.

239. The system of claims 231 to 235 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

240. The system of claims 231 to 235 wherein the updates are chosen by a

treating clinician.

241 . The system of claims 203 to 240, wherein the neural control system

incorporates a safety module for monitoring performance of the neural control system.

242. The system of claim 241 , wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

243. The system of claim 241 or 242, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

244. The system of claims 241 to 243, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

245. The system of claims 241 to 244, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

246. The system of claims 241 to 245, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and the safety module is arranged to act based on commands from the auditing module.

247. The system of claims 203 to 246, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

248. The system of claim 246 or 247, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

249. The system of claim 247 or 248, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

250. The system of any one of claims 247 to 249, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning c. Unauthorised versioning.

251 . The system of claims 203 to 251 , in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

252. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and

wherein the neural control system incorporates a safety module monitoring performance of the closed loop controller;

wherein the safety module is arranged to act to reduce or stop the function of any element of the first control loop based on monitoring its performance.

253. The system of claim 252, wherein the safety module is arranged to act to reduce or stop the function of any element of the neural control system based on monitoring its performance.

254. The system of claim 252 or 253, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

255. The system of claims 252 to 254, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

256. The system of claims 252 to 254, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

257. The system of claims 252 to 254, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

258. The system of claim 256 or 257, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

259. The system of claim 257 or 258, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

260. The system of claim 256 or 257, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

261 . The system of claim 260 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

262. The system of claim 260 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

263. The system of claims 260 to 262 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

264. The system of claim 263 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

265. The system of claims 252 to 264, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

266. The system of claims 252 to 265, wherein the neural control system further comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

267. The system of claim 266, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

268. The system of claim 267, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

269. The system of claim 268, wherein the real time modulation happens in 1 to 100 microseconds.

270. The system of any one of claims 267 to 269, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

271 . The system of any one of claims 267 to 269, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller; wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

272. The system of claims 252 to 271 , wherein the output signal is a control signal of an end effector device.

273. The system of claims 252 to 271 , wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

274. The system of claims 252 to 272, wherein the output signal is a control signal for an applied drug treatment.

275. The system of claim 274, wherein the neural control system further

comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

276. The system of claim 275, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

277. The system of claims 252 to 276, wherein the neural control system further comprises means for sending the received neural data to an update machine.

278. The system of claims 252 to 277. wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

279. The system of claims 252 to 278, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

280. The system of claim 279, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

281 . The system of claims 252 to 280, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

282. The system of any of claims 260 to 264, wherein the neural control system further comprises means for receiving updates to the body model.

283. The system of claims 278 to 282 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

284. The system of claim 278 to 282 wherein the update machine is an automated cloud system.

285. The system of claim 278 to 282 wherein the update machine is a manual connection over a local wired or wireless connection.

286. The system of claims 278 to 282 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

287. The system of claims 278 to 282 wherein the updates are chosen by a

treating clinician.

288. The system of claim 252 to 287, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

289. The system of claim 288, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

290. The system of claims 288 or 289, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

291 . The system of claims 288 to 290, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

292. The system of claims 288 to 291 , wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

293. The system of claims 252 to 292, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

294. The system of claim 292 or 293, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

295. The system of claims 292 to 294, wherein the neural control system

comprises one or more elements from the group of:

a. Machine learning neural processor; b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

296. The system of any one of claims 292 to 295, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

297. The system of claims 252 to 296, in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

298. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and

wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of the neural control system;

wherein the auditing module is arranged to obtain information regarding the current version of the neural control system; wherein the auditing module is arranged to command a safety module to act to reduce or stop the function of the neural control system based on the correct and current version of the neural control system.

299. The system of claim 298, wherein the neural control system incorporates the safety module; and

the safety module is arranged for monitoring performance of the neural control system.

300. The system of claim 299, wherein the auditing module is arranged to obtain information regarding the current version of the neural control system of the neural control system from the safety module.

301 . The system of claims 298 to 300, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

302. The system of claims 298 to 300, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

303. The system of claims 298 to 300, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

304. The system of claims 298 to 300, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state; a second machine learning model to process the desired change in bodily state and determine the output signal.

305. The system of claim 303 or 304, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

306. The system of claim 304 or 305, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

307. The system of claim 303 or 304, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

308. The system of claim 307 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

309. The system of claim 307 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

310. The system of claims 307 to 309 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

31 1 . The system of claim 310 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

312. The system of claims 298 to 310, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

313. The system of claims 298 to 312, wherein the neural control system further comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

314. The system of claim 313, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

315. The system of claim 314, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data

characterizing the received neural data.

316. The system of claim 315, wherein the real time modulation happens in 1 to 100 microseconds.

317. The system of any one of claims 313 to 316, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

318. The system of any one of claims 313 to 316, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

319. The system of claims 298 to 318, wherein the output signal is a control signal of an end effector device.

320. The system of claims 298 to 31 9, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

321 . The system of claims 298 to 320, wherein the output signal is a control signal for an applied drug treatment.

322. The system of claim 321 , wherein the neural control system further comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

323. The system of claim 322, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

324. The system of claims 298 to 323, wherein the neural control system further comprises means for sending the received neural data to an update machine.

325. The system of claims 298 to 324, wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

326. The system of claims 298 to 325, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

327. The system of claim 326, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

328. The system of claims 298 to 327, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

329. The system of any of claims 305 to 31 1 , wherein the neural control system further comprises means for receiving updates to the body model.

330. The system of claims 325 to 329 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

331 . The system of claim 325 to 329 wherein the update machine is an automated cloud system.

332. The system of claim 325 to 329 wherein the update machine is a manual connection over a local wired or wireless connection.

333. The system of claims 325 to 329 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

334. The system of claims 325 to 329 wherein the updates are chosen by a

treating clinician.

335. The system of claim 299 or claim 300, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

336. The system of claim 335, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

337. The system of claims 335 or 336, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

338. The system of claims 335 to 337, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

339. The system of claims 335 to 338, wherein the safety module is arranged to act based on commands from the auditing module.

340. The system of claim 298 to 339, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

341 . The system of claim 298 to 340, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

342. The system of claims 298 to 341 , wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning.

343. The system of claim of claims 298 to 342, in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

344. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and

wherein the desired value of bodily state is achieved by a bodily setpoint set in advance as a treatment.

345. The system of claim 344, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

346. The system of claim 344, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

347. The system of claim 344, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

348. The system of claim 344, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

349. The system of claim 347 or 348 wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

350. The system of claim 348 or 349, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

351 . The system of claim 347 or 348, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

352. The system of claim 351 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

353. The system of claim 351 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

354. The system of claims 351 to 353 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

355. The system of claim 354 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

356. The system of claims 344 to 355, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

357. The system of claims 345 to 356, wherein the neural control system further comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

358. The system of claim 357, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

359. The system of claim 358, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data

characterizing the received neural data.

360. The system of claim 359, wherein the real time modulation happens in 1 to 100 microseconds.

361 . The system of any one of claims 358 to 360, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

362. The system of any one of claims 358 to 360, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

363. The system of claims 344 to 362, wherein the output signal is a control signal of an end effector device.

364. The system of claims 344 to 363, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

365. The system of claims 344 to 364, wherein the output signal is a control signal for an applied drug treatment.

366. The system of claim 365, wherein the neural control system further comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

367. The system of claim 366, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

368. The system of claims 344 to 367, wherein the neural control system further comprises means for sending the received neural data to an update machine.

369. The system of claims 344 to 368. wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

370. The system of claims 344 to 369, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

371 . The system of claim 370, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

372. The system of claims 344 to 371 , wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

373. The system of any of claims 351 to 355, wherein the neural control system further comprises means for receiving updates to the body model.

374. The system of claims 371 to 373 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

375. The system of claim 369 to 373 wherein the update machine is an automated cloud system.

376. The system of claim 369 to 373 wherein the update machine is a manual connection over a local wired or wireless connection.

377. The system of claims 369 to 373 wherein the updates are automatically

calculated by one or more machine learning systems for calculating long term treatment.

378. The system of claims 369 to 373 wherein the updates are chosen by a

treating clinician.

379. The system of claims 344 to 378, wherein the neural control system

incorporates a safety module for monitoring performance of the neural control system.

380. The system of claim 379, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

381 . The system of claim 379 or 380, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

382. The system of claims 379 to 381 , wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

383. The system of claims 379 to 382, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

384. The system of claims 379 to 383, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

385. The system of claims 344 to 384, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

386. The system of claim 384 or 385, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

387. The system of claim 385 or 386, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model; wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

388. The system of any one of claims 385 to 386, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

389. The system of claims 344 to 388 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

390. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state;

wherein the desired value of bodily state is achieved by a bodily setpoint; and wherein the setpoint is calculated within the closed loop controller based on received sensor data.

391 . The system of claim 390, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

392. The system of claim 390, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

393. The system of claim 390, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

394. The system of claim 390, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

395. The system of claim 393 or 394, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

396. The system of claim 394 or 395, wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

397. The system of claim 393 or 394, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

398. The system of claim 397 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

399. The system of claim 397 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

400. The system of claims 397 to 399, wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

401 . The system of claim 400 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

402. The system of claims 390 to 401 , wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

403. The system of claims 390 to 402, wherein the neural control system further comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

404. The system of claim 403, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

405. The system of claim 404, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

406. The system of claim 405, wherein the real time modulation happens in 1 to 100 microseconds.

407. The system of any one of claims 404 to 406, wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

408. The system of any one of claims 404 to 407, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

409. The system of claims 390 to 408, wherein the output signal is a control signal of an end effector device.

410. The system of claims 390 to 409, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

41 1 . The system of claims 390 to 41 0, wherein the output signal is a control signal for an applied drug treatment.

412. The system of claim 41 1 , wherein the neural control system further

comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

413. The system of claim 412, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

414. The system of claims 390 to 413, wherein the neural control system further comprises means for sending the received neural data to an update machine.

415. The system of claims 390 to 414. wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

416. The system of claims 390 to 415, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

417. The system of claim 416, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

418. The system of claims 390 to 417, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

419. The system of any of claims 397 to 401 , wherein the neural control system further comprises means for receiving updates to the body model.

420. The system of claims 415 to 419 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

421 . The system of claim 415 to 419 wherein the update machine is an automated cloud system.

422. The system of claim 415 to 419 wherein the update machine is a manual connection over a local wired or wireless connection.

423. The system of claims 415 to 419 wherein the updates are automatically

calculated by one or more machine learning systems for calculating long term treatment.

424. The system of claims 415 to 419 wherein the updates are chosen by a

treating clinician.

425. The system of claims 390 to 424, wherein the neural control system

incorporates a safety module for monitoring performance of the neural control system.

426. The system of claim 425, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller; d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

427. The system of claim 425 or 426, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

428. The system of claims 425 to 427, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

429. The system of claims 425 to 428, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

430. The system of claims 425 to 429, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

431 . The system of claims 390 to 429, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

432. The system of claim 430 or 431 , wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model; wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

433. The system of claim 431 or 432, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

434. The system of any one of claims 431 to 433, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

435. The system of claims 390 to 434 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

436. A neural control system comprising:

an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

means arranged to send the determined output signal to at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state;

wherein the current state of the body relative to the body model is informed by any combination of neural biomarkers or non-neural sensors.

437. The system of claim 436, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

438. The system of claim 436, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

439. The system of claim 436, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

440. The system of claim 436, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

441 . The system of claim 439 or 440, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

442. The system of claim 440 or 441 , wherein the neural control system uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

443. The system of claims 436 to 442, wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

444. The system of claims 436 to 442, wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

445. The system of claims 436 to 444, wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

446. The system of claim 445 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

447. The system of claims 436 to 446, wherein the neural control system further comprises means arranged to receive data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

448. The system of claims 436 to 447, wherein the neural control system further comprises an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device.

449. The system of claim 448, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

450. The system of claim 449, wherein the output controller is arranged to carry out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data

characterizing the received neural data.

451 . The system of claim 450, wherein the real time modulation happens in 1 to 100 microseconds.

452. The system of any one of claims 449 to 451 , wherein the output controller is arranged to receive selected data regarding timing of received neural data from the input controller;

wherein the output controller is arranged to control the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

453. The system of any one of claims 449 to 452, wherein the output controller is arranged to receive selected data regarding amplitude of received neural data from the input controller;

wherein the output controller is arranged to control the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

454. The system of claims 436 to 453, wherein the output signal is a control signal of an end effector device.

455. The system of claims 436 to 454, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

456. The system of claims 436 to 454, wherein the output signal is a control signal for an applied drug treatment.

457. The system of claim 456, wherein the neural control system further

comprises an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

458. The system of claim 457, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

459. The system of claims 436 to 458, wherein the neural control system further comprises means for sending the received neural data to an update machine.

460. The system of claims 436 to 459. wherein the neural control system further comprises means for sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

461 . The system of claims 436 to 460, wherein the neural control system further comprises means for receiving updates of the at least one machine learning model.

462. The system of claim 461 , wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

463. The system of claims 436 to 462, wherein the neural control system further comprises means for receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

464. The system of any of claims 436 to 463, wherein the neural control system further comprises means for receiving updates to the body model.

465. The system of claims 460 to 464 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

466. The system of claim 460 to 464 wherein the update machine is an automated cloud system.

467. The system of claim 460 to 464 wherein the update machine is a manual connection over a local wired or wireless connection.

468. The system of claims 460 to 464 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

469. The system of claims 460 to 464 wherein the updates are chosen by a treating clinician.

470. The system of claims 436 to 469, wherein the neural control system

incorporates a safety module for monitoring performance of the neural control system.

471 . The system of claim 470, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

472. The system of claim 470 or 471 , wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

473. The system of claims 470 to 472, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control system based on monitoring of performance of that element.

474. The system of claims 470 to 473, wherein the safety module is arranged to selectively control the neural control system to operate in a safety mode.

475. The system of claims 470 to 474, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system ; and

the safety module is arranged to act based on commands from the auditing module.

476. The system of claims 436 to 475, wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system.

477. The system of claim 475 or 476, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

478. The system of claim 476 or 477, wherein the neural control system comprises one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control system of these elements.

479. The system of any one of claims 476 to 478, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control system based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

480. The system of claims 436 to 479 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

481 . A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state of a subject from at least one neural sensor;

using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; wherein the method forms a first control loop providing closed loop control of the bodily state.

482. The method of claim 481 , wherein the at least one machine learning model comprises using a single machine learning model for processing the received neural data to directly determine the at least one output signal.

483. The method of claim 481 , wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

484. The method of claim 481 , wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

485. The method of claim 481 , wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

486. The method of claim 484 or 485, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

487. The method of claim 485 or 486, further comprising using the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

488. The method of claim 484 or 485, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

489. The method of claim 488 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

490. The method of claim 488 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

491 . The method of claim 488, 489, or 490 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

492. The method of claim 491 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

493. The method of any one of claims 481 to 492, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

494. The method of any one of claims 481 to 492, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

495. The method of claim 494, wherein the output controller receives selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

496. The method of claim 495, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

497. The method of claim 496, wherein the real time modulation happens in 1 to 100 microseconds.

498. The method of any one of claims 495 to 497, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

499. The method of any one of claims 495 to 497, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

500. The method of any one of claims 481 to 499, wherein the output signal is a control signal of an end effector device.

501 . The method of any one of claims 481 to 500, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

502. The method of any one of claims 481 to 501 , wherein the output signal is a control signal for an applied drug treatment.

503. The method of claim 501 , wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

504. The method of claim 503, wherein the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

505. The method of any one of claims 481 to 504, wherein the neural control method further comprises sending the received neural data to an update machine.

506. The method of any one of claims 481 to 505, wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

507. The method of any one of claims 481 to 506, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

508. The method of claim 507, wherein the updates to the at least one machine learning model are calculated based on the received neural data, calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

509. The method of any one of claims 481 to 508, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

510. The method of any of claims 488 to 492, wherein the neural control method further comprises receiving updates to the body model.

51 1 . The method of claims 506 to 510 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

512. The method of claim 506 to 510 wherein the update machine is an automated cloud method.

513. The method of claim 506 to 510 wherein the update machine is a manual connection over a local wired or wireless connection.

514. The method of claims 506 to 510 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

515. The method of claims 506 to 510 wherein the updates are chosen by a

treating clinician.

516. The method of any one of claim 481 to 51 5, wherein the neural control method incorporates using a safety module for monitoring performance of the neural control method.

517. The method of claim 516, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning data processor;

b. Control module;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

518. The method of claim 516 or 517, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

519. The method of claims 516 to 518, wherein the safety module acts to selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

520. The method of claims 516 to 519, wherein the safety module selectively controls the neural control method to operate in a safety mode.

521 . The method of claims 516 to 520, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module acts based on commands from the auditing module.

522. The method of any one of claims 481 to 521 , wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

523. The method of claim 521 or 522, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

524. The method of claim 522 or 523, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

525. The method of any one of claims 522 to 524, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

526. The method of any one of claims 481 to 524 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

527. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one machine learning model for processing the received neural data to identify neural biomarkers; and

sending the identified neural biomarkers to at least one output device for performing operations;

wherein the neural control method forms a first control loop providing closed loop control of the bodily state.

528. The method of claim 527, wherein the neural biomarkers are learnt over a population of patients to be stationary representations of neural population activity.

529. The method of claim 527 or 528, wherein the neural biomarkers are learnt over a population of patients to be stationary representations of neural population activity.

530. The method of any of claims 527 to 529, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

531 . The method of claim 530, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

532. The method of any of claims 527 to 531 , wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

533. The method of any of claims 527 to 532, wherein the neural control method further comprises receiving updates to the body model.

534. The method of claims 527 to 533 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

535. The method of claim 527 to 533 wherein the updates are received from an update machine which is an automated cloud method.

536. The method of claim 527 to 533 wherein the update machine is a manual connection over a local wired or wireless connection.

537. The method of claims 527 to 533 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

538. The method of claims 527 to 533 wherein the updates are chosen by a

treating clinician.

539. The method of any one of claims 527 to 538, wherein the neural control method comprises using a safety module for monitoring performance of the neural control method.

540. The method of claim 539, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector; f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

541 . The method of claim 539 or 540 wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

542. The method of claims 539 to 541 , wherein the safety module is arranged to selectively control the neural control method to operate in a safety mode.

543. The method of claims 539 to 542, wherein the neural control method further comprises using an auditing module monitor version control of the neural control method; and

the safety module is arranged to act based on commands from an auditing module.

544. The method of any one of claims 537 to 543, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

545. The method of claim 543 or 544, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements

546. The method of claim 544 or 545, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor; b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

547. The method of any one of claims 542 to 546, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

548. The method of claim of any of claims 527 to 547, wherein the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

549. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state;

wherein the output controller is further used to receive selected data regarding timing of received neural data from the input controller; and

wherein the output controller is used to control the time at which the determined output signal is sent to the at least one output device based on the selected data regarding timing of received neural data.

550. The method of claim 549, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

551 . The method of claim 549, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

552. The method of claim 549, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

553. The method of claim 549, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

554. The method of claim 552 or 553, wherein the desired bodily setpoint is calculated within the closed loop controller based on received neural data or received neural biomarkers.

555. The method of claim 553 or 554, wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

556. The method of claim 552 or 553, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

557. The method of claim 556 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

558. The method of claim 556 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

559. The method of claims 556 to 558 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

560. The method of claim 559 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

561 . The method of any of claims 549 to 560, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non- neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

562. The method of any of claims 549 to 561 , wherein the output controller

receives selected data regarding received neural data from the input controller; whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

563. The method of claim 562, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

564. The method of claim 563, wherein the real time modulation happens in 1 to 100 microseconds.

565. The method of any one of claims 562 to 564, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

566. The method of any one of claims 563 to 565, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

567. The method of any of claims 550 to 566, wherein the output signal is a

control signal of an end effector device.

568. The method of any of claims 550 to 567, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

569. The method of any of claims 550 to 568, wherein the output signal is a

control signal for an applied drug treatment.

570. The method of claim 568, wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

571 . The method of claim 570, wherein the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

572. The method of any of claims 569 to 571 , wherein the neural control method further comprises sending the received neural data to an update machine.

573. The method of any of claims 549 to 572, wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

574. The method of any of claims 549 to 573, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

575. The method of claim 574, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

576. The method of any of claims 549 to 575, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

577. The method of any of claims 549 to 576, wherein the neural control method further comprises receiving updates to the body model.

578. The method of claims 574 to 577 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

579. The method of claim 574 to 578 wherein the update machine is an automated cloud method.

580. The method of claim 574 to 578 wherein the update machine is a manual connection over a local wired or wireless connection.

581 . The method of claims 574 to 578 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

582. The method of claims 574 to 578 wherein the updates are chosen by a

treating clinician.

583. The method of any of claims 549 to 582 wherein the neural control method comprises using a safety module to monitor performance of the neural control method.

584. The method of claim 583 wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

585. The method of claim 583 or 584 wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

586. The method of claims 583 to 585 wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

587. The method of claims 583 to 586 wherein the safety module is arranged to selectively control the neural control method to operate in a safety mode.

588. The method of claims 583 to 587, wherein the neural control method further comprises using an auditing module monitor version control of the neural control method; and

the safety module acts based on commands from the auditing module.

589. The method of any of claims 549 to 588, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

590. The method of claim 588 or 589, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller; d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module is arranged to receive information from the update machine regarding the correct version of these elements.

591 . The method of claim 589 or 590, wherein the the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

592. The method of any one of claims 589 to 591 , wherein the auditing module commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning

b. Out of date versioning

c. Unauthorised versioning

593. The method of any of claims 549 to 592 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

594. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device;

whereby the neural control method forms a first control loop providing closed loop control of the bodily state;

wherein the output controller receives selected data regarding amplitude of received neural data from the input controller; and

wherein the output controller controls the amplitude of the determined output signal sent to the at least one output device based on the selected data regarding amplitude of received neural data.

595. The method of claim 594, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

596. The method of claim 594, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

597. The method of claim 594, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

598. The method of claim 594, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state; a second machine learning model to process the desired change in bodily state and determine the output signal.

599. The method of claim 597 or 598, wherein the desired bodily setpoint is calculated within the closed loop controller based on received neural data or received neural biomarkers.

600. The method of claim 598 or 599, wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

601 . The method of claim 597 or 598, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

602. The method of claim 601 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

603. The method of claim 601 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

604. The method of claims 601 to 603 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

605. The method of claim 604 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

606. The method of any of claims 594 to 605, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non- neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

607. The method of any of claims 594 to 606, wherein the output controller

receives selected data regarding received neural data from the input controller; whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

608. The method of claim 607, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

609. The method of claim 608, wherein the real time modulation happens in 1 to 100 microseconds.

610. The method of any one of claims 607 to 609, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

61 1 . The method of any one of claims 607 to 609, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

612. The method of any of claims 594 to 61 1 , wherein the output signal is a

control signal of an end effector device.

613. The method of any of claims 594 to 612, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

614. The method of any of claims 594 to 613, wherein the output signal is a

control signal for an applied drug treatment.

615. The method of claim 614, wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

616. The method of claim 615, wherein the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

617. The method of any of claims 594 to 616, wherein the neural control method further comprises sending the received neural data to an update machine.

618. The method of any of claims 594 to 617, wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

619. The method of any of claims 594 to 618, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

620. The method of claim 619, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

621 . The method of any of claims 594 to 620, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

622. The method of any of claims 594 to 621 , wherein the neural control method further comprises receiving updates to the body model.

623. The method of claims 618 to 622 wherein the updates are generated due to data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

624. The method of claim 618 to 622 wherein the update machine is an automated cloud method.

625. The method of claim 618 to 622 wherein the update machine is a manual connection over a local wired or wireless connection.

626. The method of claims 618 to 622 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

627. The method of claims 618 to 622 wherein the updates are chosen by a

treating clinician.

628. The method of any of claims 5944 to 627, wherein the neural control method further comprise using a safety module to monitor performance of the neural control method.

629. The method of claim 628, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

630. The method of claim 628 or 629, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

631 . The method of claims 628 to 630, wherein the safety module acts to

selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

632. The method of claims 628 to 631 , wherein the safety module selectively controls the neural control method to operate in a safety mode.

633. The method of claims 628 to 632, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module is acts based on commands from the auditing module.

634. The method of any of claims 594 to 633, wherein the neural control method further comprises using an auditing module o monitor version control of the neural control method.

635. The method of claim 633 or 634, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

636. The method of claim 634 or 635, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

637. The method of any one of claims 634 to 636, wherein the auditing module commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

638. The method of claim of any of claims 594 to 637 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

639. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output neural stimulation signal required to achieve a desired value of the bodily state; and

using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device;

whereby the neural control method forms a first control loop providing closed loop control of the bodily state;

wherein the output controller receives selected data regarding amplitude of received neural data from the input controller; and

wherein the output controller sends data regarding the timing of the determined output neural stimulation signal to the input controller; and

the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

640. The method of claim 639, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

641 . The method of claim 639, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

642. The method of claim 639, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

643. The method of claim 639, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

644. The method of claim 642 or 643, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

645. The method of claim 643 or 644, wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

646. The method of claim 642 or 643, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

647. The method of claim 646 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

648. The method of claim 646 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

649. The method of claims 646 to 648 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

650. The method of claim 649 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

651 . The method of any of claims 639 to 650, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non- neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

652. The method of any of claims 639 to 651 , wherein the output controller

receives selected data regarding received neural data from the input controller; whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

653. The method of claim 652, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

654. The method of claim 653, wherein the real time modulation happens in 1 to 100 microseconds.

655. The method of any one of claims 652 to 654, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

656. The method of any one of claims 652 to 654, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

657. The method of any of claims 639 to 656, wherein the output signal is a

control signal of an end effector device.

658. The method of any of claims 639 to 657, wherein the output signal is a neural stimulation signal to be applied to the nervous system of the subject.

659. The method of any of claims 639 to 658, wherein the output signal is a

control signal for an applied drug treatment.

660. The method of claim 658, wherein the output controller sends data regarding the timing of the determined output neural stimulation signal to the input controller.

661 . The method of any of claims 639 to 660, wherein the neural control method further comprises sending the received neural data to an update machine.

662. The method of any of claims 639 to 661 , wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

663. The method of any of claims 639 to 662, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

664. The method of claim 663, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

665. The method of any of claims 639 to 664, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

666. The method of any of claims 639 to 665, wherein the neural control method further comprises receiving updates to the body model.

667. The method of claims 663 to 666 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

668. The method of claim 663 to 667 wherein the update machine is an automated cloud method.

669. The method of claim 663 to 667 wherein the update machine is a manual connection over a local wired or wireless connection.

670. The method of claims 663 to 667 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

671 . The method of claims 663 to 667 wherein the updates are chosen by a

treating clinician.

672. The method of any of claims 639 to 671 , wherein the neural control method comprises using a safety module to monitor performance of the neural control method.

673. The method of claim 672, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

674. The method of claim 672 or 673, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

675. The method of claims 672 to 674, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

676. The method of claims 672 to 675, wherein the safety module is arranged to selectively control the neural control method to operate in a safety mode.

677. The method of claims 672 to 676, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module to acts based on commands from the auditing module.

678. The method of any of claims 639 to 677, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

679. The method of claim 677 or 678, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

680. The method of claim 678 or 679, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

681 . The method of any one of claims 678 to 680, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of: a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

682. The method of claim of any of claims 639 to 681 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

683. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and

wherein the neural control method further comprises using an update machine, including sending the received neural data to the update machine;

wherein the update machine uses the received neural data to perform machine learning training to produce an updated neural control method; and

the neural control method further comprising replacing the at least one neural control method with the updated neural control method.

684. The method of claim 683, wherein the uploaded neural data is used to retrain the machine learning means.

685. The method of claim 683 or 684, wherein the at least one machine learning means is used to calculate neural biomarkers.

686. The method of claims 683 to 685, wherein the at least one machine learning means calculating neural biomarkers is updated based on a machine learning retraining from neural data representative of one or more patients across one or more time periods.

687. The method of claims 684 to 685, wherein the at least one machine learning model comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

688. The method of claims 683 to 685, wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

689. The method of claims 684 to 686, wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

690. The method of claims 683 to 685, wherein the at least one machine learning model comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

691 . The method of claim 689 or 690, wherein the desired bodily setpoint is calculated within the closed loop controller based on received neural data or received neural biomarkers.

692. The method of claim 690 or 691 , wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

693. The method of claim 689 or 690, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

694. The method of claim 693 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

695. The method of claim 693 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

696. The method of claim 693 to 269 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

697. The method of claim 696 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

698. The method of claims 693 to 697, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

699. The method of claims 683 to 698, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

700. The method of claim 699, wherein the output controller is arranged to receive selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

701 . The method of claim 700, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

702. The method of claim 701 , wherein the real time modulation happens in 1 to 100 microseconds.

703. The method of any one of claims 700 to 702, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

704. The method of any one of claims 700 to 702, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

705. The method of any of claims 683 to 704, wherein the output signal is a

control signal of an end effector device.

706. The method of claims 683 to 705, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

707. The method of any of claims 683 to 706, wherein the output signal is a

control signal for an applied drug treatment.

708. The method of claim 707, wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

709. The method of claim 708, wherein the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

710. The method of any of claims 683 to 709, wherein the neural control method further comprises sending the received neural data to an update machine.

71 1 . The method of any of claims 683 to 710, wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

712. The method of any of claims 683 to 71 1 , wherein the neural control method further comprises receiving updates of the at least one machine learning model.

713. The method of claim 712, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

714. The method of any of claims 683 to 713, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

715. The method of any of claims 693 to 697, wherein the neural control method further comprises means for receiving updates to the body model.

716. The method of claims 71 1 to 715 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

717. The method of claim 71 1 to 715 wherein the update machine is an automated cloud method.

718. The method of claim 71 1 to 715 wherein the update machine is a manual connection over a local wired or wireless connection.

719. The method of claims 71 1 to 715 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

720. The method of claims 71 1 to 715 wherein the updates are chosen by a

treating clinician.

721 . The method of claims 683 to 720, wherein the neural control method comprises using a safety module to monitor performance of the neural control method.

722. The method of claim 721 , wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

723. The method of claim 721 or 722, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

724. The method of claims 721 to 723, wherein the safety module is arranged to act to selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

725. The method of claims 721 to 724, wherein the safety module is arranged to selectively control the neural control method to operate in a safety mode.

726. The method of claims 721 to 725, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module acts based on commands from the auditing module.

727. The method of claims 683 to 716, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

728. The method of claim 726 or 727, wherein the neural control method

comprises using one or more elements from the group of: a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

729. The method of claim 727 or 728, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

730. The method of any one of claims 727 to 729, wherein the auditing commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

731 . The method of claims 483 to 730, in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

732. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and

wherein the neural control method uses a safety module monitoring performance of the closed loop controller;

wherein the safety module acts to reduce or stop the function of any element of the first control loop based on monitoring its performance.

733. The method of claim 732, wherein the safety module acts to reduce or stop the function of any element of the neural control system based on monitoring its performance.

734. The method of claim 732 or 733, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

735. The method of claims 732 to 734, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

736. The method of claims 732 to 734, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

737. The method of claims 732 to 734, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

738. The method of claim 736 or 737, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

739. The method of claim 737 or 73 wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

740. The method of claim 736 or 737, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

741 . The method of claim 740 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

742. The method of claim 740 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

743. The method of claims 740 to 742 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

744. The method of claim 743 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

745. The method of claims 732 to 744, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

746. The method of claims 732 to 745, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

747. The method of claim 746, wherein the output controller receives selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

748. The method of claim 747, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

749. The method of claim 748, wherein the real time modulation happens in 1 to 100 microseconds.

750. The method of any one of claims 747 to 749, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

751 . The method of any one of claims 747 to 749, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

752. The method of claims 732 to 751 , wherein the output signal is a control signal of an end effector device.

753. The method of claims 732 to 751 , wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

754. The method of claims 732 to 752, wherein the output signal is a control signal for an applied drug treatment.

755. The method of claim 754, wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

756. The method of claim 755, wherein the input controller stops sending the

received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

757. The method of claims 732 to 756, wherein the neural control method further comprises sending the received neural data to an update machine.

758. The method of claims 732 to 757. wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

759. The method of claims 732 to 758, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

760. The method of claim 759, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

761 . The method of claims 732 to 760, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

762. The method of any of claims 740 to 74 wherein the neural control method further comprises receiving updates to the body model.

763. The method of claims 758 to 762 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

764. The method of claim 758 to 762 wherein the update machine is an automated cloud method.

765. The method of claim 758 to 762 wherein the update machine is a manual connection over a local wired or wireless connection.

766. The method of claims 758 to 762 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

767. The method of claims 758 to 762 wherein the updates are chosen by a

treating clinician.

768. The method of claim 732 to 767, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

769. The method of claim 768, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

770. The method of claims 768 or 769, wherein the safety module acts to

selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

771 . The method of claims 768 to 770, wherein the safety module selectively controls the neural control method to operate in a safety mode.

772. The method of claims 768 to 771 , wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module acts based on commands from the auditing module.

773. The method of claims 732 to 772, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

774. The method of claim 772 or 773, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

775. The method of claims772 to 774, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

776. The method of any one of claims 772 to 775, wherein the auditing module is arranged to command the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

777. The method of claims 732 to 776, in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

778. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and

wherein the neural control method further comprises using an auditing module to monitor version control of the neural control system ;

wherein the auditing module receives information from the update machine regarding the correct version of the neural control system ;

wherein the auditing module obtains information regarding the current version of the neural control system; and

wherein the auditing module commands a safety module to act to reduce or stop the function of the neural control system based on the correct and current version of the neural control system.

779. The method of claim 778, wherein the neural control method incorporates the safety module; and

the safety module is arranged for monitoring performance of the neural control method.

780. The method of claim 779, wherein the auditing module is arranged to obtain information regarding the current version of the neural control method of the neural control method from the safety module.

781 . The method of claims 778 to 780, wherein the neural data processing means comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

782. The method of claims 778 to 780, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

783. The method of claims 778 to 780, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

784. The method of claims 778 to 780, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

785. The method of claim 783 or 784, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

786. The method of claim 784 or 785, wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

787. The method of claim 783 or 784, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

788. The method of claim 787 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

789. The method of claim 787 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

790. The method of claims 787 to 789 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

791 . The method of claim 790 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

792. The method of claims 778 to 790, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

793. The method of claims 778 to 792, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

794. The method of claim 793, wherein the output controller receives selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

795. The method of claim 794, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

796. The method of claim 795, wherein the real time modulation happens in 1 to 100 microseconds.

797. The method of any one of claims 793 to796, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

798. The method of any one of claims 793 to 796, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

799. The method of claims778 to 798, wherein the output signal is a control signal of an end effector device.

800. The method of claims 778 to 799, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

801 . The method of claims 778 to 800, wherein the output signal is a control signal for an applied drug treatment.

802. The method of claim 801 , wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

803. The method of claim 802, wherein the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

804. The method of claims 778 to 803, wherein the neural control method further comprises sending the received neural data to an update machine.

805. The method of claims 778 to 804, wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

806. The method of claims 778 to 805, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

807. The method of claim 806, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

808. The method of claims 778 to 807, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

809. The method of any of claims 785 to 791 , wherein the neural control method further comprises receiving updates to the body model.

810. The method of claims 805 to 809 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

81 1 . The method of claim 805 to 809 wherein the update machine is an automated cloud method.

812. The method of claim 805 to 809 wherein the update machine is a manual connection over a local wired or wireless connection.

813. The method of claims 805 to 809 wherein the updates are automatically calculated by one or more machine learning methods for calculating long term treatment.

814. The method of claims 805 to 809 wherein the updates are chosen by a treating clinician.

815. The method of claim 779 or claim 780, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

816. The method of claim 815, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

817. The method of claims 815 or 816, wherein the safety module acts to

selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

818. The method of claims 815 to 817, wherein the safety module selectively controls the neural control method to operate in a safety mode.

819. The method of claims 815 to 81 8, wherein the safety module acts based on commands from the auditing module.

820. The method of claim 778 to 819, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

821 . The method of claim 778 to 820, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

822. The method of claims 778 to 821 , wherein the auditing module commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

823. The method of claim of claims 778 to 822, in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

824. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and wherein the desired value of bodily state is achieved by a bodily setpoint set in advance as a treatment.

825. The method of claim 824, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

826. The method of claim 824, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

827. The method of claim 824, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

828. The method of claim 824, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

829. The method of claim 827 or 828 wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

830. The method of claim 828 or 829, wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

831 . The method of claim 827 or 828, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

832. The method of claim 831 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

833. The method of claim 831 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

834. The method of claims 831 to 833 wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

835. The method of claim 834 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

836. The method of claims 834 to 835, wherein the neural control method further comprises means receiving data regarding a bodily state of the subject from a non- neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

837. The method of claims 825 to 836, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

838. The method of claim 837, wherein the output controller receives selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

839. The method of claim 838, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

840. The method of claim 839, wherein the real time modulation happens in 1 to 100 microseconds.

841 . The method of any one of claims 837 to 840, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

842. The method of any one of claims 837 to 840, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

843. The method of claims 824 to 842, wherein the output signal is a control signal of an end effector device.

844. The method of claims 824 to 843, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

845. The method of claims 824 to 844, wherein the output signal is a control signal for an applied drug treatment.

846. The method of claim 845, wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

847. The method of claim 846, wherein the input controller stops sending the

received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

848. The method of claims 824 to 847, wherein the neural control method further comprises sending the received neural data to an update machine.

849. The method of claims 824 to 848. wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

850. The method of claims 824 to 849, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

851 . The method of claim 850, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

852. The method of claims 824 to 851 , wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

853. The method of any of claims 831 to 835, wherein the neural control method further comprises receiving updates to the body model.

854. The method of claims 851 to 853 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

855. The method of claim 849 to 853 wherein the update machine is an automated cloud system.

856. The method of claim 849 to 853 wherein the update machine is a manual connection over a local wired or wireless connection.

857. The method of claims 849 to 853 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

858. The method of claims 849 to 853 wherein the updates are chosen by a treating clinician.

859. The method of claims 824 to 858, wherein the neural control method

incorporates a safety module for monitoring performance of the neural control method.

860. The method of claim 859, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

861 . The method of claim 859 or 860, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

862. The method of claims 859 to 861 , wherein the safety module acts to

selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

863. The method of claims 859 to 862, wherein the safety module selectively controls the neural control method to operate in a safety mode.

864. The method of claims 859 to 863, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module acts based on commands from the auditing module.

865. The method of claims 824 to 864, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

866. The method of claim 864 or 865, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

867. The method of claim 865 or 866, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

868. The method of any one of claims 865 to 866, wherein the auditing module commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

869. The method of claims 824 to 868 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

870. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state;

wherein the desired value of bodily state is achieved by a bodily setpoint; and wherein the setpoint is calculated within the closed loop controller based on received sensor data.

871 . The method of claim 870, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

872. The method of claim 870, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

873. The method of claim 870, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

874. The method of claim 870, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

875. The method of claim 873 or 874, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

876. The method of claim 874 or 875, wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

877. The method of claim 873 or 874, wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state.

878. The method of claim 877 wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

879. The method of claim 877 wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

880. The method of claims 877 to 879, wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

881 . The method of claim 880 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

882. The method of claims 870 to 881 , wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

883. The method of claims 870 to 882, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

884. The method of claim 883, wherein the output controller receives selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

885. The method of claim 884, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

886. The method of claim 885, wherein the real time modulation happens in 1 to 100 microseconds.

887. The method of any one of claims 884 to 886, wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

888. The method of any one of claims 884 to 887, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

889. The method of claims 870 to 888, wherein the output signal is a control signal of an end effector device.

890. The method of claims 870 to 889, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

891 . The method of claims 870 to 890, wherein the output signal is a control signal for an applied drug treatment.

892. The method of claim 891 , wherein the neural control method further comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

893. The method of claim 892, wherein the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

894. The method of claims 870 to 893, wherein the neural control method further comprises sending the received neural data to an update machine.

895. The method of claims 870 to 894. wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

896. The method of claims 870 to 895, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

897. The method of claim 896, wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

898. The method of claims 870 to 897, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

899. The method of any of claims 877 to 881 , wherein the neural control method further comprises receiving updates to the body model.

900. The method of claims 895 to 899 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

901 . The method of claim 895 to 899 wherein the update machine is an automated cloud system.

902. The method of claim 895 to 899 wherein the update machine is a manual connection over a local wired or wireless connection.

903. The method of claims 895 to 899 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

904. The method of claims 895 to 899 wherein the updates are chosen by a

treating clinician.

905. The method of claims 870 to 904, wherein the neural control method

comprises using a safety module to monitor performance of the neural control method.

906. The method of claim 905, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

907. The method of claim 905 or 906, wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

908. The method of claims 905 to 907, wherein the safety module acts to

selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

909. The method of claims 905 to 908, wherein the safety module selectively controls the neural control method to operate in a safety mode.

910. The method of claims 905 to 909, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module acts based on commands from the auditing module.

91 1 . The method of claims 870 to 909, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method.

912. The method of claim 910 or 91 1 , wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

913. The method of claim 91 1 or 912, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

914. The method of any one of claims 91 1 to 913, wherein the auditing module is commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

915. The method of claims 870 to 914 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

916. A neural control method comprising:

using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor;

using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and

sending the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and

wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state;

wherein the current state of the body relative to the body model is informed by any combination of neural biomarkers or non-neural sensors.

917. The method of claim 916, wherein the neural data processing means

comprises a single machine learning model for processing the received neural data to directly determine the at least one output signal.

918. The method of claim 916, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a second machine learning model to process the identified neural biomarkers and determine the at least one output signal.

919. The method of claim 916, wherein the neural data processing means comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the output signal.

920. The method of claim 916, wherein the neural data processing means

comprises:

a first machine learning model for processing the received neural data to identify neural biomarkers; and

a closed loop controller receiving the neural biomarkers describing bodily state alongside the desired bodily setpoint to determine the desired change in bodily state;

a second machine learning model to process the desired change in bodily state and determine the output signal.

921 . The method of claim 919 or 920, wherein the desired bodily setpoint is

calculated within the closed loop controller based on received neural data or received neural biomarkers.

922. The method of claim 920 or 921 , wherein the neural control method uses the received data regarding bodily state of the subject from a non-neural sensor to calculate the desired bodily setpoint.

923. The method of claims 916 to 922, wherein the body model is a state space model informed by any combination of neural biomarkers and/or non-neural sensors.

924. The method of claims 916 to 922, wherein the body model is a functional model informed by any combination of neural biomarkers or non-neural sensors.

925. The method of claims 916 to 924, wherein the body model is updated based on received neural or other sensor data describing the bodily state of the subject subsequent to the applied output signal.

926. The method of claim 925 wherein the body model update makes its own estimate of the response to the output signal and uses the comparison of this to the received neural or other sensor data to calculate the update to the body model.

927. The method of claims 916 to 926, wherein the neural control method further comprises receiving data regarding a bodily state of the subject from a non-neural sensor;

wherein the at least one machine learning means further processes the received data to determine the at least one output signal.

928. The method of claims 916 to 927, wherein the neural control method further comprises using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device.

929. The method of claim 928, wherein the output controller receives selected data regarding received neural data from the input controller;

whereby the input controller and the output controller form a second control loop having a shorter response latency than the first control loop.

930. The method of claim 929, wherein the output controller carries out real time modulation of any parameters of the determined output signal sent to the at least one output device based at least in part on the selected data characterizing the received neural data.

931 . The method of claim 930, wherein the real time modulation happens in 1 to 100 microseconds.

932. The method of any one of claims 929 to 931 , wherein the output controller receives selected data regarding timing of received neural data from the input controller;

wherein the output controller controls the time at which the determined output signal is sent based at least in part on the selected data regarding timing of received neural data.

933. The method of any one of claims 929 to 932, wherein the output controller receives selected data regarding amplitude of received neural data from the input controller;

wherein the output controller controls the amplitude and/or frequency of the determined output signal sent to the at least one output device based at least in part on the selected data regarding amplitude of received neural data.

934. The method of claims 916 to 933, wherein the output signal is a control signal of an end effector device.

935. The method of claims 916 to 934, wherein the output signal is a neural

stimulation signal to be applied to the nervous system of the subject.

936. The method of claims 916 to 934, wherein the output signal is a control signal for an applied drug treatment.

937. The method of claim 936, wherein the neural control method further

comprises using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device, and to send data regarding the timing of the determined output neural stimulation signal to the input controller.

938. The method of claim 937, wherein the input controller stops sending the

received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

939. The method of claims 916 to 938, wherein the neural control method further comprises sending the received neural data to an update machine.

940. The method of claims 926 to 939. wherein the neural control method further comprises sending any combination of; the record of calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state to the update machine.

941 . The method of claims 916 to 940, wherein the neural control method further comprises receiving updates of the at least one machine learning model.

942. The method of claim 941 , wherein the updates to the at least one machine learning model are calculated based on the received neural data calculated neural biomarkers, output signals, recorded neural data, data from other sensors, or data representing bodily state.

943. The method of claims 916 to 942, wherein the neural control method further comprises receiving updates to the ideal bodily setpoint or calculation of bodily setpoint as a means of updating the applied treatment.

944. The method of any of claims 916 to 943, wherein the neural control method further comprises receiving updates to the body model.

945. The method of claims 940 to 944 wherein the updates are generated based on data recorded during specific periods of guided activity during rehabilitation or recalibration periods.

946. The method of claim 4940 to 944 wherein the update machine is an

automated cloud system.

947. The method of claim 940 to 944 wherein the update machine is a manual connection over a local wired or wireless connection.

948. The method of claims 940 to 944 wherein the updates are automatically calculated by one or more machine learning systems for calculating long term treatment.

949. The method of claims 940 to 944 wherein the updates are chosen by a

treating clinician.

950. The method of claims 916 to 949, wherein the neural control method

comprises using a safety module to monitor performance of the neural control method.

951 . The method of claim 950, wherein the neural control method comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the performance of these elements is monitored by the safety module.

952. The method of claim 950 or 951 , wherein the safety module further monitors the performance of the real time input controller and output controller within the real time loop.

953. The method of claims 950 to 952, wherein the safety module acts to

selectively reduce or stop the function of any element of the neural control method based on monitoring of performance of that element.

954. The method of claims 950 to 953, wherein the safety module selectively controls the neural control method to operate in a safety mode.

955. The method of claims 950 to 954, wherein the neural control method further comprises using an auditing module to monitor version control of the neural control method; and

the safety module is arranged to act based on commands from the auditing module.

956. The method of claims 956 to 955, wherein the neural control method further comprises using an auditing module arranged to monitor version control of the neural control method.

957. The method of claim 495 or 956, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor;

c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from the update machine regarding the correct version of these elements.

958. The method of claim 956 or 957, wherein the neural control method

comprises using one or more elements from the group of:

a. Machine learning neural processor;

b. Closed loop control processor; c. Real time input controller;

d. Real time output controller;

e. Stimulation library selector;

f. Machine learning output processor;

g. Bodily setpoint calculator; and

h. Body model;

wherein the auditing module receives information from a safety module regarding the current version of the neural control method of these elements.

959. The method of any one of claims 495 to 958, wherein the auditing module commands the safety module to act to reduce or stop the function of the neural control method based on the auditing module detecting at least one of:

a. Incorrect versioning;

b. Out of date versioning;

c. Unauthorised versioning.

960. The method of claims 916 to 959 in which the at least one neural sensor operates using a first modality and the output signal is a neural stimulation signal to be applied to the nervous system of the subject using a second modality different from the first.

961 . The system of any one of claims 1 to 480, wherein the neural signals are natural neural signals or evoked neural signals.

962. The system of one of claims 15 to 19, 82 to 86, 127 to 131 , 172 to 176, 220 to 224, 267 to 271 , 314 to 318, 358 to 362, 404 to 408, or 459 to 463, wherein the first control loop is activated for only a part of the time.

963. The system of claim 962, wherein the first control loop is activated based, at least in part on values of the received neural data and/or other sensor data.

964. The system of claim 961 or claim 962, wherein the second control loop is activated substantially continuously.

965. The method of any one of claims 481 to 960, wherein the neural signals are natural neural signals or evoked neural signals.

966. The method of one of claims 495 to 499, 562 to 566, 607 to 61 1 , 652 to 656,

700 to 704, 747 to 751 , 794 to 798, 838 to 842, 884 to 888, or 929 to 963, wherein the first control loop is activated for only a part of the time. 967. The method of claim 966, wherein the first control loop is activated based, at least in part on values of the received neural data and/or other sensor data.

968. The method of claim 966 or claim 967, wherein the second control loop is activated substantially continuously.

969. A computer program comprising instructions which, when executed on a processing device, causes the processing device to carry out a method according to any of claims 481 to 960 or 965 to 968.

Description:
SYSTEM AND METHOD FOR NEURAL CONTROL

[0001] The present application relates to a system and method for neural control, and in particular to a system and method for closed loop neural control.

Background

[0002] There are a range of implanted active electronic devices which are implanted in the human or animal body to stimulate electrophysiological targets, such as nerves and/or muscles, in order to provide treatment or palliation of a number of different conditions.

[0003] Examples of such implanted active electronic devices include various kinds of implantable pulse generators (IPGs) and neuromodulation devices that stimulate targets such as the heart muscle to regulate heart beat (pacemakers), the spinal cord to block pain signals (Spinal Cord Stimulators - SCS), regions of the brain to alter brain function such as reducing depression or stopping an epileptic seizure (Deep Brain Stimulator - DBS). These devices are currently used to provide treatment across a range of conditions, including spinal cord stimulation (SCS) for chronic pain, deep brain stimulation (DBS) for essential tremor, epilepsy, depression and obesity, vagal nerve stimulation for rheumatoid arthritis and Crohn’s disease, among others. These current devices are currently used to provide treatment for more than half a million patients worldwide.

[0004] Currently these treatments are almost entirely provided by devices which provide stimulation without any responsiveness to local activity such as bodily variables th+at provide information about a target condition, or local neural activity encoding information about the brain’s control of the target condition. For example treatment for hypertension (high blood pressure) may be provided by devices which provide stimulation at predetermined times without any responsiveness measured blood pressure or local neural activity encoding information about the brain’s control of blood pressure.

[0005] It is desirable to be able to detect and process information encoding full neural activity in real time, or close to real time, and use this full neural activity to control implanted electronic devices that stimulate electrophysiological targets within a human or animal body in order to provide improved effectiveness.

[0006] The embodiments described below are not limited to implementations which solve any or all of the disadvantages of the known approaches described above.

Summary [0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter; variants and alternative features which facilitate the working of the invention and/or serve to achieve a substantially similar technical effect should be considered as falling into the scope of the invention disclosed herein.

[0008] In a first aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state of a subject from at least one neural sensor; at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state.

[0009] In a second aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one machine learning model for processing the received neural data to identify neural biomarkers; and means arranged to send the identified neural biomarkers to at least one output device for performing operations; wherein the neural control system forms a first control loop providing closed loop control of the bodily state.

[0010] In a third aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; wherein the output controller is further arranged to receive selected data regarding timing of received neural data from the input controller; and wherein the output controller is arranged to control the time at which the determined output signal is sent to the at least one output device based on the selected data regarding timing of received neural data.

[0011] In a fourth aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and an output controller arranged to receive the determined output signal and to send the determined output signal to the at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; wherein the output controller is further arranged to receive selected data regarding amplitude of received neural data from the input controller; and wherein the output controller is arranged to control the amplitude of the determined output signal sent to the at least one output device based on the selected data regarding amplitude of received neural data.

[0012] In a fifth aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output neural stimulation signal required to achieve a desired value of the bodily state; and an output controller arranged to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device;

whereby the neural control system forms a first control loop providing closed loop control of the bodily state; wherein the output controller is further arranged to receive selected data regarding amplitude of received neural data from the input controller; and wherein the output controller is further arranged to send data regarding the timing of the determined output neural stimulation signal to the input controller; and the input controller is arranged to stop sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

[0013] In a sixth aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the neural control system is connected to a separate update machine, including means for sending the received neural data to the update machine; wherein the update machine is arranged to use the received neural data to perform machine learning training to produce an updated machine learning model; and the neural control system is further arranged to replace the at least one machine learning model with the updated machine learning model. [0014] In a seventh aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the neural control system incorporates a safety module monitoring performance of the closed loop controller; wherein the safety module is arranged to act to reduce or stop the function of any element of the first control loop based on monitoring its performance

[0015] In an eighth aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the neural control system further comprises an auditing module arranged to monitor version control of the neural control system; wherein the auditing module is arranged to receive information from the update machine regarding the correct version of the neural control system; wherein the auditing module is arranged to obtain information regarding the current version of the neural control system ; wherein the auditing module is arranged to command a safety module to act to reduce or stop the function of the neural control system based on the correct and current version of the neural control system.

[0016] In a ninth aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the desired value of bodily state is achieved by a bodily setpoint set in advance as a treatment.

[0017] In a tenth aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; wherein the desired value of bodily state is achieved by a bodily setpoint; and wherein the setpoint is calculated within the closed loop controller based on received sensor data.

[0018] In an eleventh aspect, the present disclosure provides a neural control system comprising: an input controller arranged to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; at least one neural data processing means arranged to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and means arranged to send the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state; wherein the current state of the body relative to the body model is informed by any combination of neural biomarkers or non-neural sensors.

[0019] In a twelfth aspect, the present disclosure provides a neural control method comprising: receiving neural data regarding neural signals relating to a bodily state of a subject from at least one neural sensor; using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the method comprises a first control loop providing closed loop control of the bodily state.

[0020] In a thirteenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one machine learning model for processing the received neural data to identify neural biomarkers; and sending the identified neural biomarkers to at least one output device for performing operations; wherein the neural control method forms a first control loop providing closed loop control of the bodily state.

[0021] In a fourteenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; wherein the output controller is further used to receive selected data regarding timing of received neural data from the input controller; and wherein the output controller is used to control the time at which the determined output signal is sent to the at least one output device based on the selected data regarding timing of received neural data.

[0022] In a fifteenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and using an output controller to receive the determined output signal and to send the determined output signal to the at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; wherein the output controller receives selected data regarding amplitude of received neural data from the input controller; and wherein the output controller controls the amplitude of the determined output signal sent to the at least one output device based on the selected data regarding amplitude of received neural data.

[0023] In a sixteenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state in nerves of a subject from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output neural stimulation signal required to achieve a desired value of the bodily state; and using an output controller to receive the determined output neural stimulation signal and to send the determined output neural stimulation signal to the at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; wherein the output controller receives selected data regarding amplitude of received neural data from the input controller; and wherein the output controller sends data regarding the timing of the determined output neural stimulation signal to the input controller; and the input controller stops sending the received neural data to the at least one machine learning means when the determined output neural stimulation signal is being output.

[0024] In a seventeenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one machine learning means using at least one machine learning model to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and wherein the neural control method further comprises using an update machine, including sending the received neural data to the update machine; wherein the update machine uses the received neural data to perform machine learning training to produce an updated neural control method; and the neural control method further comprising replacing the at least one neural control method with the updated neural control method.

[0025] In an eighteenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and wherein the neural control method uses a safety module monitoring performance of the closed loop controller; wherein the safety module acts to reduce or stop the function of any element of the first control loop based on monitoring its performance.

[0026] In an nineteenth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and wherein the neural control method further comprises using an auditing module to monitor version control of the neural control system ; wherein the auditing module receives information from the update machine regarding the correct version of the neural control system ; wherein the auditing module obtains information regarding the current version of the neural control system; and wherein the auditing module commands a safety module to act to reduce or stop the function of the neural control system based on the correct and current version of the neural control system.

[0027] In a twentieth aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; and wherein the desired value of bodily state is achieved by a bodily setpoint set in advance as a treatment. [0028] In a twenty-first aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the neural control method forms a first control loop providing closed loop control of the bodily state; wherein the desired value of bodily state is achieved by a bodily setpoint; and wherein the setpoint is calculated within the closed loop controller based on received sensor data.

[0029] In a twenty-second aspect, the present disclosure provides a neural control method comprising: using an input controller to receive neural data regarding neural signals relating to a bodily state from at least one neural sensor; using at least one neural data processing means to process the received neural data to determine at least one output signal required to achieve a desired value of the bodily state; and sending the determined output signal to at least one output device; whereby the neural control system forms a first control loop providing closed loop control of the bodily state; and wherein the closed loop controller uses the output of a body model to inform the decision of desired change in bodily state ; wherein the current state of the body relative to the body model is informed by any combination of neural biomarkers or non-neural sensors.

[0030] In a twenty-third aspect, the present disclosure provides a computer program comprising instructions which, when executed on a processing device, causes the processing device to carry out a method according to any of the twelth to twenty-second aspects

[0031] The methods described herein may be performed by software in machine readable form on a tangible storage medium e.g. in the form of a computer program comprising computer program code means adapted to perform all the steps of any of the methods described herein when the program is run on a computer and where the computer program may be embodied on a computer readable medium. Examples of tangible (or non-transitory) storage media include disks, thumb drives, memory cards etc. and do not include propagated signals. The software can be suitable for execution on a parallel processor or a serial processor such that the method steps may be carried out in any suitable order, or simultaneously.

[0032] This application acknowledges that firmware and software can be valuable, separately tradable commodities. It is intended to encompass software, which runs on or controls“dumb” or standard hardware, to carry out the desired functions. It is also intended to encompass software which“describes” or defines the configuration of hardware, such as HDL (hardware description language) software, as is used for designing silicon chips, or for configuring universal programmable chips, to carry out desired functions.

[0033] The features of each of the above aspects and/or embodiments may be combined as appropriate, as would be apparent to the skilled person, and may be combined with any of the aspects of the invention. Indeed, the order of the embodiments and the ordering and location of the preferable features is indicative only and has no bearing on the features themselves. It is intended for each of the preferable and/or optional features to be interchangeable and/or combinable with not only all of the aspect and embodiments, but also each of preferable features.

Brief Description of the Drawings

[0034] Embodiments of the invention will be described, by way of example, with reference to the following drawings, in which:

[0035] Figure 1 is a explanatory diagram of a software architecture of a neural control system according to an example;

[0036] Figure 2a is a diagram of a first example of operation of the neural control system of figure 1 ;

[0037] Figure 2b is a diagram of a second example of operation of the neural control system of figure 1 ;

[0038] Figure 2c is a diagram of a third example of operation of the neural control system of figure 1 ;

[0039] Figure 3 is a representation of an example of data flows in the neural control system of figure 1 ;

[0040] Figure 4 is a diagram of a fourth example of operation of the neural control system of figure 1 ;

[0041] Figure 6 is a schematic diagram of a first example of a control system useable in the system of figure 1 ;

[0042] Figure 7 is a schematic diagram of a second example of a control system useable in the system of figure 1 ;

[0043] Figure 8 is a schematic diagram of a first example of a configuration in which the system of figure 1 can be used; [0044] Figure 9 is a schematic diagram of a second example of a configuration in which the system of figure 1 can be used; and

[0045] Figure 10 is a schematic diagram of a third example of a configuration in which the system of figure 1 can be used.

[0046] Common reference numerals are used throughout the figures to indicate similar features. It should however be noted that even where reference numerals for features used throughout the figures vary, this should not be construed as non-interchangeable or distinct. Indeed, unless specified to the contrary, all features referring to similar components and/or having similar functionalities of all embodiments are interchangeable and/or combinable.

Detailed Description

[0047] Embodiments of the present invention are described below by way of example only. These examples represent the best ways of putting the invention into practice that are currently known to the Applicant although they are not the only ways in which this could be achieved. The description sets forth the functions of the example and the sequence of steps for constructing and operating the example. However, the same or equivalent functions and sequences may be accomplished by different examples.

[0048] It should be noted that although exemplary examples, descriptions and/or embodiments are provided under separate headings, these headings should simply serve as a reading aid to provide structure to the description. For the avoidance of any doubt, the features described in any embodiment and/or the embodiments themselves are combinable with the features of any other embodiment and/or any other embodiment unless express statement to the contrary is provided herein. Simply put, the features described herein are not intended to be distinct or exclusive but rather complementary and/or interchangeable.

[0049] The present disclosure provides a neural control system using machine learning techniques to analyze neural data to determine, in real time, at least one output neural stimulus required to bring the bodily variable into agreement with, or at least closer to, a desired bodily state, and generating the output neural stimulus, and so provide a closed loop neural control system.

[0050] The present disclosure also provides neural control systems providing improved real time performance. The present disclosure also provides updating systems, and auditing and safety systems for neural control systems.

[0051] It should be understood that the nervous system of mammals is generally made up of nerves comprising a plurality of neurons and consists of two main parts: the central nervous system (CNS) and the peripheral nervous system (PNS). In most animals and humans, herein referred to as a subject, the CNS includes the brain and the spinal cord, which are made up of special nerves. The PNS includes the somatic nervous system (SoNS) and the autonomic nervous system (ANS), which are made up of many different types of nerves such as, by way of example only but not limited to, afferent nerves (e.g. sensory nerves), efferent nerves (e.g. motor nerves), and/or mixed nerves. The SoNS may carry, by way of example only but is not limited to, conscious motor control for motion and sensation. The ANS may carry, by way of example only but is not limited to, unconscious organ control or unconscious control of bodily functions of the subject.

[0052] The SoNS is associated with voluntary control of body movements (e.g. control of skeletal muscles). For example, in the SoNS, afferent nerves include sensory neurons and are responsible for relaying sensation from the body to the CNS and efferent nerves include non-sensory neurons and are responsible for sending out neural information, commands, intent, which may also be referred to as bodily variables as described below, from the CNS to the body (e.g. stimulating muscle contraction). The ANS includes, by way of example only but is not limited to, the sympathetic nervous system (SNS), the parasympathetic nervous system (PSNS) and the enteric nervous system (ENS).

[0053] The PNS is essentially a set of nerves that connect the CNS to every other bodily function/body part/portion (e.g. muscles, organs, cells) of the subject. Nerves serve as a conduit for transmission of neural impulses or signals to/from the CNS. For example, SoNS nerves that transmit neural impulses, signals or information from the CNS are called efferent nerves (e.g. motor nerves), while other SoNS nerves that transmit neural impulses, signals or information from one or more parts/portions of the body of the subject to the CNS are called afferent nerves (e.g. sensory nerves). Some nerves in the SoNS may have both efferent and afferent functionality and may be called mixed nerves.

[0054] In essence, the nervous system is made up of a set of nerves in which each nerve is made up of a plurality of neurons or a bundle of neurons that receive or transmit such as neural impulses or signals. A neuron has a special cellular structure that allows a nerve to send and propagate neural information rapidly and precisely to other cells, bodily functions or body parts/portions in the body of the subject. For example, the neurons in a nerve include long structures called axons that allow them to send neural impulses or signals in the form of an electrochemical gradient, also known as neural activity. A neuronal population may comprise or represent one or more neurons clustered in a location or a target site on one or more nerves of a subject. [0055] Essentially, neural activity may comprise or represent any electrical, mechanical, chemical and or temporal activity present in the one or more neurons (or the neuronal population), which often make up one or more nerves or section(s) of neural tissue. Neural activity may convey information associated with, by way of example only but not limited to, the body of a subject and/or information about the environment affecting the body of a subject. The information conveyed by neural activity may include data representative of neural data, neural information, neural intent, end effect, tissue state, body state, neural state or state of the body, and/or or any other data, variable or information representative of the information carried or contained in neural activity and interpreted and/or passed by neurons or neuronal populations to the body of the subject. For example, neural data may include any data that is representative of the information or data that is contained or conveyed by neural activity of one or more neurons or a neuronal population. The neural data may include, by way of example only but is not limited to, data representative of estimates of one or more bodily variable(s) associated with the corresponding neural activity, or any other data, variable or information representative of the information carried or contained or conveyed by neural activity.

[0056] This information may be represented in an information theoretic point of view as one or more variables associated with the body, which are referred to herein as bodily variable(s). A bodily variable comprises or represents an end effect or tissue state describing a state of some portion of the body, including implanted or wearable medical devices. The bodily variable may itself be classified as a state, sensory, control or other variable based on the role or function of this information and the use of it by the body. Bodily variables can be transmitted to or from the CNS via neural activity in portions of the nervous system. One or more instances of neural activity at one or more neural locations can be said to be an encoding of one or more bodily variables, portions thereof and/or combinations thereof. For example, neural activity of one or more neurons of nerve(s) may be generated or modulated by part of the body to encode one or more bodily variables for reception by other parts of the body, which decode the neural activity to gain access to the bodily variable, portions thereof and/or combinations thereof. Both encoding and decoding of bodily variables can be performed by the CNS and/or bodily tissues therefore facilitating transmission of information around the body of a subject. Bodily variables can be afferent signals transmitted towards the CNS for provision of information regarding the state of bodily variables or efferent signals transmitted away from the CNS for modifying a bodily variable at an end effector organ or tissue.

[0057] The values of a group of one or more bodily variables is referred to herein as a bodily state. The bodily state of a subject is the values at a specific time of a collection of one or more relevant bodily variables. [0058] Examples of bodily variables in the organ systems of the body, and often encoded in the ANS, could include parameters such as, by way of example only but is not limited to, current blood glucose concentration, temperature of a portion, part or whole of the body of a subject, concentration of a protein or other key agent, current fullness state of the bladder or bowel, current heart rate or blood pressure, current breathing rate, current blood oxygenation, instructions regarding insulin/glucagon production, instructions regarding heart pacing, instructions regarding blood vessel dilation or constriction for changing blood pressure, instructions regarding changing breathing rate, instructions regarding modifying alveoli dilation to modify oxygen concentration, instructions regarding modifying gastric activity, instructions regarding modifying liver activity, instructions regarding opening/closing of sphincters for voiding/retaining of the bladder or bowel. It is appreciated that bodily variables could be either the raw encodings or combinations of these, for instance bodily variables could include current activity of a whole organ or organ construct or measurements of whole bodily functions or actions such as sweating, defecating, hard breathing, walking, exercising, running etc; each of which it is appreciated could be described as a combination of multiple more fine grained bodily variables. In the ANS, each instance of a bodily variable may be associated with a modified organ function, modifying an organ function, or modifying a bodily function (e.g. one or more bodily variable(s) or the state of an organ or tissue). In other examples, a bodily variable may be associated with any activity in the ANS such as, by way of example only but is not limited to, organ measurement and/or modification of activity.

[0059] In another example, in the SoNS, one or more bodily variable(s) generated by the CNS may be transmitted via the PNS as efferent neural activity that is associated with one or more instances of motion (e.g. each bodily variable may be associated with a different motion or movement of a limb, contraction/extension of a single muscle fibre/ fibre group/ whole muscle/ group of muscles, instructions to modify speed/strength length of a muscle contraction, and the like etc.) The CNS may also receive an afferent neural activity encoding a bodily variable corresponding to sensory neural information (e.g. a sensory bodily variable), where in this case the sensory bodily variable represents an encoding of sensory information such as, by way of example only but is not limited to, temperature or pressure on a section or portion of skin, the state of a limb or other muscle group including, angle or position of a joint, position of a whole limb or section of the body, an abstract parameter of activity of the whole body or sub-part of the body, transmitted by one or more neuron(s) or one or more neuronal population(s) associated with the limb or other moving bodily part and the like. The CNS receives the afferent neural activity and then deciphers or decodes this neural activity to understand the sensory bodily variable(s) and responds accordingly.

[0060] In another example, a prosthetic limb attached to the body could be represented by a number of bodily variables such as, by way of example only but not limited to, whole prosthetic limb position and orientation, angle or position of prosthetic limb joints, forces or torques exerted by prosthetic limb joints, state of prosthetic limb sensors such as contact force or torque sensors, contact pressure or collision sensors, humidity and temperature sensors. These variables may be encoded into digital or analogue signals and transmitted to the controller by means of electric wires.

[0061] Although several examples of bodily variables have been described, this is for simplicity and by way of example only, it is to be appreciated by the skilled person that the present disclosure is not so limited and that there are a plurality of bodily variables that may be generated by the body of a subject and which may be sent between parts of the body or around the body as neural activity. Although neural activity may encode one or more bodily variables, portions thereof and/or combinations thereof, it is to be appreciated by the skilled person that one or more bodily variables of a subject may be measurable, derivable, and/or calculated based on sensor data from sensors capable of detecting and/or making measurements associated with such bodily variables of the subject. It is also to be appreciated by the skilled person that a bodily variable is a direct measurement of any one parameter and could be represented as a generalised parameter of activity or function in an area. This would include bodily variables such as mental states which can not be easily related to low level function such as, experiencing depression, having an epileptic fit, experiencing anxiety, having a migraine.

[0062] Although the term bodily variable is described and used herein, this is by way of example only and the present disclosure is not so limited, it is to be appreciated by the skilled person that other equivalent terms from one or more other fields (e.g. medical fields, pharmaceutical fields, biomedical fields, clinicians, biomarker fields, genomics fields, medical engineering fields) may be used in place of the term bodily variable, or used interchangeably or even in conjunction with the term bodily variable, including, by way of example only but is not limited to, one or more of the following terms or fields: vital sign(s), which is often used by clinicians to describe parameters they use for patient monitoring, such as by way of example only but is not limited to, ECG, heart rate, pulse, blood pressure, body temperature, respiratory rate, pain, menstrual cycle, heart rate variation, pulse oximetry, blood glucose, gait speed, etc.; biomarker, which may be used by biologists to describe, by way of example only but is not limited to, protein levels, or measurable indicator of some biological state or condition etc., this term has been further adopted by the Deep Brain Stimulation & Spinal Cord Stimulation clinical fields to refer to recordings of brain wave state or other neural events as well as measurement of environmental conditions including, but not limited to, motion; physiological variable / physiological data, which may often be used by scientists to describe things like ECG, heart rate, blood glucose, and/or blood pressure and the like, this term is also used by Data Sciences International who make implants for recording physiological variables such as ECG, heart-rate, blood pressure, blood glucose, etc.; one or more biosignals, which is often used by medical engineers to describe a signal recording coming from a biological system such as ECoG, ECG, EKG; any information, parameter metric about a subject in, by way of example only but not limited to, the genetic fields including, by way of example only but not limited to, genomic information, epigenetics, phenotype, genotype, other "omics" which can include, by way of example only but is not limited to, transcriptomics, proteomics and metabolomics, microbiomics, and/or other omics related fields and the like; and/or any other term describing a number, metric, state, variable or information associated with the whole body of a subject, any part and/or subpart of the body of the subject and the like.

[0063] Although examples of bodily variables are given herein, this is by way of example only and the description is not so limited, it is to be appreciated by the skilled person that the list of bodily variables is extremely large because a bodily variable may be, by way of example only but is not limited to, any number, parameter, metric, variable or information describing some state of the whole body of a subject, any portion, part and/or subpart of the body of the subject and that a bodily variable may be based on, or derived from, one or more combinations of one or more bodily variables or other bodily variables and the like. For example it is appreciated that bodily variables measured at a neurological level, biomarker level, cellular level, and/or tissue level, could combine to form bodily variables observed at a whole system state level such as regarding the vital signs of a subject; physiological meta data of a subject; sensor data representative of one or more bodily variables describing something about the body, parts of the body, or whole body of the subject; state, motion, or output of the body, part of subpart of the body of a subject and the like; modifications thereof, and/or combinations thereof and/or as herein described. Hence it is appreciated that, one or more bodily variables described at one or more higher levels of granularity may be based on a combination of one or more bodily variables described at one or more lower levels of granularity.

[0064] Although it is possible to tap into the one or more neuronal population(s) thereby effecting a direct linkage to the nervous system of a subject, there have been problems in capturing and interpreting bodily variable(s) from the neural activity generated by the neuronal population(s) and/or providing or applying neural stimulus signal(s) in order to evoke targeted responses in the form of neural activity in neuronal populations which is equivalent to or directly representing a bodily variable from device(s) to the nervous system of the subject.

The bodily variable(s) may be naturally represented by neural activity associated with extremely short electrical pulses from multiple neurons. The neural activity may be received by one or more neural receivers adjacent one or more neurons or neuronal population(s) as neurological signals. These neurological signals may be sampled in which the neurological signal sampling typically provides an information rich dataset that is inordinately large, unwieldy to process, and is usually subject/experiment specific. This has led to attempts at understanding neurological signal(s) by extracting several key features thought to be representative of its information content such as bodily variable(s) encoded as neural activity.

[0065] Herein we will refer to samples or ensembles of samples of neural activity as neural biomarkers. A neural biomarker is an objective measurement of a bodily variable, including: biological processes; pathogenic processes; and/or pharmacologic responses to a therapeutic intervention, observed by monitoring one or several neural populations. Wherein neural biomarkers can represent objective indications of medical state. Neural biomarkers can be measured as features, in isolation, or linear or non-linear combinations of features, of the acquired neural population activity, which may be calculated by processing the signals, or learnt by one or more machine learning means, where this learning may be performed by a machine learning processor, either continually or in batch. One or more machine learning models running on a machine learning processor may calculate neural biomarkers having been trained on data from the nervous system of one or more patients, or from a single patient over multiple time periods, or any synthetic or simulated or biological source of neural data or activity. It is appreciated by a professional, skilled in the art, that the learnt neural biomarkers may then be used as time and or subject invariant stationary representations of the activity of the nervous system across a population of patients with the same indication, or for a single patient, or as a representation of the disease when observed in any synthetic or simulated or biological source of neural data or activity. Thus, a neural biomarker represents repeatable features from which the current neural activity can be understood as an indicator of a particular disease state or other physiological state and hence could be used as a basis for treatment decisions, therapeutic design or screening or itself be considered a useful target for direct or indirect modulation by neural, therapeutic or other means.

[0066] There is a desire for an efficient mechanism capable of capturing and/or interpreting bodily variable(s) encoded as neural activity and for providing an accurate estimate of one or more bodily variable(s) to a device performing closed loop control associated with one or more bodily functions, one or more body parts and/or portions of the body of a subject. There is a further desire for an efficient mechanism capable of capturing and/or interpreting bodily variable signal(s) produced by a device performing closed loop control associated with one or more body parts or portions of the body of a subject and for providing a corresponding stimulus to the nervous system of the subject associated with the bodily variable signal(s).

[0067] Figure 1 shows a schematic illustration of the overall software architecture of a neural control system 1 according to an exemplary embodiment. [0068] As shown in figure 1 , in the illustrated embodiment the neural control system 1 receives neural data from the nervous system 2 of a human or animal subject and subsequently provides neural stimulation to the nervous system 2 of the human or animal subject. It should be understood that although the nervous system 2 is shown as a single item for simplicity the nervous system is made of a large number of nerves, and it is not necessary that the received neural data and neural stimulation relate to the same nerves.

[0069] The neural control system 1 receives neural data from a number of neural sensors 3a to 3n implanted in the body of the subject. The neural sensors 3a to 3n are arranged to detect neural signals within the nervous system 2 and convert these into electrical neural data signals 4 which are provided to a real time input controller 1 1 of the neural control system 1 . The real time input controller 1 1 acts a sensor receiver, receiving neural data from the neural sensors 3a to 3n.

[0070] Optionally, the neural control system 1 may also receive data from one or more sensors and/or input devices 5a to 5n. The sensors and/or input devices 5a to 5n are arranged to detect parameter values of bodily variables of the human or animal subject and convert these into electrical data signals 6 which are provided to the real time input controller 1 1 of the neural control system 1 . In some examples some or all of the sensors and/or input devices 5a to 5n may be implanted in the body of the subject. Input devices 5a to 5n may also report a position or state of attached components attached to the body of the subject, such as a prosthetic limb, bionic organ or any other device.

[0071] The neural control system 1 also provides neural stimulation control signals to a number of neural stimulators 7a to 7n implanted in the body of the subject. A real time output controller 12 of the neural control system 1 provides electrical neural stimulation control signals 8 to the neural stimulators 7a to 7n. The neural stimulators 7a to 7n are arranged to receive the electrical neural stimulation control signals 8 and apply corresponding neural stimulation signals to the nervous system 2.

[0072] The neural stimulators 7a to 7n may comprise any device undertaking an action resulting in or modifying neural activity in a targeted area of the neural tissue of a subject.

This could include, by way of example but not limited to, operating modalities such as, electrical stimulation, chemical activation, mechanical stimulation, and/or optogenetic stimulation. It is not necessary that all of the neural stimulators 7a to 7n are the same. In some examples the neural stimulators 7a to 7n may include neural stimulators operating using different modalities being used together.

[0073] It should be understood that it is not essential that the neural sensors 3a to 3n are separate devices from the neural stimulators7a to 7n. Some or all of the neural sensors 3a to 3n and neural stimulators7a to 7n may be combined in dual purpose sensor/stimulator devices. Hence the illustrated functional separation is not indicative of physical separation.

[0074] Optionally, the neural control system 1 may also provide control signals to one or more output devices 9a to 9n, such as feedback devices, bionic organs, drug delivery devices and prosthetic devices, it should be appreciated that this list is by way of example only and that these devices may be either implanted or external to the body of the subject. The neural stimulators 7a to 7n and the output devices 9a to 9n may be collectively referred to as end effectors. The real time output controller 12 of the neural control system 1 provides electrical control signals 1 0 to the output devices 9a to 9n. The output devices 9a to 9n are arranged to receive the electrical control signalsl 0 and to carry out corresponding actions in response. In some examples some or all of the output devices 9a to 9n may be implanted in the body of the subject.

[0075] The signals may be carried between the neural control system 1 , the neural sensors 3, neural stimulators 7, sensors 5 and output devices 9 in any suitable manner. In the illustrated example these signals are carried by a wired communication system.

[0076] The neural control system 1 further comprises a machine learning module 13, a control module 14, a signal processing module 15, a cloud interface module 16, an auditing and version control module 17, a safety monitor module 18, and a storage device 19 accessible to the other components. The functions and operation of these different parts of the neural control system 1 will be discussed in more detail below.

[0077] In operation of the neural control system 1 the real time input controller 1 1 receives the neural data signals from the neural sensors 3a to 3n, as indicated by the arrow 4, and optionally receives the data signals from the sensors 5a to 5n, as indicated by the arrow 6. The real time input controller 1 1 then sends the neural data signals 4, and any data signals 6, to the storage device 19, as indicated by the arrow 20, for storage as raw signal data 21 . The raw signal data 21 is so called to indicate that this data has not yet been fully processed by the neural control system 1 . However, it is possible that some pre-processing of the neural data signals 4 and the data signals 6 may be carried out by the neural sensors 3a to 3n, sensors 5a to 5n and real time input controller 1 1 to enable reliable transmission and storing of the data.

[0078] The signal processing module 15 obtains raw signal data 21 from the storage device 19, as indicated by the arrow 22, and carries out signal processing of the raw signal data 21 to place the signal data in a suitable format for input to the machine learning module 13. The signal processing module 1 5 then sends the resulting processed signal data 23 to the storage device 19 for storage, as indicated by the arrow 24. The storage device 19 may be a RAM buffer, for example.

[0079] The machine learning module 13 obtains the processed signal data 23 from the storage device 19, as indicated by the arrow 25, and further processes the processed signal data 13 using machine learning models. The machine learning module 13 uses machine learning means, such as one or more machine learning models, to identify, learn, or calculate neural biomarkers of one or more bodily variables in the processed signal data 23 and to determine from these the current status of the bodily variables of the subject. The machine learning module 13 then produces classified signal data 26 defining the determined current status of the bodily variables of the subject and sends the classified signal data 26 to the storage device 19 for storage, as indicated by the arrow 27.

[0080] The control module 14 obtains the classified signal data 26 from the storage device 19, as indicated by the arrow 28, and uses machine learning models to determine neural stimulation patterns and modulation required to bring the one or more bodily variables into, or towards, agreement with a desired bodily state of the subject. The control module 14 then produces control signal data 29 defining the required neural stimulation patterns and modulation and sends the control signal data 29 to the storage device 19 for storage, as indicated by the arrow 30. Optionally, the control module 14 may obtain both the classified signal data 26, and also processed signal data 23 relating to bodily variables and derived from data signals from the sensors 5a to 5n, and use machine learning models to determine neural stimulation patterns and modulation required to bring the one or more bodily variables into, or towards, agreement with a desired bodily state of the subject based upon both of these types of data.

[0081] The real time output controller 12 obtains the control signal data 29 from the storage device 19, as indicated by the arrow 31 , and provides corresponding electrical neural stimulation control signals 8 based on the control signal data 29 to the neural stimulators 7a to 7n. Optionally, the real time output controller 12 may also provide electrical control signals 10 based on the control signal data 29 to the output devices 9a to 9n.

[0082] Additionally, the real time input controller 1 1 sends selected data regarding the neural data signals directly to the real time input controller 1 1 , and the real time output controller 12 sends selected data regarding the electrical neural stimulation control signals directly to the real time input controller 1 1 , as indicated by the arrow 37.

[0083] The auditing and version control module 17 ensures that all of the other components of the neural control system 1 are valid, up to date, and operating the correct current versions of any relevant software, firmware, models and/or model parameters. Further, the auditing and version control module 17 schedules, supervises and checks any necessary updating of the components of the neural control system 1 , such as updating to new versions of software, firmware, models and/or model parameters. If the auditing and version control module 17 cannot update a component or otherwise ensure a valid version can be operated, the auditing and version control module 17 may signal the safety monitor module 18 described below to bring the system 1 into a safe state and/or disable operation of the whole or part of the system 1 . The auditing and version control module 17 may do this if it identifies one or more of incorrect versioning, out of date versioning; and/or unauthorised versioning of components of the neural control system 1 .

[0084] In some examples the auditing and version module 17 may require periodic authentication of the system 1 with an external authority, such as cloud servers 36 discussed below, and may disable operation or reduce functionality of the whole or part of the system 1 if the authentication of the system 1 has expired or cannot be confirmed within a specified time period.

[0085] In some examples the auditing and version module 17 may require periodic updates of the models and/or model parameters. If an update or authentication of a component cannot be successfully performed within the specified time period, the auditing and version control module 17 may disable that component or the whole system 1 or put that component or the whole system 1 into a reduced or basic functionality mode by signaling the safety monitor module 18 described below.

[0086] The safety monitor module 18 independently monitors the performance, for example the health, of the components of the neural control system 1 , as indicated schematically by the dashed arrows 38. If the safety monitor module 18 identifies an error or failure of one of the components of the neural control system 1 the safety monitor module 18 brings the neural control system 1 into a safe state to ensure safe operation of the neural control system 1 . In some examples the safety monitor module 18 may respond to failure by stopping the sending of control signals by the real time output controller 12. In some examples the neural control system 1 may be implemented such that each component and/or subsystem of the neural control system 1 must periodically report its health to the safety monitor module 18, and if any of the health reports indicate a failure, or are incomplete or missed, the safety monitor module 18 will safely shut down the power to critical parts, such as neural transducers, (i.e., neural sensors 3a to 3n and neural stimulators 5a to 5n).

[0087] In some examples the safety monitor module 18 may monitor the performance, such as the health, of the components making up the first and/or second control loops discussed herein, and may shut down the power to selected critical parts, or place the system 1 into a safe mode, in response to detecting unacceptable performance, such as a failure, in one of the first and/or second control loops. In particular, the safety monitor module 18 may be arranged to act to reduce or stop the function of any element of the first control loop based on the monitoring of its performance.

[0088] In some examples the safety monitor module 18 may monitor the health of the auditing and version module 17 and may shut down the power to selected critical parts, or place the system 1 into a safe mode, or place the system 1 into a reduced or basic functionality mode, in response to detecting a failure to update to a valid version of component or system software, firmware, models and/or model parameters.

[0089] In addition to the storage device 19, the neural control system 1 also comprises a non-volatile (NV) data store 32. In operation, the neural control system 1 packages the data stored in the storage device 19 by the various components of the system 1 into a suitable form for transmission and long term storage and supplies this packaged data to the NV data store 32 for storage, as indicated by the arrow 33.

[0090] In general, it is expected that the volume of neural data collected and processed by the neural control system 1 will be so great that long term storage of the neural data and related an derived data in the storage device 19 will be impractical. Accordingly, this data is packaged into a suitable form for long term storage in the NV data store 32. The packaged data may be subsequently recovered from the NV data store 32 for review and/or analysis as desired. The packaging the neural data could be any suitable form of compression, metadata or other method of reducing its size while retaining the pertinent information, as appropriate

[0091] The cloud interface module 16 periodically obtains packaged data from the NV data store 32, as indicated by the arrow 34, and sends this packaged data through a gateway 35 to cloud servers 36, as indicated by arrow 37, for review and/or analysis. Generally, the cloud interface module 16 will operate as a 'push' system, periodically sending new packaged data which has been generated by the neural control system 1 since the last set of packaged data was sent. However, in some examples the cloud interface module 16 may also operate as a 'pull system, providing new packaged data, or specifically requested parts of the packaged data, on request from the cloud servers 36.

[0092] Periodically, or as required, the cloud servers 36 may send updates from the cloud servers 36 via the gateway 35, so that the cloud servers 36 act as an update machine to carry out updating of the neural control system 1 . These updates may, for example, be updates to the general firmware of the neural control system 1 , the signal processing steps, and the algorithms and models used, including control parameters and settings. This list is exemplary only, and is not intended to be exhaustive. Data may be carried between the neural control system 1 and the cloud servers 36 in any suitable manner. In the illustrated example these signals are carried by an Ethernet wireless communication system.

[0093] When the cloud servers 36 act as an update machine for the neural control system 1 the auditing and version module 17 may operate as an auditing module to monitor version control of the neural control system 1 . In addition to sending the updates, the cloud servers 36 send information to the auditing and version module 17 regarding the correct version of the neural control system 1 , or parts of the neural control system 1 . The version of the neural control system is the identities of the updated and/or updateable components of the neural control system 1 .

[0094] When the auditing and version module 17 has received the information regarding the correct version from the cloud servers 36, the auditing and version module 17 obtains information regarding the current version actually present on the neural control system 1 , or parts of the neural control system 1 , and compares the current and correct versions. The auditing and version module 17 can instruct the safety module 18 to act to reduce or stop the function of the neural control system 1 , or a part of the neural control system 1 , based on the correct and current versions, for example if the comparison shows that the current version is not the same as the correct version.

[0095] In the illustrated embodiment the cloud servers 36 include systems which retrain machine learning models on high powered cloud servers, and then sends the results of this retraining to the system 1 in the form of updated machine models, or updates to the current machine models. This retraining may be based upon the packaged data from the neural control system 1 and/or on packaged data received from other neural control systems.

Periodically, or when updating of the machine learning models is required, updated machine models, or updates to the machine models, can be sent to the neural control system 1 from the cloud servers 36 via the gateway 35 in a similar manner to the updates discussed above. When updated machine learning models or updates to the machine learning models are received by the neural control system 1 the auditing and version control module 17 will carry out and confirm the necessary changes to replace or update the machine learning models currently in use by the neural control system 1 .

[0096] An example of retraining machine learning models is periodic calibration of the model parameters for a specific patient, which allows for continuous adaptation of a subject specific model to the changes in the subjects nervous system and neural sensors over time, such as neuron degradation and neuron motion relative to the neural sensor. Another example is continuous improvement of the core machine learning model by periodic retraining on the neural data of the whole or a representative subset of a subject population, possibly based on data from multiple different neural control systems.

[0097] In the illustrated example, the different modules of the neural control system 1 , such as the machine learning module 13, the control module 14, the signal processing module 15, the cloud interface module 16, the auditing and version control module 17, and the safety monitor module 18, and also the real time input controller 1 1 and the real time output controller 12, are implemented as software modules. In other examples the different modules of the neural control system 1 , such as the machine learning module 13, the control module 14, the signal processing module 15, the cloud interface module 16, the auditing and version control module 17, the safety monitor module 18, real time input controller 1 1 and real time output controller 12, may be implemented as software modules or by dedicated hardware, as convenient in any specific implementation. In some examples different ones of the modules may be implemented in different ways. In particular, in some examples it may be preferred to implement modules carrying out machine learning, such as the machine learning module 13 and/or the control module 14, using dedicated hardware optimized for machine learning processes, such as a GPU or other ASIC optimized for parallel computing.

[0098] As is shown schematically in figure 1 , different parts of the neural control system 1 operate at different response timescales, or response speeds. A first, real time, part of the neural control system 1 operates at real time, or near real time response speeds. The response speed is the time taken between the system 1 receiving an input and generating an output. In the illustrated example this real time part of the neural control system 1 comprises the real time input controller 1 1 and the real time output controller 12, the connections between them, and their connections to the neural sensors 3a to 3n, sensors and input devices 5a to 5n, neural stimulators 7a to 7n, and output devices 9a to 9n. A second, interactive, part of the neural control system 1 operates at a lower response speed. In the illustrated example this interactive part of the neural control system 1 comprises the machine learning module 13, the control module 14, the signal processing module 15, and the safety monitor module 18, and the connections between them. A third, periodic, part of the system operates at a still lower response speed. In the illustrated example this periodic part of the neural control system 1 comprises the cloud interface module 16, the auditing and version control module 17, and the NV data store 32. In some examples the systems operating in the cloud servers 36 to generate updates to the machine learning models may also be regarded as a part of the periodic part because the updates are provided to and used by the neural control system 1 , although the cloud servers 36 are not, strictly, a part of the neural control system 1 . [0099] In some examples, the real time part of the neural control system 1 may provide a response speed similar to the response time of a subjects nervous system, while the interactive part of the neural control system 1 may provide a response time similar to the response time of a subjects biological systems controlled by the nervous system, and the periodic part of the neural control system 1 may provide a response speed slower than typical biological systems.

[00100] In the illustrated example of figure 1 the real time part of the neural control system 1 may have a response time, or response latency, in the range 1 to 100 microseconds (less than 0.001 second), the interactive part of the neural control system 1 may have a response time, or response latency, in the range 1 00 to 200 milliseconds (0.1 to 0.2 second), and the periodic part of the neural control system 1 may have a response time, or response latency, in the order of minutes, hours or days. In a preferred example the real time part of the neural control system 1 has a response time, or response latency, of less than 100 microseconds. These time ranges are preferred, but are not essential. In other examples, different time ranges may be used. In practice, the response times selected for the system may depend upon the purpose of the system 1 , such as the nature of the sensors and devices connected to the system 1 .

[00101 ] Figure 2a shows in diagrammatic form a first example of operation of the neural control system 1 of figure 1 to provide control of a bodily state of a subject. For clarity only selected parts of the neural control system 1 are shown in figure 2a. Figure 3 shows a representation of a specific example of the data flow through the neural control system 1 in the example of figure 2a. The bodily state of a subject is the values at a specific time of a collection of one or more bodily variables the real time part of the neural control system 1 may, by way of example, have a response time, or response latency, in the range 1 to 100 microseconds.

[00102] In the examples of figures 2a and 3 the neural control system 1 is used to provide closed loop control of a bodily state of a subject in order to bring the bodily state into, or at least closer to, agreement with a desired value of that bodily state. In order to do this an ideal bodily setpoint 1 00 corresponding to a desired value of the bodily state being controlled is set. This ideal bodily setpoint 1 00 may be fixed, or may be determined based on information about the subject. The ideal bodily setpoint 1 00 may be pre-set, may be determined by the neural control system 1 , or may be provided to the neural control system 1 by another system, as appropriate in any specific implementation. By a bodily setpoint is meant the standard meaning in the technical field of the invention of a setpoint for a control system, and is the desired or target value for bodily variable or bodily state. Departure of the bodily variable or bodily state from its setpoint is one basis for error-controlled regulation using negative feedback for automatic control.

[00103] In the specific example of figure 3 the bodily state is the heart rate of the subject, and the ideal bodily set point 100 is a specific heart rate value. In some examples a desired value for the heart rate may be calculated by the neural control system 1 based, for example, on other bodily variables, e.g., the current blood pressure or current physical activity level or overall cardiovascular health of the subject. In other examples the desired value for the setpoint of heart rate may be provided to the neural control system 1 by a clinician.

[00104] In operation of the neural control system 1 in the first example of figure 2a, the neural sensors 3a to 3n obtain neural data relating to a bodily state of the subject from the subjects nervous system 2, and the sensors 5a to 5n obtain bodily variable data regarding bodily variable parameter values. Figure 3 shows illustrative examples of full spectrum multiple channel neural data 101 relating to a heart rate of the subject which may be produced by the neural sensors 3a to 3n, and blood pressure values 102 which may be produced by sensors 5a to 5n.

[00105] In the first example, the neural data and body variable data is provided by the neural sensors 3a to 3n and the sensors 5a to 5n to the real time input controller 1 1 in the real time part of the neural control system 1 , which sends this data to the interactive part of the neural control system 1 for processing. In the interactive part of the neural control system 1 the neural data and body variable data is subject by a machine learning (ML) data processing 103, comprising processing by the signal processing module 1 5 to produce processed signal data 23, and processing using an ML model of at least the neural data by the machine learning module 13 to produce classified signal data 26. As shown in figure 3, classified neural biomarkers 1 12 may be produced by processing of the full spectrum multiple channel neural data 101 using a neural decoding machine learning model 104 by the machine learning module 13. The example of figure 3 further shows signal processing 105 applied to the blood pressure values 102 by the signal processing module 15.

[00106] In the first example, the output data produced by the data processing 103 is compared at a summing junction 106 with the ideal bodily set point 100 to calculate a desired change in the value of the bodily state to bring the bodily state into, or at least closer to, agreement with the ideal bodily set point. The summing junction 1 06 compares the inputs it receives of the bodily state values of the output data and the values of the ideal bodily setpoint 100, and outputs the difference between these values may be carried out by the control module 14. As shown in figure 3, the output of the summing junction 106 may be used in a PID (proportional-integral-derivative) calculation by a PID controller 1 13, as commonly used in feedback control systems. PID controllers are well known to the skilled person, so it is not necessary to describe this in detail herein. In the illustrated first example the summing junction 106 carries out a simple subtraction of its two inputs. In other examples different comparisons, such as more complex operations, may be carried out.

[00107] In the first example, the desired change in the value of the bodily state produced by the summing junction 106 is subjected to data processing 107 using an ML model by the control module 14 to determine a set of neural stimulation signals required to bring about the desired change. As shown in figure 3 the ML model may be a simulation library selector 108 selecting an appropriate set of neural stimulation signals from a library of possible stimulations. The set of neural stimulation signals may, for example, define which of the neural stimulators 7a to 7n are to produce neural stimulation signals, and the timing and modulation of these neural stimulation signals. Figure 3 shows an illustrative example 109 of a pattern of applied stimulation signals comprising a set of neural stimulation signals.

[00108] In the first example, the determined set of neural stimulation signals is provided by the interactive part of the neural control system 1 to the real time output controller 12 in the real time part of the neural control system 1 , which determines and sends corresponding electrical neural stimulation control signals to selected ones of the neural stimulators 7a to 7n as required for the neural stimulators 7a to 7n to generate and apply the desired set of neural stimulation signals to the subject nervous system 2.

[00109] Figure 2b shows in diagrammatic form a second example of operation of the neural control system 1 of figure 1 to provide control of a bodily state of a subject. For clarity, only selected parts of the neural control system 1 are shown in figure 2b. The second example of figure 2b is generally similar to the first example of figure 2a, and only the differences will be discussed in detail.

[00110] In the second example of figure 2b the neural control system 1 utilizes a body model 1 14. The body model 1 14 is an internal dynamical model of the body of the subject, which is used by the neural control system 1 to calculate the optimum actions for control. The body model may, for example, be a white box model, an input/output model, a state space model, or any other model of the system.

[00111] In the second example the output data produced by the data processing 103 is input to the body model 1 14 and used to produce an estimate or prediction of a current bodily state of a subject using a model predictive control process (MPC) process. Accordingly, the estimated or predicted current state of the body is informed by a combination of the neural biomarkers produced by the ML data processing 103 and/or the data from sensors 5a-n. [00112] The current bodily state is output from the body model 1 14 and compared at a summing junction 106 to an ideal bodily set point 100. A machine learning controller 107 performs optimization of the receding control horizon to calculate optimal control actions to cause a desired change in the value of the bodily state to bring the bodily state into, or at least closer to, agreement with the ideal bodily set point, and output the desired change to determine a set of neural stimulation signals required to bring about the desired change, in a similar manner to the first example described above. In some examples information regarding the determined set of neural stimulation signals is reported to the body model 1 14 by the machine learning controller 107 and used by the body model 1 14 to update the body model 1 14 to take into account the expected effect of the determined set of neural stimulation signals. This second example is an example of a Model Predictive Controller. Model Predictive Controllers are well known to the skilled person, so it is not necessary to describe this in detail herein.

[00113] In one embodiment of the second example the body model 1 14 uses the history of past control moves and the subsequent changes in bodily variables to update the body model.

[00114] Figure 2c shows in diagrammatic form a third example of operation of the neural control system 1 of figure 1 to provide control of a bodily state of a subject. For clarity, only selected parts of the neural control system 1 are shown in figure 2c. The third example of figure 2c is generally similar to the first example of figure 2a, and only the differences will be discussed in detail.

[00115] In the third example of figure 2c the neural control system 1 utilizes a setpoint calculator 1 15. The ML data processing 103 provides the bodily variable data and/or neural signal data it has received to the setpoint calculator 1 13. The setpoint calculator 1 13 then uses the received bodily variable data and/or neural signal data to calculate an estimate of the ideal bodily setpoint 100 and outputs this estimated ideal bodily setpoint 100 to the summing junction 106. machine learning controller 107. The setpoint calculator 1 15 may alternatively receive bodily variables from the input controller 1 1 , or directly from the sensors 3a-n and 5a-n, or via any other means.

[00116] In other examples not using a summing junction the setpoint calculator 1 15 may provide the calculated ideal bodily setpoint 100 to the data processing 107 using an ML model.

[00117] In examples similar to the specific example of figure 3 where the bodily state is the heart rate of the subject, the setpoint calculator may, for example, choose to reduce the bodily setpoint of heart rate when a bodily variable of blood pressure increases to dangerous levels, or is increasing dangerously rapidly,

[00118] The system architecture and method of operation of the neural control system 1 in the first to third examples described above enables the neural control system 1 to provide a control loop allowing effective closed loop control based upon real time nerve information. Further, the neural control system 1 can provide closed loop performance based directly on organ performance and/or biologically or medically relevant features derived from the received neural signals.

[00119] The description of the first to third examples set out above discusses examples where a set of neural stimulation control signals are output to neural stimulators 7a to 7n based on a input neural data from neural sensors 3a to 3n and body variable data from sensors 5a to 5n.

It should be understood that these are only some illustrative examples.

[00120] In other examples, the output may comprise control signals to one or more of the output devices 9a to 9n in addition to, or instead of, neural stimulation control signals to neural stimulators 7a to 7n. Further, the input may comprise only neural input data from neural sensors 3a to 3n or only body variable data from sensors 5a to 5n.

[00121] Figure 4 shows in diagrammatic form a fourth example of operation of the neural control system 1 of figure 1 to provide control of a bodily state of a subject. For clarity only selected parts of the neural control system 1 are shown in figure 4.

[00122] In figure 4 the neural control system 1 is used to provide closed loop control of a bodily state of a subject in order to bring the bodily state into, or at least closer to, agreement with a desired value of that bodily state. In order to do this an ideal bodily setpoint 100 corresponding to a desired value of the bodily state being controlled is set. Similarly to the examples of figures 2a to 2c, the ideal bodily setpoint may be fixed, or may be determined based on information about the subject. The ideal bodily setpoint may be pre-set, may be determined by the neural control system 1 , for example by a setpoint calculator 1 15, or may be provided to the neural control system 1 by another system, as appropriate in any specific implementation. In some examples the ideal bodily setpoint may be set in advance as a treatment to bring the bodily state to a desired value of the bodily state.

[00123] In examples where the ideal bodily setpoint is determined by the neural control system 1 the ideal bodily setpoint may be calculated based on the received data from the neural sensors 3a to 3n and/or the sensors and/or input devices 5a to 5n. The ideal bodily setpoint may be calculated by a machine learning (ML) model. [00124] In the fourth example illustrated in figure 4 the neural control system 1 forms a primary control loop providing closed loop control of a bodily state of a subject, this primary control loop corresponding to the control loop provided in the first example of figure 2a. This primary control loop is a first control loop provided by the neural control system 1 .

[00125] In operation of the neural control system 1 in the illustrated example of figure 4, similarly to the first example of figure 2a, the neural sensors 3a to 3n obtain neural data relating to a bodily variable of the subject from the subjects nervous system 2, and/or the sensors 5a to 5n obtain bodily variable data regarding bodily variable parameter values.

[00126] In the fourth example, similarly to the first example, the neural data and/or body variable data is provided by the neural sensors 3a to 3n and the sensors 5a to 5 to the real time input controller 1 1 in the real time part of the neural control system 1 , which sends this data to the interactive part of the neural control system 1 for processing. In the interactive part of the neural control system 1 the neural data and body variable data is subject to data processing 103, comprising processing by the signal processing module 15 to produce processed signal data 23, and processing using an ML model of at least the neural data by the machine learning module 13 to produce classified signal data 26. The output data produced by the data processing 103 is compared at a summing junction 106 with an ideal bodily set point 100 to calculate a desired change in the value of the bodily state to bring the bodily state into, or at least closer to, agreement with the ideal bodily set point 1 00. The functionality of the summing junction106 may be carried out by the control module 14 in some examples. The degree to which the value of the bodily state is different from the setpoint value, as determined by the summing junction 106, is subjected to data processing 107 using an ML model by the control module 14 to determine a set of neural stimulation signals and/or required to bring about the desired change. The set of neural stimulation signals may, for example, define which of the neural stimulators 7a to 7n are to produce neural stimulation signals, and the timing and modulation of these neural stimulation signals, and/or what control signals are to be sent to output devices 9a to 9n.

[00127] In the fourth example, similarly to the first example, the determined set of neural stimulation signals and/or control signals is provided by the interactive part of the neural control system 1 to the real time output controller 12 in the real time part of the neural control system 1 , which determines and sends corresponding electrical neural stimulation control signals to selected ones of the neural stimulators 7a to 7n and/or corresponding control signals to selected ones of the output devices 9a to 9n, as required for the neural stimulators 7a to 7n and/or output devices 9a to 9n to generate and apply the desired set of neural stimulation signals to the subject nervous system 2 and/or actions to be taken by the output devices 9a to 9n. [00128] Accordingly, the fourth example of figure 4 provides a primary control loop through the interactive part of the neural control system 1 corresponding to the control loop of the first example of figure 2.

[00129] The fourth example of figure 4 further sends selected data regarding the neural data signals directly from the real time input controller 1 1 to the real time output controller 12. The selection of the selected data regarding the neural data may be carried out by a data processing function of the real time input controller 1 1 . In general, this data processing function will be relatively simple compared to the ML processing carried out in the

intermediate part of the neural control system 1 .

[00130] The selected data regarding the neural data signals sent directly from the real time input controller 1 1 to the real time output controller 12 identifies the timing of the sensed neural data signals. In other examples, this data may additionally or alternatively identfiy other features of the neural data signal such their frequency, or other simple signal features easily calculable in the short response or operating time of the real time controller 1 1 .

[00131] The determined set of neural stimulation signals provided by the interactive part of the neural control system 1 to the real time output controller 12 in the real time part of the neural control system 1 may specify a desired timing of the neural stimulation signals relative to the natural neural signals carried by the subjects nervous system 2. This desired timing may specify how the neural stimulation signals are to be synchronized with the natural neural signals. For example, if the neural stimulation signals are intended to provide an effect in a biological system such as the cardiac system which has an oscillatory function it can be beneficial to provide neural stimulation signals during a specific phase of the heart beat cycle, or the corresponding oscillatory neural control of the heart beat cycle.

[00132] Accordingly, the real time output controller 12 uses the timing of the sensed neural data signals indicated by the selected data received from the real time input controller 1 1 as at least a part of the basis for controlling the timing of the electrical neural stimulation control signals to selected ones of the neural stimulators 7a to 7n, so that the neural stimulators 7a to 7n generate and apply the desired set of neural stimulation signals to the subject nervous system 2 at the specified desired timing relative to the natural neural signals. The specified timing may be any desired delay, including a zero delay or simultaneity, or as close to simultaneity as can be achieved.

[00133] It will be understood that identifying the timing of suitable natural neural signals may be carried out using a simple data processing function which is quicker and simpler than the ML processing carried out in the intermediate part of the neural control system 1 . [00134] The direct transfer of selected data regarding the neural data signals between the real time input controller 1 1 and the real time output controller 12 within the real time part of the neural control system provides an additional high speed, or low delay/latency, control loop for controlling the timing of neural stimulation relative to the natural neural signals. This high speed control loop allows the timing of the neural stimulation relative to the natural neural signals to be controlled more accurately than can be achieved by the primary control loop, which is delayed by the time required to carry out the more complex signal processing, particularly the ML processing.

[00135] The selected data regarding the neural data signals sent directly from the real time input controller 1 1 to the real time output controller 12 may also identify the amplitude of the sensed neural data signals and/or sensor signals.

[00136] Further, the interactive part of the machine learning system 1 could set a desired control output, for example a desired amplitude and/or duration of stimulation to the nervous system or a desired amplitude and/or duration of operation of an end effector device, such as movement of a prosthetic device, and specify this desired control output to the real time output controller 12.

[00137] Accordingly, following the application of neural stimulation signals to the subject nervous system 2, or the application of control signals to the output devices 9a to 9n, the real time output controller 12 monitors the amplitude of the sensed neural data signals and/or data signals indicated by the selected data received from the real time input controller 1 1 . If the indicated amplitude of the sensed neural data signals indicates a response which is not in agreement with the desired amplitude and/or duration of stimulation or operation, the real time output controller 12 responds by controlling the modulation of subsequent neural stimulation signals or control signals to change their amplitude and/or frequency as appropriate to bring the response which into, or towards, agreement with the desired amplitude and/or duration of stimulation or operation. In some examples the cycle of sensing and amplitude modulation may be repeated until the amplitude of the sensed response is in agreement with the desired level. The real time output controller 12 may, for example operate as a proportional response controller or a PID controller.

[00138] Accordingly, the modulation of neural stimulation signals or control signals, that is, their amplitude and/or frequency, or other defining parameter may be based at least partially on the amplitude, frequency, timing or other characteristic feature of sensed neural data signals and/or data signals. The sensed neural data signals may be neural data signals having any source. In particular, the sensed neural data signals may be natural neural data signals or evoked neural data signals that are the result of applied neural stimulation or other action by an end effector device, such as an end effector device acting on the body of the subject.

[00139] In some examples the response may be compared to a maximum safe amplitude threshold, and if the response is above this threshold the modulation of subsequent neural stimulation signals or control signals is changed to alter their amplitude and/or frequency until the response is reduced to a level below the maximum safe amplitude threshold. I n some examples, if the response is above the maximum safe amplitude threshold the application of subsequent neural stimulation signals and/or control signals may be stopped, for safety.

[00140] It will be understood that identifying the amplitude of a response from suitable neural signals and data signals may be carried out using a simple data processing function which is quicker and simpler than the ML processing carried out in the intermediate part of the neural control system 1 .

[00141 ] For example, if the output devices 9a to 9n control a prosthetic limb device and at least one of the sensors and/or input devices 5a to 5n is an IMU sensor providing information about the current movement speed of the prosthetic limb device, the control module 14 may provide a set of control movements to be executed by the prosthetic limb device and controlled by a set of control signals for the output devices 9a to 9n, together with a desired movement speed for the prosthetic limb device. The information about the current movement speed of the prosthetic limb device provided to the real time output controller 12 by the real time input controller 1 1 can be used by the real time output controller 12 to modulate the subsequent control signals sent to the output devices 9a to 9n in order to move the prosthetic limb device at the desired speed. It should be understood that any of the output devices 9a to 9n could physically be the same device connected over the same connection as any input devices 5a to 5n, for instance a motor being controlled as an output device may report its angular position as an input device. Hence functional separation is not indicative of physical separation.

[00142] In another example, at least one of the sensors 5a to 5n may be a blood pressure sensor sensing blood pressure of the subject, and the neural stimulators 7a to 7n may be arranged to stimulate the nervous system 2 to increase blood pressure of the subject. The control module may provide a set of neural stimulation signals to increase blood pressure together with a desired blood pressure value. The information about the current blood pressure provided to the real time output controller 12 by the real time input controller 1 1 can be used by the real time output controller 12 to modulate the neural stimulation control signals sent to the neural stimulators 7a to 7n in order to maintain the blood pressure at the desired value. For example, if the sensor signals indicated that blood pressure was dropping below the desired value the real time output controller 12 can modulate the neural stimulation control signals to increase the amplitude of the applied neural stimulation. This mode of action is not limited to use in relation to blood pressure, and may be desirable in any system where the response is required to be modulated within the timescales of the real time controller, for either safety or functional reasons, before the next control action is decided by the primary control loop.

[00143] The direct transfer of selected data regarding the neural data signals and/or data signals between the real time input controller 1 1 and the real time output controller 12 within the real time part of the neural control system provides an additional high speed, or low delay/latency, control loop for controlling and/or modulating the amplitude of neural stimulation and/or other control outputs. The controlled and/or modulated parameters could include, by way of example but not limited to, the frequency, duration, amplitude or onset of the neural stimulation signal emitted by the neural stimulators. This high speed control loop allows the timing of the neural stimulation relative to the natural neural signals to be controlled and modulated more rapidly than can be achieved by the primary control loop, which is delayed by the time required to carry out the more complex signal processing, particularly the ML processing. This high speed control loop is a second control loop provided by the neural control system 1 , and has a lower response latency than the first control loop.

[00144] Further, critical threshold values for parameters measured by some of the sensors 5a to 5n, and corresponding remedial actions to be taken, may be set in the real time output controller 12. The real time output controller 12 monitors the amplitude of the sensed data signals corresponding to these parameters indicated by the selected data received from the real time input controller 1 1 , and in response to the parameter value exceeding the threshold value, by sends control signals and/or neural control signals to the output devices 9a to 9n and the neural stimulators 7a to 7n corresponding to the remedial action.

[00145] For example, one or more of the sensors 5a to 5n may be temperature sensors measuring the temperature at a surface or extremity of a prosthetic limb device, and the corresponding remedial action may be a rapid movement of the prosthetic limb device in a direction which withdraws that surface or extremity. When the sensors 5a to 5n indicate that the sensed temperature exceeds a critical threshold value the real time output controller 12 sends a predetermined set of control signals and/or neural control signals which will cause the output devices 9a to 9n and the neural stimulators 7a to 7n to rapidly withdraw the prosthetic limb device.

[00146] This may provide an 'artificial spinal reflex' to protect the subject, or the subjects prosthetic devices, from accidental harm. [00147] The direct transfer of selected data regarding the neural data signals and/or data signals between the real time input controller 1 1 and the real time output controller 12 within the real time part of the neural control system provides an additional high speed, or low delay/latency, control loop for controlling immediate responses to the sensing of dangerous conditions. This high speed control loop allows the dangerous conditions to be responded to more quickly than can be achieved by the primary control loop, which is delayed by the time required to carry out the more complex signal processing, particularly the ML processing.

[00148] In some examples the high speed control loop formed by the direct transfer of selected data regarding the neural data signals and/or data signals between the real time input controller 1 1 and the real time output controller 12 in the real time part of the neural control system 1 may be used as the main control loop to carry out control of a bodily variable, with the primary control loop formed by the interactive part of the neural control system 1 being activated or used more sparsely, for only part of the time, in order to reduce power demands of the neural control system 1 . In some such examples the primary control loop formed by the interactive part of the neural control system 1 may be activated periodically, or may be activated based upon the values of the neural data signals and/or data signals. For example, the primary control loop formed by the interactive part of the neural control system 1 may be activated only when the values of one or more selected neural data signals and/or data signals cross predetermined thresholds or limits. This may be particularly useful to minimize power consumption in applications where the neural control system 1 is implanted in the subject body.

[00149] Further, a determined set of neural stimulation signals provided by the interactive part of the neural control system 1 to the real time output controller 12 in the real time part of the neural control system 1 may specify a maximum safe amplitude of natural neural signals generated in response to the neural stimulation signals. For example, should a stimulation amplitude be calculated by the interactive control loop to be 1 mA, and evoke a natural neural signal voltage of greater than 3000mn, where 3000mn was the maximum safe amplitude, the amplitude of the stimulation signal would be arrested or reduced

[00150] Accordingly, following the application of neural stimulation signals to the subject nervous system 2 the real time output controller 12 monitors the amplitude of the sensed neural data signals indicated by the selected data received from the real time input controller 1 1 . If the indicated amplitude of the sensed neural data signals exceeds the maximum safe amplitude the real time output controller 12 responds by controlling the modulation of subsequent neural stimulation signals to reduce their amplitude until the indicated amplitude of the sensed neural data signals is reduced to a safe level below the maximum safe amplitude. In some examples the cycle of sensing and amplitude reduction may be repeated until the amplitude of the sensed neural data signals is reduced to a safe level. In some examples the application of subsequent neural stimulation signals may be stopped, corresponding to a reduction in amplitude to zero, for safety.

[00151 ] It will be understood that identifying the amplitude of suitable natural neural signals may be carried out using a simple data processing function which is quicker and simpler than the ML processing carried out in the intermediate part of the neural control system 1 .

[00152] The direct transfer of selected data regarding the neural data signals between the real time input controller 1 1 and the real time output controller 12 within the real time part of the neural control system provides an additional high speed, or low delay/latency, control loop for modulating and/or controlling the amplitude of neural stimulation signals based on the amplitude of the sensed neural signals generated in response to previous neural stimulation signals. This high speed control loop allows an unsafe level of neural response to the neural stimulation to be identified and responded to and corrected more quickly than can be achieved by the primary control loop, which is delayed by the time required to carry out the more complex signal processing, particularly the ML processing. This quicker correction may allow harm which could potentially otherwise be caused to be prevented or mitigated.

[00153] As is explained above regarding the fourth example of figure 4, the direct transfer of selected data regarding the neural data signals between the real time input controller 1 1 and the real time output controller 12 within the real time part of the neural control system can provide one or more high speed, or low delay/latency, control loops in addition to the primary control loop according to the first to third examples of figures 2a to 2c.

[00154] The fourth example of figure 4 further sends selected data regarding the timing of neural stimulation signals directly from the real time output controller 12 to the real time input controller 1 1 .

[00155] In examples where the locations of the neural sensors 3a to 3n and the neural stimulators 7a to 7n on the subject nervous system are such that at least some of the neural sensors 3a to 3n may directly receive the neural stimulation signals generated by the neural stimulators 7a to 7n, the real time input controller 1 1 can respond to the selected data regarding the timing of neural stimulation signals received from the real time output controller 12 by stopping the recording of neural data by the affected ones of the neural sensors 3a to 3n for the duration of the neural stimulation signals, in order to prevent cross talk between the neural stimulators 7a to 7n and the neural sensors 3a to 3n reducing the quality of the received neural data. In some examples the affected neural data may be replaced by blanket zeros during the stimulation. In some examples the neural sensors 3a to 3n may be switched off or deactivated for the duration of the neural stimulation signals. [00156] In the examples of figures 2 to 4 the neural controller 1 provides a single output of nerve stimulation signals to control a single bodily variable. In other examples the neural controller 1 may provide multiple sets of nerve stimulation signals to control multiple bodily variables, and/or multiple sets of outputs thorough multiple output devices.

[00157] In the fourth example of figure 4, the neural control system 1 sends data to cloud servers 36. In the fourth example of figure 4 the cloud servers 36 operate as an update machine. In order to enable operation as an update machine the cloud servers 36 include machine learning data processing retraining systems 1 10 and machine learning controller retraining systems 1 1 1 . The machine learning data processing retraining systems 1 10 and machine learning controller retraining systems 1 1 1 retrain machine learning models using high powered computers, such as cloud computers, based on the data provided by the neural controller 1 . This retraining may be carried out with input from machine learning researchers developing new and improved machine learning models. This retraining may also be based on data received from other neural controllers additional to the neural control system 1 .

[00158] The cloud servers 36 generate updated machine learning models by machine learning training using the neural data received from the neural control system 1 , and possibly also other data from other sources. The cloud servers 36 may periodically, or as necessary, send updated machine learning models or machine learning model updates to the neural control system 1 . The neural control system 1 receives the updated machine learning models or machine learning model updates from the cloud servers 36, or other update machines, and uses these to update or replace the machine learning model or models used by the machine learning module 13 and the control module 14, as required.

[00159] The updates to the machine learning models may be calculated based on the received neural data, calculated neural biomarkers, output signals, recorded neural data, data from other sensors, and/or data representing bodily state and/or any other data saved by the neural control system. The updates may be generated based on data recorded by the neural control system 1 during specific periods of guided activity during rehabilitation or recalibration periods.

[00160] In examples where the cloud servers 36 act as an update machine the update machine may be provided by an automated cloud system.

[00161] In some examples the update machine may be a manual connection over a local wired or wireless connection. In some examples the updates may be automatically calculated by one or more machine learning systems for calculating long term treatment. In some examples the updates may be chosen by a treating clinician. [00162] The system architecture and method of operation of the neural control system 1 , and its interaction with the cloud servers 36 described above enables the neural control system 1 to be provided with an additional control loop allowing updating of the machine models used based upon data obtained from the subject and the performance of the neural control system 1 . This additional control loop is relatively low speed, or relatively high delay/latency compared to the primary control loop. The additional control loop enables performance of the machine learning models, and thus the neural control system 1 , to be improved over time as more data is gathered by the neural control system 1 , and other neural control systems

[00163] Figure 5 shows a schematic diagram of an alternative example of a closed loop control system useable in the neural control system 1 . In the example of figure 6, neural data 200 is subject to processing by a first ML neural decoding model 201 to decode the neural data and identify neural biomarkers 202. This processing by the first ML model 201 may be carried out by the machine learning module 13.

[00164] The identified neural biomarkers 202 are then combined in a sensor fusion process 203 with bodily variable data 204. The resulting fused data is then combined with an ideal, or desired, bodily set point 205, to calculate a desired change to bring the current body state into agreement with the ideal bodily set point.

[00165] The calculated desired change is then subject to processing by a second ML stimulus encoding model 206 to identify stimulator actions 207, or other actions, required to make the desired change. This processing by the second stimulus encoding ML model 206 may be carried out by the control module 14. In some examples the second stimulus encoding ML model 206 may be carried out by a machine learning output processor.

[00166] The identified actions are then output in the form of suitable control signals.

[00167] Figure 6 shows a schematic diagram of another alternative example of a closed loop control system useable in the neural control system 1 . In the example of figure 7, neural data 300, bodily variable data 301 , and an ideal, or desired, bodily set point 302 are all subject to processing by a single 'end-to-end' ML model 303 to directly identify stimulator actions 304, or other actions, required to make the desired change. This processing by a single 'end-to-end' ML model may be carried out a combined machine learning module replacing both the machine learning module 13 and the control module 14 of figures 1 to 5.

[00168] The identified actions are then output in the form of suitable control signals.

[00169] In all of the examples described above, the required output actions, for example movement of a prosthetic limb, an action of a bionic organ, or a stimulation of a portion of the subject nervous system to have a desired biological end effect, are derived from the content received from the neural sensors and/or other sensors and/or input devices. The output of a machine learning model, module, processor or controller can be directly used to control end devices, or alternatively can be used to create modifications to a continuous device function. For example, a robotic leg could operate a continuous program of stepping pattern with initiation of walking and speed of walking modulated by the output of the machine learning model. In another example a device stimulating on oscillatory circuit in the body such as the cardiac pulse could have a preprogrammed cycle that is modulated based on the output of the machine learning model.

[00170] In some examples the machine learning module and control module operate on separate timing loops with the control module potentially taking one or more outputs from the machine learning module before taking action. Further, either or both of the machine learning module and control module may operate on an asynchronous timescale and only process a section of data and produce output if certain conditions of the data input are met such as, for example, above an absolute value or that one of the sensors reads in a certain range.

[00171 ] It should be appreciated that the machine learning modules and processes set out above are described by way of example only and that any number of machine learning models could be used, utilizing many types of architecture to process data. In some examples multiple machine learning models may be run simultaneously in parallel with a majority vote, state space model or other decision making module deciding on the device output action based on the outputs of multiple ones of the machine learning models. The different machine learning models may be of different types and operate over different timescales.

[00172] Figure 7 shows a first example of a configuration of a system 400 incorporating the neural control system 1 to control an implanted neural device. In the first example the neural sensors 3a to 3n and stimulators 7a to 7n are implanted in the body of the subject, the neural control system 1 is located externally of the subject, and the cloud servers 36 are located remotely from the neural control system 1 and the subject.

[00173] Figure 8 shows a second example of a configuration of a system 500 incorporating the neural control system 1 to control an external device, such as a prosthetic limb device 501 . In the second example the neural sensors 3a to 3n and stimulators 7a to 7n are implanted in the body of the subject, the neural control system 1 and the prosthetic limb device 501 are located externally of the subject, and the cloud servers 36 are located remotely from the neural control system 1 and the subject. In the second example the neural stimulators 7a to 7n may be used to provide a user with sensation corresponding to movement of the prosthetic limb device 36. [00174] Figure 9 shows a third example of a configuration of a system 600 incorporating the neural control system 1 to control an implanted neural device. In the first example the implanted neural device comprising neural sensors 3a to 3n and stimulators 7a to 7n are implanted in the body of the subject, the neural control system 1 is also implanted in the body of the subject, and the cloud servers 36 are located remotely from the neural control system 1 and the subject. In the system 600 of figure 9 the neural control system 1 is communicatively connected to the cloud servers 36 through a gateway device 601 located externally of the subject.

[00175] In the illustrated examples the neural control system 1 is used to provide control outputs to an end effector such as a neural stimulator and an external device such as a prosthetic limb device. Examples of possible end effector devices which can be controlled by the neural control system could comprise one, some, or all of: peripheral or central neural stimulation devices; devices that dispense nutrients; devices that dispense pharmaceuticals; devices that administer gene therapies, for example CRISPR; devices that administer viral vector treatments. This listing of possible end effector devices is not intended to be exhaustive. The end effector devices may be implanted inside the body of the subject, or they may be located external to the body of the subject, as appropriate. In some examples both internally implanted and external end effector devices may be controlled by the neural control system.

[00176] In the examples described above the neural control system 1 the neural control system outputs control signals to neural stimulators 7a to 7n and/or output devices 9a to 9n.

In alternative examples the neural control system 1 may instead output the identified neural biomarkers identified by the ML neural processing, such as the ML data processing 103. The output identified neural biomarkers may, for example, be sent to a device able to process the neural biomarkers and use them as the basis for neural stimulation signals to be applied to the subjects nervous system, and/or control signals for an end effector or other device.

[00177] In some examples a targeted neural stimulus site to be stimulated by a neural stimulator may be treated with a viral vector or pharmaceutical agent arranged to enable hypersensitivity or hyposensitivity to neurostimulation.

[00178] As discussed above, in some examples neural sensors and stimulators may be implanted in a subject body, with the processing by the neural control system 1 being carried out outside the subject body.

[00179] In other examples, both the neural sensors and stimulators and the neural control system 1 may be implanted in a subject body. [00180] In some examples the neural control system 1 may be used to carry out autonomic control of bodily conditions. In some examples the neural control system 1 may be used to carry out PID control. In some examples the neural control system 1 may be used to control a bionic organ.

[00181] In some examples the implanted neural data gathering and neural stimulation may be carried out entirely on the same device and electrodes, on the same chip with different electrode contacts, different electrodes and different chips but with chips or electrodes housed in the same casing, or entirely separate. The infrequent upload to the cloud may be by way of a local base station connected to when at home or during charging or may be a direct connection over cellular or wifi data connections.

[00182] In some examples the neural sensors and neural stimulators may be arranged to operate using different modalities in order to eliminate cross-talk between the neural stimulators and the neural sensors. For example, the neural sensors can operate by electrical sensing while the neural stimulators operate by optogenetic stimulation.

[00183] In the illustrated examples a single storage device 19 is used to store all of the raw signal data 21 , processed signal data 23, classified signal data 26 and control signal data 29. In alternative examples the single storage device may be replaced by multiple storage devices. In particular, in some examples there may be a dedicated storage device or devices for each of the raw signal data, processed signal data, classified signal data, and control signal data.

[00184] In the illustrated example of figure 6 the stimulus encoding ML model may be carried out by a machine learning output processor in other examples a dedicated machine learning output processor may be used to carry out other machine learning tasks to generate suitable output signals.

[00185] In the illustrated examples the modules of the system are defined in software. In other examples the modules may be defined wholly or in part in hardware, for example by dedicated electronic circuits.

[00186] In the illustrated examples the neural control system is formed as a unitary device. This is not essential, in other examples the neural control system may be formed as a distributed system.

[00187] In the described examples the system elements may be implemented as any form of a computing and/or electronic device. [00188] Such a device may comprise one or more processors which may be microprocessors, controllers or any other suitable type of processors for processing computer executable instructions to control the operation of the device in order to gather and record routing information. In some examples, for example where a system on a chip architecture is used, the processors may include one or more fixed function blocks (also referred to as

accelerators) which implement a part of the method in hardware (rather than software or firmware). Platform software comprising an operating system or any other suitable platform software may be provided at the computing-based device to enable application software to be executed on the device.

[00189] The computer executable instructions may be provided using any computer-readable media that is accessible by computing based device. Computer-readable media may include, for example, computer storage media such as a memory and communications media.

Computer storage media, such as a memory, includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information for access by a computing device. In contrast, communication media may embody computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave, or other transport mechanism. As defined herein, computer storage media does not include communication media.

[00190] The system 1 may be distributed or located remotely and accessed via a network or other communication link (e.g. using a communication interface).

[00191] The term 'computer' is used herein to refer to any device with processing capability such that it can execute instructions. Those skilled in the art will realise that such processing capabilities are incorporated into many different devices and therefore the term 'computer' includes PCs, servers, mobile telephones, personal digital assistants and many other devices.

[00192] Those skilled in the art will realise that storage devices utilised to store program instructions can be distributed across a network. For example, a remote computer may store an example of the process described as software. A local or terminal computer may access the remote computer and download a part or all of the software to run the program.

Alternatively, the local computer may download pieces of the software as needed, or execute some software instructions at the local terminal and some at the remote computer (or computer network). Those skilled in the art will also realise that by utilising conventional techniques known to those skilled in the art that all, or a portion of the software instructions may be carried out by a dedicated circuit, such as a DSP, programmable logic array, or the like.

[00193] It will be understood that the benefits and advantages described above may relate to one embodiment or may relate to several embodiments. The embodiments are not limited to those that solve any or all of the stated problems or those that have any or all of the stated benefits and advantages.

[00194] Any reference to 'an' item refers to one or more of those items. The term 'comprising' is used herein to mean including the method steps or elements identified, but that such steps or elements do not comprise an exclusive list and a method or apparatus may contain additional steps or elements.

[00195] The order of the steps of the methods described herein is exemplary, but the steps may be carried out in any suitable order, or simultaneously where appropriate. Additionally, steps may be added or substituted in, or individual steps may be deleted from any of the methods without departing from the scope of the subject matter described herein. Aspects of any of the examples described above may be combined with aspects of any of the other examples described to form further examples without losing the effect sought.

[00196] It will be understood that the above description of preferred embodiments is given by way of example only and that various modifications may be made by those skilled in the art. Although various embodiments have been described above with a certain degree of particularity, or with reference to one or more individual embodiments, those skilled in the art could make numerous alterations to the disclosed embodiments without departing from the spirit or scope of this invention.




 
Previous Patent: METHOD OF MATERIAL TRANSFER

Next Patent: CATIONIC POLYMER