Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MONITORING A SLEEPING SUBJECT
Document Type and Number:
WIPO Patent Application WO/2015/008285
Kind Code:
A1
Abstract:
Apparatus and methods are described, including apparatus (500d) for use with a subject (12) who shares a bed (37) with a second person (502). A motion sensor (30) detects motion of the subject (12) and motion of the second person (502), and generates a motion signal (504) in response thereto. A control unit (14) analyzes the motion signal (504), in response thereto, identifies an effect of large body-movement of the second person (502) on sleep of the subject (12), and in response thereto, generates a sleep-disturbance output (516). Other applications are also described.

Inventors:
SHINAR ZVIKA (IL)
MEGER GUY (IL)
KLAP TAL (IL)
TSOREF LIAT (IL)
HOFFERT SMADAR (IL)
HALPERIN AVNER (IL)
KARASIK ROMAN (IL)
DAVIDOVICH MAAYAN (IL)
GOLDMAN TZVI D (IL)
Application Number:
PCT/IL2014/050644
Publication Date:
January 22, 2015
Filing Date:
July 17, 2014
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
EARLYSENSE LTD (IL)
International Classes:
G01N3/34
Foreign References:
US6792819B22004-09-21
Attorney, Agent or Firm:
BURSTEIN, Tal et al. (P.O. Box 2189, Rehovot, IL)
Download PDF:
Claims:
CLAIMS

1. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to:

analyze the motion signal,

in response thereto, identify an effect of large body-movement of the second person on sleep of the subject, and

in response thereto, generate a sleep-disturbance output.

2. The apparatus according to claim 1 , wherein the motion sensor consists of a single motion sensor.

3. The apparatus according to claim 1 , wherein the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

4. The apparatus according to any one of claims 1-3, wherein the sleep-disturbance output includes an assessment of an effectiveness of a parameter at reducing the effect of the large body-movement of the second person on the sleep of the subject, the control unit being configured to generate the assessment of the effectiveness of the parameter.

5. The apparatus according to claim 4, wherein the parameter is selected from the group consisting of: a parameter of a mattress on which the subject is sleeping, a parameter of the bed, a sleeping arrangement of the subject and the second person, and a room-environment parameter, the control unit being configured to generate the assessment of the effectiveness of the selected parameter.

6. The apparatus according to claim 5,

wherein the selected parameter includes a parameter of the mattress, and

wherein the assessment of the effectiveness of the parameter of the mattress includes a comparison between (a) the effectiveness of the parameter of the mattress, and (b) an effectiveness of the parameter of a different type of mattress, the control unit being configured to generate the comparison.

7. The apparatus according to any one of claims 1-3, wherein the sleep-disturbance output includes a recommendation to reduce the effect of the large body-movement of the second person on the sleep of the subject by adjusting an adjustable parameter, the control unit being configured to generate the recommendation.

8. The apparatus according to claim 7, wherein the adjustable parameter is selected from the group consisting of: a parameter of a mattress on which the subject is sleeping, a parameter of the bed, a sleeping arrangement of the subject and the second person, and a room-environment parameter, the control unit being configured to generate the recommendation to adjust the selected parameter.

9. The apparatus according to any one of claims 1-3, wherein the sleep-disturbance output includes instructions to a device to adjust an adjustable parameter, the control unit being configured to generate the instructions.

10. The apparatus according to claim 9, wherein the adjustable parameter is selected from the group consisting of: a parameter of a mattress on which the subject is sleeping, a parameter of the bed, a sleeping arrangement of the subject and the second person, and a room-environment parameter, the control unit being configured to generate the instructions to the device to adjust the selected parameter.

11. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising:

a motion sensor (a) configured to detect motion of the subject, and to generate a motion signal in response thereto, and (b) comprising a mechanical- filtering element configured to reduce a response of the motion sensor to motion of the second person, relative to motion of the subject; and

a control unit configured to:

by analyzing the motion signal, assess an effectiveness of the mechanical- filtering element at reducing the response of the motion sensor to motion of the second person, and

generate an output in response thereto.

12. The apparatus according to claim 11 , wherein the motion sensor consists of a single motion sensor.

13. The apparatus according to claim 1 1 or 12, wherein the motion sensor is configured to detect the motion of the subject without contacting or viewing the subject or clothes the subject is wearing.

14. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising:

a motion sensor, comprising:

a sensor element; and

a sensor plate, comprising:

a sensor-holding plate, shaped to hold the sensor element; and a noise filter plate that is distinct from the sensor-holding plate and is shaped to define a noise filter rim,

the motion sensor being configured to:

be placed on the bed such that when the subject and the second person are on the bed, the sensor plate is disposed underneath the subject and not disposed underneath the second person,

when the sensor element is being held by the sensor-holding plate, detect motion of the subject, by the sensor-holding plate moving in response to motion of the subject, and

generate a motion signal in response thereto,

the noise filter rim being more rigid than a central portion of the sensor-holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the noise filter rim were not more rigid than the central portion of the sensor-holding plate; and

a control unit, configured to analyze the motion signal, and to generate an output in response thereto.

15. The apparatus according to claim 14, wherein a thickness of the noise filter rim, measured between an inner perimeter of the noise filter rim and an outer perimeter of the noise filter rim, is between 2 mm and 8 mm.

16. The apparatus according to claim 14, further comprising a speaker, wherein:

the sensor plate and speaker are configured to be placed underneath a head of the subject, and

the speaker is configured to play music in response to the output generated by the control unit.

17. The apparatus according to any one of claims 14-16, wherein the sensor-holding plate is reversibly couplable to the noise filter plate.

18. The apparatus according to claim 17, wherein the sensor-holding plate is shaped to define a sensor-holding-plate rim, the noise filter plate is shaped to define a groove therein, and the sensor-holding plate is reversibly couplable to the noise filter plate by the sensor- holding-plate rim being fittable into the groove.

19. The apparatus according to claim 18, wherein (a) a width of the groove in the noise filter plate, measured in a direction from an outer perimeter of the groove toward an inner perimeter of the groove, is 0.05 - 2 mm greater than (b) a thickness of the sensor-holding- plate rim, measured in a direction from an outer perimeter of the sensor-holding plate toward an inner perimeter of the sensor-holding plate.

20. The apparatus according to any one of claims 14-16, wherein the sensor-holding plate is circular.

21. The apparatus according to claim 20, wherein the sensor element is circular, and wherein a ratio of a diameter of the sensor element to a diameter of the sensor-holding plate is between 0.1 and 0.6.

22. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising:

a motion sensor, comprising:

a sensor element; and

a sensor plate comprising a sensor-holding plate that is (a) shaped to hold the sensor element, and (b) shaped to define a sensor-holding-plate rim that is shaped to define one or more slots therein,

the motion sensor being configured to: be placed on the bed such that when the subject and the second person are on the bed, the sensor plate is disposed underneath the subject and not disposed underneath the second person,

when the sensor element is being held by the sensor-holding plate, detect motion of the subject, by the sensor-holding plate moving in response to motion of the subject, and

generate a motion signal in response thereto,

the sensor-holding-plate rim being more rigid than a central portion of the sensor- holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the sensor-holding-plate rim were not more rigid than the central portion of the sensor-holding plate; and

a control unit, configured to analyze the motion signal, and to generate an output in response thereto.

23. The apparatus according to claim 22, wherein a thickness of the sensor-holding-plate rim, measured between an inner perimeter of the sensor-holding-plate rim and an outer perimeter of the sensor-holding-plate rim, is between 2 mm and 8 mm.

24. The apparatus according to claim 22, wherein a thickness of the sensor-holding-plate rim, measured between an inner perimeter of the sensor-holding-plate rim and an outer perimeter of the sensor-holding-plate rim, is between 8 mm and 20 mm.

25. The apparatus according to claim 22, further comprising a speaker, wherein:

the sensor plate and speaker are configured to be placed underneath a head of the subject, and

the speaker is configured to play music in response to the output generated by the control unit.

26. The apparatus according to any one of claims 22-25, wherein the sensor-holding-plate rim is shaped such that the slots in the sensor-holding-plate rim are arranged at least four sites around the rim.

27. The apparatus according to any one of claims 22-25, wherein the sensor-holding-plate rim comprises one or more detachable parts, such that the sensor-holding-plate rim is shaped to define the one or more slots therein upon detachment of the one or more detachable parts.

28. The apparatus according to any one of claims 22-25, wherein the sensor plate further comprises a noise filter plate that is distinct from the sensor-holding plate and is shaped to define a noise filter rim,

the noise filter rim being more rigid than a central portion of the sensor-holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the noise filter rim were not more rigid than the central portion of the sensor-holding plate.

29. The apparatus according to claim 28, wherein a thickness of the noise filter rim, measured between an inner perimeter of the noise filter rim and an outer perimeter of the noise filter rim, is between 2 mm and 8 mm.

30. The apparatus according to any one of claims 22-25, wherein the sensor-holding plate is circular.

31. The apparatus according to claim 30, wherein the sensor element is circular, and wherein a ratio of a diameter of the sensor element to a diameter of the sensor plate is between 0.1 and 0.6.

32. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to identify that a portion of the motion signal was generated in response to motion of the second person, and not in response to motion of the subject, by identifying that the portion exhibits ringing.

33. The apparatus according to claim 32, wherein the motion sensor consists of a single motion sensor.

34. The apparatus according to claim 32, wherein the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

35. The apparatus according to any one of claims 32-34, wherein the control unit is configured to identify that the portion of the motion signal was generated in response to respiratory motion of the second person.

36. The apparatus according to any one of claims 32-34, wherein the control unit is configured to identify that the portion of the motion signal was generated in response to cardiac motion of the second person.

37. The apparatus according to any one of claims 32-34, wherein the control unit is configured to identify that the portion of the motion signal was generated in response to large body-movement of the second person.

38. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to:

by analyzing a portion of the motion signal that was generated in response to motion of the subject, calculate an amplitude threshold,

identify that an amplitude of a given portion of the motion signal is less than the amplitude threshold, and

in response thereto, identify that the given portion of the motion signal was generated in response to large body-movement of the second person, and not in response to motion of the subject.

39. The apparatus according to claim 38, wherein the motion sensor consists of a single motion sensor.

40. The apparatus according to claim 38 or 39, wherein the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

41. Apparatus for use with a subject who shares a bed with a second person, the apparatus comprising: a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to:

identify a subject-motion component of the motion signal that was generated in response to motion of the subject,

ascertain that an amplitude of the subject- motion component is changed by a threshold amount following a given portion of the motion signal, relative to before the given portion, and

in response thereto, identify that the given portion of the motion signal was generated in response to large body-movement of the subject, and not in response to motion of the second person.

42. The apparatus according to claim 41 , wherein the motion sensor consists of a single motion sensor.

43. The apparatus according to claim 41 or 42, wherein the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

44. A method for identifying inefficient respiration of a subject, the method comprising: measuring, with a device, an amplitude of a respiration signal of the subject;

measuring, with the device, a volume of respiration flow of the subject;

calculating, by a processor, a relationship of the amplitude to the volume; and identifying, by the processor, inefficient respiration of the subject, in response to the calculated relationship.

45. The method according to claim 44, wherein:

measuring, with the device, the amplitude of the respiration signal of the subject comprises measuring the amplitude with a contact-less sensor, and

measuring, with the device, the volume of respiration flow of the subject comprises measuring the volume with a contact-less sensor.

46. The method according to claim 44 or 45, wherein calculating the relationship comprises calculating a quotient of the amplitude and the volume, and wherein identifying the inefficient respiration comprises comparing the quotient to a baseline value and identifying the inefficient respiration in response thereto.

47. The method according to claim 46, wherein:

calculating the quotient comprises dividing the amplitude by the volume, and identifying the inefficient respiration comprises identifying the inefficient respiration in response to determining that the quotient is increased by a factor of 1.5 - 4 relative to the baseline value.

48. A method for identifying inefficient respiration of a subject, the method comprising: measuring, with a first device, an amplitude of a respiration signal of the subject; measuring, with a second device, a volume of respiration flow of the subject;

calculating, by a processor, a relationship of the amplitude to the volume; and identifying, by the processor, inefficient respiration of the subject, in response to the calculated relationship.

49. The method according to claim 48, wherein:

measuring, with the first device, the amplitude of the respiration signal of the subject comprises measuring the amplitude with a contact-less sensor, and

measuring, with the second device, the volume of respiration flow of the subject comprises measuring the volume with a contact-less sensor.

50. The method according to claim 48 or 49, wherein calculating the relationship comprises calculating a quotient of the amplitude and the volume, and wherein identifying the inefficient respiration comprises comparing the quotient to a baseline value and identifying the inefficient respiration in response thereto.

51. The method according to claim 50, wherein:

calculating the quotient comprises dividing the amplitude by the volume, and identifying the inefficient respiration comprises identifying the inefficient respiration in response to determining that the quotient is increased by a factor of 1.5 - 4 relative to the baseline value.

52. A method for detecting ectopic heartbeats of a subject, the method comprising: sensing motion of the subject with a motion sensor, and generating a motion signal that includes a cardiac component, in response thereto;

filtering the cardiac component into a high-frequency component and a low-frequency component;

comparing the high-frequency component to the low-frequency component; and detecting the ectopic heartbeats, using a processor, responsively to the comparing.

53. The method according to claim 52, wherein filtering the cardiac component into a high-frequency component and a low-frequency component comprises:

filtering the component with a band-pass filter with a lower cutoff of 6.5 to 11.5 Hz and a higher cutoff of 11.6 to 16.5 Hz; and

filtering the component with a band-pass filter with a lower cutoff of 1.5 to 4.0 Hz and a higher cutoff of 4.1 to 7.5 Hz.

54. The method according to claim 52, wherein filtering the cardiac component into a high-frequency component and a low-frequency component comprises:

filtering the component with a band-pass filter with a lower cutoff of 8.5 to 9.5 Hz and a higher cutoff of 13.5 to 14.5 Hz; and

filtering the component with a band-pass filter with a lower cutoff of 2.5 to 3.5 Hz and a higher cutoff of 4.5 to 5.5 Hz.

55. The method according to any one of claims 52-54, wherein comparing the high- frequency component to the low-frequency component comprises:

identifying, using the processor, portions of the high-frequency component which indicate heartbeats of the subject; and

for each of the portions, determining whether a corresponding portion of the low- frequency component is indicative of a heartbeat of the subject,

wherein detecting the ectopic heartbeats comprises detecting the ectopic heartbeats in response to determining that the corresponding portion of the low-frequency component is not indicative of a heartbeat.

56. Apparatus comprising:

a motion sensor configured to sense whether a resting surface is occupied, and to generate a signal in response thereto; a control unit configured to analyze the signal and generate an output in response thereto; and

an alarm clock configured to:

receive the output, and

in response to the output indicating that the resting surface is unoccupied, inhibit itself from sounding.

57. The apparatus according to claim 56, wherein the alarm clock is further configured to sound after a delay, in response to the output indicating that the resting surface is occupied following a previous sounding of the alarm clock.

58. Apparatus for use with at least one external power source, the apparatus comprising: a sensor, configured to sense motion of a subject and generate a motion signal in response thereto; and

a control unit configured to analyze the motion signal, and, in response thereto, generate an output indicative of whether a resting surface is occupied by the subject,

the sensor being configured to:

draw power from the external power source, in response to the output indicating that the resting surface is unoccupied, and

not draw power from the external power source, in response to the output indicating that the resting surface is occupied.

59. The apparatus according to claim 58, further comprising a rechargeable battery, configured to:

draw power from the external power source, in response to the output indicating that the resting surface is unoccupied, and

not draw power from the external power source, in response to the output indicating that the resting surface is occupied,

wherein the sensor is configured to draw power from the rechargeable battery, in response to the output indicating that the resting surface is occupied.

60. Apparatus for controlling a thermoregulation device, the apparatus comprising: a motion sensor, configured to sense motion of a subject and generate a motion signal in response thereto; and

a control unit, configured to:

analyze the motion signal,

in response to the analyzing, monitor sleep stages of the subject, and in response to the monitoring, control the thermoregulation device.

61. Apparatus comprising a motion sensor configured:

to be placed within a pillow of a subject,

to sense motion of the subject, and

to generate a motion signal in response thereto.

62. Apparatus for calculating an indication of a left-ventricle-ejection-time of a subject, the apparatus comprising:

a motion sensor, configured to (i) sense motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and (ii) generate a motion signal in response thereto;

an output device; and

a control unit, configured to:

analyze the motion signal,

based on the analyzing, calculate the indication of the left-ventricle-ejection- time of the subject, and

drive the output device to generate an output in response to the calculated indication of the left-ventricle-ejection-time.

63. The apparatus according to claim 62, wherein the control unit is further configured to: identify a risk of hypovolemia of the subject, in response to the calculated indication of the left- ventricle-ejection-time, and

drive the output device to generate the output, in response to the identified risk of hypovolemia.

64. A method for calculating an indication of a left-ventricle-ejection-time of a subject, the method comprising: using a motion sensor:

sensing motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and

generating a motion signal in response to the sensing; and

using a control unit:

analyzing the motion signal,

based on the analyzing, calculating the indication of the left- ventricle-ejection- time of the subject, and

driving an output device to generate an output in response to the calculated indication of the left-ventricle-ejection-time.

65. The method according to claim 64, wherein the method further comprises using the control unit to identify a risk of hypovolemia of the subject, in response to the calculated indication of the left-ventricle-ejection-time, and wherein driving the output device to generate the output comprises driving the output device to generate the output in response to the identified risk of hypovolemia.

66. Apparatus for identifying a change in stroke volume of a subject, the apparatus comprising:

a motion sensor, configured to (i) sense motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and (ii) generate a motion signal in response thereto;

an output device; and

a control unit, configured to:

analyze the motion signal,

based on the analyzing, identify the change in stroke volume of the subject, and

drive the output device to generate an output in response to the identified change.

67. The apparatus according to claim 66, wherein the control unit is further configured to: identify a risk of hypovolemia of the subject, in response to the identified change in stroke volume, and drive the output device to generate the output, in response to the identified risk of hypovolemia.

68. A method for identifying a change in stroke volume of a subject, the method comprising:

using a motion sensor:

sensing motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and

generating a motion signal in response to the sensing; and

using a control unit:

analyzing the motion signal,

based on the analyzing, identifying the change in stroke volume of the subject, and

driving an output device to generate an output in response to the identified change.

69. The method according to claim 68, wherein the method further comprises using the control unit to identify a risk of hypovolemia of the subject, in response to the identified change in stroke volume, and wherein driving the output device to generate the output comprises driving the output device to generate the output in response to the identified risk of hypovolemia.

70. Apparatus for use with a plurality of sleeping subjects, the apparatus comprising: at least one sensor, configured to:

monitor each of the subjects while the subjects sleep, and

generate a respective signal for each of the subjects, in response to the monitoring; and

a control unit configured to:

analyze the signals,

based on the analyzing, identify at least one sleep-related parameter for each of the subjects, and at least in response to the identified sleep-related parameters, identify (i) at least one of the subjects for wakening, and (ii) at least one of the subjects not for wakening.

71. The apparatus according to claim 70, wherein the at least one sensor consists of exactly one sensor.

72. The apparatus according to claim 70, wherein the at least one sensor comprises at least two sensors.

73. The apparatus according to claim 72, wherein the at least two sensors consist of exactly two sensors.

74. The apparatus according to claim 70, wherein the at least one sensor comprises at least one non-contact motion sensor.

75. The apparatus according to claim 70, wherein the at least one sensor comprises at least one electromyographic sensor.

76. The apparatus according to claim 70, wherein the at least one sensor comprises at least one imaging sensor.

77. The apparatus according to any one of claims 70-76, wherein the at least one sleep- related parameter for at least one of the sleeping subjects includes a length of time for which the subject has been sleeping, and wherein the control unit is configured to identify the length of time for which the subject has been sleeping.

78. The apparatus according to claim 77, wherein the length of time for which the subject has been sleeping includes a length of time for which the subject has been in a deep sleep, and wherein the control unit is configured to identify the length of time for which the subject has been in a deep sleep.

79. The apparatus according to any one of claims 70-76, wherein the at least one sleep- related parameter for at least one of the sleeping subjects includes a number of prior awakenings of the subject, and wherein the control unit is configured to identify the number of prior awakenings of the subject.

80. The apparatus according to any one of claims 70-76, wherein the at least one sleep- related parameter for at least one of the sleeping subjects includes a stage of a sleep cycle of the subject, and wherein the control unit is configured to identify the stage of the sleep cycle.

81. The apparatus according to any one of claims 70-76, further comprising a wakening device, wherein the control unit is further configured to drive the wakening device to wake the at least one of the subjects identified for wakening.

82. The apparatus according to any one of claims 70-76, wherein the control unit is further configured to generate a report that shows a history of the at least one sleep-related parameter for each of the subjects.

83. The apparatus according to any one of claims 70-76, further comprising a second sensor, wherein the control unit is configured to identify the at least one of the subjects for wakening further in response to receiving an input from the second sensor.

84. The apparatus according to claim 83, wherein the second sensor is configured to sense a physiological parameter of a patient, and wherein the control unit is configured to identify the at least one of the subjects for wakening in response to the sensed physiological parameter.

85. The apparatus according to claim 83, wherein the control unit is configured to:

identify crying of a baby, in response to receiving the input from the second sensor, and

identify the at least one of the subjects for wakening in response to the identified crying.

86. The apparatus according to claim 83, wherein the second sensor comprises an audio sensor, and wherein the control unit is configured to identify the at least one of the subjects for wakening in response to receiving the input from the audio sensor.

87. The apparatus according to claim 83, wherein the second sensor comprises an image sensor, and wherein the control unit is configured to identify the at least one of the subjects for wakening in response to receiving the input from the image sensor.

88. The apparatus according to any one of claims 70-76, wherein the apparatus is for use with exactly two sleeping subjects.

89. The apparatus according to any one of claims 70-76, wherein the apparatus is for use with three or more sleeping subjects.

90. A method for use with a plurality of sleeping subjects, the method comprising:

using at least one sensor:

monitoring each of the subjects while the subjects sleep, and

generating a respective signal for each of the subjects, in response to the monitoring; and

using a control unit:

analyzing the signals,

based on the analyzing, identifying at least one sleep-related parameter for each of the subjects, and

at least in response to the identified sleep-related parameters, identifying (i) at least one of the subjects for wakening, and (ii) at least one of the subjects not for wakening.

91. The method according to claim 90, wherein using the at least one motion sensor comprises using at least two motion sensors.

92. The method according to claim 90, wherein identifying the at least one sleep-related parameter for at least one of the sleeping subjects comprises identifying a length of time for which the subject has been sleeping.

93. The method according to claim 92, wherein identifying the length of time for which the subject has been sleeping comprises identifying a length of time for which the subject has been in a deep sleep.

94. The method according to claim 90, wherein identifying the at least one sleep-related parameter for at least one of the sleeping subjects comprises identifying a number of prior awakenings of the subject.

95. The method according to claim 90, wherein identifying the at least one sleep-related parameter for at least one of the sleeping subjects comprises identifying a stage of a sleep cycle of the subject.

96. The method according to any one of claims 90-95, further comprising waking the at least one of the subjects identified for wakening.

97. The method according to any one of claims 90-95, further comprising generating a report at regular intervals, the report showing a history of the at least one sleep-related parameter for each of the subjects.

98. The method according to any one of claims 90-95, wherein identifying the at least one of the subjects for wakening comprises identifying the at least one of the subjects for wakening further in response to receiving an input from a second sensor.

99. The method according to claim 98, wherein the second sensor is configured to sense a physiological parameter of a patient, and wherein identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor comprises identifying the at least one of the subjects for wakening in response to the sensed physiological parameter.

100. The method according to claim 98, wherein identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor comprises:

identifying crying of a baby, in response to the input, and

identifying the at least one of the subjects for wakening, in response to the identified crying.

101. The method according to claim 98, wherein the second sensor includes an audio sensor, and wherein identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor comprises identifying the at least one of the subjects for wakening in response to receiving the input from the audio sensor.

102. The method according to claim 98, wherein the second sensor includes an image sensor, and wherein identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor comprises identifying the at least one of the subjects for wakening in response to receiving the input from the image sensor.

103. The method according to any one of claims 90-95, wherein the method is for use with exactly two sleeping subjects.

