MBDiff: Multi-view Behavior-aware Diffusion Model for Probabilistic Utility Data Imputation

arXiv cs.LG Papers

Summary

Presents MBDiff, a multi-view behavior-aware diffusion model for probabilistic utility data imputation that learns user behavior from global, local, and instance-level views and uses a conditional attentional denoising network. Evaluated on real utility data from Florida, it outperforms state-of-the-art baselines.

arXiv:2607.29177v1 Announce Type: new Abstract: Utility data (e.g., electricity, water, and gas consumption), collected by ubiquitous sensors and embedded devices, often contains substantial missing values due to various factors such as device failures and data transmission issues. The data missingness can severely impact utility billing accuracy, hinder demand forecasting, and disrupt efficient utility supply management. As a result, utility data imputation has attracted much interest from both industry and academia. While many studies have attempted to address this issue, most of them rely on aggregated datasets for training, overlooking rich user behavior information, which could provide valuable insights for more accurate imputation. However, learning comprehensive user behavior from long-term, diverse, and incomplete utility data remains a significant challenge. Moreover, leveraging user behavior information to guide imputation is nontrivial due to the indirect nature of the correlations. To address these challenges, we propose MBDiff, a Multi-view Behavior-aware Diffusion Model for Probabilistic Utility Data Imputation. MBDiff incorporates two key technical components: (i) a multi-view User Behavior Extraction module that learns comprehensive user behavior from multiple perspectives, including global, local, and instance-level views; and (ii) a behavior-aware conditional diffusion model consisting of a reference selection module and a conditional attentional denoising network to impute utility data in a computationally efficient manner. We implement and evaluate MBDiff by collaborating with one of the largest municipal utility providers in Florida. Experimental results demonstrate our proposed MBDiff effectively outperforms state-of-the-art baselines, e.g., it improves 7.04% and 29.1% on the electricity and water usage datasets for block missingness imputation, respectively.
Original Article
View Cached Full Text

Cached at: 08/03/26, 07:37 AM

