Several year ago…
I built a non-intrusive multiphase flow meter system, this equipment was able to predict the flow regime and also the mass flow rates of each individual phase within a mixture of produced fluids (oil + gas + water + sand).
It tool me 2 years to get the technology working 2016-2018. There are a bunch of OFS companies who sell radioactive MPFM and those things might cost up to $5m a piece.
Why is this interesting?
Well if you have an oil well, it produces a volatile mixture of oil+gas+water+sand and it’s almost impossible to measure how much oil if flowing until you separate all those components out and you can measure single phase fluids only. To do that you have to use a separator and a separator takes 20 mins to separate the flows, you your data is always 20mins stale.
A multiphase flow meter tells you what your well is doing right now, so you can optimise choke and lift parameters in real time.
The result is +7-9% more oil gets produced, so 7-9% more revenue. If your profit margin is 10% then +9% means 2x profit and your entire oilfield is actually 2x as valuable.
So a multiphase flow meter that doesn’t cost $5m and doesn’t break 3 times a week is a valuable thing indeed.
So how the hell did I build one in 2 years? In 2016? and a NON-INTRUSIVE MFPM at that?
Pull up a chair, let’s dive in…
First of all any great oilfield production technician will walk up to a flowing pipe and press their hard plastic ear defender to the pipe, to listen to the flow inside the pipe.
Oil pipelines have a bunch of different flow regimes from slugging, plugging, stratified, bubbly, elongated, wavy, etc. These flow regimes all sound a bit different and you learn to recognise them over time.
So my first insight was “maybe a microphone can sense what the flow is doing?” and so I messed around with pick up mics for about a week before I landed on using a laser.
A laser is precise, and non-intrusive. A laser can bounce a beam off the pipe surface and measure the surface velocity (Doppler shift) and you can then unpack the sound.
After a few weeks I decided to spend £100k on a couple of Michelson Interferometers, I bought dual SWIR interferometers and polarised fiber optic and lens heads and optical switches and I built a system to bounce beams of pipes and measure the passive vibration in the pipe wall.
I built a flow loop in my workshop (will post pics below), and I built a 36 node computer cluster to build a cluster instance large enough to have enough VRAM so I could train neural nets (in Matlab!!).
My interferometer wrote 2GB/s of empirical data, and I collected calibrated flow data in my workshop and then trained neural nets (this pre-dated “Attention Is All You Need”).
I wrestled with algorithms for a long time, and eventually I got a two stage process that started to work.
I collected all the surface velocity data and put it through an FFT to produce a power frequency spectrum, and I stored that in time averaged 20ms windows and joined those up to created a 3D spectrogram (spectogram this was my input data), I also build a direct mass flow meter using a large water butt and some pharmaceutical grade scales (this was my target data).
I had scale that measured liquid out, and scales that measured gas in.
My algorithm
Stage 1: A classifier algorithm using cluster analysis would predict the flow regime.
Stage 2: I trained multiple models to predict each of the component phases (oil, water gas) within a specific flow regime. I selected the correct measurement model for the predicted flow regime. (I never managed to get a general measurement NN trained).
I manage to get down to +/- 7% accuracy within 2 days, and down to +/-2% accuracy within a week.
Bear in mind there are $50bn companies selling MPFM for $5m that are only +/- 20% accurate and they are gamma emitters!
The combination of interferometry + AI is extraordinarily powerful, I can’t imagine anything that can write empirical data as fast.