104. The method according to any one of claims 90-95, wherein the method is for use with three or more sleeping subjects.

105. Apparatus for activating a medical device for a subject who is sleeping in proximity to at least one other person, the apparatus comprising:

at least one sensor, configured to:

monitor the subject and the at least one other person, and

generate a respective signal for the subject and for the at least one other person, in response to the monitoring; and

a control unit configured to:

analyze the signals,

based on the analyzing, identify (i) at least one physiological parameter of the subject, and (ii) at least one sleep-related parameter of the at least one other person, and

activate the medical device at least in response to the physiological parameter of the subject and the sleep-related parameter of the at least one other person.

106. The apparatus according to claim 105, wherein the at least one sensor consists of exactly one sensor.

107. The apparatus according to claim 105, wherein the at least one sensor comprises at least two sensors.

108. The apparatus according to claim 107, wherein the at least two sensors consist of exactly two sensors.

109. The apparatus according to claim 105, wherein the at least one sensor comprises at least one non-contact motion sensor.

110. The apparatus according to claim 105, wherein the at least one sensor comprises at least one electromyographic sensor.

111. The apparatus according to claim 105, wherein the at least one sensor comprises at least one imaging sensor.

112. The apparatus according to claim 105, wherein the at least one physiological parameter of the subject includes a sleep-related parameter of the subject, and wherein the control unit is configured to identify the sleep-related parameter of the subject.

113. The apparatus according to claim 105, wherein the at least one physiological parameter of the subject includes a respiration-related parameter of the subject, and wherein the control unit is configured to identify the respiration-related parameter of the subject.

114. The apparatus according to claim 105, wherein the at least one sleep-related parameter of the at least one other person includes a stage of sleep of the at least one other person, and wherein the control unit is configured to identify the at least one sleep-related parameter of the at least one other person.

115. The apparatus according to claim 105, wherein the control unit is configured to not activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person not being in a deep sleep.

116. The apparatus according to claim 115, wherein the control unit is configured to not activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being awake.

117. The apparatus according to claim 116, wherein the control unit is configured to not activate the medical device if the at least one sleep-related parameter of the at least one other person indicates that the at least one other person is trying to fall asleep.

118. The apparatus according to claim 105, wherein the control unit is configured to activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being asleep.

119. The apparatus according to claim 118, wherein the control unit is configured to activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being in a deep sleep.

120. The apparatus according to claim 105, wherein the control unit is configured to activate the medical device if the at least one sleep-related parameter of the at least one other person indicates that the at least one other person is awake and is not trying to fall asleep.

121. The apparatus according to any one of claims 105-120, wherein the medical device includes a continuous positive airway pressure device, and wherein the control unit is configured to activate the medical device.

122. The apparatus according to any one of claims 105-120, wherein:

the control unit is further configured to, based on the analyzing, identify a likelihood of an upcoming occurrence of a clinical episode of the subject, and

the control unit is configured to activate the medical device, further in response to the likelihood.

123. The apparatus according to claim 122, wherein:

the control unit is further configured to, based on the analyzing, identify an expected severity of the upcoming occurrence, and

the control unit is configured to activate the medical device, further in response to the expected severity.

124. The apparatus according to any one of claims 105-120, wherein the control unit is configured to activate the medical device, further in response to an input that includes a history of awakenings of the subject in response to previous activations of the medical device.

125. The apparatus according to claim 124, wherein the control unit is further configured to track the history of awakenings of the subject.

126. The apparatus according to any one of claims 105-120, wherein the control unit is configured to activate the medical device, further in response to an input that includes a history of awakenings of the at least one other person in response to previous activations of the medical device.

127. The apparatus according to claim 126, wherein the control unit is further configured to track the history of awakenings of the at least one other person.

128. The apparatus according to any one of claims 105-120, wherein the control unit is configured to activate the medical device, further in response to an input selected from the group consisting of: an input indicative of a sleep-disturbance tolerance of the subject, and an input indicative of a sleep-disturbance tolerance of the at least one other person.

129. The apparatus according to any one of claims 105-120, wherein the control unit is further configured to activate a noise-cancelation device for the at least one other person, upon activating the medical device.

130. A method for activating a medical device for a subject who is sleeping in proximity to at least one other person, the method comprising:

using at least one sensor:

monitoring the subject and the at least one other person, and

generating a respective signal for the subject and for the at least one other person, in response to the monitoring; and

using a control unit:

analyzing the signals,

based on the analyzing, identifying (i) at least one physiological parameter of the subject, and (ii) at least one sleep-related parameter of the at least one other person, and

activating the medical device at least in response to the physiological parameter of the subject and the sleep-related parameter of the at least one other person.

131. The method according to claim 130, wherein using the at least one sensor comprises using at least two sensors.

132. The method according to claim 130, wherein identifying the at least one sleep-related parameter of the at least one other person comprises identifying a stage of sleep of the at least one other person.

133. The method according to claim 130, wherein the method comprises not activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person not being in a deep sleep.

134. The method according to claim 130, wherein the method comprises not activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being awake.

135. The method according to claim 130, wherein activating the medical device in response to the sleep-related parameter of the at least one other person comprises activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being asleep.

136. The method according to claim 135, wherein activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being asleep comprises activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being in a deep sleep.

137. The method according to any one of claims 130-136, wherein the medical device includes a continuous positive airway pressure device, and wherein activating the medical device comprises activating the continuous positive airway pressure device.

138. Apparatus for use with a person who is on a resting surface and for use with an illuminator, the apparatus comprising:

a sensor, configured to monitor the person, and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, calculate a bed-exit likelihood selected from the group consisting of: a likelihood that the person has left the resting surface, and a likelihood that the person is preparing to leave the resting surface,

in response to the bed-exit likelihood, select an illumination intensity value from a set of at least three values, and

set an illumination intensity of the illuminator to the selected illumination intensity value.

139. The apparatus according to claim 138, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

140. The apparatus according to claim 138, wherein the control unit is configured to:

calculate a likelihood that the person is awake, in response to analyzing the signal, and calculate the bed-exit likelihood in response thereto.

141. The apparatus according to claim 138, wherein the control unit is configured to: calculate a likelihood that the person is sitting, in response to analyzing the signal, and calculate the bed-exit likelihood in response thereto.

142. The apparatus according to claim 138, wherein the control unit is configured to: calculate a signal-to-noise ratio, in response to analyzing the signal, and

calculate the bed-exit likelihood in response thereto.

143. The apparatus according to claim 142, wherein the control unit is configured to calculate a higher bed-exit likelihood in response to calculating a first signal-to-noise ratio, relative to calculating a second signal-to-noise ratio that is higher than the first signal-to- noise ratio.

144. The apparatus according to claim 138, wherein the control unit is configured to: calculate the likelihood that the person has left the resting surface, and in response thereto, identify a first illumination intensity value from the set,

calculate the likelihood that the person is preparing to leave the resting surface, and in response thereto, identify a second illumination intensity value from the set,

select a maximum value of the first illumination intensity value and the second illumination intensity value, and

set the illumination intensity of the illuminator to the maximum value.

145. The apparatus according to claim 138, wherein the control unit is configured to select the illumination intensity value by:

obtaining an output of a function that is generally monotonically increasing with respect to the bed-exit likelihood, by applying the function to the bed-exit likelihood, and selecting the output of the function as the illumination intensity value.

146. The apparatus according to claim 138, wherein the control unit is configured to select a zero illumination intensity value, in response to the bed-exit likelihood being less than a threshold.

147. The apparatus according to claim 138, wherein the control unit is configured to select the illumination intensity value further in response to a parameter selected from the group consisting of: a time of day, a date, a geographical location, a sunrise time, and a sunset time.

148. The apparatus according to claim 138, further comprising an ambient light detector configured to detect a level of ambient light, wherein the control unit is configured to select the illumination intensity value further in response to the level of ambient light.

149. The apparatus according to claim 138, wherein the control unit is further configured to:

in response to the bed-exit likelihood, select an illumination color value from a set of at least two color values, and

set an illumination color of the illuminator to the selected illumination color value.

150. The apparatus according to any one of claims 138-149,

wherein the person is a first person, and the apparatus is further for use with a second person,

wherein the control unit is further configured to identify a second-person-sleeping likelihood that the second person is sleeping, and

wherein the control unit is configured to select the illumination intensity value further in response to the second-person- sleeping likelihood.

151. The apparatus according to claim 150, wherein the control unit is configured to select the illumination intensity value by:

obtaining an output of a function that is generally monotonically decreasing with respect to the second-person-sleeping likelihood, by applying the function to the second- person-sleeping likelihood, and

selecting the output of the function as the illumination intensity value.

152. The apparatus according to claim 150, wherein the control unit is configured to select a zero illumination intensity value, in response to the second-person-sleeping likelihood exceeding a threshold.

153. The apparatus according to claim 150,

wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal, and

wherein the control unit is configured to identify the second-person-sleeping likelihood by:

analyzing the motion signal, and in response thereto, calculating the second-person-sleeping likelihood.

154. The apparatus according to claim 150,

wherein the sensor is a first sensor and the signal is a first signal,

wherein the apparatus further comprises a second sensor, configured to monitor the second person and generate a second signal in response thereto, and

wherein the control unit is configured to identify the second-person-sleeping likelihood by:

analyzing the second signal, and

in response thereto, calculating the second-person-sleeping likelihood.

155. The apparatus according to claim 154,

wherein the first sensor comprises a first motion sensor, and the first signal includes a first motion signal, and

wherein the second sensor comprises a second motion sensor, and the second signal includes a second motion signal.

156. The apparatus according to claim 150, wherein the control unit is configured to identify the second-person- sleeping likelihood in response to a time of day.

157. The apparatus according to claim 150, further comprising an input unit, wherein the control unit is configured to identify the second-person-sleeping likelihood in response to an input to the input unit.

158. The apparatus according to claim 150,

wherein the illuminator is a first illuminator and the apparatus is further for use with a second illuminator,

wherein the resting surface is at least one resting surface,

wherein, when the first person and second person are on the at least one resting surface, the first illuminator is closer to the first person than to the second person, and the second illuminator is closer to the second person than to the first person, and

wherein the control unit is further configured to set an illumination intensity of the second illuminator to be different from the illumination intensity of the first illuminator, in response to (a) a likelihood selected from the group consisting of: a likelihood that the second person has left the at least one resting surface, and a likelihood that the second person is preparing to leave the at least one resting surface, and (b) a likelihood that the first person is sleeping.

159. The apparatus according to any one of claims 138-149, wherein the control unit is further configured to:

select an illumination color value from a set of at least two color values, in response to a time of day, and

set an illumination color of the illuminator to the selected illumination color value.

160. The apparatus according to any one of claims 138-149, wherein the control unit is further configured to:

in response to analyzing the signal, ascertain that the person is in a light sleep stage on the resting surface, and

in response thereto, drive the illuminator to wake the person by illuminating.

161. Apparatus for use with a waking mechanism that executes a waking routine to wake a subject who is sleeping near a second person, the apparatus comprising:

a sensor, configured to monitor the second person and generate a signal in response thereto; and

a control unit, configured to, prior to execution of the waking routine:

analyze the signal,

in response thereto, identify a likelihood that the second person is sleeping, and

in response to the likelihood, set an intensity of the waking routine by sending a signal to the waking mechanism.

162. The apparatus according to claim 161, wherein the sensor comprises a motion sensor, configured to sense motion of the second person, and the signal includes a motion signal.

163. The apparatus according to claim 161 , wherein the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has not woken, and

in response thereto, increase an intensity of the waking routine.

164. The apparatus according to claim 161, wherein the waking mechanism includes a device selected from the group consisting of: an alarm clock, a mobile phone, an illuminator, and a vibrating element, the apparatus being for use with the selected device.

165. The apparatus according to any one of claims 161 -164, wherein the control unit is further configured to (i) identify a sleep stage of the second person, and (ii) set the intensity of the waking routine in response to the identified sleep stage.

166. Apparatus for use with a waking mechanism that executes a waking routine to wake a subject who is on a resting surface, the apparatus comprising:

a sensor, configured to monitor the subject and generate a signal in response thereto; and

a control unit, configured to:

prior to execution of the waking routine, analyze the signal,

in response thereto, identify that the subject is not on the resting surface, and in response thereto, inhibit the waking mechanism from executing the waking routine.

167. The apparatus according to claim 166, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

168. The apparatus according to claim 166, wherein the control unit is further configured to:

identify a likelihood that a second person is sleeping near the subject, and

set an intensity of the waking routine, in response to the likelihood, by sending a signal to the waking mechanism.

169. The apparatus according to claim 166, wherein the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has not woken, and

in response thereto, increase an intensity of the waking routine.

170. The apparatus according to any one of claims 166-169, wherein the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has not woken, and

in response thereto, change an angle of the resting surface.

171. The apparatus according to claim 170, wherein the control unit is further configured to:

in response to analyzing the signal, identify a sleep stage of the subject, and change the angle of the resting surface, in response to the identified sleep stage.

172. The apparatus according to any one of claims 166-169, wherein the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has woken, and

in response thereto, change an angle of the resting surface.

173. The apparatus according to any one of claims 166-169, wherein the waking mechanism includes a device selected from the group consisting of: an alarm clock, a mobile phone, an illuminator, and a vibrating element, the apparatus being for use with the selected device.

174. Apparatus for use with (i) a waking mechanism that executes a waking routine to wake a subject who is on a resting surface, and (ii) an output unit, the apparatus comprising: a sensor, configured to monitor the subject and generate a signal in response thereto; and

a control unit, configured to:

prior to execution of the waking routine, analyze the signal,

in response to analyzing the signal, identify a sleep stage of the subject, and upon the subject waking, drive the output unit to output the identified sleep stage to the subject, only if the identified sleep stage is a slow-wave sleep stage.

175. The apparatus according to claim 174, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

176. The apparatus according to claim 174, wherein the control unit is further configured to, upon the subject waking, drive the output unit to output a recommendation to the subject to perform a wakefulness-inducing activity, only if the identified sleep stage is a slow-wave sleep stage.

177. The apparatus according to claim 174, wherein the control unit is further configured to, upon the subject waking, drive the output unit to output a recommendation to the subject to refrain from operating a vehicle for a specific period of time, only if the identified sleep stage is a slow-wave sleep stage.

178. The apparatus according to any one of claims 174-177, wherein the control unit is further configured to:

in response to analyzing the signal prior to the execution of the waking routine, identify at least one physiological parameter of the subject, and

drive the output unit to output the physiological parameter, upon the subject waking.

179. The apparatus according to claim 178, wherein the physiological parameter is a parameter selected from the group consisting of: a heart rate, a heart rate variability, a respiration rate, a respiration rate variability, and a blood pressure,

the control unit being configured to identify the selected parameter.

180. The apparatus according to claim 178, wherein the control unit is configured to drive the output unit to output the physiological parameter, only if the physiological parameter deviates from a baseline value.

181. The apparatus according to claim 180, wherein the control unit is further configured to, in response to the physiological parameter deviating from the baseline value, drive the output unit to output a recommendation to the subject selected from the group consisting of: a recommendation to perform a specific activity, and a recommendation to refrain from performing a specific activity.

182. Apparatus for identifying a posture of a subject, the apparatus comprising:

a single motion sensor, configured to sense motion of a subject without contacting or viewing the subject or clothes the subject is wearing, and generate a motion signal in response thereto; and

a control unit, configured to:

during a learning stage:

receive a plurality of inputs indicative of postures of a person at respective times, and by using the plurality of inputs and by analyzing the motion signal at the respective times, learn a posture-identification technique, and during an operative stage that follows the learning stage:

analyze the motion signal, and

in response thereto, use the learned posture-identification technique to identify a posture of the subject.

183. The apparatus according to claim 182, wherein the control unit is further configured to verify compliance of a healthcare provider for the subject with a pressure-ulcer-prevention protocol, in response to identifying the posture.

184. Apparatus for monitoring a subject, the apparatus comprising:

a motion sensor, configured to sense motion of the subject on a resting surface and generate a motion signal in response thereto; and

a control unit, configured to:

analyze the motion signal, and, in response thereto, (a) identify that the subject has lain on the resting surface, and (b) subsequently to the subject lying on the resting surface, identify a physiological parameter relating to a physiological slowing time of the subject,

identify that the physiological parameter may be indicative of a physiological deterioration of the subject, and

in response thereto, generate an output.

185. The apparatus according to claim 184, wherein the control unit is configured to identify that the physiological parameter may be indicative of a physiological deterioration of the subject by identifying that the physiological parameter deviates from a baseline value.

186. The apparatus according to claim 185, wherein the control unit is further configured to calculate the baseline value by analyzing the motion signal following each of a plurality of instances of the subject lying on the resting surface.

187. The apparatus according to claim 184, wherein the control unit is configured to identify that the physiological parameter may be indicative of a physiological deterioration of the subject by identifying a deteriorating trend in the physiological parameter.

188. The apparatus according to claim 184, wherein the physiological parameter is a parameter selected from the group consisting of: a parameter relating to a slowing of a heart rate of the subject, and a parameter relating to a slowing of a respiratory rate of the subject, the control unit being configured to identify the selected parameter.

189. The apparatus according to claim 184, wherein the control unit is further configured to:

identify a possible physiological condition of the subject, in response to identifying that the physiological parameter may be indicative of a physiological deterioration of the subject, and

generate an output in response thereto.

190. The apparatus according to any one of claims 184-189,

wherein the control unit is further configured to, in response to analyzing the motion signal, identify an activity level of the subject, and

wherein the control unit is configured to regulate the output in response to the identified activity level.

191. The apparatus according to claim 190, wherein the control unit is configured to regulate the output by generating the output only if an adjusted physiological parameter deviates from the baseline value,

wherein the adjusted physiological parameter is the physiological parameter adjusted in response to the identified activity level.

192. The apparatus according to claim 190, wherein the control unit is configured to regulate the output by generating the output only if the physiological parameter deviates from an adjusted baseline value,

wherein the adjusted baseline value is the baseline value adjusted in response to the identified activity level.

193. The apparatus according to claim 190, wherein the control unit is configured to regulate the output by withholding generating the output if the identified activity level is greater than a threshold.

194. Apparatus for monitoring a subject, the apparatus comprising: a sensor plate comprising an upper surface that is configured to deflect in response to motion of the subject;

a sensor disposed underneath the upper surface, such that a center of the sensor is disposed at a distance from a center of the sensor plate that is between 30% and 70% of a length of a line drawn from the center of the sensor plate to a perimeter of the sensor plate, through the center of the sensor,

the sensor being configured to generate a motion signal in response to the deflection of the upper surface; and

a control unit configured to analyze the motion signal and to generate an output indicative of a condition of the subject, in response thereto.

195. The apparatus according to claim 194, wherein an upper surface area of the sensor is between 0.2 and 30 cm2.

196. The apparatus according to claim 194, wherein an upper surface area of the sensor plate is between 20 and 200 cm2.

197. The apparatus according to claim 194, wherein an upper surface area of the sensor plate is between 200 and 710 cm2.

198. The apparatus according to any one of claims 194-197, wherein an upper surface area of the sensor plate is between 2 and 8 times greater than an upper surface area of the sensor.

199. The apparatus according to any one of claims 194-197, wherein an upper surface area of the sensor plate is between 8 and 30 times greater than an upper surface area of the sensor.

200. Apparatus for use with a communication device belonging to a first person, the communication device generating an alert upon receiving an incoming communication, the apparatus comprising:

a sensor, configured to monitor a second person who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify a likelihood that the second person is sleeping, and

control an intensity of the alert in response to the identified likelihood.

201. The apparatus according to claim 200, wherein the sensor comprises a motion sensor, configured to sense motion of the second person on the resting surface, and the signal includes a motion signal.

202. The apparatus according to claim 200, wherein the control unit is configured to control the intensity of the alert further in response to the communication device receiving the incoming communication.

203. The apparatus according to claim 200, wherein the communication device includes a mobile phone, the apparatus being for use with the mobile phone.

204. The apparatus according to claim 200, wherein the control unit is configured to inhibit the communication device from activating the alert, in response to the identified likelihood.

205. The apparatus according to any one of claims 200-204,

wherein the control unit is further configured to, in response to analyzing the signal, identify a sleep stage of the second person, and

wherein the control unit is configured to control the intensity of the alert in response to the identified sleep stage.

206. Apparatus for use with a communication device that generates an alert upon receiving an incoming communication, the apparatus comprising:

a sensor, configured to monitor a subject who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify a sleep stage of the subject, and

control an intensity of the alert in response to the identified sleep stage.

207. The apparatus according to claim 206, wherein the sensor comprises a motion sensor, configured to sense motion of the subject on the resting surface, and the signal includes a motion signal.

208. The apparatus according to claim 206, wherein the control unit is configured to control the intensity of the alert further in response to the communication device receiving the incoming communication.

209. The apparatus according to claim 206, wherein the control unit is further configured to:

identify a likelihood that a second person is sleeping near the subject, and

control the intensity of the alert, further in response to the likelihood.

210. The apparatus according to claim 206, wherein the communication device includes a mobile phone, the apparatus being for use with the mobile phone.

211. The apparatus according to any one of claims 206-210, wherein the control unit is configured to control the intensity of the alert by setting the intensity to be higher in response to the identified sleep stage being a first sleep stage, relative to the identified sleep stage being a second sleep stage that is deeper than the first sleep stage.

212. The apparatus according to claim 211 , wherein the control unit is configured to inhibit the communication device from activating the alert, in response to the identified sleep stage being a slow-wave sleep stage.

213. The apparatus according to any one of claims 206-210, wherein the control unit is configured to control the intensity of the alert by setting the intensity to be lower in response to the identified sleep stage being a first sleep stage, relative to the identified sleep stage being a second sleep stage that is deeper than the first sleep stage.

214. Apparatus for inhibiting outgoing communication from a communication device, the apparatus comprising:

a sensor, configured to monitor a subject who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify that the subject is sleeping, and

in response to identifying that the subject is sleeping, inhibit outgoing communication from the communication device.

215. The apparatus according to claim 214, wherein the sensor comprises a motion sensor, configured to sense motion of the subject on the resting surface, and the signal includes a motion signal.

216. The apparatus according to claim 214 or 215, wherein the control unit is configured to inhibit outgoing communication from the communication device by at least partially disabling the communication device.

217. The apparatus according to claim 214 or 215, wherein the control unit is configured to inhibit outgoing communication from the communication device by preventing outgoing communication from the communication device.

218. The apparatus according to claim 214 or 215, wherein the control unit is configured to inhibit outgoing communication from the communication device by driving the communication device to:

prompt a user of the communication device to input to the communication device an answer to an objective question, and

allow outgoing communication from the communication device only if the answer is correct.

219. Apparatus for use with a subject who is on a resting surface, the apparatus comprising:

a sensor, configured to monitor the subject and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify (a) a likelihood selected from the group consisting of: a likelihood that the subject left the resting surface, and a likelihood that the subject is preparing to leave the resting surface, and (b) that the subject is sleeping, and

in response thereto, generate an alert indicating that (a) and (b) are occurring at the same time.

220. The apparatus according to claim 219, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

221. Apparatus for use with a mechanism that is activated by a first person, the apparatus comprising: a sensor, configured to monitor a second person who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify a likelihood that the second person is sleeping, and

delay the activation of the mechanism in response to the identified likelihood.

222. The apparatus according to claim 221, wherein the sensor comprises a motion sensor, configured to sense motion of the second person on the resting surface, and the signal includes a motion signal.

223. The apparatus according to claim 221, wherein the mechanism includes a mechanism selected from the group consisting of: a toilet-flushing mechanism, and window-opening mechanism, the apparatus being for use with the selected mechanism.

224. The apparatus according to any one of claims 221 -223, wherein the control unit is configured to inhibit the activation of the mechanism, in response to the identified likelihood.

225. The apparatus according to any one of claims 221-223,

wherein the control unit is further configured to, in response to analyzing the signal, identify a sleep stage of the second person, and

wherein the control unit is configured to delay the activation of the mechanism in response to the identified sleep stage.

226. Apparatus comprising:

a motion sensor, configured to sense motion of a subject who is on a resting surface and generate a motion signal in response thereto;

