The invention relates to a method for adaptive beamforming of ultrasound signals, the method comprising the steps of a) Receiving time-aligned RF signals (45) acquired by multiple ultrasound transducer elements in response to an ultrasound transmission; b) Determining content-adaptive apodization weights for beamforming the time-aligned RF signals by applying a trained artificial neural network (16) to the time-aligned RF signals; and c) Applying (50) the content-adaptive apodization weights to the time-aligned RF signals to calculate (52) a beamformed output signal.The invention also relates to a method for training an artificial neural network (16) useful in adaptive beamforming of ultrasound signals, and a related computer program and system.