When this happens it's usually a fault somewhere in your local network; in an urban area like Glasgow most of the network has redundancy, so that few seconds is what it takes for the network to automatically reconfigure itself and re-route power around the fault.
So nothing to worry about, Scottish Power will already know about it