a mains-power-connection device comprising electrically-conductive protrusions that are configured to fit into holes in an electric socket, the mains-power-connection device being configured to receive electricity through the electrically- conductive protrusions and use the electricity to deliver power to the motion sensor; and

a control unit configured to analyze the motion signal and to generate an output in response thereto, the control unit being disposed within the mains-power-connection device such that, whenever the protrusions are placed inside the holes, the control unit is at least partially within 10 cm of the electric socket.

227. Apparatus for use with a burglar alarm that includes a detector configured to detect activity and to generate an activity-detection signal in response thereto, the apparatus comprising:

a sensor, configured to monitor a resting surface and to generate a signal in response thereto; and

a control unit, configured to:

identify a correspondence between (a) the activity-detection signal, and (b) the signal that is generated by the sensor, and

inhibit the burglar alarm from being triggered, in response to the correspondence.

228. The apparatus according to claim 227, wherein the detector is a motion detector, such that the burglar alarm includes a motion-detection-based alarm, the control unit being configured to inhibit the motion-detection-based alarm from being triggered.

229. The apparatus according to claim 228, wherein the burglar alarm includes a perimeter alarm, and wherein the control unit is configured to not inhibit the perimeter alarm from being triggered, while inhibiting the motion-detection-based alarm from being triggered.

230. The apparatus according to claim 227, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

231. The apparatus according to any one of claims 227-230, wherein the control unit is configured to:

analyze the signal,

in response thereto, ascertain that a person has left the resting surface, and

in response thereto, inhibit the burglar alarm from being triggered.

232. The apparatus according to claim 231 , wherein the control unit is configured to inhibit the burglar alarm from being triggered at a given time only if the person left the resting surface more than a threshold amount of time prior to the given time, the threshold amount of time being an input to the control unit.

233. Apparatus for use with a burglar alarm, the apparatus comprising:

a sensor, configured to monitor a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, ascertain that a person is on the resting surface, and in response thereto, place the burglar alarm in an armed state.

234. The apparatus according to claim 233, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

235. Apparatus, comprising:

a sensor, configured to monitor a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, ascertain that a person is on the resting surface, and in response thereto, perform an action selected from the group consisting of: lock a door, reduce an intensity of a light, turn off a device, turn off an appliance, generate a notification that a door is unlocked, generate a notification that a light is on, generate a notification that a device is on, and generate a notification that an appliance is on.

236. The apparatus according to claim 235, wherein the sensor comprises a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

Description:
MONITORING A SLEEPING SUBJECT

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims the benefit of (i) U.S. Provisional Application 61/847,579, filed July 18, 2013, and (ii) U.S. Provisional Application 61/926,499, filed January 13, 2014.

The above-referenced applications, each of which is entitled "Monitoring, Predicting and Treating Clinical Episodes," are assigned to the assignee of the present application and are incorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates generally to monitoring subjects and predicting and monitoring abnormal physiological conditions and treating those conditions, and specifically to methods and apparatus for predicting and monitoring abnormal physiological conditions by non-contact measurement and analysis of characteristics of physiological and/or physical parameters.

BACKGROUND

Chronic diseases are often expressed by episodic worsening of clinical symptoms. Preventive treatment of chronic diseases reduces the overall dosage of required medication and associated side effects, and lowers mortality and morbidity. Generally, preventive treatment should be initiated or intensified as soon as the earliest clinical symptoms are detected, in order to prevent progression and worsening of the clinical episode and to stop and reverse the pathophysiological process. Therefore, the ability to accurately monitor pre- episodic indicators increases the effectiveness of preventive treatment of chronic diseases.

Many chronic diseases cause systemic changes in vital signs, such as breathing and heartbeat patterns, through a variety of physiological mechanisms. For example, common respiratory disorders, such as asthma, chronic obstructive pulmonary disease (COPD), sleep apnea and cystic fibrosis (CF), are direct modifiers of breathing and/or heartbeat patterns. Other chronic diseases, such as diabetes, epilepsy, and certain heart conditions (e.g., congestive heart failure (CHF)), are also known to modify cardiac and breathing activity. In the case of certain heart conditions, such modifications typically occur because of pathophysiologies related to fluid retention and general cardiovascular insufficiency. Other signs such as coughing and sleep restlessness are also known to be of importance in some clinical situations.

Many chronic diseases induce systemic effects on vital signs. For example, some chronic diseases interfere with normal breathing and cardiac processes during wakefulness and sleep, causing abnormal breathing and heartbeat patterns.

Breathing and heartbeat patterns may be modified via various direct and indirect physiological mechanisms, resulting in abnormal patterns related to the cause of modification. Some respiratory diseases, such as asthma, and some heart conditions, such as CHF, are direct breathing modifiers. Other metabolic abnormalities, such as hypoglycemia and other neurological pathologies affecting autonomic nervous system activity, are indirect breathing modifiers.

SUMMARY OF THE INVENTION

Some applications of the present invention provide methods and systems for monitoring subjects for the occurrence or recurrence of a physiological event, for example, a chronic illness or ailment. This monitoring assists the subject or healthcare provider in treating the ailment or mitigating the effects of the ailment. Some applications of the present invention provide techniques for monitoring vital and non-vital signs using automated sensors and electronic signal processing, in order to detect and characterize the onset of a physiological event, and, for some applications, to treat the event, such as with therapy or medication.

In some cases, a subject is monitored not to predict or track disease situations, but rather, in order to allow the subject to optimize long term health and fitness as part of a 'wellness' approach, and/or in order to control household devices (e.g., bedside lamps, mobile phones, alarm clocks, etc.) in a manner that increases their usefulness and/or minimizes the disturbances causes by these devices. There is therefore provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to:

analyze the motion signal,

in response thereto, identify an effect of large body-movement of the second person on sleep of the subject, and

in response thereto, generate a sleep-disturbance output.

In some applications, the motion sensor consists of a single motion sensor.

In some applications, the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

In some applications, the sleep-disturbance output includes an assessment of an effectiveness of a parameter at reducing the effect of the large body-movement of the second person on the sleep of the subject, the control unit being configured to generate the assessment of the effectiveness of the parameter.

In some applications, the parameter is selected from the group consisting of: a parameter of a mattress on which the subject is sleeping, a parameter of the bed, a sleeping arrangement of the subject and the second person, and a room-environment parameter, the control unit being configured to generate the assessment of the effectiveness of the selected parameter.

In some applications,

the selected parameter includes a parameter of the mattress, and

the assessment of the effectiveness of the parameter of the mattress includes a comparison between (a) the effectiveness of the parameter of the mattress, and (b) an effectiveness of the parameter of a different type of mattress,

the control unit being configured to generate the comparison. In some applications, the sleep-disturbance output includes a recommendation to reduce the effect of the large body-movement of the second person on the sleep of the subject by adjusting an adjustable parameter, the control unit being configured to generate the recommendation.

In some applications, the adjustable parameter is selected from the group consisting of: a parameter of a mattress on which the subject is sleeping, a parameter of the bed, a sleeping arrangement of the subject and the second person, and a room-environment parameter, the control unit being configured to generate the recommendation to adjust the selected parameter.

In some applications, the sleep-disturbance output includes instructions to a device to adjust an adjustable parameter, the control unit being configured to generate the instructions.

In some applications, the adjustable parameter is selected from the group consisting of: a parameter of a mattress on which the subject is sleeping, a parameter of the bed, a sleeping arrangement of the subject and the second person, and a room-environment parameter, the control unit being configured to generate the instructions to the device to adjust the selected parameter.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor (a) configured to detect motion of the subject, and to generate a motion signal in response thereto, and (b) including a mechanical-filtering element configured to reduce a response of the motion sensor to motion of the second person, relative to motion of the subject; and

a control unit configured to:

by analyzing the motion signal, assess an effectiveness of the mechanical- filtering element at reducing the response of the motion sensor to motion of the second person, and

generate an output in response thereto.

In some applications, the motion sensor consists of a single motion sensor. In some applications, the motion sensor is configured to detect the motion of the subject without contacting or viewing the subject or clothes the subject is wearing.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor, including:

a sensor element; and

a sensor plate, including:

a sensor-holding plate, shaped to hold the sensor element; and a noise filter plate that is distinct from the sensor-holding plate and is shaped to define a noise filter rim,

the motion sensor being configured to:

be placed on the bed such that when the subject and the second person are on the bed, the sensor plate is disposed underneath the subject and not disposed underneath the second person,

when the sensor element is being held by the sensor-holding plate, detect motion of the subject, by the sensor-holding plate moving in response to motion of the subject, and

generate a motion signal in response thereto,

the noise filter rim being more rigid than a central portion of the sensor-holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the noise filter rim were not more rigid than the central portion of the sensor-holding plate; and

a control unit, configured to analyze the motion signal, and to generate an output in response thereto.

In some applications, a thickness of the noise filter rim, measured between an inner perimeter of the noise filter rim and an outer perimeter of the noise filter rim, is between 2 mm and 8 mm.

In some applications, the apparatus further includes a speaker, and: the sensor plate and speaker are configured to be placed underneath a head of the subject, and

the speaker is configured to play music in response to the output generated by the control unit.

In some applications, the sensor-holding plate is reversibly couplable to the noise filter plate.

In some applications, the sensor-holding plate is shaped to define a sensor-holding- plate rim, the noise filter plate is shaped to define a groove therein, and the sensor-holding plate is reversibly couplable to the noise filter plate by the sensor-holding-plate rim being fittable into the groove.

In some applications, (a) a width of the groove in the noise filter plate, measured in a direction from an outer perimeter of the groove toward an inner perimeter of the groove, is 0.05 - 2 mm greater than (b) a thickness of the sensor-holding-plate rim, measured in a direction from an outer perimeter of the sensor-holding plate toward an inner perimeter of the sensor-holding plate.

In some applications, the sensor-holding plate is circular.

In some applications, the sensor element is circular, and a ratio of a diameter of the sensor element to a diameter of the sensor-holding plate is between 0.1 and 0.6.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor, including:

a sensor element; and

a sensor plate including a sensor-holding plate that is (a) shaped to hold the sensor element, and (b) shaped to define a sensor-holding-plate rim that is shaped to define one or more slots therein,

the motion sensor being configured to:

be placed on the bed such that when the subject and the second person are on the bed, the sensor plate is disposed underneath the subject and not disposed underneath the second person, when the sensor element is being held by the sensor-holding plate, detect motion of the subject, by the sensor-holding plate moving in response to motion of the subject, and

generate a motion signal in response thereto,

the sensor-holding-plate rim being more rigid than a central portion of the sensor- holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the sensor-holding-plate rim were not more rigid than the central portion of the sensor-holding plate; and

a control unit, configured to analyze the motion signal, and to generate an output in response thereto.

In some applications, a thickness of the sensor-holding-plate rim, measured between an inner perimeter of the sensor-holding-plate rim and an outer perimeter of the sensor- holding-plate rim, is between 2 mm and 8 mm.

In some applications, a thickness of the sensor-holding-plate rim, measured between an inner perimeter of the sensor-holding-plate rim and an outer perimeter of the sensor- holding-plate rim, is between 8 mm and 20 mm.

In some applications, the apparatus further includes a speaker, and:

the sensor plate and speaker are configured to be placed underneath a head of the subject, and

the speaker is configured to play music in response to the output generated by the control unit.

In some applications, the sensor-holding-plate rim is shaped such that the slots in the sensor-holding-plate rim are arranged at least four sites around the rim.

In some applications, the sensor-holding-plate rim includes one or more detachable parts, such that the sensor-holding-plate rim is shaped to define the one or more slots therein upon detachment of the one or more detachable parts.

In some applications, the sensor plate further includes a noise filter plate that is distinct from the sensor-holding plate and is shaped to define a noise filter rim,

the noise filter rim being more rigid than a central portion of the sensor-holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the noise filter rim were not more rigid than the central portion of the sensor-holding plate.

In some applications, a thickness of the noise filter rim, measured between an inner perimeter of the noise filter rim and an outer perimeter of the noise filter rim, is between 2 mm and 8 mm.

In some applications, the sensor-holding plate is circular.

In some applications, the sensor element is circular, and a ratio of a diameter of the sensor element to a diameter of the sensor plate is between 0.1 and 0.6.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to identify that a portion of the motion signal was generated in response to motion of the second person, and not in response to motion of the subject, by identifying that the portion exhibits ringing.

In some applications, the motion sensor consists of a single motion sensor.

In some applications, the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

In some applications, the control unit is configured to identify that the portion of the motion signal was generated in response to respiratory motion of the second person.

In some applications, the control unit is configured to identify that the portion of the motion signal was generated in response to cardiac motion of the second person.

In some applications, the control unit is configured to identify that the portion of the motion signal was generated in response to large body-movement of the second person. There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to:

by analyzing a portion of the motion signal that was generated in response to motion of the subject, calculate an amplitude threshold,

identify that an amplitude of a given portion of the motion signal is less than the amplitude threshold, and

in response thereto, identify that the given portion of the motion signal was generated in response to large body-movement of the second person, and not in response to motion of the subject.

In some applications, the motion sensor consists of a single motion sensor.

In some applications, the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who shares a bed with a second person, the apparatus including:

a motion sensor configured to detect motion of the subject and motion of the second person and to generate a motion signal in response thereto; and

a control unit configured to:

identify a subject-motion component of the motion signal that was generated in response to motion of the subject,

ascertain that an amplitude of the subject- motion component is changed by a threshold amount following a given portion of the motion signal, relative to before the given portion, and in response thereto, identify that the given portion of the motion signal was generated in response to large body-movement of the subject, and not in response to motion of the second person.

In some applications, the motion sensor consists of a single motion sensor.

In some applications, the motion sensor is configured to detect the motion of the subject and the motion of the second person without contacting or viewing the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.

There is further provided, in accordance with some applications of the present invention, a method for identifying inefficient respiration of a subject, the method including: measuring, with a device, an amplitude of a respiration signal of the subject;

measuring, with the device, a volume of respiration flow of the subject;

calculating, by a processor, a relationship of the amplitude to the volume; and identifying, by the processor, inefficient respiration of the subject, in response to the calculated relationship.

For some applications,

measuring, with the device, the amplitude of the respiration signal of the subject includes measuring the amplitude with a contact-less sensor, and

measuring, with the device, the volume of respiration flow of the subject includes measuring the volume with a contact-less sensor.

For some applications, calculating the relationship includes calculating a quotient of the amplitude and the volume, and identifying the inefficient respiration includes comparing the quotient to a baseline value and identifying the inefficient respiration in response thereto.

For some applications, calculating the quotient includes dividing the amplitude by the volume, and identifying the inefficient respiration includes identifying the inefficient respiration in response to determining that the quotient is increased by a factor of 1.5 - 4 relative to the baseline value.

There is further provided, in accordance with some applications of the present invention, a method for identifying inefficient respiration of a subject, the method including: measuring, with a first device, an amplitude of a respiration signal of the subject; measuring, with a second device, a volume of respiration flow of the subject; calculating, by a processor, a relationship of the amplitude to the volume; and identifying, by the processor, inefficient respiration of the subject, in response to the calculated relationship.

For some applications,

measuring, with the first device, the amplitude of the respiration signal of the subject includes measuring the amplitude with a contact-less sensor, and

measuring, with the second device, the volume of respiration flow of the subject includes measuring the volume with a contact-less sensor.

For some applications, calculating the relationship includes calculating a quotient of the amplitude and the volume, and identifying the inefficient respiration includes comparing the quotient to a baseline value and identifying the inefficient respiration in response thereto.

For some applications,

calculating the quotient includes dividing the amplitude by the volume, and identifying the inefficient respiration includes identifying the inefficient respiration in response to determining that the quotient is increased by a factor of 1.5 - 4 relative to the baseline value.

There is further provided, in accordance with some applications of the present invention, a method for detecting ectopic heartbeats of a subject, the method including:

sensing motion of the subject with a motion sensor, and generating a motion signal that includes a cardiac component, in response thereto;

filtering the cardiac component into a high-frequency component and a low-frequency component;

comparing the high-frequency component to the low-frequency component; and detecting the ectopic heartbeats, using a processor, responsively to the comparing.

For some applications, filtering the cardiac component into a high-frequency component and a low-frequency component includes:

filtering the component with a band-pass filter with a lower cutoff of 6.5 to 11.5 Hz and a higher cutoff of 11.6 to 16.5 Hz; and

filtering the component with a band-pass filter with a lower cutoff of 1.5 to 4.0 Hz and a higher cutoff of 4.1 to 7.5 Hz. For some applications, filtering the cardiac component into a high-frequency component and a low-frequency component includes:

filtering the component with a band-pass filter with a lower cutoff of 8.5 to 9.5 Hz and a higher cutoff of 13.5 to 14.5 Hz; and

filtering the component with a band-pass filter with a lower cutoff of 2.5 to 3.5 Hz and a higher cutoff of 4.5 to 5.5 Hz.

For some applications, comparing the high-frequency component to the low- frequency component includes:

identifying, using the processor, portions of the high-frequency component which indicate heartbeats of the subject; and

for each of the portions, determining whether a corresponding portion of the low- frequency component is indicative of a heartbeat of the subject,

and detecting the ectopic heartbeats includes detecting the ectopic heartbeats in response to determining that the corresponding portion of the low-frequency component is not indicative of a heartbeat.

There is further provided, in accordance with some applications of the present invention, apparatus including:

a motion sensor configured to sense whether a resting surface is occupied, and to generate a signal in response thereto;

a control unit configured to analyze the signal and generate an output in response thereto; and

an alarm clock configured to:

receive the output, and

in response to the output indicating that the resting surface is unoccupied, inhibit itself from sounding.

For some applications, the alarm clock is further configured to sound after a delay, in response to the output indicating that the resting surface is occupied following a previous sounding of the alarm clock.

There is further provided, in accordance with some applications of the present invention, apparatus for use with at least one external power source, the apparatus including: a sensor, configured to sense motion of a subject and generate a motion signal in response thereto; and

a control unit configured to analyze the motion signal, and, in response thereto, generate an output indicative of whether a resting surface is occupied by the subject,

the sensor being configured to:

draw power from the external power source, in response to the output indicating that the resting surface is unoccupied, and

not draw power from the external power source, in response to the output indicating that the resting surface is occupied.

For some applications, the apparatus further includes a rechargeable battery, configured to:

draw power from the external power source, in response to the output indicating that the resting surface is unoccupied, and

not draw power from the external power source, in response to the output indicating that the resting surface is occupied,

and the sensor is configured to draw power from the rechargeable battery, in response to the output indicating that the resting surface is occupied.

There is further provided, in accordance with some applications of the present invention, apparatus for controlling a thermoregulation device, the apparatus including:

a motion sensor, configured to sense motion of a subject and generate a motion signal in response thereto; and

a control unit, configured to:

analyze the motion signal,

in response to the analyzing, monitor sleep stages of the subject, and in response to the monitoring, control the thermoregulation device.

There is further provided, in accordance with some applications of the present invention, apparatus including a motion sensor configured:

to be placed within a pillow of a subject,

to sense motion of the subject, and

to generate a motion signal in response thereto. There is further provided, in accordance with some applications of the present invention, apparatus for calculating an indication of a left-ventricle-ejection-time of a subject, the apparatus including:

a motion sensor, configured to (i) sense motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and (ii) generate a motion signal in response thereto;

an output device; and

a control unit, configured to:

analyze the motion signal,

based on the analyzing, calculate the indication of the left-ventricle-ejection- time of the subject, and

drive the output device to generate an output in response to the calculated indication of the left-ventricle-ejection-time.

In some applications, the control unit is further configured to:

identify a risk of hypovolemia of the subject, in response to the calculated indication of the left-ventricle-ejection-time, and

drive the output device to generate the output, in response to the identified risk of hypovolemia.

There is further provided, in accordance with some applications of the present invention, a method for calculating an indication of a left-ventricle-ejection-time of a subject, the method including:

using a motion sensor:

sensing motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and

generating a motion signal in response to the sensing; and

using a control unit:

analyzing the motion signal,

based on the analyzing, calculating the indication of the left-ventricle-ejection- time of the subject, and

driving an output device to generate an output in response to the calculated indication of the left-ventricle-ejection-time. In some applications, the method further includes using the control unit to identify a risk of hypovolemia of the subject, in response to the calculated indication of the left- ventricle-ejection-time, and driving the output device to generate the output includes driving the output device to generate the output in response to the identified risk of hypovolemia.

There is further provided, in accordance with some applications of the present invention, apparatus for identifying a change in stroke volume of a subject, the apparatus including:

a motion sensor, configured to (i) sense motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and (ii) generate a motion signal in response thereto;

an output device; and

a control unit, configured to:

analyze the motion signal,

based on the analyzing, identify the change in stroke volume of the subject, and

drive the output device to generate an output in response to the identified change.

In some applications, the control unit is further configured to:

identify a risk of hypovolemia of the subject, in response to the identified change in stroke volume, and

drive the output device to generate the output, in response to the identified risk of hypovolemia.

There is further provided, in accordance with some applications of the present invention, a method for identifying a change in stroke volume of a subject, the method including:

using a motion sensor:

sensing motion of the subject, without contacting or viewing the subject or clothes the subject is wearing, and

generating a motion signal in response to the sensing; and

using a control unit:

analyzing the motion signal, based on the analyzing, identifying the change in stroke volume of the subject, and

driving an output device to generate an output in response to the identified change.

In some applications, the method further includes using the control unit to identify a risk of hypovolemia of the subject, in response to the identified change in stroke volume, and driving the output device to generate the output includes driving the output device to generate the output in response to the identified risk of hypovolemia.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a plurality of sleeping subjects, the apparatus including: at least one sensor, configured to:

monitor each of the subjects while the subjects sleep, and

generate a respective signal for each of the subjects, in response to the monitoring; and

a control unit configured to:

analyze the signals,

based on the analyzing, identify at least one sleep-related parameter for each of the subjects, and

at least in response to the identified sleep-related parameters, identify (i) at least one of the subjects for wakening, and (ii) at least one of the subjects not for wakening.

In some applications, the at least one sensor includes at least two sensors.

In some applications, the at least one sensor includes at least one non-contact motion sensor.

In some applications, the at least one sensor includes at least one electromyographic sensor.

In some applications, the at least one sensor includes at least one imaging sensor.

In some applications, the at least one sleep-related parameter for at least one of the sleeping subjects includes a length of time for which the subject has been sleeping, and the control unit is configured to identify the length of time for which the subject has been sleeping.

In some applications, the length of time for which the subject has been sleeping includes a length of time for which the subject has been in a deep sleep, and the control unit is configured to identify the length of time for which the subject has been in a deep sleep.

In some applications, the at least one sleep-related parameter for at least one of the sleeping subjects includes a number of prior awakenings of the subject, and the control unit is configured to identify the number of prior awakenings of the subject.

In some applications, the at least one sleep-related parameter for at least one of the sleeping subjects includes a stage of a sleep cycle of the subject, and the control unit is configured to identify the stage of the sleep cycle.

In some applications, the apparatus further includes a wakening device, and the control unit is further configured to drive the wakening device to wake the at least one of the subjects identified for wakening.

In some applications, the control unit is further configured to generate a report that shows a history of the at least one sleep-related parameter for each of the subjects.

In some applications, the apparatus further includes a second sensor, and the control unit is configured to identify the at least one of the subjects for wakening further in response to receiving an input from the second sensor.

In some applications, the second sensor is configured to sense a physiological parameter of a patient, and the control unit is configured to identify the at least one of the subjects for wakening in response to the sensed physiological parameter.

In some applications, the control unit is configured to:

identify crying of a baby, in response to receiving the input from the second sensor, and

identify the at least one of the subjects for wakening in response to the identified crying. In some applications, the second sensor includes an audio sensor, and the control unit is configured to identify the at least one of the subjects for wakening in response to receiving the input from the audio sensor.

In some applications, the second sensor includes an image sensor, and the control unit is configured to identify the at least one of the subjects for wakening in response to receiving the input from the image sensor.

In some applications, the apparatus is for use with exactly two sleeping subjects.

In some applications, the apparatus is for use with three or more sleeping subjects.

There is further provided, in accordance with some applications of the present invention, a method for use with a plurality of sleeping subjects, the method including:

using at least one sensor:

monitoring each of the subjects while the subjects sleep, and

generating a respective signal for each of the subjects, in response to the monitoring; and

using a control unit:

