Embodiments of the present invention may provide the capability to detect complex events while providing improved detection and performance. In an embodiment of the present invention, a method for detecting an event may comprise receiving data representing measurement or detection of physical parameters, conditions, or actions, quantizing the received data and selecting a number of samples from the quantized data, generating a hidden Markov model representing events to be detected using initial model values based on ideal conditions, wherein a desired output is defined as a sequence of states, and wherein a number of states of the hidden Markov model is less than or equal to the number of samples of the quantized data, adjusting the quantized data and the initial model values to improve accuracy of the model, determining a state sequence of the hidden Markov model, and outputting an indication of a detected event.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A method for detecting an event comprising: receiving data representing measurement or detection of physical parameters, conditions, or actions; quantizing the received data and selecting a number of samples from the quantized data; generating a hidden Markov model representing events to be detected, wherein a desired event is represented by a sequence of states, wherein a number of states of the hidden Markov model is less than or equal to the number of samples of the quantized data, and wherein the model is generated using initial model values, states, and connections based on ideal conditions so as to reduce the impact of uncertainty in state identification in the model; adjusting the quantized data and the initial model values to improve accuracy of the model; detecting an event based on a state sequence of the hidden Markov model; and outputting an indication of the detected event. 2. The method of claim 1, wherein the initial model values are determined for a transition probability matrix and an emissions matrix of the hidden Markov model and the initial model values are adjusted by adjusting values of the transition probability matrix and the emissions matrix. 3. The method of claim 2, wherein the values of the transition probability matrix and the emissions matrix are adjusted using a Baum-Welch method. 4. The method of claim 2, wherein the state sequence of the hidden Markov model is determined by determining a most likely sequence of states using a Viterbi method. 5. The method of claim 4, wherein the defined sequence of states comprises a sequence of distinct states and the most likely sequence of states is determined by ignoring state repetitions. 6. The method of claim 4, wherein the quantized data is adjusted using clustering. 7. The method of claim 1, wherein the number of states of the hidden Markov model is less than the number of samples of the quantized data. 8. The method of claim 1, wherein the model is generated so as to be fully observable. 9. A computer program product for detecting an event, the computer program product comprising a non-transitory computer readable storage having program instructions embodied therewith, the program instructions executable by a computer, to cause the computer to perform a method comprising: receiving data representing measurement or detection of physical parameters, conditions, or actions; quantizing the received data and selecting a number of samples from the quantized data; generating a hidden Markov model representing events to be detected, wherein a desired event is represented by a sequence of states, wherein a number of states of the hidden Markov model is less than or equal to the number of samples of the quantized data, and wherein the model is generated using initial model values, states, and connections based on ideal conditions so as to reduce the impact of uncertainty in state identification in the model; adjusting the quantized data and the initial model values to improve accuracy of the model; detecting an event based on a state sequence of the hidden Markov model; and outputting an indication of the detected event. 10. The computer program product of claim 9, wherein the initial model values are determined for a transition probability matrix and an emissions matrix of the hidden Markov model and the initial model values are adjusted by adjusting values of the transition probability matrix and the emissions matrix. 11. The method of claim 10, wherein the values of the transition probability matrix and the emissions matrix are adjusted using a Baum-Welch method. 12. The computer program product of claim 10, wherein the state sequence of the hidden Markov model is determined by determining a most likely sequence of states using a Viterbi method. 13. The computer program product of claim 12, wherein the defined sequence of states comprises a sequence of distinct states and the most likely sequence of states is determined by ignoring state repetitions. 14. The method of claim 12, wherein the quantized data is adjusted using clustering. 15. The computer program product of claim 9, wherein the number of states of the hidden Markov model is less than the number of samples of the quantized data. 16. The computer program product of claim 9, wherein the model is generated so as to be fully observable. 17. A system for detecting an event, the system comprising a processor, memory accessible by the processor, and computer program instructions stored in the memory and executable by the processor to perform: receiving data representing measurement or detection of physical parameters, conditions, or actions; quantizing the received data and selecting a number of samples from the quantized data; generating a hidden Markov model representing events to be detected, wherein a desired event is represented by a sequence of states, wherein a number of states of the hidden Markov model is less than or equal to the number of samples of the quantized data, and wherein the model is generated using initial model values, states, and connections based on ideal conditions so as to reduce the impact of uncertainty in state identification in of the model; adjusting the quantized data and the initial model values to improve accuracy of the model; detecting an event based on a state sequence of the hidden Markov model; and outputting an indication of the detected event. 18. The system of claim 17, wherein the initial model values are determined for a transition probability matrix and an emissions matrix of the hidden Markov model and the initial model values are adjusted by adjusting values of the transition probability matrix and the emissions matrix. 19. The system of claim 18, wherein the values of the transition probability matrix and the emissions matrix are adjusted using a Baum-Welch method. 20. The system of claim 18, wherein the state sequence of the hidden Markov model is determined by determining a most likely sequence of states using a Viterbi method. 21. The system of claim 20, wherein the defined sequence of states comprises a sequence of distinct states and the most likely sequence of states is determined by ignoring state repetitions. 22. The method of claim 20, wherein the quantized data is adjusted using clustering. 23. The system of claim 17, wherein the number of states of the hidden Markov model is less than the number of samples of the quantized data. 24. The system of claim 17, wherein the model is generated so as to be fully observable.