I think it would be trivial to replace evade their patents. They've phrased all of their claims around using averages (over time windows) of different sensor values.
I can describe the following inventions which would not infringe upon "Traumatic nightmare detection and intervention" (Patent 10765831).
. A method of detecting and intervening in traumatic nightmares, the method comprising:
monitoring a user by collecting data from at least one of an accelerometer, a gyroscope, or a heartrate sensor of at least one device worn by the user;
determining the sum of the data values for each of the at least one of the accelerometer, gyroscope, or heartrate sensor over a first period of time and detecting traumatic nightmares or precursors thereof based on a combination of the summed values; and
causing an intervention based upon detection of a traumatic nightmare or precursor thereof;
wherein detecting traumatic nightmares or precursors thereof based on a combination of the summed values comprises summing combinations of the summed values over a second period of time greater than the first period of time; and
wherein summed values for each of the at least one of the accelerometer, gyroscope, or heartrate sensor are determined over a plurality of first periods of time, and the summed values corresponding to the plurality of first periods of time are summed over the second period of time.
A sum cannot be considered an average because it is not representative of the numbers in a list - it is in fact far greater than any number in the list.Yet, for time windows containing a constant number of values, this should work just as well as the Nightware algorithm. There are plenty of other work-arounds for those patents.