analyzing the signals,

based on the analyzing, identifying at least one sleep-related parameter for each of the subjects, and

at least in response to the identified sleep-related parameters, identifying (i) at least one of the subjects for wakening, and (ii) at least one of the subjects not for wakening.

In some applications, using the at least one motion sensor includes using at least two motion sensors.

In some applications, identifying the at least one sleep-related parameter for at least one of the sleeping subjects includes identifying a length of time for which the subject has been sleeping.

In some applications, identifying the length of time for which the subject has been sleeping includes identifying a length of time for which the subject has been in a deep sleep. In some applications, identifying the at least one sleep-related parameter for at least one of the sleeping subjects includes identifying a number of prior awakenings of the subject.

In some applications, identifying the at least one sleep-related parameter for at least one of the sleeping subjects includes identifying a stage of a sleep cycle of the subject.

In some applications, the method further includes waking the at least one of the subjects identified for wakening.

In some applications, the method further includes generating a report at regular intervals, the report showing a history of the at least one sleep-related parameter for each of the subjects.

In some applications, identifying the at least one of the subjects for wakening includes identifying the at least one of the subjects for wakening further in response to receiving an input from a second sensor.

In some applications, the second sensor is configured to sense a physiological parameter of a patient, and identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor includes identifying the at least one of the subjects for wakening in response to the sensed physiological parameter.

In some applications, identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor includes:

identifying crying of a baby, in response to the input, and

identifying the at least one of the subjects for wakening, in response to the identified crying.

In some applications, the second sensor includes an audio sensor, and identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor includes identifying the at least one of the subjects for wakening in response to receiving the input from the audio sensor.

In some applications, the second sensor includes an image sensor, and identifying the at least one of the subjects for wakening in response to receiving the input from the second sensor includes identifying the at least one of the subjects for wakening in response to receiving the input from the image sensor. In some applications, the method is for use with exactly two sleeping subjects.

In some applications, the method is for use with three or more sleeping subjects.

There is further provided, in accordance with some applications of the present invention, apparatus for activating a medical device for a subject who is sleeping in proximity to at least one other person, the apparatus including:

at least one sensor, configured to:

monitor the subject and the at least one other person, and

generate a respective signal for the subject and for the at least one other person, in response to the monitoring; and

a control unit configured to:

analyze the signals,

based on the analyzing, identify (i) at least one physiological parameter of the subject, and (ii) at least one sleep-related parameter of the at least one other person, and

activate the medical device at least in response to the physiological parameter of the subject and the sleep-related parameter of the at least one other person.

In some applications, the at least one sensor includes at least two sensors.

In some applications, the at least one sensor includes at least one non-contact motion sensor.

In some applications, the at least one sensor includes at least one electromyographic sensor.

In some applications, the at least one sensor includes at least one imaging sensor.

In some applications, the at least one physiological parameter of the subject includes a sleep-related parameter of the subject, and the control unit is configured to identify the sleep- related parameter of the subject.

In some applications, the at least one physiological parameter of the subject includes a respiration-related parameter of the subject, and the control unit is configured to identify the respiration-related parameter of the subject. In some applications, the at least one sleep-related parameter of the at least one other person includes a stage of sleep of the at least one other person, and the control unit is configured to identify the at least one sleep-related parameter of the at least one other person.

In some applications, the control unit is configured to not activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person not being in a deep sleep.

In some applications, the control unit is configured to not activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being awake.

In some applications, the control unit is configured to not activate the medical device if the at least one sleep-related parameter of the at least one other person indicates that the at least one other person is trying to fall asleep.

In some applications, the control unit is configured to activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being asleep.

In some applications, the control unit is configured to activate the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being in a deep sleep.

In some applications, the control unit is configured to activate the medical device if the at least one sleep-related parameter of the at least one other person indicates that the at least one other person is awake and is not trying to fall asleep.

In some applications, the medical device includes a continuous positive airway pressure device, and the control unit is configured to activate the medical device.

In some applications:

the control unit is further configured to, based on the analyzing, identify a likelihood of an upcoming occurrence of a clinical episode of the subject, and

the control unit is configured to activate the medical device, further in response to the likelihood.

In some applications: the control unit is further configured to, based on the analyzing, identify an expected severity of the upcoming occurrence, and

the control unit is configured to activate the medical device, further in response to the expected severity.

In some applications, the control unit is configured to activate the medical device, further in response to an input that includes a history of awakenings of the subject in response to previous activations of the medical device.

In some applications, the control unit is further configured to track the history of awakenings of the subject.

In some applications, the control unit is configured to activate the medical device, further in response to an input that includes a history of awakenings of the at least one other person in response to previous activations of the medical device.

In some applications, the control unit is further configured to track the history of awakenings of the at least one other person.

In some applications, the control unit is configured to activate the medical device, further in response to an input selected from the group consisting of: an input indicative of a sleep-disturbance tolerance of the subject, and an input indicative of a sleep-disturbance tolerance of the at least one other person.

In some applications, the control unit is further configured to activate a noise - cancelation device for the at least one other person, upon activating the medical device.

There is further provided, in accordance with some applications of the present invention, a method for activating a medical device for a subject who is sleeping in proximity to at least one other person, the method including:

using at least one sensor:

monitoring the subject and the at least one other person, and

generating a respective signal for the subject and for the at least one other person, in response to the monitoring; and

using a control unit:

analyzing the signals, based on the analyzing, identifying (i) at least one physiological parameter of the subject, and (ii) at least one sleep-related parameter of the at least one other person, and

activating the medical device at least in response to the physiological parameter of the subject and the sleep-related parameter of the at least one other person.

In some applications, using the at least one sensor includes using at least two sensors.

In some applications, identifying the at least one sleep-related parameter of the at least one other person includes identifying a stage of sleep of the at least one other person.

In some applications, the method includes not activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person not being in a deep sleep.

In some applications, the method includes not activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being awake.

In some applications, activating the medical device in response to the sleep-related parameter of the at least one other person includes activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being asleep.

In some applications, activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being asleep includes activating the medical device if the at least one sleep-related parameter of the at least one other person is indicative of the at least one other person being in a deep sleep.

In some applications, the medical device includes a continuous positive airway pressure device, and activating the medical device includes activating the continuous positive airway pressure device.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a person who is on a resting surface and for use with an illuminator, the apparatus including: a sensor, configured to monitor the person, and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, calculate a bed-exit likelihood selected from the group consisting of: a likelihood that the person has left the resting surface, and a likelihood that the person is preparing to leave the resting surface,

in response to the bed-exit likelihood, select an illumination intensity value from a set of at least three values, and

set an illumination intensity of the illuminator to the selected illumination intensity value.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

In some applications, the control unit is configured to:

calculate a likelihood that the person is awake, in response to analyzing the signal, and

calculate the bed-exit likelihood in response thereto.

In some applications, the control unit is configured to:

calculate a likelihood that the person is sitting, in response to analyzing the signal, and calculate the bed-exit likelihood in response thereto.

In some applications, the control unit is configured to:

calculate a signal-to-noise ratio, in response to analyzing the signal, and

calculate the bed-exit likelihood in response thereto.

In some applications, the control unit is configured to calculate a higher bed-exit likelihood in response to calculating a first signal-to-noise ratio, relative to calculating a second signal-to-noise ratio that is higher than the first signal-to-noise ratio.

In some applications, the control unit is configured to:

calculate the likelihood that the person has left the resting surface, and in response thereto, identify a first illumination intensity value from the set, calculate the likelihood that the person is preparing to leave the resting surface, and in response thereto, identify a second illumination intensity value from the set,

select a maximum value of the first illumination intensity value and the second illumination intensity value, and

set the illumination intensity of the illuminator to the maximum value.

In some applications, the control unit is configured to select the illumination intensity value by:

obtaining an output of a function that is generally monotonically increasing with respect to the bed-exit likelihood, by applying the function to the bed-exit likelihood, and selecting the output of the function as the illumination intensity value.

In some applications, the control unit is configured to select a zero illumination intensity value, in response to the bed-exit likelihood being less than a threshold.

In some applications, the control unit is configured to select the illumination intensity value further in response to a parameter selected from the group consisting of: a time of day, a date, a geographical location, a sunrise time, and a sunset time.

In some applications, the apparatus further includes an ambient light detector configured to detect a level of ambient light, and the control unit is configured to select the illumination intensity value further in response to the level of ambient light.

In some applications, the control unit is further configured to:

in response to the bed-exit likelihood, select an illumination color value from a set of at least two color values, and

set an illumination color of the illuminator to the selected illumination color value.

In some applications,

the person is a first person, and the apparatus is further for use with a second person, the control unit is further configured to identify a second-person-sleeping likelihood that the second person is sleeping, and

the control unit is configured to select the illumination intensity value further in response to the second-person-sleeping likelihood.

In some applications, the control unit is configured to select the illumination intensity value by: obtaining an output of a function that is generally monotonically decreasing with respect to the second-person-sleeping likelihood, by applying the function to the second- person-sleeping likelihood, and

selecting the output of the function as the illumination intensity value.

In some applications, the control unit is configured to select a zero illumination intensity value, in response to the second -person-sleeping likelihood exceeding a threshold.

In some applications,

the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal, and

the control unit is configured to identify the second-person-sleeping likelihood by: analyzing the motion signal, and

in response thereto, calculating the second-person-sleeping likelihood.

In some applications,

the sensor is a first sensor and the signal is a first signal,

the apparatus further includes a second sensor, configured to monitor the second person and generate a second signal in response thereto, and

the control unit is configured to identify the second-person-sleeping likelihood by: analyzing the second signal, and

in response thereto, calculating the second-person-sleeping likelihood.

In some applications,

the first sensor includes a first motion sensor, and the first signal includes a first motion signal, and

the second sensor includes a second motion sensor, and the second signal includes a second motion signal.

In some applications, the control unit is configured to identify the second-person- sleeping likelihood in response to a time of day.

In some applications, the apparatus further includes an input unit, and the control unit is configured to identify the second-person-sleeping likelihood in response to an input to the input unit.

In some applications, the illuminator is a first illuminator and the apparatus is further for use with a second illuminator,

the resting surface is at least one resting surface,

when the first person and second person are on the at least one resting surface, the first illuminator is closer to the first person than to the second person, and the second illuminator is closer to the second person than to the first person, and

the control unit is further configured to set an illumination intensity of the second illuminator to be different from the illumination intensity of the first illuminator, in response to (a) a likelihood selected from the group consisting of: a likelihood that the second person has left the at least one resting surface, and a likelihood that the second person is preparing to leave the at least one resting surface, and (b) a likelihood that the first person is sleeping.

In some applications, the control unit is further configured to:

select an illumination color value from a set of at least two color values, in response to a time of day, and

set an illumination color of the illuminator to the selected illumination color value. In some applications, the control unit is further configured to:

in response to analyzing the signal, ascertain that the person is in a light sleep stage on the resting surface, and

in response thereto, drive the illuminator to wake the person by illuminating.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a waking mechanism that executes a waking routine to wake a subject who is sleeping near a second person, the apparatus including:

a sensor, configured to monitor the second person and generate a signal in response thereto; and

a control unit, configured to, prior to execution of the waking routine:

analyze the signal,

in response thereto, identify a likelihood that the second person is sleeping, and

in response to the likelihood, set an intensity of the waking routine by sending a signal to the waking mechanism. In some applications, the sensor includes a motion sensor, configured to sense motion of the second person, and the signal includes a motion signal.

In some applications, the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has not woken, and

in response thereto, increase an intensity of the waking routine.

In some applications, the waking mechanism includes a device selected from the group consisting of: an alarm clock, a mobile phone, an illuminator, and a vibrating element, the apparatus being for use with the selected device.

In some applications, the control unit is further configured to (i) identify a sleep stage of the second person, and (ii) set the intensity of the waking routine in response to the identified sleep stage.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a waking mechanism that executes a waking routine to wake a subject who is on a resting surface, the apparatus including:

a sensor, configured to monitor the subject and generate a signal in response thereto; and

a control unit, configured to:

prior to execution of the waking routine, analyze the signal,

in response thereto, identify that the subject is not on the resting surface, and in response thereto, inhibit the waking mechanism from executing the waking routine.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

In some applications, the control unit is further configured to:

identify a likelihood that a second person is sleeping near the subject, and

set an intensity of the waking routine, in response to the likelihood, by sending a signal to the waking mechanism.

In some applications, the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has not woken, and

in response thereto, increase an intensity of the waking routine.

In some applications, the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has not woken, and

in response thereto, change an angle of the resting surface.

In some applications, the control unit is further configured to:

in response to analyzing the signal, identify a sleep stage of the subject, and change the angle of the resting surface, in response to the identified sleep stage.

In some applications, the control unit is further configured to:

following a beginning of execution of the waking routine, analyze the signal, in response thereto, identify that the subject has woken, and

in response thereto, change an angle of the resting surface.

In some applications, the waking mechanism includes a device selected from the group consisting of: an alarm clock, a mobile phone, an illuminator, and a vibrating element, the apparatus being for use with the selected device.

There is further provided, in accordance with some applications of the present invention, apparatus for use with (i) a waking mechanism that executes a waking routine to wake a subject who is on a resting surface, and (ii) an output unit, the apparatus including: a sensor, configured to monitor the subject and generate a signal in response thereto; and

a control unit, configured to:

prior to execution of the waking routine, analyze the signal,

in response to analyzing the signal, identify a sleep stage of the subject, and upon the subject waking, drive the output unit to output the identified sleep stage to the subject, only if the identified sleep stage is a slow-wave sleep stage.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal. In some applications, the control unit is further configured to, upon the subject waking, drive the output unit to output a recommendation to the subject to perform a wakefulness-inducing activity, only if the identified sleep stage is a slow-wave sleep stage.

In some applications, the control unit is further configured to, upon the subject waking, drive the output unit to output a recommendation to the subject to refrain from operating a vehicle for a specific period of time, only if the identified sleep stage is a slow- wave sleep stage.

In some applications, the control unit is further configured to:

in response to analyzing the signal prior to the execution of the waking routine, identify at least one physiological parameter of the subject, and

drive the output unit to output the physiological parameter, upon the subject waking.

In some applications, the physiological parameter is a parameter selected from the group consisting of: a heart rate, a heart rate variability, a respiration rate, a respiration rate variability, and a blood pressure,

the control unit being configured to identify the selected parameter.

In some applications, the control unit is configured to drive the output unit to output the physiological parameter, only if the physiological parameter deviates from a baseline value.

In some applications, the control unit is further configured to, in response to the physiological parameter deviating from the baseline value, drive the output unit to output a recommendation to the subject selected from the group consisting of: a recommendation to perform a specific activity, and a recommendation to refrain from performing a specific activity.

There is further provided, in accordance with some applications of the present invention, apparatus for identifying a posture of a subject, the apparatus including:

a single motion sensor, configured to sense motion of a subject without contacting or viewing the subject or clothes the subject is wearing, and generate a motion signal in response thereto; and

a control unit, configured to:

during a learning stage: receive a plurality of inputs indicative of postures of a person at respective times, and

by using the plurality of inputs and by analyzing the motion signal at the respective times, learn a posture-identification technique, and during an operative stage that follows the learning stage:

analyze the motion signal, and

in response thereto, use the learned posture-identification technique to identify a posture of the subject.

In some applications, the control unit is further configured to verify compliance of a healthcare provider for the subject with a pressure-ulcer-prevention protocol, in response to identifying the posture.

There is further provided, in accordance with some applications of the present invention, apparatus for monitoring a subject, the apparatus including:

a motion sensor, configured to sense motion of the subject on a resting surface and generate a motion signal in response thereto; and

a control unit, configured to:

analyze the motion signal, and, in response thereto, (a) identify that the subject has lain on the resting surface, and (b) subsequently to the subject lying on the resting surface, identify a physiological parameter relating to a physiological slowing time of the subject,

identify that the physiological parameter may be indicative of a physiological deterioration of the subject, and

in response thereto, generate an output.

In some applications, the control unit is configured to identify that the physiological parameter may be indicative of a physiological deterioration of the subject by identifying that the physiological parameter deviates from a baseline value.

In some applications, the control unit is further configured to calculate the baseline value by analyzing the motion signal following each of a plurality of instances of the subject lying on the resting surface. In some applications, the control unit is configured to identify that the physiological parameter may be indicative of a physiological deterioration of the subject by identifying a deteriorating trend in the physiological parameter.

In some applications, the physiological parameter is a parameter selected from the group consisting of: a parameter relating to a slowing of a heart rate of the subject, and a parameter relating to a slowing of a respiratory rate of the subject,

the control unit being configured to identify the selected parameter.

In some applications, the control unit is further configured to:

identify a possible physiological condition of the subject, in response to identifying that the physiological parameter may be indicative of a physiological deterioration of the subject, and

generate an output in response thereto.

In some applications,

the control unit is further configured to, in response to analyzing the motion signal, identify an activity level of the subject, and

the control unit is configured to regulate the output in response to the identified activity level.

In some applications, the control unit is configured to regulate the output by generating the output only if an adjusted physiological parameter deviates from the baseline value,

and the adjusted physiological parameter is the physiological parameter adjusted in response to the identified activity level.

In some applications, the control unit is configured to regulate the output by generating the output only if the physiological parameter deviates from an adjusted baseline value,

and the adjusted baseline value is the baseline value adjusted in response to the identified activity level.

In some applications, the control unit is configured to regulate the output by withholding generating the output if the identified activity level is greater than a threshold. There is further provided, in accordance with some applications of the present invention, apparatus for monitoring a subject, the apparatus including:

a sensor plate including an upper surface that is configured to deflect in response to motion of the subject;

a sensor disposed underneath the upper surface, such that a center of the sensor is disposed at a distance from a center of the sensor plate that is between 30% and 70% of a length of a line drawn from the center of the sensor plate to a perimeter of the sensor plate, through the center of the sensor,

the sensor being configured to generate a motion signal in response to the deflection of the upper surface; and

a control unit configured to analyze the motion signal and to generate an output indicative of a condition of the subject, in response thereto.

In some applications, an upper surface area of the sensor is between 0.2 and 30 cm2.

In some applications, an upper surface area of the sensor plate is between 20 and 200 cm2.

In some applications, an upper surface area of the sensor plate is between 200 and 710 cm2.

In some applications, an upper surface area of the sensor plate is between 2 and 8 times greater than an upper surface area of the sensor.

In some applications, an upper surface area of the sensor plate is between 8 and 30 times greater than an upper surface area of the sensor.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a communication device belonging to a first person, the communication device generating an alert upon receiving an incoming communication, the apparatus including:

a sensor, configured to monitor a second person who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal, in response thereto, identify a likelihood that the second person is sleeping, and

control an intensity of the alert in response to the identified likelihood.

In some applications, the sensor includes a motion sensor, configured to sense motion of the second person on the resting surface, and the signal includes a motion signal.

In some applications, the control unit is configured to control the intensity of the alert further in response to the communication device receiving the incoming communication.

In some applications, the communication device includes a mobile phone, the apparatus being for use with the mobile phone.

In some applications, the control unit is configured to inhibit the communication device from activating the alert, in response to the identified likelihood.

In some applications,

the control unit is further configured to, in response to analyzing the signal, identify a sleep stage of the second person, and

the control unit is configured to control the intensity of the alert in response to the identified sleep stage.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a communication device that generates an alert upon receiving an incoming communication, the apparatus including:

a sensor, configured to monitor a subject who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify a sleep stage of the subject, and

control an intensity of the alert in response to the identified sleep stage.

In some applications, the sensor includes a motion sensor, configured to sense motion of the subject on the resting surface, and the signal includes a motion signal.

In some applications, the control unit is configured to control the intensity of the alert further in response to the communication device receiving the incoming communication. In some applications, the control unit is further configured to:

identify a likelihood that a second person is sleeping near the subject, and

control the intensity of the alert, further in response to the likelihood.

In some applications, the communication device includes a mobile phone, the apparatus being for use with the mobile phone.

In some applications, the control unit is configured to control the intensity of the alert by setting the intensity to be higher in response to the identified sleep stage being a first sleep stage, relative to the identified sleep stage being a second sleep stage that is deeper than the first sleep stage.

In some applications, the control unit is configured to inhibit the communication device from activating the alert, in response to the identified sleep stage being a slow-wave sleep stage.

In some applications, the control unit is configured to control the intensity of the alert by setting the intensity to be lower in response to the identified sleep stage being a first sleep stage, relative to the identified sleep stage being a second sleep stage that is deeper than the first sleep stage.

There is further provided, in accordance with some applications of the present invention, apparatus for inhibiting outgoing communication from a communication device, the apparatus including:

a sensor, configured to monitor a subject who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify that the subject is sleeping, and

in response to identifying that the subject is sleeping, inhibit outgoing communication from the communication device.

In some applications, the sensor includes a motion sensor, configured to sense motion of the subject on the resting surface, and the signal includes a motion signal.

In some applications, the control unit is configured to inhibit outgoing communication from the communication device by at least partially disabling the communication device. In some applications, the control unit is configured to inhibit outgoing communication from the communication device by preventing outgoing communication from the communication device.

In some applications, the control unit is configured to inhibit outgoing communication from the communication device by driving the communication device to:

prompt a user of the communication device to input to the communication device an answer to an objective question, and

allow outgoing communication from the communication device only if the answer is correct.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a subject who is on a resting surface, the apparatus including:

a sensor, configured to monitor the subject and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, identify (a) a likelihood selected from the group consisting of: a likelihood that the subject left the resting surface, and a likelihood that the subject is preparing to leave the resting surface, and (b) that the subject is sleeping, and

in response thereto, generate an alert indicating that (a) and (b) are occurring at the same time.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a mechanism that is activated by a first person, the apparatus including:

a sensor, configured to monitor a second person who is on a resting surface and generate a signal in response thereto; and

a control unit, configured to: analyze the signal,

in response thereto, identify a likelihood that the second person is sleeping, and

delay the activation of the mechanism in response to the identified likelihood.

In some applications, the sensor includes a motion sensor, configured to sense motion of the second person on the resting surface, and the signal includes a motion signal.

In some applications, the mechanism includes a mechanism selected from the group consisting of: a toilet-flushing mechanism, and window-opening mechanism, the apparatus being for use with the selected mechanism.

In some applications, the control unit is configured to inhibit the activation of the mechanism, in response to the identified likelihood.

In some applications,

the control unit is further configured to, in response to analyzing the signal, identify a sleep stage of the second person, and

the control unit is configured to delay the activation of the mechanism in response to the identified sleep stage.

There is further provided, in accordance with some applications of the present invention, apparatus including:

a motion sensor, configured to sense motion of a subject who is on a resting surface and generate a motion signal in response thereto;

a mains-power-connection device including electrically- conductive protrusions that are configured to fit into holes in an electric socket, the mains-power-connection device being configured to receive electricity through the electrically-conductive protrusions and use the electricity to deliver power to the motion sensor; and

a control unit configured to analyze the motion signal and to generate an output in response thereto,

the control unit being disposed within the mains-power-connection device such that, whenever the protrusions are placed inside the holes, the control unit is at least partially within 10 cm of the electric socket. There is further provided, in accordance with some applications of the present invention, apparatus for use with a burglar alarm that includes a detector configured to detect activity and to generate an activity-detection signal in response thereto, the apparatus including:

a sensor, configured to monitor a resting surface and to generate a signal in response thereto; and

a control unit, configured to:

identify a correspondence between (a) the activity-detection signal, and (b) the signal that is generated by the sensor, and

inhibit the burglar alarm from being triggered, in response to the correspondence.

In some applications, the detector is a motion detector, such that the burglar alarm includes a motion-detection-based alarm, the control unit being configured to inhibit the motion-detection-based alarm from being triggered.

In some applications, the burglar alarm includes a perimeter alarm, and the control unit is configured to not inhibit the perimeter alarm from being triggered, while inhibiting the motion-detection-based alarm from being triggered.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

In some applications, the control unit is configured to:

analyze the signal,

in response thereto, ascertain that a person has left the resting surface, and in response thereto, inhibit the burglar alarm from being triggered.

In some applications, the control unit is configured to inhibit the burglar alarm from being triggered at a given time only if the person left the resting surface more than a threshold amount of time prior to the given time, the threshold amount of time being an input to the control unit.

