Skip to main content

mmWave Adaptive Channel Estimation


Algorithm Description

The proposed adaptive beam-training procedure enables the Base Station (BS) and Mobile Station (MS) to jointly identify the optimal transmit–receive beam pair from predefined codebooks. The algorithm operates over multiple stages, where each stage progressively narrows the search space. This hierarchical refinement significantly reduces training overhead compared to exhaustive beam scanning.

1. Initialization

Both BS and MS are assumed to know the total number of angular directions N, the hierarchical resolution parameter K, and the codebooks F (for BS beams) and W (for MS beams).

The initial codebook subset indices are:

k1BS = 1,    k1MS = 1.

The total number of adaptive stages is:

S = logK(N)

ensuring that the search space is reduced by a factor of K in each stage.

2. Stage-wise Beam Training

For each stage s = 1,…,S, both BS and MS test K beam candidates.

2.1 BS Transmission

For each BS beam index mBS = 1,…,K, the BS transmits using the beam:

F(s, ksBS)[:, mBS].

2.2 MS Reception

For each BS beam, the MS cycles through its own beam candidates mMS = 1,…,K, applying:

W(s, ksMS)[:, mMS].

2.3 Measurement Collection

The MS records the received signal corresponding to each transmit–receive beam pair:

ymBS = √Ps · WH · H · F + nmBS.

The MS stores all measurements in:

Y(s) = [y₁, y₂, …, yK].

3. Beam Pair Selection

The strongest beam pair is identified by maximizing the magnitude of the collected measurements:

(m*BS, m*MS) = arg maxmBS, mMS |Y(s) ⊙ Y(s)*|.

This pair represents the best-performing combination in the current stage.

4. Subset Update

The indices of the selected beam subsets for the next stage are updated using:

ks+1BS = K(m*BS − 1) + 1,
ks+1MS = K(m*MS − 1) + 1.

This selects the sub-region of the angular domain containing the strongest path.

5. Final Parameter Estimation

After completing all stages, the estimated angle parameters are:

φ̂ = φ̄kS+1BS,    θ̂ = θ̄kS+1MS.

The corresponding path gain is estimated as:

α̂ = √(ρ/Ps) · G(S)[Y(s)]mMS*, mBS*.


MATLAB Code

% Example Usage:

N = 64;           % Total angles
K = 4;            % Beams per stage
S = log(N)/log(K);

