:-) It appears to randomly go off, because it has no intelligence. The manufacturer configures the electronics to be at a certain level of sensitivity. Sometimes, they provide a mechanism for you to do the same. But, live analysis (ie intelligence) is required.
Furthermore, with intelligence (ie...