There is further provided, in accordance with some applications of the present invention, apparatus for use with a burglar alarm, the apparatus including: a sensor, configured to monitor a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, ascertain that a person is on the resting surface, and in response thereto, place the burglar alarm in an armed state.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

There is further provided, in accordance with some applications of the present invention, apparatus, including:

a sensor, configured to monitor a resting surface and generate a signal in response thereto; and

a control unit, configured to:

analyze the signal,

in response thereto, ascertain that a person is on the resting surface, and in response thereto, perform an action selected from the group consisting of: lock a door, reduce an intensity of a light, turn off a device, turn off an appliance, generate a notification that a door is unlocked, generate a notification that a light is on, generate a notification that a device is on, and generate a notification that an appliance is on.

In some applications, the sensor includes a motion sensor, configured to sense motion on the resting surface, and the signal includes a motion signal.

The present invention will be more fully understood from the following detailed description of embodiments thereof, taken together with the drawings, in which:

BRIEF DESCRIPTION OF THE DRAWINGS

Fig. 1 is a schematic illustration of a system for monitoring a chronic medical condition of a subject, in accordance with some applications of the present invention;

Fig. 2 is a schematic block diagram illustrating components of a control unit of the system of Fig. 1 , in accordance with some applications of the present invention; Fig. 3 is a schematic block diagram illustrating a breathing pattern analysis module of the control unit of Fig. 2, in accordance with some applications of the present invention;

Fig. 4 is a schematic block diagram illustrating additional components of a pattern analysis module of the control unit of Fig. 2, in accordance with some applications of the present invention;

Fig. 5 is a schematic illustration of a semi-rigid sensor plate that is used as a motion sensor, in accordance with some applications of the present invention;

Figs. 6A-B are schematic illustrations of a motion sensor coupled to a chair, in accordance with some applications of the present invention;

Fig. 7 is a schematic illustration of apparatus for identifying inefficient respiration of a subject, in accordance with some applications of the present invention;

Fig. 8 is a schematic illustration of a method for detecting ectopic heartbeats, in accordance with some applications of the present invention;

Figs. 9A-B are schematic illustrations of a motion sensor comprising a sensor plate, in accordance with some applications of the present invention;

Figs. 10A-D are schematic illustrations of a sensor-holding plate, in accordance with some applications of the present invention;

Fig. 11 is a schematic illustration of apparatus comprising a motion sensor, control unit, and speaker, in accordance with some applications of the present invention;

Fig. 12 is a schematic illustration of apparatus comprising a motion sensor, control unit, and alarm clock, in accordance with some applications of the present invention;

Fig. 13 is a schematic illustration of a motion sensor powered by a power supply and rechargeable battery, in accordance with some applications of the present invention;

Fig. 14 is a schematic illustration of apparatus for controlling a thermoregulation device, in accordance with some applications of the present invention;

Fig. 15 is a schematic illustration of a sensor configured to be placed within a pillow, in accordance with some applications of the present invention; Fig. 16 is a schematic illustration of ballistocardiographic signals used for calculating an indication of a left-ventricular-ejection-time, in accordance with some applications of the present invention;

Fig. 17 is a schematic illustration of apparatus for use with a plurality of sleeping subjects, in accordance with some applications of the present invention;

Fig. 18 is a schematic illustration of apparatus for activating a medical device for a subject who is sleeping in proximity to at least one other person, in accordance with some applications of the present invention;

Figs. 19-20 are schematic illustrations of apparatus for use with a person who is on a resting surface and for use with an illuminator, in accordance with some applications of the present invention;

Fig. 21 is a schematic illustration of apparatus for use with a waking mechanism that executes a waking routine to wake a subject who is sleeping near a second person, in accordance with some applications of the present invention;

Fig. 22 is a schematic illustration of apparatus for use with a waking mechanism that executes a waking routine to wake a subject who is on a resting surface, in accordance with some applications of the present invention;

Fig. 23 is a schematic illustration of apparatus for use with (i) a waking mechanism that executes a waking routine to wake a subject who is on a resting surface, and (ii) an output unit, in accordance with some applications of the present invention;

Fig. 24 is a schematic illustration of apparatus for identifying a posture of a subject, in accordance with some applications of the present invention;

Fig. 25 is a schematic illustration of apparatus for monitoring a subject, in accordance with some applications of the present invention; and

Fig. 26 is a schematic illustration of apparatus for monitoring a subject, in accordance with some applications of the present invention.

Fig. 27 A is a schematic illustration of apparatus comprising a motion sensor, a mains- power-connection device, and a control unit, in accordance with some applications of the present invention; Fig. 27B is a schematic illustration of a mains-power-connection device, in accordance with some applications of the present invention;

Figs. 28 and 29 are schematic illustrations of apparatus for use with a burglar alarm, in accordance with some applications of the present invention;

Fig. 30 is a schematic illustration of apparatus for use with a burglar alarm, in accordance with some applications of the present invention;

Fig. 31 is a schematic illustration of various apparatus for use with a subject who shares a bed with a second person, in accordance with some applications of the present invention; and

Fig. 32 is a plot of a motion signal that includes a portion thereof that exhibits ringing, as analyzed in accordance with some applications of the present invention.

DETAILED DESCRIPTION OF APPLICATIONS

Fig. 1 is a schematic illustration of a system 10 for monitoring a chronic medical condition of a subject 12, in accordance with some applications of the present invention. System 10 typically comprises a motion sensor 30, a control unit 14, and a user interface (U/I) 24. System 10 is generally similar to system 10 described in US 2011/0112442 to Meger and in US 2012/0253142 to Meger, both of which applications are incorporated herein by reference, except for differences described herein. For some applications, user interface 24 is integrated into control unit 14, as shown in the figure, while for other applications, the user interface and the control unit are separate units. Typically, user interface 24 includes a display. For some applications, motion sensor 30 is integrated into control unit 14, in which case user interface 24 is either also integrated into control unit 14 or remote from control unit 14. For some applications, control unit 14 and/or user interface module 24 of system 10 are implemented in a mobile device (such as a cellular phone, a pager, and/or a tablet computer).

In some applications of the present invention, motion sensor 30 is a "non-contact sensor," that is, a sensor that does not contact the body of subject 12 or clothes subject 12 is wearing. In other applications, motion sensor 30 does contact the body of subject 12 or clothes subject 12 is wearing. In the former applications, because motion sensor 30 does not come in contact with subject 12, motion sensor 30 detects motion of subject 12 without discomforting or inconveniencing subject 12. For some applications, motion sensor 30 performs sensing without the knowledge of subject 12, and even, for some applications, without the consent of subject 12. For some applications, motion sensor 30 does not have a direct line of sight with subject 12 or the clothes subject 12 is wearing.

Motion sensor 30 may comprise a ceramic piezoelectric sensor, vibration sensor, pressure sensor, or strain sensor, for example, a strain gauge, configured to be installed under a resting surface 37, and to sense motion of subject 12. The motion of subject 12 sensed by sensor 30, during sleep, for example, may include regular breathing movement, heartbeat- related movement, and other, unrelated body movements, as discussed below, or combinations thereof. For some applications, sensor 30 comprises a standard communication interface (e.g. USB), which enables connection to standard monitoring equipment.

As shown in Fig. 2 (described hereinbelow), for some applications, in addition to wirelessly-enabled motion sensor 30, control unit 14 is coupled to one or more additional sensors 60 applied to subject 12, such as a blood oxygen monitor 86 (e.g., a pulse oximeter / photop lethysmograph), an ECG monitor 62, weight sensor 81 (e.g. a weight sensor embedded into a bed as manufactured by Stryker Inc. of Kalamazoo, Michigan), a moisture sensor 85, an angle sensor 87, and/or a temperature sensor 80. In accordance with respective applications, one or more of sensors 60 is a contact sensor or a contact-less sensor.

Most of the experimental results presented in the present application were measured using one or more piezoelectric sensors. Nevertheless, the scope of the present invention includes performing measurements with other motion sensors 30, such as other pressure gauges or accelerometers.

Motion sensor 30 is typically coupled to a resting surface 37 upon which the subject rests. For example, as shown in Fig. 1, motion sensor 30 may be placed under a mattress of a bed, and may sense motion of the subject while the subject is in the bed, and generate a motion sensor signal in response thereto. Alternatively or additionally, as shown in Figs. 6A- B, motion sensor 30 may be coupled to a chair (e.g., a wheelchair) upon which the subject sits, and may sense motion of the subject while the subject is sitting in the chair, and generate a motion sensor signal in response thereto. For some applications, system 10 includes a first motion sensor which is under the mattress of the subject's bed, and a second motion sensor 30, which is coupled to a chair in the subject's room. The first sensor senses motion of the subject while the subject is in the bed, and the second motion sensor senses motion of the subject while the subject is in the chair. System 10 monitors the subject responsively to both the first and the second sensor signals, as described in further detail hereinbelow. For some applications, a plurality of motion sensors are coupled to a single resting surface, and are used as motion sensor 30. For example, two or more motion sensors that are disposed under the subject's mattress may be used as motion sensor 30. Alternatively, only a single sensor is coupled to a given resting surface.

Fig. 2 is a schematic block diagram illustrating components of control unit 14 in accordance with some applications of the present invention. Control unit 14 typically comprises a motion data acquisition module 20 and a pattern analysis module 16. Pattern analysis module 16 typically comprises one or more of the following modules: a breathing pattern analysis module 22, a heartbeat pattern analysis module 23, a cough analysis module 26, a restlessness analysis module 28, a blood pressure analysis module 29, and an arousal analysis module 31. For some applications, pattern analysis module includes additional modules and/or functionalities to those shown in Fig. 2. For example, pattern analysis module 16 may include one or more of the additional modules and/or functionalities shown in Fig. 4. For some applications, two or more of analysis modules 20, 22, 23, 26, 28, 29, and 31 (and/or the additional modules and/or functionalities) are packaged in a single housing. For other applications, the modules are packaged separately (for example, so as to enable remote analysis, by one or more of the pattern analysis modules, of breathing signals acquired locally by data acquisition module 20).

User interface 24 typically comprises a dedicated display unit, such as an LCD or CRT monitor. Alternatively or additionally, the user interface 24 comprises a wireless or wired communication port for relaying the acquired raw data and/or processed data to a remote site for further analysis, interpretation, expert review, and/or clinical follow-up. For example, the data may be transferred over a telephone line, and/or over the Internet or another wide-area network, either wirelessly or via wires.

Breathing pattern analysis module 22 is configured to extract breathing patterns from the motion data, as described hereinbelow with reference to Fig. 3, and heartbeat pattern analysis module 23 is configured to extract heartbeat patterns from the motion data. Alternatively or additionally, system 10 comprises another type of sensor, such as an acoustic or air-flow sensor attached or directed at the subject's face, neck, chest, and/or back, or placed under the mattress.

Fig. 3 is a schematic block diagram illustrating components of breathing pattern analysis module 22, in accordance with some applications of the present invention. Breathing pattern analysis module 22 analyzes changes in breathing patterns, typically during sleep. Breathing pattern analysis module 22 typically comprises a digital signal processor (DSP) 41 , a dual port RAM (DPR) 42, an EEPROM 44, and an I/O port 46. Modules 23, 26, 28, 29, and 31 may be similar to module 22 shown in Fig. 3. For example, modules 23, 26, 28, 29, and 31 may include a digital signal processor, a dual port RAM, an EEPROM, and an I/O port similar to digital signal processor 41, dual port RAM 42, EEPROM 44, and I/O port 46.

In some applications of the present invention, data acquisition module 20 is configured to non-invasively monitor breathing and heartbeat patterns of subject 12. Breathing pattern analysis module 22 and heartbeat pattern analysis module 23 are configured to extract breathing patterns and heartbeat patterns respectively from the raw data generated by data acquisition module 20, and to perform processing and classification of the breathing patterns and the heartbeat patterns, respectively. Breathing pattern analysis module 22 and heartbeat pattern analysis module 23 are configured to analyze the respective patterns in order to (a) predict an approaching clinical episode, such as an asthma attack, heart condition- related lung fluid buildup, sepsis, cardiac arrest, or respiratory depression, and/or (b) monitor the severity and progression of a clinical episode as it occurs. User interface 24 is configured to notify subject 12 and/or a clinician of the predicted or occurring episode. Prediction of an approaching clinical episode facilitates early preventive treatment, which generally improves outcomes, e.g., by lowering required dosages of medication, and/or lowering mortality and morbidity. When treating a hospitalized subject in a general care ward, for example, an earlier identification of subject deterioration may prevent the need to admit the subject to the ICU, shorten his length of stay, and increase the likelihood for successful recovery to discharge.

Breathing pattern analysis module 22 and heartbeat pattern analysis module typically derive breathing patterns and heartbeat patterns from the raw data in accordance with the techniques described in US 2011/0112442 to Meger and in US 2012/0253142 to Meger, both of which applications are incorporated herein by reference. In general, system 10 is configured to monitor clinical parameters of the subject, and to generate alerts and/or reports in response thereto, in a generally similar manner to system 10 described US 2011/0112442 to Meger and in US 2012/0253142 to Meger, both of which applications are incorporated herein by reference.

Reference is now made to Fig. 4, which is a schematic illustration of functionalities and/or modules that are included in pattern analysis module 16, in addition to the modules of the pattern analysis module that are shown in Fig. 2, in accordance with some applications of the present invention. Typically, pattern analysis module includes signal analysis functionality 90. The signal analysis functionality is configured to analyze the signals received from the sensors that provide input to control unit 14 and to determine a condition of the subject and/or generate an output (e.g., an alert), in response thereto. Many of the functionalities of control unit 14 that are described herein as being performed by pattern analysis module 16 are performed by the signal analysis functionality of the pattern analysis module. Pattern analysis module typically further includes alert-generation-functionality 92 that is configured to generate an alert in response to the signal analysis that is performed by the signal analysis functionality. For example, alerts may be generated on pagers of clinicians, at user interface (e.g., display) 24, and/or at a central monitoring system user interface (e.g., display). For some applications, pattern analysis module includes score calculating functionality 100 configured to calculate a score in response to the signal analysis that is performed by the signal analysis functionality. In accordance with some applications, pattern analysis module includes additional functionalities and/or modules, such as a shallow- breathing-pattern-identification functionality 101, a subject identification module 102, a subject-position-identification functionality 104, an irregular-sleep-detection functionality 106, a decreasing-cardioballistic-amplitude-detection functionality 108, a cardiac-arrhythmia- detection functionality 1 10, an inefficient respiration identification functionality 111 , a cardiac-risk-detection functionality 112, protocol input functionality 114, athletic-exercise- receiving functionality 116, and/or nutrition-receiving functionality 118. The functions of the additional functionalities and/or modules are described in further detail hereinbelow. Reference is now made to Fig. 7, which is a schematic illustration of apparatus for identifying inefficient respiration of a subject 234, in accordance with some applications of the present invention. Inefficient respiration may be indicative of a clinical episode related to a respiratory disorder such as obstructive apnea or asthma. Inefficient respiration corresponds to a situation in which the respiration movements are large relative to the volume of respiration flow. This phenomenon may occur in one of the two following ways:

1) Respiration movements are normal, but the volume of respiration flow is abnormally low.

2) The volume of respiration flow is normal, but respiration movements are abnormally large, such as where the subject needs to use upper-body muscles that are normally not used for respiration.

Reference is now made to Figs. 4 and 7. In some applications, pattern analysis module 16 of control unit 14 comprises inefficient respiration identification functionality 1 11, as described hereinabove with respect to Fig. 4. The identification of inefficient respiration typically proceeds according to the following steps:

1. A respiration-related motion signal is identified in the mechanical sensor signal that is detected by sensor 30. The amplitude of this signal corresponds to the respiration movements of the subject.

2. The volume of respiration flow is measured, e.g., using a respiration flow meter 236 or sensor 30. (Respiration flow meter 236 may be handled by the subject, or alternatively, by a caregiver, e.g., a physician or nurse.)

3. The inefficient respiration identification functionality calculates a relationship of the amplitude of the respiration-related motion signal to the volume of respiration flow, and inefficient respiration is identified in response to this relationship. For example, the relationship may comprise the quotient of the quantities, e.g., Amplitude of Signal / Volume of Flow. The quotient is compared to a baseline value, and inefficient respiration is identified in response to this comparison. For example, inefficient respiration may be identified if the quotient of Amplitude / Volume is increased by a factor of at least 1.5 relative to the baseline value (e.g., the factor may be 2). Identifying the inefficient respiration in response to a relationship between the quantities, rather than based on the absolute values of the quantities, helps facilitate the identification of inefficient respiration even if one of the quantities is normal, as described hereinabove.

Reference is now made to Fig. 8, which is a schematic illustration of a method for detecting ectopic heartbeats, e.g., premature ventricular contractions, in accordance with some applications of the present invention. For some applications, heartbeat pattern analysis module 23 (Fig. 2) is configured to detect ectopic beats of a subject. The cardiac signal component of the sensor signal generated by sensor 30 is filtered into a high-frequency component 206 and a low-frequency component 204. (Components 204 and 206 are shown plotted in arbitrary units in Fig. 8.) Since both normal and ectopic beats exhibit high- frequency characteristics indicative of ventricular contraction, the high frequency component indicates both normal and ectopic beats. On the other hand, ectopic beats lack some low- frequency characteristics indicative of blood flow; consequently, the low frequency component generally indicates normal (but not ectopic) beats. Portions 200 of the high- frequency component, corresponding to ventricular contractions of the subject, are identified by heartbeat pattern analysis module 23 ; a pair of such portions typically indicates a single heartbeat. For each pair of portions 200, a corresponding portion of the low-frequency component is analyzed. If this corresponding portion is indicative of blood flow, e.g., as shown in portions 202 (solid line), the heartbeat is determined to be a normal beat. Conversely, if the corresponding portion is not indicative of blood flow, e.g., as shown in portions 208 (dashed line), the heartbeat is determined to be an ectopic beat. For example, as shown in Fig. 8, a pair 201 of portions 200 corresponds to a portion 202 indicative of blood flow, while a pair 210 of portions 200 corresponds to a portion 208 which is not indicative of blood flow.

In some applications, the time between the two elements of a pair of portions 200 is used to diagnose cardiac conditions such as early heartbeats, missing heartbeats, and low stroke volume.

Filtering of the signal into high-frequency and low-frequency components is typically done using band-pass filters. In some applications, the lower cutoff frequency for the low- frequency band-pass filter may be, for example, at least 1.5 and/or less than 4 Hz (e.g., 2 Hz), while the higher cutoff frequency may be, for example, at least 4.1 and/or less than 7.5 Hz (e.g., 5 Hz). The lower cutoff frequency for the high-frequency band-pass filter may be, for example, at least 6.5 and/or less than 11.5 Hz (e.g., 9 Hz), while the higher cutoff frequency may be, for example, at least 11.6 and/or less than 16.5 Hz (e.g., 14 Hz). In other applications, the lower cutoff frequency for the low-frequency band-pass filter may be, for example, at least 2.5 and/or less than 3.5 Hz, while the higher cutoff frequency may be, for example, at least 4.5 and/or less than 5.5 Hz. The lower cutoff frequency for the high- frequency band-pass filter may be, for example, at least 8.5 and/or less than 9.5 Hz, while the higher cutoff frequency may be, for example, at least 13.5 and/or less than 14.5 Hz.

Reference is now made to Fig. 5, which is a schematic illustration of a semi-rigid sensor plate 140 that is used as motion sensor 30, in accordance with some applications of the present invention. For some applications, the sensor is designed and/or placed under the subject's bed such as to detect only motion of the subject who is lying on the side closer to the sensor. The sensor mechanical properties are designed to collect the vibration mechanical signal only locally from the subject lying directly on top or very close to the sensor. This allows mechanical filtering of signals coming from the partner, and detection of only the signal of the subject on top of the sensor. For some applications, edges 142 of the sensor plate are hardened with respect to a central portion 144 of the sensor plate. Typically, this prevents torque from the side of the sensor plate from bending the sensor plate, and allows only direct forces generated from on top of the sensor to affect the plate such as to generate a sensor signal. In some applications, the sensor hardening on the circumference is achieved by mechanically preventing a 2-5 mm rim of the semi-rigid sensing plate from vibrating. This typically substantially reduces the signal generated by the second person as compared to that generated by the subject.

Reference is now made to Figs. 9A-B, which are schematic illustrations of motion sensor 30 comprising a sensor plate 238, in accordance with some applications of the present invention. Sensor plate 238 is typically for use with a subject who shares a bed with a second person, e.g., as shown in Fig. 21. As shown in Fig. 9A, sensor plate 238 comprises an edge region 227 that is more rigid than a central portion 221 of the sensor plate, such as to reduce movement of the plate in response to motion of the second person, relative to if edge region 227 of the sensor plate were not more rigid than central portion 221. As described hereinbelow, edge region 227 may take the form of a rigid noise filter rim 228, and/or a rigid sensor-holding-plate rim 220.

Motion sensor 30 is configured to be placed on the bed such that when the subject and the second person are on the bed (e.g., as in Fig. 21), sensor plate 238 is disposed underneath the subject and not disposed underneath the second person. When a sensor element 366 (e.g., a piezoelectric sensor element) is being held by a sensor-holding plate 218 of sensor plate 238, motion sensor 30 detects motion of the subject, by sensor-holding plate 218 moving in response to motion of the subject. (The motion signal generated by motion sensor 30 is then analyzed by control unit 14, as described throughout the present application.) The relative rigidity of edge region 227 generally reduces the extent to which motion of the second person is detected by motion sensor 30, relative to motion of the subject. (In the present description, the word "sensor" may sometimes be used to refer to sensor element 366.)

In some applications, a thickness of the edge region (e.g., thickness t described hereinbelow), measured between an inner perimeter of the edge region and an outer perimeter of the edge region, is at least 2 mm and/or less than 20 mm, e.g., less than 8 mm.

In some applications, as shown in Fig. 9B, sensor plate 238 comprises sensor-holding plate 218 and a noise filter plate 226 that is distinct from sensor-holding plate 218. In such applications, noise filter plate 226 is typically shaped to define a noise filter rim 228. Noise filter rim 228 is more rigid than central portion 221 of the sensor-holding plate, such as to reduce movement of the sensor-holding plate in response to motion of the second person, relative to if the noise filter rim were not more rigid than the central portion of the sensor- holding plate. Thus, noise filter rim 228 allows for mechanical filtering of signals coming from the partner, in a manner generally described hereinabove with respect to edges 142 of sensor plate 140 (Fig. 5). Alternatively or additionally, sensor-holding plate 218 may be shaped to define a rigid sensor-holding-plate rim 220 (which is more rigid than central portion 221), the function of which is generally similar to that of noise filter rim 228. Typically, a thickness t2 of the sensor-holding-plate rim, measured between an inner perimeter of the sensor-holding-plate rim and an outer perimeter of the sensor-holding-plate rim, is at least 2 mm and/or less than 8 mm, or alternatively, at least 8 mm and/or less than 20 mm. In some applications, the top of noise filter rim 228 is generally level with the top of sensor-holding plate 218, while in other applications, the top of noise filter rim 228 is higher, e.g., it is greater than 1 and/or less than 5 mm higher. In some applications, a thickness t of noise filter rim 228, measured between an inner perimeter of the noise filter rim and an outer perimeter of the noise filter rim, is at least 2 mm and/or less than 8 mm, e.g., 5 mm.

Typically, sensor-holding plate 218 is shaped to hold sensor element 366, e.g., via a sensor receptacle 222, thus allowing for the sensor element to be coupled to the sensor plate. In some applications, the sensor-holding plate further comprises an electronics receptacle 224, configured to hold electronic circuitry which may include, for example, an amplifier, analog to digital converter, and/or a communication element. In other applications, the sensor-holding plate does not comprise electronics receptacle 224, and the circuitry is disposed outside of the sensor-holding plate.

In some applications, sensor-holding plate 218 is reversibly couplable to noise filter plate 226. The coupling may be effected, for example, by means of sensor-holding-plate rim 220, which is disposed along the perimeter of sensor-holding plate 218 and is configured to fit into a groove 230 disposed along the inside perimeter of noise filter plate 226. In some applications, a width of groove 230, measured in a direction from an outer perimeter of the groove toward an inner perimeter of the groove, is greater than 0.05 and/or less than 2 mm greater than thickness t2 of rim 220.

