Previous in Forum: Request recommendations on testing efficacy of electrical power cable insulation   Next in Forum: washer for lock washers
Close
Close
Close
14 comments
Rating: Comments: Nested
Member

Join Date: Apr 2008
Posts: 5

double sensor : which algorithm ?

04/07/2008 12:09 PM

Dear CR4 colleagues,

I would like to secure a process where a parameter is critical, but measured only with one sensor S1.

To improve the safety by doubling the sensor (redundancy), which algorithm has to be used to react on a process with 2 sensors S1 and S2 ?

Only checking the difference between the sensors is clearly not enough (what happens if they drift identically ?)

Do you have a known solution to define the reaction/alarm rule, like

react on the process if (absolute value of(S2-S1)) > predefined high limit

or

(slope of S2 - slope of S1) > predefined slope limit

or something else ?

thanks,

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United States - Member - New Member Engineering Fields - Control Engineering - New Member

Join Date: Mar 2006
Location: Washington USA
Posts: 566
Good Answers: 53
#1

Re: double sensor : which algorithm ?

04/07/2008 12:21 PM

To detect with certainty if you have two sensors drifting identically you should have at least five sensors. Then you may disregard the two highest values and the two lowest values. Because the system is important to safety the sensors should be gold plated to protect from corrosion. I will be glad to sell you the sensors.

Register to Reply
Anonymous Poster
#2

Re: double sensor : which algorithm ?

04/07/2008 12:25 PM

If the sensors are of the live zero type like 4-20 ma. or 3-15 PSI, which is typical for procress sensors, you can distinguish if one has failed by going outside of the operating limits. If both are within the operating limits, you have nno information about which is correct.

Adding a third sensor is the usual method of obtaining information of an in range error.

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#3

Re: double sensor : which algorithm ?

04/07/2008 12:48 PM

Maybe if the sensors are of a different type/topology then the chance of them drifting identically is virtually zero...?

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Guru

Join Date: Mar 2007
Location: City of Light
Posts: 3943
Good Answers: 183
#4

Re: double sensor : which algorithm ?

04/07/2008 12:50 PM

A simple redundancy gives ONLY the information that one sensor is out of "range" but nobody can tell you which one. At least 3 sensors are required to use a "majority voting" procedure which assumes that the probability to have 2 sensors with exactly same drift is very low. So that by comparison the decision is taken according to the 2 sensors giving near to each other values and the 3rd sensor is declared as out of order. In critical systems as flight controls a redundancy of 4 is usual with the goal that even if a sensor fails there are still 3 for the majority voting.

A last remark all sensors have to be calibrated with respect to SAME reference.

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#5

Re: double sensor : which algorithm ?

04/07/2008 1:00 PM

This is a good discussion as it raises all sorts of questions....
I'm sure many of us have met situations where a perfectly good system shuts down because of an error/fault in the checking/safety/whatever system...

My preference is always for simplicity...I reckon two sensors is plenty, with an allowable margin of error between them. Duplicate the pair of sensors so that in the event of failure/disagreement the alternate pair can be switched in while the first pair are removed, tested/calibrated/ repaired.... whoops that's 4 sensors...damn it

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Guru
Engineering Fields - Electrical Engineering - New Member

Join Date: Sep 2006
Location: El Lago, Texas, USA
Posts: 2639
Good Answers: 65
#6

Re: double sensor : which algorithm ?

04/07/2008 2:25 PM

We are actually looking at this same problem. We have two sensors, but comparing them only tells you that one is wrong, not which one. We are left to try to intuit which is the failed sensor by reading tea leaves and such.

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#7
In reply to #6

Re: double sensor : which algorithm ?

04/07/2008 3:10 PM

If one is taking digital readings one could look back to find the disscontinuity in one sensor...unless of course its a slow drift. And I s'pose I'm assuming a smoothly changing process . I'd have thought maybe taking the difference between each successive reading could be quite revealing.

I remember doing all sorts of weird stuff to detect 'start of breath' in a respiratory instrument...there was a noisey drifting noise floor and a signal which could start very sharply in a healthy individual but could be poorly defined in others...

hmmm.. maybe a nap would help?

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Guru

Join Date: Aug 2007
Location: Earth - I think.
Posts: 2143
Good Answers: 165
#8

Re: double sensor : which algorithm ?