# Multi-view Behavior-aware Diffusion Model for Probabilistic Utility Data Imputation
Source: [https://arxiv.org/html/2607.29177](https://arxiv.org/html/2607.29177)
Rongchao XuDepartment of Computer Science, Florida State University, Tallahassee, FL, USA \([rx21a@fsu\.edu](https://arxiv.org/html/2607.29177v1/mailto:[email protected]),[lj23d@fsu\.edu](https://arxiv.org/html/2607.29177v1/mailto:[email protected]),[dahai\.yu@fsu\.edu](https://arxiv.org/html/2607.29177v1/mailto:[email protected]),[xl24g@fsu\.edu](https://arxiv.org/html/2607.29177v1/mailto:[email protected]),[guang@cs\.fsu\.edu](https://arxiv.org/html/2607.29177v1/mailto:[email protected])\)\.Dahai Yu11footnotemark:1Ximiao Li11footnotemark:1Guang Wang11footnotemark:1Corresponding author\.

###### Abstract

Utility data \(e\.g\., electricity, water, and gas consumption\), collected by ubiquitous sensors and embedded devices, often contains substantial missing values due to various factors such as device failures and data transmission issues\. The data missingness can severely impact utility billing accuracy, hinder demand forecasting, and disrupt efficient utility supply management\. As a result, utility data imputation has attracted much interest from both industry and academia\. While many studies have attempted to address this issue, most of them rely on aggregated datasets for training, overlooking rich user behavior information, which could provide valuable insights for more accurate imputation\. However, learning comprehensive user behavior from long\-term, diverse, and incomplete utility data remains a significant challenge\. Moreover, leveraging user behavior information to guide imputation is nontrivial due to the indirect nature of the correlations\. To address these challenges, we propose MBDiff, aMulti\-viewBehavior\-awareDiffusion Model for Probabilistic Utility Data Imputation\. MBDiff incorporates two key technical components: \(i\) a multi\-view User Behavior Extraction module that learns comprehensive user behavior from multiple perspectives, including global, local, and instance\-level views; and \(ii\) a behavior\-aware conditional diffusion model consisting of a reference selection module and a conditional attentional denoising network to impute utility data in a computationally efficient manner\. We implement and evaluate MBDiff by collaborating with one of the largest municipal utility providers in Florida\. Experimental results demonstrate our proposed MBDiff effectively outperforms state\-of\-the\-art baselines, e\.g\., it improves 7\.04% and 29\.1% on the electricity and water usage datasets for block missingness imputation, respectively\.

## 1Introduction

Missing values are common in utility data \(e\.g\., electricity load, water usage, and gas consumption\) due to various factors such as sensor malfunctions, extreme weather events \(e\.g\., hurricanes\)li2025typhoformer;shen2025learning, and irregular sampling, which can significantly affect real\-world utility services in different aspects including billing, resource allocation, and demand\-supply rebalancing\. According to our collaboration with one of the largest utility providers in Florida, missing utility records during residential transitions present considerable challenges for both providers and customers\. For instance, inaccurate or incomplete data may lead to unfair billing, where outgoing residents are either undercharged or overcharged, and incoming residents may be billed for consumption they did not cause\. These issues can erode customer trust, prompt disputes, and potentially lead to regulatory non\-compliance\.

Due to its importance, utility data imputation has attracted much interest from both academia and industry, and various approaches have been proposed to address this task\. Early statistical and machine learning methods, such as interpolation, k\-nearest neighbors \(KNN\)\(altman1992introduction\), and matrix factorization\(fang2020time\), were widely used but often struggled with long and complex sequences exhibiting intrinsic dependencies\. Recently, deep learning methods have advanced utility data imputation \(e\.g\., RNNsyoon2018estimating;cao2018brits, CNNswu2023timesnet, VAEs\(fortuin2020gp\), GANs\(brophy2023generative\), diffusion models\(tashiro2021csdi;liu2023pristi\)\), which aim to learn underlying distributions for accurate imputation\. However, most existing works typically rely on aggregated data for model training, often overlooking a critical factor, i\.e\., user\-specific behaviors\. These behaviors, characterized by unique trends and habitual patterns, can offer valuable information to improve imputation accuracy\. More detailed motivation and data analysis are presented in Appendix[A\.1](https://arxiv.org/html/2607.29177#S1.SS1), which further illustrate diverse user behaviors across different utility types and time periods\.

In this paper, we focus on user\-specific utility data imputation by considering unique user behaviors\. However, there are two major challenges to achieving this objective: \(1\)How to effectively learn comprehensive user behavior from long\-term, dynamic, and diverse historical utility data?\(2\)How to accurately impute the data with extracted user behavior in a computationally efficient way?First, behavioral patterns can vary significantly not only across users but also for the same user over time, making it difficult to extract comprehensive and meaningful patterns\. Furthermore, adopting machine learning for data imputation may cause the user\-specific data to be temporally discontinuous due to training and testing data splitting\. For instance, data may only be available for certain days \(e\.g\., days 1, 4, 5, 7, and 14\) in the training data, resulting in large temporal gaps that further complicate behavior modeling\. A straightforward way is to represent user behavior by generating a global user embedding or a chronologically sorted latent representation\. However, such representations often fail to provide adequate and contextually relevant references for imputing target records on different dates\. Secondly, leveraging the learned user behavior to efficiently guide the imputation of target data records remains a challenge due to implicit correlations and high dimensionality\. In particular, it is difficult to establish dependencies between user behavior representations and the attributes of target records \(e\.g\., timestamps or values\), as such relationships are often complex, indirect, and not explicitly observable\.

To address these challenges, we propose MBDiff, aMulti\-viewBehavior\-awareDiffusion Model for Probabilistic Utility Data Imputation, which consists of two key components: a Multi\-view User Behavior Extraction module \(MUBE\) and a Behavior\-aware Conditional Diffusion model \(BCDiff\)\. MUBE comprehensively extracts users’ behavior patterns from different aspects \(e\.g\., global, local, and instance view\) based on long\-term, diverse, and discontinuous historical time series data\. In BCDiff, a reference selection module is firstly introduced to identify the most informative behavior patterns, thereby reducing computational cost\. Subsequently, a novel behavior\-aware conditional attentional denoising network is designed to accurately impute missing values by leveraging the selected reference behaviors\.

In summary, the key contributions are as follows:

- •Motivated by real\-world significance, in this paper, we address the utility data imputation problem by considering complicated user behaviors, which can benefit both utility providers and customers through accurate utility billing and resource allocation for societal impact\.
- •We propose a behavior\-aware utility data imputation framework called MBDiff, which includes a multi\-view user behavior extraction module that learns comprehensive user behaviors from various aspects \(e\.g\., global, local, and instance view\), and a computationally efficient behavior\-aware conditional diffusion model with an attentional denoising network that leverages the informative behavior to impute missing values\.
- •We implement and comprehensively evaluate our proposed MBDiff on three types of real\-world utility data in collaboration with a large municipal utility provider\. Extensive results show that MBDiff significantly outperforms state\-of\-the\-art baselines, e\.g\., it improves 7\.04% and 29\.1% on the electricity and water usage datasets for block missingness imputation, demonstrating the effectiveness of our design\. More importantly, our MBDiff has helped our collaborator impute over 20 million missing values in their utility data to improve their utility services, indicating its social impact\.

## 2Preliminary

### 2\.1Problem Definition

Definition 1: \(Utility Data\)For a utility dataset collected from a group of usersU=\{u1,u2,⋯,uN\}U=\\\{u\_\{1\},u\_\{2\},\\cdots,u\_\{N\}\\\}, whereNNdenotes the total number of users, we defineDu=\{\(X1u,d1u,m1u\),\(X2u,d2u,m2u\),⋯,\(XNuu,dNuu,mNuu\)\}D\_\{u\}=\\\{\(X\_\{1\}^\{u\},d\_\{1\}^\{u\},m\_\{1\}^\{u\}\),\(X\_\{2\}^\{u\},d\_\{2\}^\{u\},m\_\{2\}^\{u\}\),\\cdots,\(X\_\{N\_\{u\}\}^\{u\},d\_\{N\_\{u\}\}^\{u\},m\_\{N\_\{u\}\}^\{u\}\)\\\}as the historical utility data of useruu\. Here,XjuX\_\{j\}^\{u\}represents thejj\-th data record \(time series\) of useruu, andNiN\_\{i\}is the total number of data records of useruu\. The timestampdju=\(d​dju,m​dju,y​dju\)d\_\{j\}^\{u\}=\(dd\_\{j\}^\{u\},md\_\{j\}^\{u\},yd\_\{j\}^\{u\}\)consists of the day of a week \(d​dju∈\[1,7\]dd\_\{j\}^\{u\}\\in\[1,7\]\), month \(m​dju∈\[1,12\]md\_\{j\}^\{u\}\\in\[1,12\]\), and yeary​djuyd\_\{j\}^\{u\}ofXjuX\_\{j\}^\{u\}\. The variablemju∈\{0,1\}m\_\{j\}^\{u\}\\in\\\{0,1\\\}is a binary observation mask to indicate whether a value \(data point\) is observed or missing in a data record, whereml=1m\_\{l\}=1represents the data point is observed andml=0m\_\{l\}=0represents the data point is missing\.

Definition 2: \(Utility Data Imputation\)Given a historical datasetDuiD\_\{u\_\{i\}\}of useruiu\_\{i\}, deterministic/probabilistic utility data imputation aims to estimate the values/distributions of the missing values in each utility data recordX~\\tilde\{X\}at the dated~=\(d​d~,m​d~,y​d~\)\\tilde\{d\}=\(\\tilde\{dd\},\\tilde\{md\},\\tilde\{yd\}\), whered​d~\\tilde\{dd\},m​d~\\tilde\{md\}, andy​d~\\tilde\{yd\}represent the day, month, and year, respectively\.

### 2\.2Denoising Diffusion Probabilistic Models

Denoising Diffusion Probabilistic Models \(DDPMs\)\(ho2020denoising\)are a class of generative models designed to learn complex data distributions through a sequence of noise\-adding and denoising steps\. It consists of a forward diffusion process and a reverse generative process\. The forward process gradually corrupts the datax0∈ℝdx\_\{0\}\\in\\mathbb\{R\}^\{d\}by adding Gaussian noise overTTdiscrete time steps:

\(2\.1\)q​\(xt\|xt−1\)=𝒩​\(xt;αt​xt−1,\(1−αt\)​I\),q\(x\_\{t\}\|x\_\{t\-1\}\)=\\mathcal\{N\}\(x\_\{t\};\\sqrt\{\\alpha\_\{t\}\}x\_\{t\-1\},\(1\-\\alpha\_\{t\}\)I\),\(2\.2\)q​\(x1:T\|x0\)=∏t=1Tq​\(xt\|xt−1\),q\(x\_\{1:T\}\|x\_\{0\}\)=\\prod\_\{t=1\}^\{T\}q\(x\_\{t\}\|x\_\{t\-1\}\),whereαt∈\(0,1\)\\alpha\_\{t\}\\in\(0,1\)controls the variance schedule\. AfterTTsteps, the data becomes nearly isotropic Gaussian noise\. The reverse process aims to iteratively reconstructx0x\_\{0\}fromxTx\_\{T\}\. This is achieved by learning a parameterized modelpθ​\(xt−1\|xt\)p\_\{\\theta\}\(x\_\{t\-1\}\|x\_\{t\}\), which is also Gaussian:

\(2\.3\)pθ​\(xt−1\|xt\)=𝒩​\(xt−1;μθ​\(xt,t\),Σθ​\(t\)\)\.p\_\{\\theta\}\(x\_\{t\-1\}\|x\_\{t\}\)=\\mathcal\{N\}\(x\_\{t\-1\};\\mu\_\{\\theta\}\(x\_\{t\},t\),\\Sigma\_\{\\theta\}\(t\)\)\.The meanμθ​\(xt,t\)\\mu\_\{\\theta\}\(x\_\{t\},t\)is predicted by a neural network trained to approximate the noise added during the forward process\. The model is trained by minimizing a simplified variational lower bound on the negative log\-likelihood of the data\.

DDPMs have demonstrated state\-of\-the\-art performance in generating high\-quality samples across various domains, including images, videos, and time\-series data\.

## 3Methodology

![Refer to caption](https://arxiv.org/html/2607.29177v1/x1.png)Figure 3\.1:The pipeline of MBDiff\. The shapes outlined by the red and pink lines represent the entire and selected user behavior patterns, respectively\. The black dashed box and blue dashed box represent the historical user\-specific utility data and the input of the imputation stage\.TFrefers to data filtering based on time \(day, month, year\)\.SWrepresents the splitting of subsequences using sliding windows\.STFbetween two tensorsAA→BBdenotes the process of selecting entries fromAAbased on the top values inBB\. The detailed architectures of TVAE and BCADN can be found in Figures[3\.2](https://arxiv.org/html/2607.29177#S3.F2)and[3\.3](https://arxiv.org/html/2607.29177#S3.F3), respectively\. Notations in grey denote the dimensional information about the data\.The overall framework of our proposed MBDiff is illustrated in Figure[3\.1](https://arxiv.org/html/2607.29177#S3.F1)\. MBDiff comprises two core modules\. The first, Multi\-view User Behavior Extraction \(MUBE\), captures global, local, and instance\-level behaviors to build a comprehensive user profile\. The second, Behavior\-aware Conditional Diffusion Model \(BCDiff\), identifies the most informative features from the profile and leverages them to impute missing data in a computationally efficient manner\.

### 3\.1Multi\-view User Behavior Extraction

In this part, we design a multi\-view user behavior extraction module \(MUBE\) to learn comprehensive user behavior from different aspects \(e\.g\., global, local, and instance view\) based on long\-term and diverse historical utility data records, which will provide rich information for effective data imputation\. Specifically, for a utility time seriesDu=\{\(X1u,d1u,m1u\),⋯,\(XNuu,dNuu,mNuu\)\}D\_\{u\}=\\\{\(X\_\{1\}^\{u\},d\_\{1\}^\{u\},m\_\{1\}^\{u\}\),\\cdots,\(X\_\{N\_\{u\}\}^\{u\},d\_\{N\_\{u\}\}^\{u\},m\_\{N\_\{u\}\}^\{u\}\)\\\}collected from useruu, we target to construct a user profileP=\(G​P,L​P,I​P\)P=\(GP,LP,IP\), whereG​P,L​P,I​PGP,LP,IPcaptures the global, local, and instance\-view behavior patterns\.

#### 3\.1\.1Global\-view Behavior Pattern Extraction

Global\-view behavior patterns provide prior knowledge for useruu, offering coarse\-grained bounds for each data point in the utility time series and thereby alleviating the incompleteness of historical data records\. We define three types of global\-view patterns for each featureiibased on aggregation over the same day of the week, month, and year\. For the daily patterng​ddugd^\{u\}\_\{d\}, the meanμd,i\\mu\_\{d,i\}and varianceσd,i2\\sigma^\{2\}\_\{d,i\}are calculated over all data points where the day of the week isd∈\[1,7\]d\\in\[1,7\]:

\(3\.1\)g​du=\{g​d1u,⋯,g​d7u\},gd^\{u\}=\\\{gd^\{u\}\_\{1\},\\cdots,gd^\{u\}\_\{7\}\\\},\(3\.2\)g​ddu=\{\(μd,iu,σd,iu2\),⋯,\(μd,Lu,σd,Lu2\)\},gd^\{u\}\_\{d\}=\\\{\(\\mu\_\{d,i\}^\{u\},\{\\sigma^\{u\}\_\{d,i\}\}^\{2\}\),\\cdots,\(\\mu\_\{d,L\}^\{u\},\{\\sigma^\{u\}\_\{d,L\}\}^\{2\}\)\\\},\(3\.3\)μd,iu=1\|Du,d\|​∑\(Xku,dku\)∈Du,dXk,iu,\\mu\_\{d,i\}^\{u\}=\\frac\{1\}\{\|D\_\{u,d\}\|\}\\sum\_\{\(X\_\{k\}^\{u\},d\_\{k\}^\{u\}\)\\in D\_\{u,d\}\}X\_\{k,i\}^\{u\},\(3\.4\)σd,iu2=1\|Du,d\|​∑\(Xki,dki\)∈Du,d\(Xk,iu−μd,iu\)2,\{\\sigma^\{u\}\_\{d,i\}\}^\{2\}=\\frac\{1\}\{\|D\_\{u,d\}\|\}\\sum\_\{\(X\_\{k\}^\{i\},d\_\{k\}^\{i\}\)\\in D\_\{u,d\}\}\(X\_\{k,i\}^\{u\}\-\\mu\_\{d,i\}^\{u\}\)^\{2\},whereDu,dD\_\{u,d\}is a subset of useruu’s historical dataDuD\_\{u\}; the day of the weekdkid\_\{k\}^\{i\}is equal toddandk∈\[1,\|Du,d\|\]k\\in\[1,\|D\_\{u,d\}\|\];Xk,iuX\_\{k,i\}^\{u\}denotes theii\-th value in data recordXkuX\_\{k\}^\{u\}andLLrepresents the length of the utility data\. The monthly patternsg​mmugm^\{u\}\_\{m\}and yearlyg​yyugy^\{u\}\_\{y\}patterns are computed in a similar way, wherem∈\[1,12\]m\\in\[1,12\]andyybelongs to the year setYYof collected data\. These global\-view behavior patternsG​P=\(g​p1,g​p2,⋯,g​p\|U\|\)GP=\(gp^\{1\},gp^\{2\},\\cdots,gp^\{\|U\|\}\)represent the typical user behavior across different time scales and form a statistical foundation for predicting or imputing values of data points, whereg​pu=\[g​du,g​mu,g​yu\]gp^\{u\}=\[gd^\{u\},gm^\{u\},gy^\{u\}\]\.

#### 3\.1\.2Local\-view Behavior Pattern Extraction

![Refer to caption](https://arxiv.org/html/2607.29177v1/x2.png)Figure 3\.2:The architecture of the designed TVAE for utility time series embedding and subsequence embedding\.Although global\-view behavior patterns offer a possible range for each data point, they fail to capture the temporal dependencies between data points in the data record \(i\.e\., a time series\), which are important for accurate missing value imputation\. To address this, we introduce fine\-grained local\-view behavior patterns, extracted from consecutive data points inDuD\_\{u\}, that reflect the correlations between these points\. Initially, due to the potential incompleteness of data points, we utilize the global\-view patternsgug^\{u\}for missing valueXi,juX\_\{i,j\}^\{u\}filling in eachXiuX\_\{i\}^\{u\}, wheremi,ju=0m\_\{i,j\}^\{u\}=0\. Specifically, we obtain pseudo\-imputed utility data recordXiu^\\hat\{X\_\{i\}^\{u\}\}from original data\(Xiu,diu,miu\)\(X\_\{i\}^\{u\},d\_\{i\}^\{u\},m\_\{i\}^\{u\}\)through:

\(3\.5\)Xi,ju^=\{g​dd′,ju​or​g​mm′,ju​or​g​yy′,juif​mi,ju=0Xi,juif​mi,ju=1\\hat\{X\_\{i,j\}^\{u\}\}=\\left\\\{\\begin\{array\}\[\]\{ll\}gd\_\{d^\{\\prime\},j\}^\{u\}\\text\{ or \}gm\_\{m^\{\\prime\},j\}^\{u\}\\text\{ or \}gy\_\{y^\{\\prime\},j\}^\{u\}&\\text\{if \}m\_\{i,j\}^\{u\}=0\\\\ X\_\{i,j\}^\{u\}&\\text\{if \}m\_\{i,j\}^\{u\}=1\\end\{array\}\\right\.wherejjis the index in the data record, andd′,m′,y′d^\{\\prime\},m^\{\\prime\},y^\{\\prime\}are the day, month, and year indices ofdiud\_\{i\}^\{u\}\. Next, we apply a sliding window of sizelwl\_\{w\}and stepssto extract subsequences from each pseudo\-imputed utility recordX^iu\\hat\{X\}\_\{i\}^\{u\}, represented as:

\(3\.6\)wiu=\{wi,ju\}j=1Nw,wi,ju=\{X^i,sju,⋯,X^i,eju\}w^\{u\}\_\{i\}=\\\{w^\{u\}\_\{i,j\}\\\}\_\{j=1\}^\{N\_\{w\}\},\\quad w^\{u\}\_\{i,j\}=\\\{\\hat\{X\}^\{u\}\_\{i,s\_\{j\}\},\\cdots,\\hat\{X\}^\{u\}\_\{i,e\_\{j\}\}\\\}
wherewiuw^\{u\}\_\{i\}denotes all subsequences of useruu’sii\-th historical utility data record, andwi,juw^\{u\}\_\{i,j\}represents thejj\-th subsequence\. The starting and ending indices are calculated asjstart=s×\(j−1\)j\_\{\\mathrm\{start\}\}=s\\times\(j\{\-\}1\),jend=jstart\+lw−1j\_\{\\mathrm\{end\}\}=j\_\{\\mathrm\{start\}\}\+l\_\{w\}\-1, and the number of subsequences is given byNw=⌊T−lws⌋\+1N\_\{w\}=\\left\\lfloor\\frac\{T\-l\_\{w\}\}\{s\}\\right\\rfloor\+1\. By splitting a full record into multiple subsequences, we extract behavioral segments that capture local dependencies across different positions and offer more fine\-grained local references for imputation\. We then design a Transformer\-based Variational Autoencoder \(TVAE, whose architecture is shown in Figure[3\.2](https://arxiv.org/html/2607.29177#S3.F2)\) to learn a unified latent representationzi,juz^\{u\}\_\{i,j\}for each subsequencewi,juw^\{u\}\_\{i,j\}:

\(3\.7\)zi,ju=TVAEencoderd​\(wi,ju\),zi,ju∈ℝdz,z^\{u\}\_\{i,j\}=\\text\{TVAE\}\_\{\\text\{encoder\}\}^\{d\}\(w^\{u\}\_\{i,j\}\),\\quad z^\{u\}\_\{i,j\}\\in\\mathbb\{R\}^\{d\_\{z\}\},wheredzd\_\{z\}is the dimension of the latent representation, andTVAEencoderd\\text\{TVAE\}\_\{\\text\{encoder\}\}^\{d\}is the encoder of TVAE for dynamic patterns\. We trainTVAEd\\text\{TVAE\}^\{d\}on subsequencesW=\{w1,w2,⋯,w\|U\|\}W=\\\{w^\{1\},w^\{2\},\\cdots,w^\{\|U\|\}\\\}from all users\. Finally, we represent dynamic behavioral patternsL​P=\(l​p1,l​p2,⋯,l​p\|U\|\)LP=\(lp^\{1\},lp^\{2\},\\cdots,lp^\{\|U\|\}\)by aggregating over subsequence positions in each data record:

\(3\.8\)l​pu=\{l​pju\}j=1Nw,l​pju=\{\(wi,ju,zi,ju\)\}i=1Nu,lp^\{u\}=\\\{lp^\{u\}\_\{j\}\\\}\_\{j=1\}^\{N\_\{w\}\},\\quad lp^\{u\}\_\{j\}=\\\{\(w^\{u\}\_\{i,j\},z^\{u\}\_\{i,j\}\)\\\}\_\{i=1\}^\{N\_\{u\}\},

#### 3\.1\.3Instance\-view Behavior Pattern Extraction

We design an instance\-view behavior pattern extraction module to provide record\-level information for imputation, offering a broader context than local\-view patterns\. Specifically, we employ another Transformer\-based Variational Autoencoder, denoted asTVAEi\\text\{TVAE\}^\{i\}, to encode theii\-th pseudo\-imputed utility record of useruu,X^iu\\hat\{X\}\_\{i\}^\{u\}, into a shared latent space:viu=TVAEencoderi​\(X^iu\)v\_\{i\}^\{u\}=\\text\{TVAE\}\_\{\\text\{encoder\}\}^\{i\}\(\\hat\{X\}\_\{i\}^\{u\}\)\. The modelTVAEi\\text\{TVAE\}^\{i\}is trained on all users’ pseudo\-imputed records,X^=\{X^1,X^2,⋯,X^\|U\|\}\\hat\{X\}=\\\{\\hat\{X\}^\{1\},\\hat\{X\}^\{2\},\\cdots,\\hat\{X\}^\{\|U\|\}\\\}\. To capture instance\-view behavior patterns with respect to various time pointsd~\\tilde\{d\}in the target record, we design a multi\-dimensional temporal matching mechanism based on three matching matrices:i​pu=\(D​Mu,M​Mu,Y​Mu\)ip^\{u\}=\(DM^\{u\},MM^\{u\},YM^\{u\}\), whereD​Mu∈ℝ7×7DM^\{u\}\\in\\mathbb\{R\}^\{7\\times 7\},M​Mu∈ℝ12×12MM^\{u\}\\in\\mathbb\{R\}^\{12\\times 12\}, andY​Mu∈ℝNy×NyYM^\{u\}\\in\\mathbb\{R\}^\{N\_\{y\}\\times N\_\{y\}\}correspond to day, month, and year dimensions, respectively\. We first compute the Euclidean distance matrix𝐃u∈ℝNu×Nu\\mathbf\{D\}^\{u\}\\in\\mathbb\{R\}^\{N\_\{u\}\\times N\_\{u\}\}, where each element is given byDi,ju=‖𝐯iu−𝐯ju‖2D\_\{i,j\}^\{u\}=\\\|\\mathbf\{v\}\_\{i\}^\{u\}\-\\mathbf\{v\}\_\{j\}^\{u\}\\\|\_\{2\}\. For each time pair\(p,q\)\(p,q\), we then aggregate the relevant distances to form the three temporal matching matricesD​MuDM^\{u\},M​MuMM^\{u\}, andY​MuYM^\{u\}, as defined below:

\(3\.9\)D​Mp,qu=1\|d​ip\|×\|d​iq\|​∑a=1\|d​ip\|∑b=1\|d​iq\|D​i​s​td​iap,d​ibqu,DM^\{u\}\_\{p,q\}=\\frac\{1\}\{\|di^\{p\}\|\\times\|di^\{q\}\|\}\\sum\_\{a=1\}^\{\|di^\{p\}\|\}\\sum\_\{b=1\}^\{\|di^\{q\}\|\}Dist^\{u\}\_\{di^\{p\}\_\{a\},di^\{q\}\_\{b\}\},\(3\.10\)M​Mp,qu=1\|m​ip\|×\|m​iq\|​∑a=1\|m​ip\|∑b=1\|m​iq\|D​i​s​tm​iap,m​ibqu,MM^\{u\}\_\{p,q\}=\\frac\{1\}\{\|mi^\{p\}\|\\times\|mi^\{q\}\|\}\\sum\_\{a=1\}^\{\|mi^\{p\}\|\}\\sum\_\{b=1\}^\{\|mi^\{q\}\|\}Dist^\{u\}\_\{mi^\{p\}\_\{a\},mi^\{q\}\_\{b\}\},\(3\.11\)Y​Mp,qu=1\|y​ip\|×\|y​iq\|​∑a=1\|y​ip\|∑b=1\|y​iq\|D​i​s​ty​iap,y​ibqu,YM^\{u\}\_\{p,q\}=\\frac\{1\}\{\|yi^\{p\}\|\\times\|yi^\{q\}\|\}\\sum\_\{a=1\}^\{\|yi^\{p\}\|\}\\sum\_\{b=1\}^\{\|yi^\{q\}\|\}Dist^\{u\}\_\{yi^\{p\}\_\{a\},yi^\{q\}\_\{b\}\},whered​ipdi^\{p\},m​ipmi^\{p\},y​ipyi^\{p\}denotes the index set where each indexd​ijpdi^\{p\}\_\{j\},m​ijpmi^\{p\}\_\{j\},y​ijpyi^\{p\}\_\{j\}satisfiesd​dd​ijpu=pdd^\{u\}\_\{di^\{p\}\_\{j\}\}=p,m​dm​ijpu=pmd^\{u\}\_\{mi^\{p\}\_\{j\}\}=p,y​dy​ijpu=pyd^\{u\}\_\{yi^\{p\}\_\{j\}\}=p, respectively\. Finally, each matrix is normalized through the row, indicating the overall historical dependency between each timeppandqqin three temporal dimensions\.

### 3\.2Behavior\-aware Conditional Diffusion Model

In this part, we design a Behavior\-aware Conditional Diffusion Model called BCDiff to impute missing values in utility dataX~\\tilde\{X\}\. Due to the high\-dimensional nature of the constructed user profilePP, directly applying diffusion models would incur considerable computational cost\. To address this, we first introduce a reference selection module that identifies the most informative behavioral patterns from the extracted user profile\. We then develop a probabilistic diffusion model equipped with a novel behavior\-aware conditional attentional denoising network, which is guided by the selected reference behaviors to impute missing values\.

#### 3\.2\.1Reference Selection

First, we select reference global\-view patternsg​pu~=\[g​du~,g​mu~,g​yu~\]∈ℝ3×L×2\\tilde\{gp^\{u\}\}=\[\\tilde\{gd^\{u\}\},\\tilde\{gm^\{u\}\},\\tilde\{gy^\{u\}\}\]\\in\\mathbb\{R\}^\{3\\times L\\times 2\}fromg​pugp^\{u\}by indexing with the three input temporal elements\. Specifically,g​du~=g​dd​d~u\\tilde\{gd^\{u\}\}=gd^\{u\}\_\{\\tilde\{dd\}\},g​mu~=g​mm​d~u\\tilde\{gm^\{u\}\}=gm^\{u\}\_\{\\tilde\{md\}\}, andg​yu~=g​yy​d~u\\tilde\{gy^\{u\}\}=gy^\{u\}\_\{\\tilde\{yd\}\}denote the selected reference global day, month, and year patterns, respectively\. Each elementg​pu~i,j,0\\tilde\{gp^\{u\}\}\_\{i,j,0\}andg​pu~i,j,1\\tilde\{gp^\{u\}\}\_\{i,j,1\}represents the mean and variance, respectively\.

Next, to obtain reference local\-view behavior patterns, we first generate the pseudo\-imputed utility data recordX~^\\hat\{\\tilde\{X\}\}and extract unified latent representation pairs\{\(w1~,z1~\),⋯,\(wNw~,zNw~\)\}\\\{\(\\tilde\{w\_\{1\}\},\\tilde\{z\_\{1\}\}\),\\cdots,\(\\tilde\{w\_\{N\_\{w\}\}\},\\tilde\{z\_\{N\_\{w\}\}\}\)\\\}fromX~\\tilde\{X\}, following Equations[3\.5](https://arxiv.org/html/2607.29177#S3.E5),[3\.6](https://arxiv.org/html/2607.29177#S3.E6), and[3\.7](https://arxiv.org/html/2607.29177#S3.E7)\. We compute the Euclidean distance between each latent representationzi~\\tilde\{z\_\{i\}\}and each historical latent representation inl​piulp\_\{i\}^\{u\}illustrated in Equation[3\.8](https://arxiv.org/html/2607.29177#S3.E8)and obtain a local dynamic set of sizeh2h\_\{2\}wi~=\{wi,1~,⋯,wi,h2~\}\\tilde\{w\_\{i\}\}=\\\{\\tilde\{w\_\{i,1\}\},\\cdots,\\tilde\{w\_\{i,h\_\{2\}\}\}\\\}for each location of subsequences, whereiidenotes the index of subsequence in the data record\. The entire selective reference local\-view behavior patterns are represented asl​pu~=\{w1~,⋯,wNw~\}\\tilde\{lp^\{u\}\}=\\\{\\tilde\{w\_\{1\}\},\\cdots,\\tilde\{w\_\{N\_\{w\}\}\}\\\}\.

In terms of the selection of instance\-view behavior patterns, we initially obtain three weighted vectorsd​v∈ℝ7dv\\in\\mathbb\{R\}^\{7\},m​v∈ℝ7mv\\in\\mathbb\{R\}^\{7\},y​v∈ℝNyyv\\in\\mathbb\{R\}^\{N\_\{y\}\}from corresponding rows, whered​v=D​Md​d~,:udv=DM^\{u\}\_\{\\tilde\{dd\},:\},m​v=M​Md​d~,:umv=MM^\{u\}\_\{\\tilde\{dd\},:\},y​v=Y​My​d~,:uyv=YM^\{u\}\_\{\\tilde\{yd\},:\}\. A temporal weight matrixT​MTMis computed through the outer product ofd​vdv,m​vmv,y​vyvas follows:

\(3\.12\)𝐓𝐌i,j,k=𝐝𝐯i⋅𝐦𝐯j⋅𝐲𝐯k,𝐓𝐌∈ℝ7×12×Ny,\\mathbf\{TM\}\_\{i,j,k\}=\\mathbf\{dv\}\_\{i\}\\cdot\\mathbf\{mv\}\_\{j\}\\cdot\\mathbf\{yv\}\_\{k\},\\quad\\mathbf\{TM\}\\in\\mathbb\{R\}^\{7\\times 12\\times N\_\{y\}\},
We then selecth2h\_\{2\}samplesi​p~u=\{\(X~iu,d~iu,m~iu\)\}i=1h2\\tilde\{ip\}^\{u\}=\\left\\\{\\left\(\\tilde\{X\}\_\{i\}^\{u\},\\tilde\{d\}\_\{i\}^\{u\},\\tilde\{m\}\_\{i\}^\{u\}\\right\)\\right\\\}\_\{i=1\}^\{h\_\{2\}\}, whose dates correspond to the toph2h\_\{2\}weights in the temporal matching matrixT​MTM, from the user’s historical utility dataDuD\_\{u\}as reference instance\-view behavior patterns\.

In summary, three types of selected behavior patternsg​pu~∈ℝ3×L×2\\tilde\{gp^\{u\}\}\\in\\mathbb\{R\}^\{3\\times L\\times 2\},l​pu~∈ℝNw×h2×lw\\tilde\{lp^\{u\}\}\\in\\mathbb\{R\}^\{N\_\{w\}\\times h\_\{2\}\\times l\_\{w\}\},i​pu~∈ℝh2×L\\tilde\{ip^\{u\}\}\\in\\mathbb\{R\}^\{h\_\{2\}\\times L\}serve as the references that steer the imputation process of the target utility data records\.

#### 3\.2\.2Conditional Probabilistic Diffusion Imputation

![Refer to caption](https://arxiv.org/html/2607.29177v1/x3.png)Figure 3\.3:The architecture of the proposed behavior\-aware conditional attentional denoising network \(BCADN\)\.We propose a steered conditional probabilistic diffusion model armed with all sorts of guidance specifically chosen forX~\\tilde\{X\}to impute missing values\. Within the diffusion model, we design a novel behavior\-aware conditional attentional denoising network \(BCADN\) that fully extracts the multi\-types of correlations among missing values, observed values, and chosen references\. The architecture of BCADN is shown in Figure[3\.3](https://arxiv.org/html/2607.29177#S3.F3)\. Given the noisy utility data recordX~n\\tilde\{X\}^\{n\}, at diffusion stepnn, observation maskm~\\tilde\{m\}and selected patternsg​pu~\\tilde\{gp^\{u\}\},l​pu~\\tilde\{lp^\{u\}\},i​pu~\\tilde\{ip^\{u\}\}, the noise prediction networkϵθ\\epsilon\_\{\\theta\}predicts the added noiseϵ′=ϵθ​\(g​pu~,l​pu~,i​pu~,n,m~,X~n\)\\epsilon^\{\\prime\}=\\epsilon\_\{\\theta\}\(\\tilde\{gp^\{u\}\},\\tilde\{lp^\{u\}\},\\tilde\{ip^\{u\}\},n,\\tilde\{m\},\\tilde\{X\}^\{n\}\)\. We compute Z\-scoresZ​SZSusing selected global patternsg​pu~\\tilde\{gp^\{u\}\}as the reference distribution to measure the deviation of observed values\. Based on these scores, we derive an intermediate global pattern\-steered featureG​FGFthat captures the overall deviation across the three temporal dimensions, which are formalized as:

\(3\.13\)Z​Si,j=Xj−g​pu~i,j,0g​pu~i,j,1,G​F=MLP​\(Norm​\(Z​S\)\),ZS\_\{i,j\}=\\frac\{X\_\{j\}\-\\tilde\{gp^\{u\}\}\_\{i,j,0\}\}\{\\tilde\{gp^\{u\}\}\_\{i,j,1\}\},\\;GF=\\text\{MLP\}\(\\text\{Norm\}\(ZS\)\),whereZ​S∈ℝ3×LZS\\in\\mathbb\{R\}^\{3\\times L\},G​F∈ℝLGF\\in\\mathbb\{R\}^\{L\}, MLP denotes the multilayer perceptron, and Norm represents the normalization operation along the row dimension\. To capture the dependency between subsequences ofX~\\tilde\{X\}or the entireX~\\tilde\{X\}and either local\-view or instance\-view patterns, we design Attention layers that capture the correlation between adjacent or distant data points as follows:

\(3\.14\)Hl\\displaystyle H^\{l\}=\[Attn​\(w~j,l​p~ju,l​p~ju\)\]j=1Nw,\\displaystyle=\\big\[\\text\{Attn\}\(\\tilde\{w\}\_\{j\},\\tilde\{lp\}^\{u\}\_\{j\},\\tilde\{lp\}^\{u\}\_\{j\}\)\\big\]\_\{j=1\}^\{N\_\{w\}\},\(3\.15\)Hi\\displaystyle H^\{i\}=Attn​\(X~,i​p~u,i​p~u\),Hl∈ℝNw×lw,Hi∈ℝL\\displaystyle=\\text\{Attn\}\(\\tilde\{X\},\\tilde\{ip\}^\{u\},\\tilde\{ip\}^\{u\}\),\\;H^\{l\}\\in\\mathbb\{R\}^\{N\_\{w\}\\times l\_\{w\}\},\\;H^\{i\}\\in\\mathbb\{R\}^\{L\}whereAttn​\(Q,K,V\)=softmax​\(Q⋅Kl\)⋅V\\text\{Attn\}\(Q,K,V\)=\\text\{softmax\}\(\\frac\{Q\\cdot K\}\{\\sqrt\{l\}\}\)\\cdot Vrepresents the attention layer andllis equal tolwl\_\{w\}andLLforHlH^\{l\}andHiH^\{i\}respectively\. Considering the different locations of row vectors inHlH^\{l\}representing the subsequences in the time series, we align them at corresponding positions as follows:

\(3\.16\)A​Hi,j=\{Hi,j−is​t​a​r​tdif0≤j−is​t​a​r​t<lw0otherwiseAH\_\{i,j\}=\\left\\\{\\begin\{array\}\[\]\{ll\}H^\{d\}\_\{i,j\-i\_\{start\}\}&\\text\{if\}\\quad 0\\leq j\-i\_\{start\}<l\_\{w\}\\\\ 0&\\text\{otherwise\}\\end\{array\}\\right\.whereA​Hd∈ℝNw×LAH^\{d\}\\in\\mathbb\{R\}^\{N\_\{w\}\\times L\}andis​t​a​r​t=s×\(i−1\)i\_\{start\}=s\\times\(i\-1\)represents the starting index ofii\-th subsequence\. The intermediate local\-view and instance\-view pattern\-steered featureL​F=MLP​\(A​HT\)∈ℝLLF=\\text\{MLP\}\(AH^\{T\}\)\\in\\mathbb\{R\}^\{L\}andI​F=MLP​\(Hi\)∈ℝLIF=\\text\{MLP\}\(H^\{i\}\)\\in\\mathbb\{R\}^\{L\}are derived through MLP, which naturally incorporates the positional information without the need to introduce positional embedding to lower the computational complexity\. Finally, we fuse three intermediate features, diffusion stepN=P​o​s​\(n\)∈LN=Pos\(n\)\\in Lembedded with positional encoding and observation maskm~\\tilde\{m\}with noisy data recordX~n\\tilde\{X\}^\{n\}from previous step and obtain the predicted noiseϵ′=1DConv​\(C​o​n​c​a​t​\(X~n,N,m~,G​F,L​F,I​F\)\)∈ℝL\\epsilon^\{\\prime\}=\\text\{1DConv\}\(Concat\(\\tilde\{X\}^\{n\},N,\\tilde\{m\},GF,LF,IF\)\)\\in\\mathbb\{R\}^\{L\}\. We trainϵθ\\epsilon\_\{\\theta\}by minimizing the divergence between the added ground\-truth noiseϵ\\epsilonand predicted noiseϵ′\\epsilon^\{\\prime\}\.

## 4Evaluation

### 4\.1Evaluation Settings

#### 4\.1\.1Dataset

We evaluate our MBDiff using three different types of utility datasets \(gas, water, electricity\), which are collected from over 120K users\. The water and gas datasets are sparser \(containing more zeros\) compared to the electricity data\. Each data record represents a user’s utility usage time series for a day\. We preprocess the three datasets by filtering out users with fewer than 200 records\. Utility data records for each user are randomly split into training, validation, and test sets with a 7:1:2 ratio, ensuring a balanced distribution across users\. A data statistics of the three datasets is summarized in Table[4\.1](https://arxiv.org/html/2607.29177#S4.T1)\.

Table 4\.1:Statistics of the Three Utility Datasets\.Table 4\.2:Evaluation results on three different datasets with a missing rate of 20%\.
#### 4\.1\.2Baselines

We compare our MBDiff with ten representative baseline methods covering statistical, deterministic, and generative approaches:

- •G\-MEAN\(amiri2016missing\): Imputes missing values using the global historical average across all users\.
- •U\-MEAN\(amiri2016missing\): Imputes missing values using the target user’s historical average\.
- •LINEAR\(huang2021missing\): Performs linear interpolation to fill missing values\.
- •KF\(bakibillah2022robust\): Uses Kalman Filtering to estimate and impute missing entries\.
- •SAITS\(du2023saits\): A deterministic imputation model based on self\-attention mechanisms for time series\.
- •GP\-VAE\(fortuin2020gp\): A probabilistic model combining variational autoencoders and Gaussian Processes to capture temporal dependencies\.
- •CSDI\(tashiro2021csdi\): A conditional diffusion model utilizing Transformer\-based denoising for time series imputation\.
- •PriSTI\(liu2023pristi\): Enhances CSDI by incorporating spatiotemporal attention to better model spatial and temporal correlations\.
- •ImputeFormer\(nie2024imputeformer\): A low\-rank Transformer that balances model expressiveness and inductive bias for spatiotemporal imputation tasks\.
- •TimeMixer\+\+\(wang2024timemixer\+\+\): A general\-purpose time series modeling architecture designed for tasks such as forecasting, classification, and imputation\.

#### 4\.1\.3Metrics

We use three metrics to evaluate the overall imputation performance: Mean Absolute Error \(MAE\), Mean Squared Error \(MSE\), and Continuous Ranked Probability Score \(CRPS\)\. MAE quantifies the average magnitude of the errors between the imputed values and the ground truth data, defined asMAE=1n​∑i=1n\|x^i−xi\|\\text\{MAE\}=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\|\\hat\{x\}\_\{i\}\-x\_\{i\}\|, wherexix\_\{i\}is the true value,x^i\\hat\{x\}\_\{i\}is the imputed value, andnnis the total number of instances\. MSE evaluates the average squared difference between the imputed and true values,MSE=1n​∑i=1n\(x^i−xi\)2\\text\{MSE\}=\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\(\\hat\{x\}\_\{i\}\-x\_\{i\}\)^\{2\}; unlike MAE, it penalizes larger deviations more heavily, making it sensitive to outliers\. CRPS measures the probabilistic accuracy of imputed values when the imputation method provides an estimated probability distribution rather than a single point estimate, thus capturing uncertainty as well\. Given a cumulative distribution function \(CDF\)FFand true valuexx, it is defined as

\(4\.1\)CRPS⁡\(F,x\)=∫−∞∞\[F​\(y\)−𝕀​\{y≥x\}\]2​dy,\\operatorname\{CRPS\}\(F,x\)=\\int\_\{\-\\infty\}^\{\\infty\}\\left\[F\(y\)\-\\mathbb\{I\}\\\{y\\geq x\\\}\\right\]^\{2\}\\,\\mathrm\{d\}y,where𝕀​\(y≥x\)\\mathbb\{I\}\(y\\geq x\)is an indicator function and a lower value indicates better calibration and sharpness of the predicted distribution\. Among them, MAE and MSE are applied to all methods, while CRPS i s only used for probabilistic models such as GP\-VAE, CSDI, PriSTI, and our MBDiff\.

#### 4\.1\.4Implementation Details

We implemented the MBDiff framework in PyTorch and conducted all experiments on an NVIDIA A100 GPU\. The model is trained using a two\-stage process\. In the first stage, we train the TVAE models for behavior pattern extraction\. The utility consumption data is structured into tensors of shapeℝ144×48\\mathbb\{R\}^\{144\\times 48\}, representing three days of readings taken at 30\-minute intervals\. Local patterns are subsequently extracted using a sliding window with a length of 24 and a stride of 12\. These TVAE models, configured with a latent dimension ofdz=64d\_\{z\}=64, 4 attention heads, and 2 Transformer layers, are trained for 100 epochs using the Adam optimizer with a learning rate ofα=0\.001\\alpha=0\.001and a weight decay ofλ=10−6\\lambda=10^\{\-6\}\. In the second stage, we train the diffusion model\. This stage runs for 200 epochs usingT=500T=500diffusion timesteps and a linear noise schedule withβ1\\beta\_\{1\}starting at10−410^\{\-4\}andβT\\beta\_\{T\}ending at0\.50\.5\. The learning rate is decayed at the 75% and 90% training milestones\. For all training procedures, we used a batch size of 16 and performed validation every 20 epochs\.

For the baselines, parameters were configured to ensure a robust comparison\. The statistical methods G\-MEAN\(amiri2016missing\), U\-MEAN\(amiri2016missing\), and LINEAR\(huang2021missing\)are hyperparameter\-free\. For the KF\(bakibillah2022robust\)model, the process and measurement noise covariance matrices were initialized as identity matrices\. The deep learning models were all trained using the Adam optimizer with a learning rate of1×10−31\\times 10^\{\-3\}and a batch size of 32\. Specifically, SAITS\(du2023saits\)was configured with 2 attention layers, 4 heads, and a hidden dimension of 128\. GP\-VAE\(fortuin2020gp\)used a latent dimension of 64 and a Radial Basis Function \(RBF\) kernel for its Gaussian Process component\. The diffusion models, CSDI\(tashiro2021csdi\)and PriSTI\(liu2023pristi\), were implemented withT=100T=100diffusion steps and a 4\-layer Transformer backbone\. Lastly, both ImputeFormer\(nie2024imputeformer\)and TimeMixer\+\+\(wang2024timemixer\+\+\)were structured with 4 layers, a model dimension of 128, and 4 attention heads\.

Table 4\.3:The results of CRPS on three different datasets\.

### 4\.2Overall Performance

We first present the imputation results of different methods on the three datasets with 20% missing data \(Tables[4\.2](https://arxiv.org/html/2607.29177#S4.T2)and[4\.3](https://arxiv.org/html/2607.29177#S4.T3)\)\. To reflect real\-world scenarios, we consider two missing patterns: point missing, where individual values are randomly removed, and block missing, where several values are removed in sequence, starting from a random point\.

Overall, traditional statistical methods do not perform well on any of the datasets, even with user\-specific information\. This suggests that user behavior in utility usage is often irregular and hard to predict, especially in the gas and water datasets, which are sparser\. In contrast, neural network\-based methods perform better by capturing patterns in the data\. Among all models, those that generate data rather than predict fixed values tend to produce more stable and accurate results\. On the electricity dataset, our method MBDiff achieves the best performance in both point and block missing cases\. For example, it achieves an MAE of 0\.0293 and an MSE of 0\.0024, which are 2\.32% and 4\.0% better than the next\-best model in the block and point missing setting, respectively\. It also improves CRPS by 15\.57%, 7\.71% over the second\-best one in the same settings\.

Electricity usage records are relatively dense and consistent, which helps MUBE identify and use meaningful patterns for filling in missing values\. On the other hand, gas and water data are sparser and harder to learn from\. Even so, MUBE still ranks in the top two across all settings\. For gas data, GP\-VAE works better on point missing cases, while MBDiff performs better on block missing\. On water data, MBDiff shows strong advantages\. For instance, it reduces block missing MAE by 29\.1% compared to CSDI, and improves point missing CRPS by 7% over PriSTI, showing its ability to handle more irregular and incomplete data\.

Table 4\.4:Sensitivity analysis under different missing ratios \(point missing\)\.
### 4\.3Sensitivity Analysis

To address the diverse types and rates of missing data in real\-world scenarios, we evaluate the robustness of each method under varying missing proportions\. Due to the sparsity of the water and gas datasets, we focus our analysis on the electricity dataset\. As shown in Table[4\.4](https://arxiv.org/html/2607.29177#S4.T4), we report MAE and MSE under point missing settings at different rates \(20%, 35%, 50%\)\. Our method, MBDiff, consistently ranks first or second across all conditions, outperforming other baselines overall\. For example, with a low missing rate of 20%, aided by the user profile extracted by MUBE, BCDiff selects more informative local\- and instance\-view references to guide accurate imputations\. Even at a 50% missing rate, MBDiff remains robust, achieving an MAE of 0\.0396, which is better than PriSTI \(0\.0472\) and CSDI \(0\.0519\)\. It also achieves the lowest MSE of 0\.0050\. These results confirm MBDiff’s robustness under severe missing conditions\.

To address various missing data types and rates encountered in real\-world scenarios, we evaluate the robustness of different methods by assessing their performance across different missing types and imputation rates\. Due to the sparsity of the water and gas datasets, we focus on the electricity dataset in this part\. As shown in Tab\.[A\.2](https://arxiv.org/html/2607.29177#S1.T2)and Tab\.[A\.1](https://arxiv.org/html/2607.29177#S1.T1), at low missing rates \(20%\), MBDiff achieves superior performance across metrics, with the best MAE and MSE in both point and block missing scenarios, improving 4\.2% in point missing MAE compared to PriSTI\. To handle a small portion of data points missing \(20%\), given the extracted user profile by MUBE, BCDiff can select more instructive local\-view and instance\-view reference that steers the imputation\. With the missing rate increases, the selection of local\-view references may be impacted, as the matching subsequences in the data records to be imputed are filled with coarse\-grained priors\. At 35% missing rate, MBDiff maintains strong performance with the best MAE in both point missing \(0\.0387, 3\.7% better than PriSTI\) and block missing \(0\.0346, 10\.8% better than PriSTI\)\. Even at a 50% missing rate, MBDiff demonstrates remarkable resilience, achieving the best point missing data imputation performance \(MAE: 0\.0396, improving 16\.1% over PriSTI\) and remaining competitive in block missing scenarios\. Despite this, with the aid of global\-view and instance\-view behavior selected solely based on temporal information, MBDiff still outperforms other baselines in most cases\. Similarly, Tab\.[A\.1](https://arxiv.org/html/2607.29177#S1.T1)shows the comparison of CRPS across different missing rates\. From this table, we found that MBDiff demonstrates consistent strong performance\. At a 20% missing rate, MBDiff achieves the best point missing imputation CRPS of 0\.0210 \(6\.7% improvement over PriSTI\)\. With the missing rate increasing to 35%, MBDiff maintains its advantage with the best CRPS in both point \(0\.0374\) and block \(0\.0386\) scenarios\. Even at a 50% missing rate, MBDiff still shows strong performance with competitive CRPS values, particularly in block missing \(0\.0479\), which is 7\.7% better than PriSTI\. These results further validate MBDiff’s robust performance across different evaluation metrics and missing scenarios\.

Table 4\.5:Ablation study of different user behavior views\. The abbreviations ’glb’, ’loc’, and ’ins’ refer to the global\-view, local\-view, and instance\-view behavior patterns, respectively\.
### 4\.4Ablation Study

To further assess the effectiveness of incorporating three different views of user behaviors in our proposed MBDiff, we conduct ablation studies on the electricity dataset, comparing the full model against variants that leverage only two types of extracted behaviors\. As shown in Table[4\.5](https://arxiv.org/html/2607.29177#S4.T5), our full MBDiff model consistently achieves the best performance across all missing rates, demonstrating the strong complementarity of the three views\. Notably, removing the local\-view behavior \(the glb \+ ins variant\) leads to the most significant performance drop, particularly at the severe 50% missing rate, which indicates that fine\-grained, short\-term temporal dependencies are crucial for guiding imputation when data becomes highly incomplete\. Conversely, the glb \+ loc variant exhibits the most stable performance among the ablated pairs, suggesting that combining short\-term local dependencies with long\-term global statistical boundaries provides a highly robust foundation\. Ultimately, while eliminating any single behavior pattern leads to a performance decline compared to the full model, these ablated versions still maintain competitive performance against most standard baselines, validating that a comprehensive, multi\-view approach is essential for accurate utility data imputation\.

## 5Related Work

### 5\.1Time Series Data Imputation

Time series data imputation fills in missing values in sequential data to ensure completeness for analysis and applications, and it has been widely studied in various fields such as finance, healthcare, and transportation\. In the early years, traditional methods such as linear interpolation \(LinITP\)\(huang2021missing\)and Kalman filtering \(KF\)\(bakibillah2022robust\)relied heavily on statistical prediction, but struggled to capture the complex temporal patterns inherent in real\-world data\. Recent advances in deep learning have led to rapid progress in time series imputation, which can be broadly divided into predictive and generative approaches\. Predictive methods estimate missing values by leveraging temporal context from both past and future observations, typically using reconstruction\-based models such as RNNscao2018brits, CNNswu2023timesnet, GNNscini2022filling, or attention mechanismsshan2023nrtsi\. While effective in capturing local patterns, these models often struggle with scalability and modeling global structures in long sequences\.

In this work, we focus on generative methods, as they can produce diverse outputs for missing observations and are better suited to capturing overall data distributions\. Among these, VAE\-basedkim2023probabilisticand GAN\-basedliu2019naomi;miao2021generativemethods rely on direct sampling from the latent space, which limits their generalization\. Recently, diffusion models have demonstrated strong capabilities in modeling complex data through multi\-step noise injection\. CSDItashiro2021csdifirst adopts conditional training using partial observations, SSSDalcaraz2022diffusionintroduces structured state space models, and PriSTIliu2023pristiincorporates spatiotemporal dependencies\. However, these methods do not explicitly model user\-specific behaviors\. In our work, we address this limitation by incorporating fine\-grained user characteristics from historical data as prior knowledge\. This approach improves both model performance and real\-world applicability\.

### 5\.2Utility Data Mining

High\-quality utility time series data is essential for real\-world applications such as billing, resource allocation, and system optimization\. Many data mining tasks, including demand forecasting and anomaly detection, rely on these data to uncover meaningful patterns\. In the water systems, DTW\-based clustering reveals correlations between consumption behavior and socioeconomic statussteffelbauer2021dynamic\. Smart meter data in gas systems enables pipeline topology inference and leakage detectionmatalkah2020smart\. In electricity systems, fine\-grained records support load profiling, demand prediction, and operational planningwang2018review, and recent studies further advance accurate and reliable user\-level energy usage predictionyu2026trustenergy;yu2026energymamba\. Utility mining techniques have also been applied in other domains, such as wastewater system analysiscipolla2014heatand heating system optimizationcalikus2019data\. These diverse downstream applications fundamentally rely on realistic and high\-quality utility data\. Therefore, our work lays a vital foundation for a broad range of utility data mining tasks\.

## 6Conclusion

In this paper, we propose MBDiff, a novel behavior\-aware utility data imputation framework that effectively incorporates comprehensive user behavior to steer accurate missing value imputation\. MBDiff consists of two core modules: \(i\) a multi\-view user behavior extraction module to learn comprehensive user behavior from different aspects \(e\.g\., global, local, and instance view\), and \(ii\) a behavior\-aware conditional diffusion model consisting of a reference selection module and a conditional attentional denoising network to impute utility data in a computationally efficient way\. We implement and evaluate MBDiff by collaborating with a utility provider, and extensive experimental results demonstrate that MBDiff outperforms state\-of\-the\-art baselines across three datasets, e\.g\., it improves 7\.04% and 29\.1% on the electricity and water usage datasets for block missingness imputation, showcasing the effectiveness of utilizing user behavior as guidance for imputation and highlighting its ability to address real\-world challenges of missingness in utility data\. It has great potential to impute missing values in utility data to improve utility services and business intelligence\. Beyond utility time series imputation, behavioral patterns extracted from existing data hold significant potential to guide imputation across various types of temporal or spatio\-temporal time series, offering a promising avenue for future exploration\.

## Acknowledgment

We thank all the reviewers for their insightful feedback and comments, which helped us improve this paper\. This work is partially supported by the Florida State University \(FSU\) Startup Fund, FSU Summer Research Support \(SRS\) Award Program, and FSU\-AWS Research Acceleration Fund\.

## References

## AAppendix

### A\.1Motivation and Data Analysis

![Refer to caption](https://arxiv.org/html/2607.29177v1/x4.png)\(a\)Electricity
![Refer to caption](https://arxiv.org/html/2607.29177v1/x5.png)\(b\)Gas
![Refer to caption](https://arxiv.org/html/2607.29177v1/x6.png)\(c\)Water

Figure A\.1:Aggregated statistics of each whole utility dataset on March, July, and November\. The solid line represents the global mean of each data point in the time series, while the shaded area indicates the range between the 25th and 75th percentiles for the electricity time series\. Due to the sparsity of data points in the gas and water datasets, we omit the quantile plots for these datasets\.![Refer to caption](https://arxiv.org/html/2607.29177v1/x7.png)\(a\)2018/03
![Refer to caption](https://arxiv.org/html/2607.29177v1/x8.png)\(b\)2018/07
![Refer to caption](https://arxiv.org/html/2607.29177v1/x9.png)\(c\)2018/11

Figure A\.2:Aggregated statistics of each user in different months on electricity dataset\.![Refer to caption](https://arxiv.org/html/2607.29177v1/x10.png)\(a\)Monday
![Refer to caption](https://arxiv.org/html/2607.29177v1/x11.png)\(b\)Tuesday
![Refer to caption](https://arxiv.org/html/2607.29177v1/x12.png)\(c\)Wednesday
![Refer to caption](https://arxiv.org/html/2607.29177v1/x13.png)\(d\)Thursday
![Refer to caption](https://arxiv.org/html/2607.29177v1/x14.png)\(e\)Friday
![Refer to caption](https://arxiv.org/html/2607.29177v1/x15.png)\(f\)Saturday

Figure A\.3:Aggregated statistics of each user on different days in a week on the electricity dataset\.We present some analysis and visualization of the datasets in this part\. As shown in Fig\.[A\.1](https://arxiv.org/html/2607.29177#S1.F1), daily usage patterns of different utilities are distinct and each utility usage also varies significantly across different months\. For electricity consumption, March and November show almost the same pattern, but July shows notably higher consumption, especially between 10 AM and 10 PM, which is likely due to increasing air conditioner usage in the hot summer in Florida\. The usage patterns of gas and electricity consumption are opposite\. Gas consumption in July is much less than that in other months\. Water consumption shows consistent patterns across all three months and there is always a morning peak and an evening peak\. This regular pattern stays stable from March to November, though July has a slightly higher daytime usage\.

Fig\.[A\.2](https://arxiv.org/html/2607.29177#S1.F2)illustrates individual\-level electricity consumption patterns for three randomly chosen users in March, July, and November\. It indicates that different users exhibit distinct energy consumption behaviors\. During these three months, user C consistently shows higher electricity usage compared to user A and user B, with broader fluctuations throughout the day, while user A and user B show more steady consumption patterns\. Even for the same user, the electricity consumption varies across different months\. User A maintains relatively low electricity usage throughout these three months with minimum fluctuations throughout the day\. User B consumes similar electricity to user A in March and July, but the consumption is much higher in November compared to user A\. Overall, this analysis demonstrates the impact of both user\-specific behaviors and ambient factors like seasonal changes on electricity consumption patterns\.

Fig\.[A\.3](https://arxiv.org/html/2607.29177#S1.F3)shows the electricity consumption pattern of three randomly selected users across different days of the week, revealing significant variations in daily usage behaviors\. During weekdays, user A consistently consumes the most electricity compared to user B and user C, with several peaks during the day, especially around 8 AM to 10 AM and 6 PM to 9 PM, which aligns with our previous monthly analysis\. Unlike user A, user B keeps their usage low and steady, and user C shows moderate usage with some ups and downs\. There are the highest peaks on Monday, especially for user A, while there are longer periods of high electricity consumption on Thursday and Friday\. On Saturday, all users show similar electricity usage patterns with two main peaks: one around 1 PM, which is likely during lunchtime, and another one around 8 PM, which is likely for evening activities\. This similar pattern indicates that people’s activity is more similar on weekends, unlike weekdays, where individual schedules create more distinct usage patterns\.

### A\.2Extended Sensitivity Analysis

We report the complete sensitivity analysis results of all methods on the electricity dataset under point and block missingness at 20%, 35%, and 50% missing rates\. Table[A\.1](https://arxiv.org/html/2607.29177#S1.T1)and Table[A\.2](https://arxiv.org/html/2607.29177#S1.T2)summarize the CRPS and the MAE/MSE results, respectively\.

Table A\.1:Sensitivity Analysis: The results of CRPS for electricity data imputation under different missing ratios\.Table A\.2:Sensitivity Analysis: The results of MAE and MSE for electricity data imputation under different missing ratios\.

Similar Articles

PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attention

arXiv cs.AI

PreDiff-LM proposes a hybrid attention mechanism that preserves causal attention for prompt tokens and bidirectional attention for masked target tokens, enabling adaptation of pretrained autoregressive models for discrete masked diffusion language modeling, achieving improvements in perplexity and downstream tasks over prior diffusion baselines.