Reference is now made to Figs. 10A-D, which are schematic illustrations of sensor- holding plate 218, in accordance with some applications of the present invention. Fig. 10A shows sensor-holding plate 218 with a continuous rim 220 which appears generally as shown in Fig. 9B. The inventors hypothesize that for some applications, continuous rim 220 facilitates generally isotropic focusing of motion sensor 30, in that continuous rim 220 is generally equally effective at blocking motion from all lateral directions.

Fig. 10B shows sensor-holding plate 218 with a discontinuous rim 225, shaped to define a plurality of slots (i.e., openings, or gaps) 223 therein, disposed around rim 225. Slots 223 create a "defocusing" effect, i.e., they facilitate the sensing of motion from areas which are not directly above sensor-holding plate 218. By varying the location, number, and size of slots 223, sensor-holding plate 218 can be configured for different beds sizes. Fig. IOC shows sensor-holding plate 218 with a discontinuous rim 211, shaped to define one or more anisotropically- arranged slots 219 therein. Proper orientation of slots 219 may facilitate the sensing of motion originating from one or more particular areas not directly above sensor-holding plate 218. For example, the sensor-holding plate of Fig. IOC may be placed at the head of the bed, oriented such that slot 219 is directed toward the legs of the subject. In this manner, rim 211 will generally prevent the partner's motion from being sensed, while generally allowing the subject's motion to be sensed.

Although Figs. lOB-C show the sensor-holding-plate rim shaped to define slots therein, the scope of the present invention includes rims which comprise thinned portions which function in a manner generally similar to slots 223 and 219.

In some applications, as shown in Fig. 10D, the rim 229 of sensor-holding plate 218 may comprise one or more detachable parts 209. The detachment of parts 209 results in the opening of slots such as slots 223 and slots 219. Detachable parts 209 allow for reducing the manufacturing cost of sensor-holding plate 218, since the desired slots can generally be opened post-manufacture. For example, if the subject is sleeping alone and the bed is relatively large, the subject may decide to detach a plurality of small detachable parts 209 to create slots 223, as shown in Fig. 10B, such that motion of the subject is detected even when the subject is not directly over sensor-holding plate 218. In some applications, parts 209 which have been detached may subsequently be re-attached.

When anisotropically-arranged slots, e.g., slots 219, are used, sensor-holding plate 218 may need to be fixed in place, such that its orientation remains generally constant. For example, in the case in which sensor-holding plate Fig. IOC is to be placed under the head of the bed with a slot 219 directed towards the subject's legs, sensor-holding plate 218 may be fixed in place within the subject's pillow, which in general tends to be perpendicular to the subject's longitudinal axis.

In general, the various applications shown in Figs. 10A-D may be practiced in combination with the applications shown in Fig. 9A-B. For example, the various rims that are shown in Figs. 10A-D may be more rigid than central portion 221, as described hereinabove. In some applications, as shown in Figs. 9A-B, sensor-holding plate 218 is circular; a sensor-holding plate shaped in this manner has been found by the inventors to be generally effective in transmitting mechanical forces to the sensor coupled to the center thereof. In some applications, the sensor element coupled to sensor-holding plate 218, e.g., via sensor receptacle 222, is also circular. It has been found by the inventors that the ratio of sensor element diameter (which is generally similar to diameter DO of sensor receptacle 222 shown in Fig. 9B) to sensor-holding plate diameter Dl is a relevant factor for effective transmission of mechanical forces to the sensor. In some applications of the present invention, the ratio of sensor element diameter to sensor-holding plate diameter Dl is greater than 0.1 and/or less than 0.6. In other applications, sensor-holding plate 218 is not circular, e.g., it may be square or another shape. In these applications, noise filter plate 226 is shaped accordingly, such that the noise filter is configured to be reversibly couplable to the sensor-holding plate as generally described with respect to Figs. 9A-B, mutatis mutandis.

In some applications, sensor plate 238 is used in combination with subject identification module 102, described hereinabove with respect to Fig. 4. Although sensor plate 238 reduces the degree to which motion sensor 30 detects motion of the second person, it is possible that the sensor will nonetheless detect some of this motion. Subject identification module 102 therefore identifies components of the motion signal from sensor 30 that were generated by the subject, by distinguishing between components of the motion signal that were generated respectively by the subject and by the second person, e.g., using one or more of the techniques described in US 2013/0267791 to Halperin, which is incorporated herein by reference. In other applications, subject identification module 102 is used without sensor plate 238.

Reference is now made to Fig. 31, which is a schematic illustration of various apparatus 500a-e for use with a subject 12 who shares a bed with a second person 502, in accordance with some applications of the present invention. In all of apparatus 500a-e, motion sensor 30 detects motion of subject 12 and motion of second person 502, and generates a motion signal 504 in response thereto. (Motion sensor 30 is typically a single motion sensor that does contact or view the subject, clothes the subject is wearing, the second person, or clothes the second person is wearing.) Furthermore, another common element in apparatus 500a-e is that control unit 14 (e.g., via subject identification module 102 (Fig. 4)) distinguishes between motion of the subject and motion of the second person, i.e., it may identify a particular portion of motion signal 504 as coming from the subject or from the second person. On the other hand, apparatus 500a-e differ from each other in the technique(s) used to perform the distinguishing/subject-identification, in the analysis that is performed pursuant to the distinguishing/subject-identification, and/or in the output that is generated.

In apparatus 500a, control unit 14 is configured to identify that a portion of the motion signal was generated in response to motion of the second person, and not in response to motion of the subject, by identifying that the portion exhibits ringing. Reference is made to Fig. 32, which is a plot of motion signal 504 that includes a portion 506 thereof that exhibits ringing, as analyzed in accordance with some applications of the present invention. Motion signal 504 includes portions 501a and 501b that, respectively, precede and follow portion 506. Portions 501a and 501b exhibit a generally regular, cyclical pattern that is typically indicative of the cardiac and respiratory motion of the subject. Portion 506, on the other hand, has more of a step-response profile, which is typically indicative of large body- movement. The ringing in portion 506 indicates that the source of the large body-movement is the second person, who is not directly above the sensor.

To identify the ringing, control unit 14 ascertains that portion 506 includes a set of at least three consecutive extrema 508 (i.e., three consecutive maxima, or three consecutive minima), each of which (following the first extremum of the set) is separated from the preceding extremum of the set by a time TO that falls within a given time range (e.g., 0.15- 0.45 seconds). (In Fig. 32, two such sets of consecutive extrema are shown.) Typically, to identify the ringing, control unit 14 further ascertains that respective differences between (i) magnitudes of consecutive extrema 508, and (ii) a magnitude of an extremum 510 that precedes the set of consecutive extrema (typically an initial "spike" that precedes the set), fall within a given amplitude range. For example, the control unit may identify that the respective differences are between 10 -150 of the magnitude of extremum 510. Typically, the control unit further ascertains that a difference between (i) a smallest magnitude 512 of the consecutive extrema, and (ii) a largest magnitude 514 of the consecutive extrema, is less than a threshold (e.g., 30% of smallest magnitude 512). Although Fig. 32 shows the ringing phenomenon only for large body-movement, ringing may also be exhibited in portions of signal 504 that reflect other types of motion, such as respiratory motion or cardiac motion. Apparatus 500a is configured to identify the second person as the source of these other types of motion, by performing the ringing- identification techniques described hereinabove.

Apparatus 500b uses a different technique to identify that a given portion of the motion signal was generated in response to large body-movement of the second person, and not in response to motion of the subject. In apparatus 500b, control unit 14 is configured to "learn" an amplitude threshold Th by analyzing a portion of the motion signal (e.g., portion 501a) that was generated in response to motion (e.g., cardiac and/or respiratory motion) of the subject, and calculating threshold Th based on the analysis. (For example, Th may be a multiple of amplitude A4 of portion 501a.) If the amplitude of a given portion of the motion signal is less than the amplitude threshold, the control unit identifies that the given portion of the motion signal was generated in response to large body-movement of the second person, and not in response to motion of the subject. For example, in Fig. 32, extremum 510 is less than Th, such that portion 506 is determined to have been generated by large body-movement of the second person.

Apparatus 500c uses yet another technique for distinguishing between motion of the subject and motion of the second person. In apparatus 500c, control unit 14 identifies a subject-motion component of the motion signal that was generated in response to motion of the subject, e.g., portions 501 a and 501b of Fig. 32. To identify whether a given portion, e.g., portion 506, of the motion signal was generated in response to large body-movement of the subject, and not in response to motion of the second person, control unit 14 compares the amplitude A3 of the subject-motion component following the given portion, relative to the amplitude A4 before the given portion. If the amplitude has changed by a threshold amount, it is likely the subject moved relative to the sensor, and thus, the large body-movement is likely that of the subject. (Fig. 32 shows A4 being different from A3, but not by more than the threshold amount, such that portion 506 is determined to have been generated by motion of the second person.) In general, the distinguishing/subject-identification techniques of apparatus 500a-c are typically combined, i.e., the control unit is typically configured to use any of the techniques described hereinabove, separately or in combination.

Apparatus 500d also comprises motion sensor 30 and control unit 14, and also distinguishes between motion of the subject and motion of the second person, e.g., using some or all of the techniques of apparatus 500a-c. In apparatus 500d, control unit 14 is configured to, by analyzing the signal from motion sensor 30 in an analysis step 518, identify an effect of large body-movement of the second person on sleep of the subject, and in response thereto, generate a sleep-disturbance output 516. Output 516 may include a report (e.g., a digital, and/or printed, and/or audio report), which may include alphanumeric and/or graphical content. Alternatively or additionally, as further described hereinbelow, output 516 may include a recommendation to change a parameter, and/or instructions to a device to change a parameter. In general, output 516 facilitates the reduction of the extent to which movement by second person 502 disturbs the sleep of subject 12.

In some applications, output 516 includes an assessment of an effectiveness of a parameter at reducing the effect of the large body-movement of the second person on the sleep of the subject. For example, the control unit may assess one or more parameters 520 such as:

(a) a parameter (e.g., a firmness, or a width) of a mattress 522 on which the subject is sleeping,

(b) a parameter (e.g., a tilt angle) of bed 37,

(c) a sleeping arrangement of (e.g., a distance between) the subject and the second person, and/or

(d) a room-environment parameter (e.g., a level of light or sound, or a temperature, in the room).

Some of parameter types (a)-(d) (e.g., a level of light in the room) may be detected by control unit 14, while other parameter types (e.g., a firmness of mattress 522) are typically received as manual inputs to the control unit.

Typically, in analysis step 518, the control unit analyzes motion signal 504 in light of the parameter(s), and generates the assessment in response to the analysis. For example, the control unit may compare data from several nights of sleep, and/or compare the data from the given pair of sleepers with data from other pairs of sleepers, to ascertain how the parameter(s) affect the level of sleep disturbance. Output 516 may include, for example, an assessment message such as "A temperature between 23-25 C in the room is more effective at reducing sleep disturbance, relative to other temperatures." Alternatively or additionally, output 516 may include a recommendation to reduce the effect of the large body-movement of the second person on the sleep of the subject, by adjusting an adjustable parameter such as any of parameters (a)-(d) listed above. For example, output 516 may include a recommendation message such as "To reduce sleep disturbance, you may wish to reduce the tilt angle of your bed."

In some applications, apparatus 500d is used (e.g., by a mattress provider or consumer) to compare between different types of mattresses. For example, output 516 may include a comparison between (a) the effectiveness of a parameter of one given type of mattress, and (b) the effectiveness of the parameter of a different type of mattress. For example, output 516 may show a consumer that a firmer mattress is more effective than a less-firm mattress at reducing sleep disturbance, and based on this comparison, the consumer may decide to purchase the firmer mattress.

In some applications, output 516 includes instructions to a device 524 to adjust an adjustable parameter, e.g., any of (a)-(d) listed above. For example, Fig. 31 shows output 516 including instructions to a controller 526 to adjust a tilt angle of bed 37.

Apparatus 500e also comprises motion sensor 30 and control unit 14, and also distinguishes between motion of the subject and motion of the second person, e.g., using some or all of the techniques of apparatus 500a-c. In apparatus 500e, motion sensor 30 comprises a mechanical-filtering element, such as noise filter rim 228 (described hereinabove with reference to Figs. 9A-B), which is configured to reduce a response of the motion sensor to motion of the second person, relative to motion of the subject. Control unit 14 analyzes motion signal 504, assesses an effectiveness of the mechanical-filtering element at reducing the response of the motion sensor to motion of the second person, and generates an output in response thereto. For example, if control unit 14 identifies a relatively large number of portions of the signal coming from motion of the second person, control unit 14 may make an assessment that the mechanical-filtering element is relatively ineffective. In such a case, output 516 may include, for example, a recommendation to replace the current noise filter rim with a thicker noise filter rim.

It is noted that there is a "philosophical" difference between apparatus 500d and apparatus 500e, in that a typical objective in using apparatus 500e is to improve the filtering out of motion from the second person (perhaps to the point of near-complete filtering), whereas apparatus 500d requires that sensor 30 detect at least some of the motion from the second person. Nevertheless, apparatus 500d and 500e may be combined, such that a single control unit 14 is configured to perform both the functions of apparatus 500d and the functions of apparatus 500e.

Reference is now made to Fig. 15, which is a schematic illustration of a sensor 30 configured to be placed within a pillow 301, in accordance with some applications of the present invention. In some applications, motion sensor 30 is configured to be placed within pillow 301 of subject 12.

Reference is now made to Fig. 11, which is a schematic illustration of apparatus comprising a motion sensor 30, control unit 14, and speaker 232, in accordance with some applications of the present invention. In some applications of the present invention, motion sensor 30 and a speaker 232 are configured to be placed under the head of a subject who shares a bed with another person. (Thus, Fig. 11 depicts resting surface 37 as a double bed.) For example, sensor 30 may be placed within the pillow of the subject. Speaker 232 is configured to play music responsively to output from control unit 14, for example, in order to help the subject fall asleep or use biofeedback techniques to relax. In some applications, sensor plate 238, described hereinabove with respect to Figs. 9A-B, is used. The use of sensor plate 238, which, as explained above, comprises a more rigid edge region 227 (Fig. 9B), provides that speaker 232 responds largely to the sleep stage and physiological condition of the subject, rather than also to motion from the other person. In some applications, control unit 14 may eliminate artifacts generated by speaker 232 by subtracting the signal generated by the speaker from the motion signal. The signal generated by speaker 232 may be received, for example, from the speaker controlling circuit or from another sensor on the speaker.

Reference is now made to Fig. 14, which is a schematic illustration of apparatus for controlling a thermoregulation device 240, in accordance with some applications of the present invention. Studies show that dynamically regulating the temperature of a subject's sleep environment may improve the subject's sleep quality. For example, maintaining a steady temperature may increase the deep sleep (SWS) ratio, and cooling the bed during REM may increase the REM sleep share rate. In some applications, control unit 14 is connected to a thermoregulation device 240 located, for example, in the subject's bed or elsewhere in the subject's bedroom. Control unit 14 monitors the subject's sleep stages and controls thermoregulation device 240 accordingly. Examples of thermoregulation devices which may be configured to be controlled by control unit 14 include air-conditioning units, electric heaters, radiators, bed coolers, and electric blankets.

Reference is now made to Fig. 12, which is a schematic illustration of apparatus comprising a motion sensor 30, control unit 14, and alarm clock 212, in accordance with some applications of the present invention. For some applications, an alarm clock 212 is configured to receive an output from control unit 14. The output is generated in response to a signal from motion sensor 30, and indicates whether a resting surface 37, e.g., a bed, is occupied by a subject. In response to the output indicating that resting surface 37 is unoccupied, alarm clock 212 inhibits itself from sounding. This reduces the likelihood of an alarm waking other members of the household, in cases where the subject arose from resting surface 37 without taking measures to ensure that the alarm would not subsequently begin or continue to sound. In some applications, as shown in Fig. 12, alarm clock 212 and control unit 14 are integrated into a common unit 213. In other applications, alarm clock 212 is separate from control unit 14, and communicates therewith by wired or wireless communication means.

In some cases, the individual might arise from bed at the sounding of an alarm, but return to bed thereafter. Alternatively, the individual might not arise from bed, even though the alarm has sounded. In some applications, alarm clock 212 is configured to sound after a delay, in response to the output from control unit 14 indicating that the bed is occupied following a previous sounding of the alarm clock.

Reference is now made to Fig. 13, which is a schematic illustration of a motion sensor 30 powered by an external power supply 216 (i.e., a power supply that is external to the motion sensor), and a rechargeable battery 214, in accordance with some applications of the present invention. In some applications, motion sensor 30 may be powered by an external power supply 216, which draws current via a power cord 217 connected to a wall outlet. Since some subjects are uncomfortable with power being drawn from the wall and conveyed to a device which is underneath them, motion sensor 30 is configured to not draw power from power supply 216, in response to output from control unit 14 indicating that resting surface 37 is occupied by the subject. In some applications, sensor 30 is configured to draw power from a rechargeable battery 214, in response to the output indicating that resting surface 37 is occupied. Rechargeable battery 214 is configured to draw power from a power supply, e.g., power supply 216, in response to the output from the control unit indicating that the resting surface is unoccupied, and to not draw power from the power supply, in response to the output indicating that the resting surface is occupied.

In some applications, system 10 is configured to analyze sleep patterns of a subject and, in response thereto, produce a sleep report which can be used, for example, for clinical sleep-study purposes.

In some applications, system 10 is configured to monitor subjects who are generally healthy, in order to help the subjects maintain or improve their state of well-being. For example, system 10 may be configured to help a healthy subject avoid unhealthful conditions or improve sleep quality.

In some applications, system 10 is configured to be used in combination with home- based appliances. For example, system 10 may be configured to transmit a signal to a coffee- maker, the signal indicating that the subject has woken up and/or has left the bed and might soon wish to drink a cup of coffee.

In some applications, a resting surface, e.g., a mattress, is configured to be used with motion sensor 30, such that motion sensor 30 may be disposed within the mattress. For example, the mattress may have an opening at its side configured to receive motion sensor 30, as well as a receptacle contained within the mattress configured to hold the sensor. Configuring a mattress in this manner allows for the sensor to be disposed closer to the subject, relative to applications in which the sensor is disposed underneath the mattress.

In some applications, control unit 14 is configured to receive mattress-related parameters such as thickness and resilience, and to analyze the signal from motion sensor 30 in light of the parameters. The mattress-related parameters may facilitate the quantification of signal amplitude on more of an absolute scale, thus facilitating a more effective response to the signal. For example, if the signal from sensor 30 indicates a weak heartbeat, but the mattress is relatively thick and resilient, control unit 14 may withhold the output unit from generating an alert.

Reference is made to Figs. 1 , 2, 4, and 16. In some applications, control unit 14 (e.g., via heartbeat pattern analysis module 23) is further configured to calculate an indication of a left- ventricle-ejection-time (LVET) of subject 12. LVET is the time from the opening of the aortic valve during a heartbeat to the closing of the aortic valve during the heartbeat. A decrease in LVET may be indicative of a clinical condition, such as hypovolemia and/or hemorrhaging, that requires immediate medical attention. Reference is made to Fig. 16, which is a schematic illustration of ballistocardiographic (BCG) signals 300, 302, and 304 (in arbitrary units) used for calculating the indication of the LVET, in accordance with some applications of the present invention. Signal 300 is a heartbeat-related signal that is extracted by heartbeat pattern analysis module 23 from the raw motion signal generated by sensor 30. Signal 300 is typically extracted by means of spectral filtering in the range of about 0.8 to about 5.0 Hz, as described hereinabove. (A matched filter may be used to extract signal 302.) Signal 300 is typically smoothed by a low-pass filter to yield signal 302. (In Fig. 16, signal 300 is generally smooth, such that signal 302 appears substantially identical to signal 300.) The derivative of signal 302 is calculated by module 23, after which the derivative is typically smoothed with a low-pass filter, yielding signal 304. Each of signals 300, 302, and 304 is marked in Fig. 16 to show an indication of aortic valve openings (AO) and closings (AC). As described above, the time between these events is the LVET of the subject.

Heartbeat pattern analysis module 23 is configured to calculate an indication of the LVET by analyzing signal 304. (In some applications, the unsmoothed derivative of signal 302, instead of signal 304, is analyzed.) For example, heartbeat pattern analysis module 23 may be configured to identify the most prominent positive peaks 308 in signal 304. Following the identification of peaks 308, module 23 identifies the positive peaks 306 that immediately precede peaks 308, which correspond to AO, and the negative peaks 310 that immediately follow peaks 308, which correspond to AC. As appropriate, techniques described in Alametsa et al, "Ballistocardiogaphic studies with acceleration and electromechanical film sensors", Medical Engineering & Physics, 2009, which is incorporated herein by reference, may be applied to calculating the LVET. The time between peaks 306 and 310, and/or another indication of the LVET, is then calculated by module 23, and control unit 14 drives an output device, e.g., user interface (U/I) 24, to generate an output, such as an audio and/or visual output, in response to the calculated indication. Typically, calculating the indication involves averaging one or more parameters, such as the time between peaks 306 and 310, over several heartbeats.

In some applications, control unit 14 (e.g., via module 23) is further configured to identify a risk of hypovolemia of the subject, in response to the calculated indication of the LVET. For example, module 23 may determine that the LVET has decreased, relative to previously-calculated LVETs and/or to a subject-baseline LVET or a population-baseline LVET, such that the subject is at risk of hypovolemia. For example, the subject may be experiencing hypovolemia and/or hemorrhaging. Control unit 14 drives U/I 24 to generate the output in response to the identified risk of hypovolemia. Typically, the generated output includes an alert to a physician or other caregiver.

In some applications, control unit 14 (e.g., via module 23) is further configured to identify a change in stroke volume of subject 12. Typically, this is done by using the amplitude 312 of heartbeat signal 302 as an indication of the subject's stroke volume, as amplitude 312 is typically positively correlated to stroke volume. Typically, while amplitude 312 is being monitored by module 23, raw signal 300 is also being processed by system 10 to identify any posture changes of the subject. For example, the system may identify a posture change using techniques as described in US 2011/0112442 to Meger, which is incorporated herein by reference. If no posture change has been identified, a change in amplitude 312 is likely indicative of a change in stroke volume, since the change in amplitude cannot be attributed to a posture change of the subject. Control unit 14 drives the output device (e.g., U/I 24) to generate an output, in response to the identified change in stroke volume.

In some applications, the control unit is further configured to identify a risk of hypovolemia of the subject, in response to the identified change in stroke volume. For example, the control unit may identify a risk of hypovolemia (e.g., of hemorrhaging), in response to the stroke volume dropping below a specified absolute or percentage threshold. Control unit 14 drives U/I 24 to generate the output in response to the identified risk of hypovolemia. Typically, the generated output will include an alert to a physician or other caregiver. In some applications, the risk of hypovolemia is identified in response to both the change in stroke volume and a change in LVET. For example, a slight decrease in stroke volume may be cause for alarm only if it is accompanied by a decrease in LVET.

Reference is now made to Fig. 17, which is a schematic illustration of apparatus for use with a plurality of sleeping subjects 314, in accordance with some applications of the present invention. The apparatus comprises at least one sensor 316 (e.g., at least two sensors 316, e.g., exactly two sensors 316) configured to monitor each of subjects 314 while the subjects sleep. For example, as shown in Fig. 17, sensors 316 may comprise non-contact motion sensors 30, configured to sense motion of the subjects while the subjects sleep. (Typically, to help reduce contamination of the motion signal by motion of the other subject, each sensor 30 is placed underneath the outer shoulder of the subject being sensed.) Alternatively or additionally, sensors 316 may comprise at least one sensor of another type, such as an electromyographic sensor and/or an imaging sensor. In response to the monitoring, sensors 316 generate a respective signal for each of the subjects. Control unit 14 is configured to analyze the signals, and, based on the analyzing, identify at least one sleep- related parameter for each of the subjects. For example, for each of the subjects, the control unit may be configured to identify one or more of the following parameters:

(i) A length of time for which the subject has been sleeping, e.g., a length of time for which the subject has been in a deep sleep;

(ii) A number of prior awakenings of the subject, e.g., a number of prior awakenings during the present sleeping period and/or during a previous sleeping period;

(iii) A stage of a sleep cycle of the subject.