04/07/2008 4:06 PM

Define "critical", and "safety". If it is personel safety, then you either stick with one sensor (and shutdown to a safe state when bad), or you use 3 or more. Installing a 2nd sensor will give you an indication that the primary sensor could be bad, but you shouldn't rely on it to switch controls to the 2nd sensor.

For a less sensitive situation, you can do a confidence test on the sensors, and use that to switch controls. For example if the variable is flow, and there are times of zero flow, you can save the last x values at zero flow. By averaging those you can see which one has the greatest drift. By using the standard deviation you can spot if one is becoming erratic.

__________________
TANSTAAFL (If you don't know what that means, Google it - yourself)
Register to Reply
Anonymous Poster
#9

Re: double sensor : which algorithm ?

04/08/2008 2:29 AM

This is a common shutdown system design problem. let us look at IEC 61508. this depends on the SIL ( Safety Integrity Level) required by the safety engineering. you can use 2 out of 3 system on the transmitter/sensor side, you can use redundant I/O for each sensor on the system side, you can use redundant or triple modular reduandant processor, you can use a redundant software logic solver on the software side. it is long story, availability of the system should be studied and the required SIL should be defined.

Dr: Ahmed

Register to Reply
Active Contributor

Join Date: Apr 2008
Location: Egypt-Cairo
Posts: 22
#10

Re: double sensor : which algorithm ?

04/08/2008 3:21 AM

This is a common shutdown system design problem. let us look at IEC 61508. this depends on the SIL ( Safety Integrity Level) required by the safety engineering. you can use 2 out of 3 system on the transmitter/sensor side, you can use redundant I/O for each sensor on the system side, you can use redundant or triple modular reduandant processor, you can use a redundant software logic solver on the software side. it is long story, availability of the system should be studied and the required SIL should be defined.

Dr: Ahmed

__________________
Dr: Ahmed
Register to Reply
Member

Join Date: Apr 2008
Posts: 5
#11

Re: double sensor : which algorithm ?

04/08/2008 5:43 AM

Thank you all

some more elements (definitions) :

This application is only a process control application, with some critical parameters to ensure quality of product. No human live impacted, only money. Process variations are slow (hours). Sensor potential drift is slow (months). Process can be stopped at any time. Sensors can be checked/calibrated/changed easily

I am thinking about a quite simple "double-sensor-situation", where I check in real time 2 things :

1. the difference A between the values

2. the distribution "difference" on a moving average (over for instance the last n x time constant of the process). Average ? standard deviation ? correlation between the 2 distributions ?

Only then I can take one of the 3 decisions I need :

1. do nothing

2. React on process

3. Alert because one of the sensors is potentially wrong (but I do not know which one), then stop the process, check the sensors apart, calibrate of change, and start again.

thanks

Register to Reply
Guru
United States - Member - New Member Engineering Fields - Control Engineering - New Member

Join Date: Mar 2006
Location: Washington USA
Posts: 566
Good Answers: 53
#12
In reply to #11

Re: double sensor : which algorithm ?

04/09/2008 12:07 AM

But your original statment included, "Only checking the difference between the sensors is clearly not enough (what happens if they drift identically ?)"

I still think you need five gold plated sensors.

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#13
In reply to #12

Re: double sensor : which algorithm ?

04/09/2008 12:33 PM

what happens if they drift identically

Has anyone read #3 ??

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Member

Join Date: Apr 2008
Posts: 5
#14

Re: double sensor : which algorithm ?

04/14/2008 9:29 AM

Hi all & thanks for your feed-back

For several reasons I will double the whole measurement chain for one given parameter. Same model of sensor (same brand, same part number), same model of transmitter.

So the probability that they drift identically is the highest in that situation (compared for instance to sensors using a different physical law, coming from different suppliers)

So even if I can not estimate that "bad case" probability, I have the 'feeling' that it will lower the global probability to have a wrong measurement.

Right for you ?

Thanks

FL

Register to Reply
Register to Reply 14 comments
Copy to Clipboard

Users who posted comments:

Ace Boeringa (2); Anonymous Poster (2); asamy72 (1); bhankiii (1); Flech (2); Kilowatt0 (1); nick name (1); user-deleted-1105 (4)

Previous in Forum: Request recommendations on testing efficacy of electrical power cable insulation   Next in Forum: washer for lock washers

Advertisement