% Build dummy hierarchical codebooks:
for s = 1:S
    for k = 1:N
        F{s, k} = exp(1j * 2*pi*(0:15)' * rand(1,K)); 
        W{s, k} = exp(1j * 2*pi*(0:15)' * rand(1,K));
    end
end

% Example channel
H = randn(16,16) + 1j*randn(16,16);

% Example power allocation
P = ones(S,1);

% Angle grids
phi_grid = linspace(-pi/2, pi/2, N);
theta_grid = linspace(-pi/2, pi/2, N);

% Run algorithm
[phi_hat, theta_hat, alpha_hat] = adaptive_beam_training(F, W, H, N, K, P, phi_grid, theta_grid);

function [phi_hat, theta_hat, alpha_hat] = adaptive_beam_training(F, W, H, N, K, P, phi_grid, theta_grid)

% -----------------------------------------------------------
% Adaptive Beam Training Algorithm
% -----------------------------------------------------------
% Inputs:
%  F          : BS codebook (cell array or 3-D matrix)
%  W          : MS codebook (cell array or 3-D matrix)
%  H          : Channel matrix
%  N          : Total number of angular bins
%  K          : Number of beams per stage
%  P          : Transmit power at each stage
%  phi_grid   : BS angle grid (vector)
%  theta_grid : MS angle grid (vector)
%
% Outputs:
%  phi_hat    : Estimated BS angle
%  theta_hat  : Estimated MS angle
%  alpha_hat  : Estimated path gain
%
% -----------------------------------------------------------

% ---------- Initialization ----------
k_bs = 1;     % BS codebook subset index
k_ms = 1;     % MS codebook subset index
S = log(N) / log(K);   % Number of adaptive stages

% ---------- Adaptive Stages ----------
for s = 1:S
    
    Y = zeros(K, K);  % Storage for received measurements
    
    % Sweep through all K × K beam combinations
    for mBS = 1:K
        
        f_bs = F{s, k_bs}(:, mBS);     % BS beam for stage s
        
        for mMS = 1:K
            
            w_ms = W{s, k_ms}(:, mMS); % MS beam for stage s
            
            % Measurement at MS:
            y = sqrt(P(s)) * (w_ms' * H * f_bs) + (randn + 1j*randn) * 0.01;
            
            Y(mMS, mBS) = abs(y);      % Magnitude for detection
            
        end
    end
    
    % ----- Select strongest beam pair -----
    [~, idx] = max(Y(:));
    [mMS_star, mBS_star] = ind2sub(size(Y), idx);
    
    % ----- Update subset indices -----
    k_bs = K*(mBS_star - 1) + 1;
    k_ms = K*(mMS_star - 1) + 1;

end

% ---------- Final Estimates ----------
phi_hat   = phi_grid(k_bs);
theta_hat = theta_grid(k_ms);

% Estimate gain using last measurement
alpha_hat = Y(mMS_star, mBS_star) / sqrt(P(end));

end


Hierarchical Beam Training Logic

Suppose:

  • N = 64 → total finest-resolution beams
  • K = 4 → number of beams tested per stage

Stage 1 (coarse search)

  • You divide the 64 total beams into 64 / 4 = 16 blocks, each block contains 4 beams.
  • You only test 1 beam per block, so at stage 1 you test K = 4 beams (one from each candidate block).
  • Goal: pick the block containing the strongest beam.

Stage 2 (intermediate search)

  • You now focus on the block selected in stage 1.
  • That block has 4 beams, divide it again into 4 sub-blocks, pick 1 beam per sub-block.
  • You test K = 4 beams in this stage again.
  • Goal: narrow down further.

Stage 3 (fine search)

  • The selected sub-block now contains the final 4 beams.
  • Test these 4 beams, pick the best one.

Key Points

  • At each stage, you only test K beams, not all N beams.
  • The algorithm zooms in progressively.
  • After S = log₄(64) = 3 stages, you have identified 1 beam out of 64.

Stage Summary

Stage Beams tested (K) Candidate beams in block Notes
1 4 64 Coarse search
2 4 16 Focused search
3 4 4 Fine search

At stage 1, you test 4 beams to choose one block of 16 beams.
At stage 2, you test 4 beams to choose one block of 4 beams.
At stage 3, you test 4 beams to pick the final beam.

If desired, a diagram can be drawn to show the 64 → 16 → 4 → 1 zoom-in process visually.


Summary

The algorithm carries out a multi-stage hierarchical search over the BS and MS codebooks. In every stage, it evaluates K × K beam pairs, selects the best combination, and restricts the next stage to a narrower sub-region. After S = logK(N) stages, the optimal beam pair is identified with dramatically reduced training overhead.


Further Reading


People are good at skipping over material they already know!

View Related Topics to







Contact Us

Name

Email *

Message *

Popular Posts

BER vs SNR for M-ary QAM, M-ary PSK, QPSK, BPSK, ...

📘 Overview of BER and SNR 🧮 Online Simulator for BER calculation of m-ary QAM and m-ary PSK 🧮 MATLAB Code for BER calculation of M-ary QAM, M-ary PSK, QPSK, BPSK, ... 📚 Further Reading 📂 View Other Topics on M-ary QAM, M-ary PSK, QPSK ... 🧮 Online Simulator for Constellation Diagram of m-ary QAM 🧮 Online Simulator for Constellation Diagram of m-ary PSK 🧮 MATLAB Code for BER calculation of ASK, FSK, and PSK 🧮 MATLAB Code for BER calculation of Alamouti Scheme 🧮 Different approaches to calculate BER vs SNR What is Bit Error Rate (BER)? The abbreviation BER stands for Bit Error Rate, which indicates how many corrupted bits are received (after the demodulation process) compared to the total number of bits sent in a communication process. BER = (number of bits received in error) / (total number of tran...

MATLAB Code for ASK, FSK, and PSK

📘 Overview & Theory 🧮 MATLAB Code for ASK 🧮 MATLAB Code for FSK 🧮 MATLAB Code for PSK 🧮 Simulator for binary ASK, FSK, and PSK Modulations 📚 Further Reading ASK, FSK & PSK HomePage MATLAB Code MATLAB Code for ASK Modulation and Demodulation % The code is written by SalimWireless.Com % Clear previous data and plots clc; clear all; close all; % Parameters Tb = 1; % Bit duration (s) fc = 10; % Carrier frequency (Hz) N_bits = 10; % Number of bits Fs = 100 * fc; % Sampling frequency (ensure at least 2*fc, more for better representation) Ts = 1/Fs; % Sampling interval samples_per_bit = Fs * Tb; % Number of samples per bit duration % Generate random binary data rng(10); % Set random seed for reproducibility binary_data = randi([0, 1], 1, N_bits); % Generate random binary data (0 or 1) % Initialize arrays for continuous signals t_overall = 0:Ts:(N_bits...

Antenna Gain-Combining Methods - EGC, MRC, SC, and RMSGC

📘 Overview 🧮 Equal gain combining (EGC) 🧮 Maximum ratio combining (MRC) 🧮 Selective combining (SC) 🧮 Root mean square gain combining (RMSGC) 🧮 Zero-Forcing (ZF) Combining 🧮 MATLAB Code 📚 Further Reading  There are different antenna gain-combining methods. They are as follows. 1. Equal gain combining (EGC) 2. Maximum ratio combining (MRC) 3. Selective combining (SC) 4. Root mean square gain combining (RMSGC) 5. Zero-Forcing (ZF) Combining  1. Equal gain combining method Equal Gain Combining (EGC) is a diversity combining technique in which the receiver aligns the phase of the received signals from multiple antennas (or channels) but gives them equal amplitude weight before summing. This means each received signal is phase-corrected to be coherent with others, but no scaling is applied based on signal strength or channel quality (unlike MRC). Mathematically, for received signa...

Constellation Diagrams of ASK, PSK, and FSK

📘 Overview of Energy per Bit (Eb / N0) 🧮 Online Simulator for constellation diagrams of ASK, FSK, and PSK 🧮 Theory behind Constellation Diagrams of ASK, FSK, and PSK 🧮 MATLAB Codes for Constellation Diagrams of ASK, FSK, and PSK 📚 Further Reading 📂 Other Topics on Constellation Diagrams of ASK, PSK, and FSK ... 🧮 Simulator for constellation diagrams of m-ary PSK 🧮 Simulator for constellation diagrams of m-ary QAM BASK (Binary ASK) Modulation: Transmits one of two signals: 0 or -√Eb, where Eb​ is the energy per bit. These signals represent binary 0 and 1.    BFSK (Binary FSK) Modulation: Transmits one of two signals: +√Eb​ ( On the y-axis, the phase shift of 90 degrees with respect to the x-axis, which is also termed phase offset ) or √Eb (on x-axis), where Eb​ is the energy per bit. These signals represent binary 0 and 1.  BPSK (Binary PSK) Modulation: Transmits one of two signals...

Comparisons among ASK, PSK, and FSK | And the definitions of each

📘 Comparisons among ASK, FSK, and PSK 🧮 Online Simulator for calculating Bandwidth of ASK, FSK, and PSK 🧮 MATLAB Code for BER vs. SNR Analysis of ASK, FSK, and PSK 📚 Further Reading 📂 View Other Topics on Comparisons among ASK, PSK, and FSK ... 🧮 Comparisons of Noise Sensitivity, Bandwidth, Complexity, etc. 🧮 MATLAB Code for Constellation Diagrams of ASK, FSK, and PSK 🧮 Online Simulator for ASK, FSK, and PSK Generation 🧮 Online Simulator for ASK, FSK, and PSK Constellation 🧮 Some Questions and Answers Modulation ASK, FSK & PSK Constellation MATLAB Simulink MATLAB Code Comparisons among ASK, PSK, and FSK    Comparisons among ASK, PSK, and FSK Comparison among ASK, FSK, and PSK Parameters ASK FSK PSK Variable Characteristics Amplitude Frequency ...

MATLAB code for BER vs SNR for M-QAM, M-PSK, QPSk, BPSK, ...

🧮 MATLAB Code for BPSK, M-ary PSK, and M-ary QAM Together 🧮 MATLAB Code for M-ary QAM 🧮 MATLAB Code for M-ary PSK 📚 Further Reading MATLAB Script for BER vs. SNR for M-QAM, M-PSK, QPSK, BPSK % Written by Salim Wireless clc; clear; close all; num_symbols = 1e5; snr_db = -20:2:20; psk_orders = [2, 4, 8, 16, 32]; qam_orders = [4, 16, 64, 256]; ber_psk_results = zeros(length(psk_orders), length(snr_db)); ber_qam_results = zeros(length(qam_orders), length(snr_db)); for i = 1:length(psk_orders) psk_order = psk_orders(i); for j = 1:length(snr_db) data_symbols = randi([0, psk_order-1], 1, num_symbols); modulated_signal = pskmod(data_symbols, psk_order, pi/psk_order); received_signal = awgn(modulated_signal, snr_db(j), 'measured'); demodulated_symbols = pskdemod(received_signal, psk_order, pi/psk_order); ber_psk_results(i, j) = sum(data_symbols ~= demodulated_symbols) / num_symbols; end end for i...

BER performance of QPSK with BPSK, 4-QAM, 16-QAM, 64-QAM, 256-QAM, etc

📘 Overview 📚 QPSK vs BPSK and QAM: A Comparison of Modulation Schemes in Wireless Communication 📚 Real-World Example 🧮 MATLAB Code 📚 Further Reading   QPSK provides twice the data rate compared to BPSK. However, the bit error rate (BER) is approximately the same as BPSK at low SNR values when gray coding is used. On the other hand, QPSK exhibits similar spectral efficiency to 4-QAM and 16-QAM under low SNR conditions. In very noisy channels, QPSK can sometimes achieve better spectral efficiency than 4-QAM or 16-QAM. In practical wireless communication scenarios, QPSK is commonly used along with QAM techniques, especially where adaptive modulation is applied. Modulation Bits/Symbol Points in Constellation Usage Notes BPSK 1 2 Very robust, used in weak signals QPSK 2 4 Balanced speed & reliability 4-QAM ...

DSB-SC Modulation and Demodulation

📘 Overview 🧮 DSB-SC Modulator 🧮 DSB-SC Detector 🧮 Comparisons Between DSB-SC and SSB-SC 🧮 Q & A and Summary 📚 Further Reading   Double-sideband suppressed-carrier transmission (DSB-SC) is transmission in which frequencies produced by amplitude modulation (AM) are symmetrically spaced above and below the carrier frequency and the carrier level is reduced to the lowest practical level, ideally being completely suppressed. In the DSB-SC modulation, unlike in AM, the wave carrier is not transmitted; thus, much of the power is distributed between the sidebands, which implies an increase of the cover in DSB-SC, compared to AM, for the same power use. DSB-SC transmission is a special case of double-sideband reduced carrier transmission. It is used for radio data systems. This model is frequently used in Amateur radio voice communications, especially on High-Frequency ba...