In identifying the sleep-related parameter(s), as well as generally, in identifying that a person is sleeping and/or in identifying a sleep stage of the person (e.g., as described below with reference to numerous figures), the control unit may use one or more of the techniques described in US 2013/0267791 to Halperin, which is incorporated herein by reference.

At least in response to the identified sleep-related parameters, and typically further in response to receiving an input from a second sensor 318, control unit 14 identifies at least one of the subjects for wakening, and at least one of the subjects not for wakening. Typically, the apparatus further comprises a wakening device 324, and the control unit is configured to drive wakening device 324 to wake the subject(s) identified for wakening. A typical situation in which the described apparatus may be used is shown in Fig. 17. Two parents 314 of a baby 320 are sleeping on a bed 37, while baby 320 sleeps in a different room. Second sensor 318 comprises, for example, an audio sensor 322, configured to communicate (e.g., wirelessly) a signal to control unit 14 in response to sounds made by baby 320. (In other applications, sensor 318 may comprise a different type of sensor, such as non- contact motion sensor 30 and/or an image sensor.) In response to receiving the input from sensor 318, the control unit identifies that baby 320 is crying, such that one of parents 314 should be wakened. Based on the sleep-related parameters, the control unit identifies the parent to be wakened. For example, if one parent is in a deep sleep while the other is not, the latter may be identified for wakening. Similarly, if one parent awoke in response to the previous crying episode, the other parent may be wakened in response to the current episode. In some applications, as shown in Fig. 17, wakening device 324 comprises a separate unit (e.g., a separate alarm-generating mechanism) for each of the sleeping subjects, such that one subject can be woken with minimal disturbance to the other. In other applications, wakening device 324 comprises a single unit. For example, in some applications, wakening device 324 may be integrated with U/I 24 (Fig. 2).

Although Fig. 17 shows two sensors 316, it is noted that the scope of the present invention includes the use of exactly one sensor 316 (e.g., exactly one motion sensor 30) to monitor both subjects 314. It is further noted that the apparatus described with reference to Fig. 17 may be used in combination with subject identification module 102 (Fig. 4), which helps differentiate between the motion of the first subject and the motion of the second subject, and/or in combination with one or more of the mechanical filtering applications described hereinabove. For example, sensor plate 140 with hardened edges 142 (Fig. 5), sensor plate 238 with rigid edge region 227 (Fig. 9A), etc. may be used in order to reduce contamination of one subject's motion signal by the other subject. Similarly, other "two- person" applications described hereinbelow with reference to Figs. 18, 20, 21, and 22 may be practiced in combination with subject identification module 102 and/or one or more of the mechanical filtering applications described herein.

Other situations in which the described apparatus may be used include a situation in which a plurality (e.g., three or more) doctors or other caregivers are sleeping in a room, e.g., a resting room in a hospital. Sensor 318 senses a physiological parameter of a patient, and communicates the parameter to the control unit. In this situation, sensor 318 typically comprises a "dedicated" physiological sensor, such as an electrocardiograph, blood pressure monitor, etc., although sensor 318 may also comprise a sensor of the type described above, e.g., non-contact motion sensor 30. In response to the input from the sensor, the control unit determines that at least one, but not all, of the doctors should be woken, in order to tend to the patient. Based on the sleep-related parameters, as described above with respect to the parents of baby 320, the control unit identifies at least one of the doctors for wakening, and at least one of the doctors not for wakening. (In this situation, subjects 314 will typically be sleeping on multiple respective beds, and the apparatus may comprise more than one control unit, e.g., one control unit per bed, in communication with each other.)

In some applications, the control unit is further configured to generate a report that shows a history of the at least one sleep-related parameter for each of the subjects. The report may be generated at regular intervals, such as after every night. The generation of such a report may be helpful in avoiding conflicts. For example, in the parenting situation described above, the parent who was woken may feel less resentful if the report shows that despite been woken to tend to the crying baby, he/she slept better and/or longer overall, relative to the other parent.

Reference is now made to Fig. 18, which is a schematic illustration of apparatus for activating a medical device 326 (e.g., a continuous positive airway pressure (CPAP) device) for a subject 12 who is sleeping in proximity to at least one other person 328, in accordance with some applications of the present invention. The apparatus comprises at least one sensor 316 (e.g., at least two sensors 316, e.g., exactly two sensors 316) configured to monitor subject 12 and person 328. For example, as shown in Fig. 18, sensors 316 may comprise non-contact motion sensors 30, configured to sense motion of subject 12 and person 328 while they sleep. Alternatively or additionally, sensors 316 may comprise at least one sensor of another type, such as an electromyographic sensor and/or an imaging sensor. In response to the monitoring, sensors 316 generate a respective signal for each of subject 12 and person 328. Control unit 14 analyzes the signal for the subject, and, based on the analyzing, identifies at least one physiological parameter of the subject that relates to whether or not the device should be activated. For example, the control unit may identify a respiration-related parameter of subject 12 that is indicative of an occurring or expected episode of apnea, e.g., as described in US 2013/0281866 to Shinar, which is incorporated herein by reference. Alternatively or additionally, the control unit may identify a sleep-related parameter of subject 12 (e.g., how deeply the subject is sleeping) that relates to whether or not the device should be activated.

If subject 12 were sleeping alone, the identification of the physiological parameter might be sufficient cause to activate medical device 326. For example, if subject 12 were sleeping alone, the respiration-related parameter predictive of an apnea episode might be sufficient cause for the control unit to activate the CPAP device. However, given that subject 12 is not sleeping alone, the control unit also analyzes the signal for the other person, identifies at least one sleep-related parameter of the other person based on the analyzing, and activates the medical device further in response to the sleep-related parameter. For example, the sleep-related parameter may include a stage of sleep of the other person. If the other person is in a deep sleep, for example, the medical device may be activated, since the activation of the device is unlikely to disturb the other person. Conversely, if the other person is awake, the medical device may not be activated, since activation of the device may prevent the person from falling asleep. (If the other person is in a light sleep, the medical device may or may not be activated, depending on the application and possibly also on other factors, as further described immediately hereinbelow.) In some applications, the sleep- related parameter includes an indication of whether the other person is trying to fall asleep, and the control unit is configured to activate (or not activate) the medical device based on the indication. For example, if the parameter indicates that the other person is awake but is not trying to fall asleep (e.g. the other person is sitting in bed, and/or reading while lying in bed), the device may be activated. Conversely, if the parameter indicates that the other person is trying to fall asleep (e.g., the person is lying in a sleeping position) the device may not be activated. In some applications, an override feature is provided, whereby the medical device may be activated regardless of the sleep-related parameter of the other person.

In some applications, the control unit identifies one or more other factors, and in response to those factors, activates (or does not activate) the medical device. For example, in some applications, the control unit is further configured, based on the analyzing of the subject's signal, to identify a likelihood of an upcoming occurrence of a clinical episode of the subject. For example, the control unit may identify that there is high chance that the subject will soon experience an episode of apnea. In response to this likelihood, the control unit may activate the CPAP device, even if the other person is likely to be disturbed. In some applications, the control unit is further configured to, based on the analyzing of the subject's signal, identify an expected severity of the upcoming occurrence, and to activate (or not activate) the medical device in response to the expected severity. For example, if the predicted apnea episode is expected to be severe, the control unit may be configured to activate the medical device, even if the other person is likely to be disturbed.

In some applications, the control unit is configured to activate the medical device, further in response to an input that includes a history of awakenings of the subject and/or of the other person in response to previous activations of the medical device. For example, if the history shows that the other person is typically woken when the device is activated, the control unit may activate the device less readily, e.g., only if the other person is in a deep sleep. In some applications, the control unit is configured to track the history of awakenings of the subject and/or of the other person, thus allowing the control unit to learn the proper threshold to use when determining whether or not to activate the device. In some applications, the control unit is configured to activate the medical device, further in response to an input indicative of a sleep-disturbance tolerance of the subject, and/or an input indicative of a sleep-disturbance tolerance of the at least one other person. This input may be received, for example, via U/I 24 (Fig. 2). If the tolerance is low (i.e., if the input indicates that the subject and/or the other person is a light sleeper), the control unit will activate the device less readily.

In some applications, as shown in Fig. 18, the control unit is further configured to activate a noise-cancelation device 330 (e.g., noise-canceling headphones) for the at least one other person, upon activating the medical device. For example, if the control unit has determined that the medical device should be activated, but the other person is likely to be disturbed by the activation of the device, the control unit may activate the medical device while also activating noise-cancelation device 330.

Although Fig. 18 shows two sensors 316, it is noted that the scope of the present invention includes the use of exactly one sensor 316 (e.g., exactly one motion sensor 30) to monitor both subject 12 and other person 328. In such applications, subject identification module 102 (Fig. 4) may be used to differentiate between the motion of the subject and the motion of the other person.

Reference is now made to Fig. 19, which is a schematic illustration of apparatus 334 for use with a person 338 who is on a resting surface 37 (e.g., a bed) and for use with an illuminator 332, in accordance with some applications of the present invention. (Illuminator 332 may be integrated with resting surface 37, as shown in Fig. 19, or disposed at the side of the resting surface, e.g., on a night table.) Apparatus 334 comprises a sensor 316 configured to monitor person 338 and generate a signal in response thereto. Sensor 316 may comprise, for example, non-contact motion sensor 30, configured to sense motion on resting surface 37 and generate a motion signal in response thereto. Alternatively or additionally, sensor 316 may comprise at least one sensor of another type, such as an electromyographic sensor and/or an imaging sensor.

Control unit 14 is configured to analyze the signal from the sensor, and, in response thereto, calculate a bed-exit likelihood, which is a likelihood that the person has left the resting surface and/or a likelihood that the person is preparing to leave the resting surface. ("Preparing to leave the resting surface" may be defined, for example, as "intending to leave the resting surface within a given period of time, e.g., 2 minutes".) In response to the bed- exit likelihood, control unit 14 selects an illumination intensity value from a set of at least three values, and sets an illumination intensity of illuminator 332 to the selected illumination intensity value. For example, from a set of "high", "low", and "off", control unit may select "high" in response to a relatively high likelihood, "low" in response to a lower likelihood, and "off" in response to a relatively low likelihood. (The set of "high", "low", and "off" is being used here as an example only. In practice, the set of values may contain any number of values that is at least three.) The control unit sets the illumination intensity by sending a wired or wireless signal to the illuminator. (Similarly, with respect to all descriptions herein of the control unit controlling a device, e.g., the communication device, waking mechanism, etc. shown in any of Figs. 20-23, it is noted that the control unit controls the device by sending a wired or wireless signal to the device.) In calculating the likelihood that the person has left the resting surface, the control unit may, for example, use one or more of the bed- exit-detection techniques described in US 2013/0267791 to Halperin, which is incorporated herein by reference. Typically, in response to analyzing the signal, control unit 14 calculates a likelihood that the person is awake (e.g., using one or more of the awakening-detection techniques described in US 2013/0267791 to Halperin, which is incorporated herein by reference), and calculates the bed-exit likelihood in response thereto. For example, if the motion signal from motion sensor 30 is indicative of the person being awake, the control unit may calculate a relatively high likelihood that the person is awake, and, in response thereto, a relatively high likelihood that the person is preparing to leave the resting surface. Alternatively or additionally, the control unit calculates a likelihood that the person is sitting (e.g., using one or more of the techniques described in US 2013/0267791 to Halperin, which is incorporated herein by reference), and calculates the bed-exit likelihood in response thereto. For example, the control unit may calculate a relatively high likelihood that the person is sitting, and, in response thereto, a relatively high likelihood that the person is preparing to leave the resting surface. Alternatively or additionally, the control unit calculates a signal-to-noise ratio (SNR) of the signal (e.g., by using a real-time noise estimator, and/or as described in US 2013/0267791 to Halperin, which is incorporated herein by reference), and calculates the bed-exit likelihood in response thereto. Typically, a relatively high signal-to-noise ratio is indicative that the person is in bed, whereas a relatively low signal-to-noise ratio is indicative that the person has left the bed. Therefore, the control unit typically calculates a higher bed- exit likelihood in response to calculating a first signal-to-noise ratio, relative to calculating a second signal-to-noise ratio that is higher than the first signal-to-noise ratio.

In some applications, the control unit calculates both types of bed-exit likelihood, i.e., both the likelihood that the person has left the resting surface, and the likelihood that the person is preparing to leave the resting surface. In response to the likelihood that the person has left the resting surface, the control unit identifies a first illumination intensity value from the set of values, and in response to the likelihood that the person is preparing to leave the resting surface, the control unit identifies a second illumination intensity value from the set of values. The control unit then selects a maximum value of the first illumination intensity value and the second illumination intensity value, and sets the illumination intensity of the illuminator to the maximum value. For example, referring again to the set of "high", "low", and "off", if there is a relatively low likelihood that the person has left the bed, such that the first selected value is "off", but there is a relatively high likelihood that the person is preparing to leave the bed, such that the second selected value is "high", the control unit will set the illuminator to "high". Alternatively, for example, if there is a relatively high likelihood that the person has left the bed, such that the first selected value is "high", the control unit will set the illuminator to "high", regardless of the likelihood that the person is preparing to leave the bed.

Typically, control unit 14 selects the illumination intensity value by applying to the bed-exit likelihood a function that is generally monotonically increasing with respect to the bed-exit likelihood, and selecting the output of the function as the illumination intensity value. (In the context of the present application, a function that is generally monotonically increasing is a function for which at least 90% of the output values are not less than the preceding output value. The same definition applies to generally monotonically decreasing, mutatis mutandis.) Typically, the control unit selects a zero illumination intensity value (i.e., "off"), in response to the bed-exit likelihood being less than a threshold. For example, the control unit may select a "high" intensity in response to likelihoods above 90%, a "low" intensity in response to likelihoods between 30% and 90%, and "off" in response to likelihoods below 30%.

In some applications, the control unit selects the illumination intensity value further in response to a time of day, a date, a geographical location, a sunrise time, and/or a sunset time. For example, if the person usually sleeps between 11 pm and 6 am, the control unit may select a "high" intensity in response to a likelihood of 90% at 7 am, but a "low" intensity in response to a likelihood of 90% at 3 am. Alternatively or additionally, apparatus 334 further comprises an ambient light detector 336 configured to detect a level of ambient light, and the control unit selects the illumination intensity value further in response to the level of ambient light. For example, in response to a likelihood of 90%, the control unit may select a "high" intensity if there is a relatively low level of ambient light, but only a "low" intensity if there is a relatively high level of ambient light.

In some applications, the control unit is further configured to, in response to the bed- exit likelihood and/or a time of day, select an illumination color value from a set of at least two color values, and set an illumination color of the illuminator to the selected illumination color value. For example, the control unit may select a red color in response to a relatively low bed-exit likelihood, and a blue color in response to a relatively high bed-exit likelihood; alternatively or additionally, the control unit may select a red color during typical sleeping hours, and a blue color otherwise. For at least some people, red illumination is more conducive to sleep than is blue illumination. Thus, the selection of the red color during typical sleeping hours, rather than the blue color, helps the person fall asleep upon returning to bed. Furthermore, the selection of the red color in response to a relatively low bed-exit likelihood helps minimize the disturbance to the person in the event of a "false positive", i.e., in the event that the person is not actually preparing to leave the bed.

In some applications, control unit 14 is configured to identify a sleep stage of person 338. In such applications, the control unit may ascertain, in response to analyzing the signal, that person 338 is in a light sleep stage on the resting surface, and in response thereto, drive illuminator 332 to wake the person by illuminating. Waking the person in this manner may be helpful, for example, if the person shares a bed and/or a room with a second person (as described hereinbelow with reference to Fig. 20), since an increase in illumination may be less disturbing to the second person than the sounding of an alarm. Since, however, the increase in illumination may be insufficient to wake person 338 if (s)he is in a relatively deep sleep, illumination is used to wake the person only if the person is in a light sleep stage.

Reference is now made to Fig. 20, which is a schematic illustration of apparatus 334, in accordance with some applications of the present invention. In some applications, first person 338 shares a sleeping area (e.g., a bed, and/or a room) with a second person 340. In such applications, the control unit identifies a second-person-sleeping likelihood, which is a likelihood that the second person is sleeping, and selects the illumination intensity value further in response to the second-person-sleeping likelihood. For example, in response to a bed-exit likelihood of 90%, the control unit may select a "high" intensity if the second- person-sleeping likelihood is relatively low, but only a "low" intensity if the second-person- sleeping likelihood is relatively high. Typically, the control unit applies to the second- person-sleeping likelihood a function that is generally monotonically decreasing with respect to the second-person-sleeping likelihood, and selects the output of the function as the illumination intensity value. The control unit may apply a two-variable function to (a) the bed-exit likelihood and (b) the second-person- sleeping likelihood, where the two-variable function is generally monotonically increasing with respect to the bed-exit likelihood, and generally monotonically decreasing with respect to the second-person-sleeping likelihood. An example of such a function, for each of the two types of bed-exit likelihood, is shown in the tables below. (For simplicity and ease of illustration, the second-person-sleeping likelihood is shown as having one of only two values: "low", and "high", even though, in practice, it can take on any number of values between 0 and 100%.)

Table 1

Likelihood that the Lighting intensity

first person has exited

the bed

High second-person- Low second-person- sleeping likelihood sleeping likelihood

0% 0% 0%

10% 0% 0%

20% 0% 10%

30% 10% 20%

40% 10% 30%

50% 20% 40%

60% 30% 40%

70% 50% 60%

80% 60% 80%

90% 80% 100%

99% 80% 100% Table 2

As described hereinabove with reference to Fig. 19, the control unit may select two intensity values in response to, respectively, the two types of bed-exit likelihood, and select the maximum of the two values as the illuminator intensity. For example, if the likelihood that the first person has exited the bed is 30%, the likelihood that the first person is preparing to exit the bed is 60%, and the second-person- sleeping likelihood is "low", the control unit may select (per Tables 2 and 3 above) the maximum of a 20% intensity and a 10% intensity, which is 20%.

In some applications, the control unit selects a zero illumination intensity value (i.e., an "off" value), in response to the second-person-sleeping likelihood exceeding a threshold. This selection may also be in response to other factors, e.g., the bed-exit likelihood. For example, if the bed-exit likelihood is relatively high, the control unit may not select a zero illumination intensity value, even though the second-person- sleeping likelihood exceeds the threshold.

In some applications, a single sensor 316 senses the motion of both persons. This may be the case, for example, when the first and second persons share a bed, and a single motion sensor 30 is used to sense motion on the bed. The control unit analyzes the motion signal from the single sensor, and calculates the second-person-sleeping likelihood in response thereto. (When a single motion sensor 30 is used, subject identification module 102 (Fig. 4) may be used to differentiate between the motion of the first person and the motion of the second person.) In other applications, such as the application shown in Fig. 20, a first sensor 316a (e.g., a first motion sensor 30a) monitors first person 338, while a second sensor 316b (e.g., a second motion sensor 30b) monitors second person 340. (The two persons may be on the same bed, or on different beds.) The control unit analyzes the signal (e.g., a motion signal) from second sensor 316b, and in response thereto, calculates the second- person-sleeping likelihood.

Alternatively or additionally, the control unit identifies the second-person-sleeping likelihood in response to a time of day. For example, if the second person usually sleeps between 11 pm and 6 am, the control unit may identify a higher second-person-sleeping likelihood between 11 pm and 6 am, relative to other times of the day. Alternatively or additionally, apparatus 334 further comprises an input unit 342, and the control unit identifies the second-person-sleeping likelihood in response to an input thereto. For example, the second person may use input unit 342 to indicate that (s)he is going to sleep, and the control unit will, in response to the input, begin to identify a higher second-person-sleeping likelihood. Input unit 342 may be part of user interface (U/I) 24, described hereinabove with reference to Fig. 1, or may be a separate unit, such as the input unit of a mobile phone that is in communication with the control unit.

In some applications, as shown in Fig. 20, apparatus 334 is for use with both first illuminator 332 and a second illuminator 344, where the illuminators are located such that, when the first and second persons are on resting surface 37 (or on separate resting surfaces 37), first illuminator 332 is closer to the first person than to the second person, and second illuminator 344 is closer to the second person than to the first person. The control unit is configured to set an illumination intensity of the second illuminator to be different from the illumination intensity of the first illuminator, in response to (a) a likelihood that the second person has left resting surface 37, and/or a likelihood that the second person is preparing to leave resting surface 37 (i.e., the bed-exit likelihood for the second person), and (b) a likelihood that the first person is sleeping (i.e., a first-person-sleeping likelihood).

Reference is now made to Fig. 21, which is a schematic illustration of apparatus 346 for use with a waking mechanism 348 (e.g., an alarm clock, a mobile phone, an illuminator, and/or a vibrating element) that executes a waking routine to wake a subject 12 (e.g., first person 338) who is sleeping near second person 340, in accordance with some applications of the present invention. Apparatus 346 comprises a sensor 316, configured to monitor second person 340 and generate a signal in response thereto. Sensor 316 may comprise, for example, motion sensor 30, configured to sense motion on the resting surface 37 on which the second person is resting and generate a motion signal in response thereto. Alternatively or additionally, sensor 316 may comprise at least one sensor of another type, such as an electromyographic sensor and/or an imaging sensor.

Prior to execution of the waking routine, control unit 14 analyzes the signal from sensor 316. In response to analyzing the signal, the control unit identifies a likelihood that the second person is sleeping, and in response to the likelihood, sets an intensity of the waking routine by sending a signal to the waking mechanism. For example, in response to a relatively high likelihood, the control unit will set the intensity of the waking routine (e.g., the volume of an alarm) to be relatively low, so as to reduce disturbance to the second person. Following the beginning of the execution of the waking routine, the control unit analyzes the signal. If, in response to analyzing the signal, the control unit identifies that the subject has not woken, the control unit increases the intensity of the waking routine, e.g., increases the volume of an alarm. These steps may be repeated several times, until the control unit identifies that the subject has woken. In this manner, the chances of waking the second person are reduced. Alternatively or additionally, in response to a relatively high likelihood that the second person is sleeping, the control unit may activate an alternate waking mechanism that is less potentially disturbing to the second person, such as an illuminator (Fig. 20). In some applications, control unit 14 further identifies a sleep stage of the second person, and sets the intensity of the waking routine in response to the identified sleep stage. For example, if the second person is in a deep sleep, and therefore less likely to be disturbed by the waking routine, the control unit may set the waking routine to a relatively high intensity.

Fig. 21 also shows apparatus 376 for use with a communication device 378 belonging to a first person 338, in accordance with some applications of the present invention. (It is noted that communication device 378 may be identical to waking mechanism 348.) Communication device 378 generates an alert upon receiving an incoming communication; for example, communication device 378 may include a mobile phone that rings upon receiving an incoming call.

In response to analyzing the signal from sensor 316, the control unit identifies a likelihood that the second person is sleeping, and controls an intensity of the alert in response to the identified likelihood. For example, in response to identifying that there is a relatively high likelihood that the second person is sleeping, the control unit may lower the intensity of the alert (e.g., lower the volume of the ring), or inhibit the communication device from activating the alert (e.g., mute the phone). In some applications, the control unit continually identifies the likelihood that the second person is sleeping, and continually controls the communication device in response thereto. (For example, the control unit may continually adjust the volume of the ringer of the phone, regardless of whether there is an incoming call.) In other applications, the control unit controls the intensity of the alert further in response to the communication device receiving the incoming communication, e.g., the control unit adjusts the volume of the ringer only upon the phone receiving an incoming call.

In some applications, the control unit controls the intensity of the alert in response to the identified sleep stage of second person 340. For example, if the second person is sleeping lightly (and is therefore relatively likely to be disturbed by the alert), the control unit may lower the volume of the ring more than if the second person were sleeping deeply or were awake.

Fig. 21 also shows apparatus 386 for use with a mechanism 388 (e.g., a toilet-flushing mechanism or a window-opening mechanism) that is activated by a first person 338, in accordance with some applications of the present invention. In response to analyzing the signal from sensor 316 (e.g., motion sensor 30), the control unit identifies a likelihood that the second person is sleeping, and delays the activation of the mechanism, and/or inhibits (e.g., prevents) the activation of the mechanism, in response to the identified likelihood. For example, if the control unit identifies a high likelihood that second person 340 is sleeping, the control unit may delay the flushing of the toilet until the likelihood is reduced. (This may be effected, for example, by communicating a signal to a "smart" toilet fiusher of the toilet.) In some applications, the control unit further identifies a sleep stage of the second person, and delays the activation of the mechanism in response to the identified sleep stage. For example, the flushing of the toilet may be delayed if the second person is sleeping lightly, but not if the second person is sleeping deeply or is awake.

In order to reduce contamination of the motion signal from second person 340, the applications shown in Fig. 21 may be practiced in combination with subject identification module 102 (Fig. 4), and/or in combination with mechanical filtering provided by, for example, sensor plate 140 with hardened edges 142 (Fig. 5), sensor plate 238 with rigid edge region 227 (Fig. 9 A), etc., as described hereinabove.

Reference is now made to Fig. 22, which is a schematic illustration of apparatus 350 for use with a waking mechanism 348 (e.g., an alarm clock, a mobile phone, an illuminator, and/or a vibrating element) that executes a waking routine to wake a subject 12 (e.g., a first person 338) who is on a resting surface 37, in accordance with some applications of the present invention. Apparatus 350 comprises a sensor 316, configured to monitor subject 12 and generate a signal in response thereto. Sensor 316 may comprise, for example, non- contact motion sensor 30, configured to sense motion on the resting surface 37 on which the subject is resting and generate a motion signal in response thereto. Alternatively or additionally, sensor 316 may comprise at least one sensor of another type, such as an electromyographic sensor and/or an imaging sensor. Prior to execution of the waking routine, control unit 14 analyzes the signal from the sensor. If the control unit identifies, in response to the analyzing, that the subject is not on the resting surface, the control unit inhibits waking mechanism 348 from executing the waking routine.

In some applications, control unit 14 is further configured to identify a likelihood that a second person 340 is sleeping near the subject, and set an intensity of the waking routine in response to the likelihood by sending a signal to the waking mechanism. Generally, this is done as described hereinabove with reference to Fig. 21 ; for example, the control unit may increase the intensity of the waking routine one or more times, until the subject is woken. Furthermore, in some applications, the control unit changes an angle of the resting surface (e.g., as described in US 2013/0267791 to Halperin, which is incorporated herein by reference), in response to identifying that the waking routine has not woken the subject. The change in angle of the resting surface may facilitate the waking of the subject, while causing only a relatively small disturbance to other individuals in the area, e.g., second person 340. In some applications, the control unit identifies a sleep stage of the subject, and changes the angle of the resting surface in response to the identified sleep stage. For example, if the subject is in a deep sleep, the control unit may change the angle by a relatively large amount, such as to increase the probability that the subject will wake up.

In some applications, if control unit 14 identifies, in response to analyzing the signal following the beginning of execution of the waking routine, that the subject has woken, the control unit changes the angle of the resting surface. For example, the control unit may move the upper portion of the bed to a more upright position, in order to facilitate the subject's exit from bed.

Although Fig. 22 shows two sensors 316, it is noted that the scope of the present invention includes the use of exactly one sensor 316 (e.g., exactly one motion sensor 30) to monitor both first person 338 and second person 340. In such applications, subject identification module 102 (Fig. 4) may be used to differentiate between the motion of the first person and the motion of the second person.

Reference is now made to Fig. 23, which is a schematic illustration of apparatus 352 for use with (i) a waking mechanism 348 that executes a waking routine to wake a subject 12 who is on a resting surface 37, and (ii) an output unit 354, in accordance with some applications of the present invention. (In some applications, as shown in Fig. 23, a single device, such as a mobile phone, may include both waking mechanism 348 and output unit 354.) Apparatus 350 comprises a sensor 316, configured to monitor subject 12 and generate a signal in response thereto. Sensor 316 may comprise, for example, motion sensor 30, configured to sense motion on the resting surface 37 on which the subject is resting and generate a motion signal in response thereto. Alternatively or additionally, sensor 316 may comprise at least one sensor of another type, such as an electromyographic sensor and/or an imaging sensor.

Prior to execution of the waking routine, control unit 14 analyzes the signal from sensor 316, and, in response to analyzing the signal, identifies a sleep stage of the subject. Upon the subject waking, the control unit drives output unit 354 to output the identified sleep stage to the subject, only if the identified sleep stage is a slow-wave (i.e., deep) sleep stage. (The output may include a technical description of the sleep stage, e.g., "NREM stage 3", and/or a non-technical description, e.g., "deep sleep".) Alternatively or additionally, the control unit drives output unit 354 to output a recommendation to the subject to perform a wakefulness-inducing activity, only if the identified sleep stage is a slow-wave sleep stage. For example, the control unit may drive the output unit to output an audio and/or visual message such as "You were just woken from a deep sleep. Consider doing some light exercise, or drinking a coffee." Alternatively or additionally, the control unit drives the output unit to output a recommendation to the subject to refrain from operating a vehicle for a specific period of time, only if the identified sleep stage is a slow-wave sleep stage.

In some applications, in response to analyzing the signal prior to the execution of the waking routine, the control unit identifies at least one physiological parameter of the subject, such as the subject's heart rate, heart rate variability, respiration rate, respiration rate variability, and/or blood pressure. The control unit then drives the output unit to output the physiological parameter, upon the subject waking. In some applications, the control unit drives the output unit to output the physiological parameter, only if the physiological parameter deviates from a baseline value. The output of the physiological parameter may help the subject manage his/her post-waking activities. For example, if the subject sees that his/her heart rate is relatively high, the subject may refrain from drinking coffee. In some applications, in response to the physiological parameter deviating from the baseline value, the control unit drives the output unit to output a recommendation to the subject to perform a specific activity (e.g., exercise), and/or a recommendation to refrain from performing a specific activity (e.g., drinking coffee).

Fig. 23 also shows apparatus 380 for use with communication device 378 (e.g., a mobile phone). In response to analyzing the signal from sensor 316 (e.g., motion sensor 30), control unit 14 identifies a sleep stage of subject 12, and controls an intensity of the alert that is generated by communication device 378 in response to the identified sleep stage. In some applications, the control unit lowers the intensity of the alert in response to a relatively light sleep stage, relative to a deeper sleep stage. For example, the subject may indicate before going to sleep that (s)he wishes to be woken upon receiving a call, but in a manner that generally minimizes potential disturbances to others. By providing for an alert intensity that is generally increasing with the deepness of the subject's sleep, the control unit generally provides for the ring volume to be loud enough to wake the subject up, but not significantly louder than necessary. In other applications, the control unit controls the intensity in the opposite manner, i.e., it raises the intensity of the alert in response to a relatively light sleep stage, relative to a deeper sleep stage. (For example, the control unit may inhibit the communication device from activating the alert, in response to the identified sleep stage being a slow-wave sleep stage, but allow the alert to be activated in response to a light sleep stage.) This behavior may be in response to the subject indicating before going to sleep that (s)he does not wish to be woken from a deep sleep, but does not mind being woken from a light sleep.

In some applications, as described hereinabove with reference to Fig. 21, the control unit controls the intensity of the alert further in response to the communication device receiving the incoming communication. In some applications, apparatus 380 further includes elements of apparatus 376, described hereinabove with reference to Fig. 21. For example, the control unit may be further configured to identify a likelihood that a second person 340 (Fig. 21) is sleeping near the subject, and control the intensity of the alert, further in response to the likelihood.

Fig. 23 also shows apparatus 382 for inhibiting outgoing communication from communication device 378 (e.g., a mobile phone). In response to analyzing the signal from sensor 316 (e.g., motion sensor 30), control unit 14 identifies that the subject is sleeping, and, in response thereto, inhibits (e.g., prevents) outgoing communication from the communication device. By doing so, the control unit may at least partially prevent "sleeptexting" by subject 12, and/or may at least partially prevent another user (e.g., a mischievous child) from using the subject's device without the subject's permission. In inhibiting the outgoing communication, the control unit may at least partially disable the communication device (e.g., disable the texting and/or calling functionality of a mobile phone). In some applications, the control unit drives the communication device to prompt the user to input an answer to an objective question (e.g., "What is the capital of Kansas?"), and allows outgoing communication from the communication device only if the answer is correct. In this manner, outgoing communication from a sleeping subject 12 (e.g., " sleep texting") may be at least partially prevented.

Fig. 23 also shows apparatus 384 for use with a subject 12 who is on a resting surface 37, in accordance with some applications of the present invention. In response to analyzing the signal from sensor 316 (e.g., motion sensor 30), the control unit identifies a likelihood that the subject has left the resting surface, and/or a likelihood that the subject is preparing to leave the resting surface. In response to the likelihood(s), and in response to the control unit further identifying that the subject is sleeping, the control unit generates a "sleepwalking" alert. For example, if the signal gave no indication that the subject woke prior to the indication that the subject left the bed, an alert will be generated. In response to the alert, a caregiver may come to the subject's aid.

Reference is now made to Fig. 24, which is a schematic illustration of apparatus 356 for identifying a posture of a subject 12, in accordance with some applications of the present invention. Apparatus 356 comprises a single motion sensor 30, configured to sense motion of a person (e.g., the subject, or any other person) without contacting or viewing the person or clothes the person is wearing, and generate a motion signal in response thereto.

During a learning stage 357, a person adopts a number of different lying postures at respective times, while being monitored by motion sensor 30. Control unit 14 receives a plurality of inputs indicative of postures of the person at the respective times. For example, for each posture that the person adopts, the control unit may receive an input that describes (or "classifies") the posture, e.g., "supine", "prone", etc. By using the plurality of inputs and by analyzing the motion signal at the respective times, the control unit learns a posture- identification technique. For example, the control unit may identify various features of the motion signal, such as amplitude, dominant frequencies, etc. that discriminate between the various postures. Then, during an operative stage 359 that follows learning stage 357, when the subject is lying on resting surface 37 (e.g., a hospital bed) and being monitored by sensor 30, the control unit uses the learned posture-identification technique to identify the posture of the subject. For example, by analyzing the motion signal, the control unit may identify particular features of the signal that, during the learning stage, were found to be indicative of a particular posture. The control unit then identifies that particular posture as being the posture of the subject.

Preferably, in order to improve the efficacy of the learned posture-identification technique, learning stage 357 is performed with the subject lying on resting surface 37, rather than with a different person and/or a different resting surface. However, in some applications (e.g., when the physical condition of subject 12 does not allow for the subject to participate in the learning stage), control unit 14 uses a more "generic" posture-identification technique that was learned (e.g., by the control unit) from one or more other persons lying on the same, or a different, resting surface. In using this technique, the control unit may make use of parameters relating to the subject's physical condition (e.g., the subject's body mass index), and/or the resting surface (e.g., a thickness of a mattress), in order to more effectively perform the posture identification.

In some applications, the control unit is further configured to verify compliance of a healthcare provider for the subject with a pressure-ulcer-prevention protocol, in response to identifying the posture.

Reference is now made to Fig. 25, which is a schematic illustration of apparatus 358 for monitoring a subject 12, in accordance with some applications of the present invention. Apparatus 358 comprises a motion sensor 30, configured to sense motion of the subject on resting surface 37 and generate a motion signal in response thereto. Control unit 14 analyzes the motion signal (analysis step 361), and, in response thereto, identifies that the subject has lain on the resting surface (first identification step 363). Subsequently to the subject lying on the resting surface, the control unit identifies a physiological parameter relating to a physiological slowing time of the subject (second identification step 365). For example, the control unit may identify a parameter relating to a slowing of a heart rate of the subject, such as the time for the heart rate to slow to a normal resting value. Alternatively or additionally, the control unit may identify a parameter relating to a slowing of a respiratory rate of the subject, such as the time for the respiratory rate to slow to a normal resting value. If the control unit identifies that the physiological parameter may be indicative of a physiological deterioration of the subject, the control unit generates an output (output generation step 367). In some applications, the control unit identifies that the physiological parameter may be indicative of a physiological deterioration of the subject by identifying that the physiological parameter deviates from a baseline value. For example, if, in a healthy person, the heart rate generally slows to a normal resting value within 1-5 minutes, but the subject's heart rate slowed to a normal resting value within more than 10 minutes (or did not slow to a normal resting value at all, within a given period of time), the control unit generates an output, e.g., a warning to a physician. The baseline may be with reference to the subject, rather than with reference to a healthy person. For example, the baseline heart-rate slowing time may be the average slowing time for the subject during the previous 7 days. In some applications, the control unit is further configured to calculate the baseline value by analyzing the motion signal following each of a plurality of instances of a person (e.g., any healthy person, or the subject) lying on a resting surface.

Alternatively or additionally, the control unit identifies that the physiological parameter may be indicative of a physiological deterioration of the subject by identifying a deteriorating trend in the physiological parameter. For example, if, over the last several days, the heart-rate slowing time of the subject has been steadily increasing, the control unit may identify this as a deteriorating trend, and may generate an output, e.g., a warning, in response thereto.

In some applications, the control unit identifies a possible physiological condition of the subject, in response to identifying that the physiological parameter may be indicative of a physiological deterioration of the subject, and generates an output in response thereto. For example, (a) in response to a deteriorating (e.g., increasing) trend in heart-rate slowing time, and/or a heart-rate slowing time that deviates from (e.g., is greater than) a baseline value, the control unit may identify that the subject possibly suffers from clinical anxiety, or (b) in response to a deteriorating (e.g., increasing) trend in respiratory-rate slowing time, and/or a respiratory-rate slowing time that deviates from (e.g., is greater than) a baseline value, the control unit may identify that the subject possibly suffers from asthma. In some applications, the control unit identifies an activity level of the subject, in response to analyzing the motion signal, and regulates the output in response to the identified activity level. Typically, the control unit regulates the output by generating the output only if an adjusted physiological parameter deviates from the baseline value, or if the physiological parameter deviates from an adjusted baseline value. For example, in response to identifying a relatively high activity level, the control unit may adjust a baseline heart-rate slowing time of 5 minutes to 7 minutes, and hence, may not generate the output unless the heart-rate slowing time of the subject exceeds 7 minutes. Alternatively or additionally, the control unit withholds generating the output if the identified activity level is greater than a threshold, and/or does not begin measuring the slowing time until the activity level of the subject falls below a threshold. By regulating the output in this manner, the control unit may at least partially avoid generating false alarms.

Reference is now made to Fig. 26, which is a schematic illustration of apparatus 360 for monitoring a subject (e.g., subject 12), in accordance with some applications of the present invention. Apparatus 360 comprises a sensor plate 362 comprising an upper surface 364 that is configured to deflect in response to motion of the subject. Apparatus 360 also comprises a sensor 366, such as a ceramic piezoelectric sensor, vibration sensor, pressure sensor, or strain sensor disposed underneath upper surface 364. Sensor 366 generates a motion signal in response to the deflection of upper surface 364, and control unit 14 analyzes the motion signal and generates an output indicative of a condition of the subject, in response thereto. Motion sensor 30, described throughout the present application, may comprise sensor plate 362 and sensor 366.

Center 368 of sensor 366 is typically disposed at a distance D from a center 370 of sensor plate 362 that is at least 30% and/or less than 70%, e.g., between 30% and 70%, of a length L of a line 372 drawn from center 370 of the sensor plate to a perimeter 374 of the sensor plate, through center 368 of the sensor. (In this context, the "center" of the sensor is the centroid of a surface of the sensor, and similarly, the "center" of the sensor plate is the centroid of a surface of the sensor plate.) Generally, the disposition of sensor 366 in this manner is advantageous in at least two ways:

(i) The sensor is more sensitive to deflections of the sensor plate at frequencies between 1 and 100 Hz, relative to if the sensor were disposed more toward the center or the perimeter of the sensor plate. The range of 1-100 Hz is significant, at least in that heartbeat- related signals and, to a lesser extent, respiratory-related signals from the subject include harmonic frequencies of interest that are within this range. (These harmonic frequencies may be used, for example, to predict a physiological condition of the subject, as described in US Patent 8,679,034, which is incorporated herein by reference.) The greater sensitivity to the aforementioned range of frequencies is due at least to (a) the asymmetric configuration of the sensor and sensor plate, and (b) the relative stiffness of upper surface 364 at the location at which sensor 366 is disposed.

(ii) For cases in which subject 12 shares a bed with a partner, sensor plate 362 may be placed underneath the subject such that sensor 366 faces toward the near edge of the bed, i.e., away from the partner. In this manner, sensor 366 will be less affected by signals from the partner, relative to if it were disposed closer to the center of the sensor plate. In this regard, it is noted that sensor plate 362 may also include elements of sensor plate 238, described hereinabove with reference to Figs. 9A-B and 10A-D. For example, sensor plate 362 may include noise filter plate 226 (Fig. 9B), which, as described hereinabove, allows for mechanical filtering of signals coming from the partner. Alternatively or additionally, for example, sensor plate 362 may include a slot 219 (as shown in Fig. 26), for improved sensing of the subject's signal and filtering of the partner's signal, as described hereinabove with reference to Fig. IOC.

Typically, the upper surface area A2 of the sensor is between 0.2 and 30 cm2. (Fig. 25 shows the lower surface area of the sensor, which is typically very close or identical to the upper surface area.) Further typically, the upper surface area Al of the sensor plate is between 20 and 200 cm2 or between 200 and 710 cm2. In some applications, upper surface area Al of the sensor plate is between 2 and 8 times greater, or between 8 and 30 times greater, than upper surface area A2 of the sensor.

Reference is now made to (a) Fig. 27A, which is a schematic illustration of apparatus 600 comprising motion sensor 30, a mains-power-connection device 602, and control unit 14, and (b) Fig. 27B, which is a schematic illustration of mains-power-connection device 602, in accordance with some applications of the present invention. Mains-power-connection device 602 comprises electrically-conductive protrusions (e.g., prongs) 604 that are configured to fit into holes in an electric socket. The mains-power-connection device receives electricity through electrically-conductive protrusions 604, and uses the electricity to deliver power to motion sensor 30. Control unit 14 is disposed within the mains-power-connection device such that, whenever the protrusions are placed inside the holes, the control unit is at least partially within 20 cm of the electric socket. For example, the control unit may be at least partially within 10 cm of the electric socket, i.e., distance D2 in Fig. 27A is less than 10 cm. As shown in Fig. 27B, mains-power-connection device 602 typically comprises a rigid housing 606, from which the electrically-conductive protrusions protrude, and inside of which the control unit is disposed. In general, the disposition of control unit 14 within mains- power-connection device 602 is advantageous, especially in a home setting, in that it is less noticeable to an observer that the patient/subject is being monitored. Typically, control unit 14 communicates wirelessly with a server, and/or with a mobile electronic device. For example, output from the control unit may be communicated to a physician's mobile electronic device.

Reference is now made to Figs. 28 and 29, which are schematic illustrations of apparatus 420 for use with a burglar alarm 422, in accordance with some applications of the present invention. Burglar alarm 422 includes a detector 424 (e.g., a motion detector) configured to detect activity (e.g., motion) and to generate an activity-detection signal in response thereto. Apparatus 420 comprises a sensor 316 (e.g., motion sensor 30), and control unit 14. Control unit 14 identifies a correspondence between (a) the activity-detection signal, and (b) the signal that is generated by sensor 30, and inhibits burglar alarm 422 from being triggered, in response to the correspondence. For example, if a person 426 is moving on resting surface 37, sensor 30 will generate a signal indicative of the movement. If this signal corresponds to the activity-detection signal of detector 424, e.g., detector 424 detects activity on resting surface 37, control unit 14 inhibits the burglar alarm from being triggered. On the other hand, the burglar alarm will not be inhibited if the two signals don't correspond, e.g., it can be inferred that detector 424 is detecting activity outside of resting surface 37. Another example is shown in Fig. 28. In Fig. 28, person 426 is shown as having left resting surface 37. In response to analyzing the signal from sensor 30, the control unit ascertains that the person has left the resting surface, and in response thereto, inhibits the burglar alarm from being triggered, since it is likely that the detector is detecting activity of person 426.

In some applications, the control unit inhibits the burglar alarm from being triggered at a given time only if the person left the resting surface more than a threshold amount of time prior to the given time. For example, as shown in Fig. 29, detector 424 may be disposed outside of the bedroom, e.g., near the entrance to the house, and it typically takes a threshold amount of time for the person to walk from the bedroom to the area in which the detector is disposed. If the threshold amount of time has not passed, it is likely that detector 424 is detecting activity of an entity other than person 426. The threshold amount of time is typically an input to the control unit, and is typically a function of the speed at which person 426 typically moves. In some applications, burglar alarm 422 includes a motion-detection- based alarm, i.e., burglar alarm 422 includes motion detector 424, and the control unit inhibits the motion-detection-based alarm. In some applications, burglar alarm 422 also includes a perimeter alarm 428, and the control unit is configured to not inhibit perimeter alarm 428 from being triggered, while inhibiting the motion-detection-based alarm from being triggered.

Reference is now made to Fig. 30, which is a schematic illustration of apparatus 430 for use with burglar alarm 422, in accordance with some applications of the present invention. Apparatus 430 comprises sensor 316 (e.g., motion sensor 30), and control unit 14. Control unit 14 analyzes the signal from sensor 316. In response to the analyzing, the control unit ascertains that person 426 is on the resting surface, and in response thereto, places burglar alarm 422 in an armed state. In general, apparatus 430 may comprise more than one sensor, and/or more than one control unit. For example, Fig. 30 shows an application in which respective sensors and control units are disposed in respective rooms. In response to the control units ascertaining that all of the resting surfaces are occupied, burglar alarm 422 is placed in an armed state.

The arming of burglar alarm 422, as described hereinabove, is but an example of many related actions that control unit 14 can perform (e.g., via wireless communication), upon ascertaining that a person, or all of the persons in the household, is/are likely to be going to sleep. For example, control unit 14 may lock a door 432, reduce an intensity of (e.g., turn off) a light 434, turn off a device 436, and/or turn off an appliance 438. Alternatively or additionally, control unit 14 may generate a notification that (a) door 432 is unlocked, (b) light 434 is on, (c) device 436 is on, and/or (d) appliance 438 is on.

Techniques described herein may be practiced in combination with techniques described in one or more of the following patents and patent applications, which are incorporated herein by reference. In some applications, techniques and apparatus described in one or more of the following applications are combined with techniques and apparatus described herein: • US Patent Application 12/991,749, filed November 09, 2010, which published as US 2011/0112442;

• US Patent Application 13/389,200, filed June 13, 2012, which published as US 2012/0253142;

• US Patent Application 11/197,786, filed August 3, 2005, which issued as US Patent 7,314,451 ;

• US Patent Application 11/782,750, filed July 25, 2007, which issued as US Patent 8,403,865;

• US Patent Application 11/446,281 , filed June 02, 2006, which issued as US Patent 8,376,954;

• US Patent Application 11/755,066, filed May 30, 2007, now abandoned, which published as US 2008/0114260;

• US Patent Application 11/552,872, filed October 25, 2006, now abandoned, which published as US 2007/0118054;

• US Patent Application 12/113,680 filed May 01, 2008, which published as US 2008/0275349;

• US Patent Application 11/048,100, filed January 31 , 2005, which issued as US Patent 7,077,810;

• US Patent Application 12/938,421, filed November 03, 2010, which issued as US Patent 8,585,607;

• US Patent Application 13/107,772, filed May 13, 201 1, which issued as US Patent 8,491 ,492;

• US Patent Application 13/906,325, filed May 30, 2013, which published as US 2013/0267791 ;

• US Patent Application 14/019,371 , filed September 5, 2013, which published as US 2014/0005502; • International Patent Application PCT/IL2005/000113, which published as WO 2005/074361 ;

• International Patent Application PCT/IL2006/000727, which published as WO 2006/137067;

• International Patent Application PCT/IB2006/002998, which published as WO 2007/052108;

• International Patent Application PCT/IL2008/000601, which published as WO 2008/135985;

• International Patent Application PCT/IL2009/000473, which published as WO 2009/138976;

• International Patent Application PCT/IL2011/050045, which published as WO 2012/077113; and

• International Patent Application PCT/IL2013/050283, which published as WO 2013/150523.

It will be appreciated by persons skilled in the art that the present invention is not limited to what has been particularly shown and described hereinabove. Rather, the scope of the present invention includes both combinations and subcombinations of the various features described hereinabove, as well as variations and modifications thereof that are not in the prior art, which would occur to persons skilled in the art upon reading the foregoing description.