<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>mmCLIP: Boosting mmWave-based Zero-shot HAR via Signal-Text Alignment</title></titleStmt>
			<publicationStmt>
				<publisher>ACM</publisher>
				<date>11/04/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10580118</idno>
					<idno type="doi">10.1145/3666025.3699331</idno>
					
					<author>Qiming Cao</author><author>Hongfei Xue</author><author>Tianci Liu</author><author>Xingchen Wang</author><author>Haoyu Wang</author><author>Xincheng Zhang</author><author>Lu Su</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Millimeter-wave (mmWave) based human activity recognition (HAR) systems have demonstrated promising performance in various applications, leveraging the power of deep neural networks. However, these systems are suffering from the scarcity of available mmWave data for model training. To address this challenge, we explore the possibility of transferring knowledge from large AI models built on massive text and visual data to enhance the generalizability of mmWave-based HAR models. Towards this end, we introduce mmCLIP, a novel system that aligns mmWave signal space and text space to facilitate zero-shot recognition for unseen activities. To enable this alignment, we employ cross-modality signal synthesis to augment mmWave signal data using large human mesh datasets and design an activity attribute decomposition and recomposition approach to characterize the semantic interconnections among activities. We conducted extensive experiments to demonstrate the effectiveness of our proposed framework.
CCS CONCEPTS• Human-centered computing → Ubiquitous and mobile computing; • Computer systems organization → Embedded and cyber-physical systems.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>understanding human behavior, which enables a wide spectrum of applications ranging from healthcare <ref type="bibr">[47,</ref><ref type="bibr">50,</ref><ref type="bibr">51]</ref> and surveillance <ref type="bibr">[20,</ref><ref type="bibr">35,</ref><ref type="bibr">41]</ref> to smart homes <ref type="bibr">[2,</ref><ref type="bibr">38,</ref><ref type="bibr">45]</ref> and human-computer interactions <ref type="bibr">[31]</ref>. A variety of sensors can be utilized for HAR tasks, including cameras, wearable devices, and wireless signals. Among them, mmWave has emerged as a particularly advantageous sensing solution due to its low-cost and high-resolution nature.</p><p>However, the generalizability of the mmWave-based HAR remains constrained. The current implementations of mmWave-based HAR are predominantly tailored for specific, narrowly defined classification tasks, limiting their ability to identify activities beyond their initial training scope. This limitation primarily arises from the insufficiency of available mmWave sensing data, since the data collection process for mmWave-based HAR is laborious and timeintensive, requiring specialized hardware and software, significant participant engagement, as well as meticulous synchronization and calibration processes. These stringent requirements render large-scale data collection both financially and logistically prohibitive. Consequently, researchers are often limited to collecting customized small datasets for their specific tasks, thereby impeding the advancement of generalizable mmWave-based HAR systems.</p><p>In recent years, we have witnessed remarkable advancements in the field of artificial intelligence (AI), particularly in natural language processing (NLP) <ref type="bibr">[4,</ref><ref type="bibr">8,</ref><ref type="bibr">10,</ref><ref type="bibr">44]</ref> and computer vision (CV) <ref type="bibr">[37,</ref><ref type="bibr">43,</ref><ref type="bibr">55]</ref>. The cornerstone of these successes lies in the utilization of large datasets and expansive models. Scaling laws <ref type="bibr">[24]</ref> have underscored this paradigm, demonstrating that the synergistic combination of big data and large models yields great generalizability. Given these achievements, a fundamental question arises: Is it possible to transfer the knowledge in large AI models built upon massive text and visual data to elevate the generalizability of mmWave-based HAR models?</p><p>To answer this question, we introduce mmCLIP, a novel framework designed to harness the knowledge embedded in extensive computer vision datasets and large language models to perform mmWave-based zero-shot HAR tasks. The main idea of our approach is to align the high-level representation space of mmWave signals with the text semantic space of pre-trained large language models (LLMs), enabling the framework to leverage the generalizability of these language models for predicting unseen activities. However, achieving accurate alignment between these two embedding spaces necessitates a substantial volume of paired signal-text data with diverse activity samples -a dataset that is neither readily available nor feasible to collect manually. To address this challenge, we propose leveraging cross-modality signal synthesis to augment mmWave signal data from the large human mesh datasets with text descriptions, thereby facilitating knowledge transfer from visual data. This strategy allows us to generate an extensive synthetic paired dataset, which can be employed to pre-train our model. Then, we fine-tune the model by collecting a smaller set of real-world data to bridge the simulation-to-reality gap.</p><p>Another challenge is that directly aligning the signal data to the original text label space may not be able to yield satisfactory generalization results, as the text labels in many cases cannot precisely characterize human activities and thus may fail to capture the subtle relationships among different activities. For example, the activities "drink water" and "pick up an object" appear quite different from a text label perspective due to the distinct words used. However, the movements of limbs and torso involved in these activities are very similar. To capture such similarity, in our model, we introduce an activity attribute decomposition and recomposition approach. For instance, during the activity of "sit down", an individual will "bend his/her legs", "keep his/her arms slightly bent forward", and "remain stationary". In this description, we describe the "legs status", "arms status", and "location status" of the subject performing the activity, regarding these statuses as distinct attributes of the activity. In our model design, we leverage the knowledge embedded in the LLMs to decompose the text label into attribute descriptions and further into text attribute embeddings. In this way, we can characterize the semantic relations among activities, represented as the similarities of their attribute embeddings. Returning to the example of "drink water" and "pick up an object, " from an attribute perspective, these two activities share similar descriptions and therefore have high embedding similarity. This allows the model to capture the relationship between them. On the other hand, mmWave signals can also characterize human activities by capturing activity attributes such as the movements of limbs and torso. In summary, our model explicitly extracts activity attributes from both signal and text space, allowing for a more nuanced and accurate representation of activities and their semantic interconnections.</p><p>We conclude the contributions of our paper as follows:</p><p>&#8226; We propose the mmCLIP framework which aligns the signal and text embedding space to achieve mmWave-based unseen activity recognition, where the model has never been trained on either the mmWave signal data or the exact text label of the unseen activities. &#8226; We employ cross-modality signal synthesis to augment mmWave signal data using large human mesh datasets with text descriptions, thereby expanding the representation of human activities in signal space. We design an activity attribute decomposition and recomposition approach to characterize human activities from the attribute level, reinforcing the semantic interconnections among activities as well as the alignment of signal and text space. &#8226; To evaluate the proposed mmCLIP framework, we constructed a real-world human activity recognition testbed using commercial off-the-shelf (COTS) mmWave devices. &#8226; Our evaluation results demonstrate that the mmCLIP system achieved an average accuracy of 76.4% on ten-class zeroshot classification tasks, highlighting the effectiveness of the mmCLIP framework for zero-shot HAR tasks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">SYSTEM OVERVIEW</head><p>The goal of our proposed mmCLIP framework is to develop an mmWave-based zero-shot human activity recognition system. Unlike conventional activity classifiers that predict the probability distribution over a fixed set of predetermined classes, mmCLIP aligns the high-level representation space of mmWave signals with the text semantic space of large pre-trained language models through contrastive learning, thereby enabling the framework to leverage the generalizability of these language models for predicting unseen activities. However, accurate alignment of the two embedding spaces requires a substantial volume of paired signal-text data with diverse activity samples, and the paired real-world dataset is very limited. To address this, in our mmCLIP framework, we create a large synthetic dataset for pre-training and collect a small real-world dataset for fine-tuning our framework to bridge the sim-to-real gap. For fine-tuning, rather than directly adjusting the trained network parameters, we utilize the Low-rank Adaptation (LoRA <ref type="bibr">[19]</ref>) framework, which allows for efficient model tuning on a very small parameter set. In addition, we design an activity attribute decomposition and recomposition framework for both mmWave signals and text labels to characterize the relations among activities, facilitating the accurate classification of unseen activities. During the inference of an unseen activity label, for which our framework has never been trained on either the signal data or the exact text label of the corresponding activity, our mmCLIP model generates signal embedding for the unseen activity, identifies the closest matching text activity embedding from all candidate activities, and assigns the related label to the unseen activity. Correspondingly, the activities used in the fine-tuning process are regarded as seen activities.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Pretraining of mmCLIP</head><p>The objective of this step is to create a large paired signal-text human motion dataset to pre-train our proposed mmCLIP model, thereby enabling accurate alignment of the signal embedding space with the activity text space. This dataset is created by leveraging the existing online large human mesh dataset (i.e., BABEL <ref type="bibr">[42]</ref>) with diverse human activities and corresponding language labels describing actions, and utilizing the signal simulator <ref type="bibr">[58]</ref> to synthesize the corresponding mmWave signals from this dynamic mesh dataset by simulating the signal propagation and reflection on the mesh surface. In this way, we successfully build the synthetic dataset by pairing the simulated signals and the corresponding activity labels from the descriptive text.</p><p>Regarding the design of our mmCLIP model, as illustrated in Fig. <ref type="figure">1</ref>, there are two branches (i.e., Text and Signal Branches). In the text branch, the activity text label in the synthetic dataset is fed into the Text Attributes Module. In this module, we first utilize the ChatGPT-based Attribute Describer to provide detailed descriptions of various attributes of the activity (e.g., a comprehensive description of the activity, how the subject's arms or legs move during the activities, whether the subject changes location, etc.) using incontext learning <ref type="bibr">[12]</ref>. Next, we feed the text attribute descriptions from ChatGPT into the CLIP-based Attribute Embedding Generator (i.e., a weight-frozen CLIP text encoder) to generate the text attribute embeddings for this text label. Subsequently, all the text attribute embeddings are fed into the Text Attributes Aggregation Module to obtain the aggregated text embedding that represents this text label before the contrastive learning step. In the signal branch of the model, the generated IF signals are fed into the Signal Attributes Module, which first generates three different heatmaps corresponding to the angle, Doppler, and range states of the activity.</p><p>We then developed a hierarchical Transformer-based Attribute Embedding Generator to create attribute embeddings that correspond to the text attribute embeddings in the text branch. Similarly, all the signal embeddings are fed into the Signal Attributes Aggregation Module to obtain the aggregated signal embedding. Finally, we perform contrastive learning on the paired signal-text attribute embeddings and their corresponding aggregated embeddings within the Contrastive Learning Module. Specifically, this module focuses on pulling the signal embeddings toward the text embeddings that belong to the same activity, while pulling the signal embeddings against the text embeddings that belong to different activities in the embedding space. After the learning process, the signal embeddings are mapped to the text embeddings space, ensuring that signal and text embeddings related to the same activity are clustered together.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Fine-tuning of mmCLIP</head><p>To bridge the sim-to-real gap, we collect a small real-world dataset to fine-tune the mmCLIP model. Specifically, we employ the Lowrank Adaptation (LoRA), a model tuning framework, to fine-tune the parameters in the Signal Attributes Module and the Signal/Text Attributes Aggregation Module. This approach allows us to adjust the network parameters efficiently using only a small fraction of parameters, rather than retraining the entire model. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Label Inference of Unseen Activities</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">METHODOLOGY</head><p>In this section, we will provide a detailed introduction to our proposed mmCLIP framework, which includes the model and training scheme designs.</p><p>In our model design, we design an activity attribute decomposition and recomposition approach to generate both the signal and text activity embeddings and employ the contrastive learning approach to align the signal with text embedding spaces. The rationale behind attribute decomposition and subsequent recomposition is to capture the subtle semantic relations among activities in the embedding space which enables our model to gain explicit clues and relations about the activities, thereby improving the recognition results for unseen activities. From the text perspective, although the embeddings of all activity text labels in the CLIP embedding space are closely grouped due to contrastive learning with images, each activity is treated as an individual embedding. Consequently, the relationships among the activity text embeddings are not properly characterized. To address this, our model proposes to use in-context learning and ChatGPT to automatically decompose the activity text labels into activity attribute descriptions and further transform them into attribute embeddings using the CLIP text encoder. In this way, we can capture the semantic relations among activities, represented as the similarities of their attribute embeddings. From the signal perspective, contrastive learning forces the Signal Attribute Embedding Generator to produce signal attribute embeddings that are close to the corresponding text attribute descriptions, which compels the model to focus on patterns in the signals that are related to the corresponding activity attributes.</p><p>In the rest of this section, we illustrate how we decompose the activity inputs, both text and signals, into attributes using the Text Attribute Module (Sec. 3.1) and the Signal Attribute Module (Sec. 3.2), respectively. These attribute embeddings are then recomposed using the Text/Signal Attribute Aggregation Module (Sec. 3.3) into embeddings to represent the entire activity. Lastly, the contrastive learning is performed in the Contrastive Learning module (Sec. 3.4). For the training scheme design, we first pre-train (Sec. 3.5) our framework using the created synthesized dataset. Then, we collect a small real-world dataset to fine-tune (Sec. 3.6) our model. Lastly, we elaborate on how to conduct unseen activity recognition (Sec. 3.7).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Text Attributes Module</head><p>This module is designed to conduct attribute decomposition on activity text labels, thereby enabling the capture of subtle semantic relationships among activities in the embedding space. The decomposition process is accomplished in two steps. First, the activity text labels are decomposed into activity text attribute descriptions. This step is automated using the ChatGPT-based Attribute Describer, which leverages in-context learning by providing ChatGPT with template descriptions and task samples. Supported by the generative capabilities of ChatGPT, high-quality text attribute descriptions for any activity can be automatically generated. Second, the attribute descriptions are encoded into text attribute embeddings. This is achieved using the CLIP-based Attribute Embedding Generator, which utilizes CLIP's text encoder to transform text attribute descriptions into embedding representations.</p><p>3.1.1 ChatGPT-based Attribute Describer. In this design, we employ ChatGPT, a large language model (LLM) trained on extensive datasets of textual content, as our text attribute describer to facilitate the generation of high-quality motion descriptions for the activity text labels. While it may be feasible to manually decompose activity labels for tasks with a limited number of activities, as described later in Section 3.5 , using a LLM like ChatGPT is essential for handling massive sets of text labels from the mesh dataset. To ensure the output aligns with our goal, we utilize in-context learning, an efficient method to enhance the performance of the LLM on specialized tasks. In-context learning does not require parameter fine-tuning; instead, it involves providing the model with taskspecific descriptions and examples that help tailor its responses. As Specifically, for an activity text label &#119910; &#119879; &#119894; , we can decompose it into &#119873; text attribute descriptions {&#119879; &#119899; } &#119873; &#119899;=1 . In our design, the decomposed text attributes represent the different aspects of the activities and should also be sensible in the context of mmWave signals. Here are five attributes used in our paper. First, we include an augmented general description of the activity to preserve the comprehensive information encapsulated in the original activity label. Second, we decompose the activity based on body part movements, focusing on the torso, arm, and leg movements. These attributes are important since all the activities, whether seen or unseen, may share similar postures among certain body parts. By leveraging this design, the model can characterize the relationships among activities, which enables the use of semantic activity information to facilitate the recognition of unseen activities. Last, since the RF signal is sensitive to the target locational changes, we also incorporate an attribute description that explicitly details the locational changes occurring during the activity. As illustrated in Fig. <ref type="figure">2</ref>, we prompted the ChatGPT to generate the text attribute descriptions of the activity "lunge". By simply replacing the word marked in red with the designated activity, the ChatGPT model can automatically produce a satisfactory response that includes five sentences to describe the designed five attributes (marked in blue) accurately.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.2">CLIP-based Attribute Embedding Generator. Contrastive</head><p>Language-Image Pretraining (CLIP <ref type="bibr">[43]</ref>) model is trained using contrastive learning on the image and text modalities. Trained on a large image and caption dataset, its text encoder can effectively capture the nuances and context of language, which is used as the Attribute Embedding Generator to generate the attribute embeddings from the text descriptions. Specifically, after acquiring language attribute description {&#119879; &#119899; } &#119873; &#119899;=1 from ChatGPT-based Attribute Descriptor, we employ the CLIP text encoder to generate the attribute embedding {&#119905; &#119899; } &#119873; &#119899;=1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Signal Attributes Module</head><p>This module aims to generate signal attribute embeddings from the IF signals.</p><p>To achieve this, we first utilize the designed Heatmapbased Activity Describer to generate the Time-Doppler (TD), Time-Range (TR), and Time-Angle (TA) heatmaps for the activity signals within a certain time window. Note that these heatmaps represent different aspects of the activities from the signal perspective, which is essential for recognizing complex activities, as ambiguous movement observed from a single heatmap may be more distinguishable when combining all of the attributes. For instance, solely using the TD heatmap may not sufficiently differentiate between clockwise and counter-clockwise walking. Adding the TA heatmaps helps resolve such ambiguities. Similarly, while the TR heatmap effectively distinguishes between stationary and mobile activities, it is less effective for detecting subtle micro-movements without changes in location. Then, we proposed the Transformer-based Attributes Embedding Generator to output the activity signal attribute embeddings to align with the text attribute embeddings in the previous section from the obtained heatmaps.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1">Heatmap-based Activity Describer.</head><p>Given the collected IF signal data, we first perform a range Fast Fourier Transform along the axis of ADC samples and then remove static clutter by subtracting the mean value from each range bin. This process results in a radar data tensor of size R &#119873; &#119875; &#215;&#119873; &#119862; &#215;&#119873; &#119877; , where &#119873; &#119875; is the number of transceiver pairs, &#119873; &#119862; is the number of chirps, and &#119873; &#119877; is the number of range bins. To generate the TD, TA, and TR heatmaps, we begin by implementing a &#119863;-point sliding window with a step size of &#119878; along the chirp axis. This operation produces a sequence of windowed radar cubes, each of size R &#119873; &#119875; &#215;&#119863; &#215;&#119873; &#119877; . For the TR heatmap, we aggregate the values across the chirp and antenna axes for each windowed radar cube. This produces a sequence of vectors at different time points indicating the intensity of possible objects at each range bin. These vectors are then concatenated by the temporal order to form the final TR heatmap. Similarly, to generate the TA and TD heatmaps, we first perform an FFT along the antenna or chirp axis of each windowed radar cube, respectively. For the TA heatmap, we aggregate the values across the chirp and range axes, while for the TD heatmap, aggregation is performed across the range and antenna axes. Finally, we resize all the heatmaps to a uniform shape R &#119867; &#215;&#119879; , producing a 3-channel heatmap matrix</p><p>3.2.2 Transformer-based Attribute Embedding Generator. In this section, we develop a transformer-based signal attribute embedding generator that hierarchically extracts features from the heatmaps and transforms them into detailed attribute embeddings. The process begins with three heatmap encoder branches, each dedicated to extracting radar features from one heatmap. Following this, an attribute token learner is employed to fuse and refine the attribute features obtained from each branch. The output from the attribute Multi-branch Heatmap Descriptor Encoder. As all the heatmaps have a time dimension, it is essential to efficiently model their temporal structure to extract useful motion features. In our design, we crop the heatmaps along the time dimension using sliding windows and feed the obtained patches into the encoder. This approach enforces the model to capture and analyze the changes along the temporal dimension. Specifically, given the input heatmap matrix &#119872; &#8712; R &#119867; &#215;&#119879; &#215;3 , we first use three separate transformer encoders to extract heatmap features from each heatmap encoder. The encoding procedure includes three stages: patch embedding, temporal embedding, and self-attention. For the patch embedding, we apply a sliding window with size &#119867; &#215; &#119908; on the heatmap along the &#119879; axis to create a series of element time patches &#119883; &#8712; R &#8970;&#119879; /&#119882; &#8971;&#215;&#119867; &#215;&#119908; . These patches will then be flattened and linearly projected into embedding &#119883; &#8712; R &#8970;&#119879; /&#119882; &#8971;&#215;&#119863; . Such a design crops the heatmap as patches with sequential order, however, the temporal relationships among consecutive patches are not explicitly encoded. Because the self-attention operation is permutation invariant, the Transformer architecture itself does not have any information on the position of each patch. To this end, we add a pre-initialized learnable temporal embedding (i.e., positional encoding) &#119875; &#8712; R &#8970;&#119879; /&#119882; &#8971;&#215;&#119863; to retain the absolute position information. In this way, we can obtain the position-encoded input element representation X = &#119883; + &#119875;.</p><p>We then apply multi-head self-attention blocks to extract longterm interactions of features received at different patches for every heatmap. Each self-attention head functions as an individual feature extraction layer that focuses on different positions in the heatmaps. Specifically, the temporal patches X &#8712; R &#8970;&#119879; /&#119882; &#8971; &#215;&#119863; is linearly transformed into the query &#119876;, key &#119870;, and value &#119881; matrix with dimension R &#8970;&#119879; /&#119882; &#8971; &#215;&#119863;/&#119867; ,</p><p>where &#119882; &#119876; ,&#119882; &#119870; ,&#119882; &#119881; are the linear transformation matrix and &#119867; is the number of heads. The attention function maps the query with the key-value pair and calculates the output with the weighted sum, which can be written as:</p><p>where &#119889; &#119896; is the scaling factor. The output attention matrix &#119911; can be obtained by concatenating &#119911; &#119894; from &#119867; attention head, and the final output for the encoder block can be written as &#119911; = &#119872;&#119871;&#119875; (&#119871;&#119873; (&#119911;)) + &#119911;, where &#119872;&#119871;&#119875; (&#8226;) is a multi-layer perceptron and &#119871;&#119873; (&#8226;) is layer normalization.</p><p>Attribute Token Learner Given the output &#382; &#8712; R &#8970;&#119879; /&#119882; &#8971;&#215;&#119863; from the transformer encoders of each branch, we concatenate the feature input along the embedding dimension &#382; &#8712; R &#8970;&#119879; /&#119882; &#8971;&#215;3&#119863; . In this way, the attribute-specific features can be fused within the corresponding time window. In addition, we add &#119873; learnable token {&#8462; &#119899; } &#119873; &#119899;=1 of shape R 3&#119863; as addition inputs to present the signal attributes embedding. Then, we obtain a concatenated embedding &#7825; = [&#8462; 1 ; &#8226; &#8226; &#8226; ; &#8462; &#119873; ; &#382;], which will be fed into a new transformer block to generate the signal attribute embeddings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Attributes Aggregation Modules</head><p>From Sec. 3.1 and Sec. 3.2, we have obtained the text attribute embeddings {&#119905; &#119899; } &#119873; &#119899;=1 and signal attribute embeddings {&#8462; &#119899; } &#119873; &#119899;=1 of the activity. We employ the Signal/Text Attribute Aggregation Module to aggregate these signal/text attribute embeddings. While the structures of these two modules are identical, each module is trained with its own set of weights. As illustrated in Fig. <ref type="figure">3</ref> (b), we use a lightweight self-attention network to recompose the attribute embeddings into an aggregated embedding. Additionally, the model incorporates a learnable token (i.e., &#119905; &#119888;&#119897;&#119904; in the text branch and &#8462; &#119888;&#119897;&#119904; in the signal branch) as an additional input embedding to represent the aggregated text/signal information for the activity. During the inference, these embeddings are utilized to calculate the similarity scores between the mmWave signal and candidate text labels.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Contrastive Learning Module</head><p>In this section, our goal is to train the entire framework that can generate meaningful signal attribute embeddings and properly combine the text and signal attribute embeddings. This is accomplished using contrastive learning which pulls positive pairs (e.g., signal and text embeddings belonging to the same activity) closer while pushs negative pairs (e.g., signal and text embeddings from different activities) further apart. Formally, for a batch of heatmaps, we first optimize the cosine similarity &#119904;&#119894;&#119898;(&#8226;) between text attribute embedding &#119905; &#119899; and heatmap attribute embedding &#8462; &#119899; via cross-entropy loss</p><p>where &#119894;, &#119895; is the mini-batch index and &#120591; is the temperature parameter.</p><p>We then compute the text class embedding &#119905; &#119888;&#119897;&#119904; &#119894; and heatmap class embedding &#8462; &#119888;&#119897;&#119904; &#119894; and optimize the class loss through cross-entropy:</p><p>The final loss is calculated by combining the attribute and class loss as follows:</p><p>where &#120582; &#120572; and &#120582; &#120573; are the hyper-parameters.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">Model Pretraining using Large Synthetic Dataset</head><p>In this paper, our objective is to achieve zero-shot human activity recognition on the mmWave-based sensing system. To accomplish this, we propose to take advantage of the generalizability of the Visual Language Models (VLM). A critical component of this approach is the development of a large signal-text human activity dataset with diverse human activities, which will enable accurate alignment between the signal and text embedding spaces. However, collecting mmWave sensing data is uniquely challenging due to the need for specialized hardware and software, significant participant involvement, and meticulous environment preparation. These requirements make large-scale data collection both costly and logistically complex. To address this problem, we propose to leverage the abundant human mesh data in computer vision to generate a large synthesized dataset and pre-train our framework using the synthesized dataset. In computer vision, we can directly obtain the 3D mesh data of human motion from the abundant 3D human mesh datasets <ref type="bibr">[33]</ref> or apply mesh estimation algorithms <ref type="bibr">[15]</ref> on the large activity motion video datasets <ref type="bibr">[26]</ref>. Existing work <ref type="bibr">[58]</ref> has demonstrated that the IF signals can be directly simulated from the 3D human mesh which demonstrated effectiveness on challenging pose estimation tasks. In this way, we can obtain a large synthetic dataset with paired text labels and mmWave signals.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IF Signal Simulation</head><p>In computer graphics, the human mesh is a three-dimensional model that represents the human body with a collection of triangle faces that define the shape of the body in the virtual space. For a human pose consisting of a set of triangular faces at time {&#119865; &#119905; &#119894; } &#119868; &#119894;=1 , the first step is to identify the visible triangular faces from the perspective of the transceiver at locations &#119871; &#119879; and &#119871; &#119877; in R 3 using the Hidden Point Removal (HPR) algorithm <ref type="bibr">[25]</ref>. To simulate the IF signal, it is necessary to determine the phase and strength of the reflected signal at each time &#119905; for each triangular face &#119865; &#119905; &#119898; &#8712; R 3 . We denote the center locations, surface norms, and areas of all visible triangular faces at time &#119905; as {&#119865; &#119905; &#119898; } &#119872; &#119898;=1 , {&#119873; &#119905; &#119898; } &#119872; &#119898;=1 , and {&#119860; &#119905; &#119898; } &#119872; &#119898;=1 , respectively. The phase of the mixed IF signal for each triangular face at time &#119905; is calculated as &#119901; (&#119905;) = exp &#119895;2&#120587; &#119891; 0 &#120591; &#119905; &#119898; + &#119878;&#119905;&#120591; &#119905; &#119898; , where &#119891; 0 is the starting frequency of the chirp signal, &#119878; is the frequency slope,</p><p>is the time-of-flight of the chirp signal received after reflected from the triangular faces, &#119888; is the speed of light, and || &#8226; || is the Euclidean distance. To calculate signal strength, factors such as the angle of the mesh triangles to the transceivers, the distance from the mesh triangles to the transceivers, and the size of the mesh triangles are considered. We use the quasi-specular reflector model <ref type="bibr">[28]</ref>, which calculates the reflection ratio of a triangular face &#119865; &#119905; &#119898; by &#119862; &#119905; &#119898; = exp -</p><p>, where &#120590; is an empirical parameter and &#120579; &#119905; is the angle between the strongest reflection direction and the received signal direction, calculated using the face norm &#119873; &#119905; &#119898; . The simulated IF signal at time &#119905; is obtained by summing up the IF signals from each of the visible triangular faces:</p><p>For each transceiver pair, we apply the same process and sum up the IF signals. Finally, we introduce Gaussian white noise to the aggregated IF signal to simulate the thermal noise in real-world electrical circuits.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.6">Real-world Data Fine-tuning</head><p>We incorporate an additional local fine-tuning step to bridge the sim-to-real gap using a small amount of real-world data. For the finetuning process, we employ Low-rank decomposition (LoRA) <ref type="bibr">[19]</ref>, a method that trains only a small fraction of parameters instead of training the entire model parameters. Specifically, for a pretrained weight matrix&#119882; &#8712; R</p><p>&#119898;&#215;&#119899; , LoRA constrains the update &#916;&#119882; through a low-rank decomposition &#119882; + &#916;&#119882; = &#119882; + &#119861;&#119860;, where &#119861; &#8712; R &#119898;&#215;&#119903; , &#119860; &#8712; R &#119903; &#215;&#119899; , and the rank &#119903; &#8810; min(&#119898;, &#119899;). During training, &#119882; is frozen and does not receive gradient updates, while &#119860; and &#119861; contain trainable parameters. Fine-tuning Loss Function. Since the number of training samples in each batch may exceed the number of distinct activity labels in the training data for fine-tuning, multiple training samples corresponding to the same activity label can appear in a training batch.</p><p>As a result, there can be more than one positive pair in a batch. Therefore, treating the similarity score learning as a simple 1-in-N classification problem with cross-entropy loss is inappropriate <ref type="bibr">[54]</ref>. Instead, we employ the Kullback-Leibler (KL) divergence as the signal-text contrastive loss to optimize our framework, enhancing the model's ability to distinguish between the positive and negative pairs effectively. Specifically, let &#119901; (&#8462;, &#119905;) and &#119902;(&#8462;, &#119905;) represent the ground truth and estimated similarity matrices for each batch, respectively. Correspondingly, we derive the symmetric matrices &#119901; (&#119905;, &#8462;) and &#119902;(&#119905;, &#8462;). The loss function can be re-written as:</p><p>E (&#8462;,&#119905; ) &#8712;&#119863; (&#119870;&#119871;(&#119901; (&#8462;, &#119905;), &#119902;(&#8462;, &#119905;)) + &#119870;&#119871;(&#119901; (&#119905;, &#8462;), &#119902;(&#119905;, &#8462;))) <ref type="bibr">(7)</ref> where &#119863; is the entire dataset.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.7">Zero-shot Inference</head><p>For all the unseen activity text labels, we can apply the Text Attributes Module and the Text Attribute Aggregation Module to generate the aggregated text embedding &#119905; &#119888;&#119897;&#119904; . Similarly, we can encode the radar signal using our Signal Attribute Module and the Signal Attribute Aggregation Module to generate the aggregated signal embedding &#8462; &#119888;&#119897;&#119904; &#8712; R &#119863; . The recognition task is then reformulated to &#375; = arg max</p><p>By modeling the recognition process as calculating the similarity between radar signal embedding and text embeddings, the model can recognize new activities.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">SYSTEM IMPLEMENTATION 4.1 Testbeds</head><p>As illustrated in Fig. <ref type="figure">4</ref> (a), (b), we employ the TI AWR1843 BOOST mmWave radar <ref type="bibr">[52]</ref>, coupled with the TI DCA1000 evaluation module, to collect and stream mmWave data. The radar system comprises three transmitting and four receiving antennas, which emit and receive Frequency Modulated Continuous Wave (FMCW) signals. Each FMCW chirp spans a bandwidth of 3.9 GHz, increasing linearly from 77 GHz to 80.9 GHz. The radar is configured to transmit 10 frames per second, synchronizing with the frame rate of online mesh data. Each frame consists of 128 chirps, with each chirp containing 256 sampling points. Given these device settings, our mmWave setup can achieve a sensing range of up to 11 meters, a range resolution of 4.3 cm, a sensing velocity of 4.5 m/s, and a velocity resolution of 7.1 cm/s. In our experimental setup, the mmWave testbed is placed on a table at a height of around 1 meter, with the distance between the radar and the subject varying from 1 to 6 meters. Additionally, four Zed 2i stereo cameras <ref type="bibr">[49]</ref> are deployed and fused to capture high-quality skeletal data for each activity simultaneously. These skeletal structures are then utilized to generate the SMPL parameters using SMPLify <ref type="bibr">[3]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Synthetic Data Preparation</head><p>We utilize the AMASS <ref type="bibr">[33]</ref> human motion capture dataset, complemented by paired textual labels from the BABEL <ref type="bibr">[42]</ref> and Hu-manML3D <ref type="bibr">[18]</ref> datasets, as our source for synthetic data. AMASS is an extensive motion capture corpus featuring over 50 hours of continuous motion sequences, which encompass more than 200 daily activity classes performed by 500 subjects. The Babel dataset provides frame-level short and general textual descriptions for these motion sequences. For our purposes, we first generate a textual label for each sequence by listing all actions within a specific action window, then concatenating them into a single string. This concatenated string is then fed into the text attribute module for attribute generation. The HumanML3D dataset provides an additional source of textual labels for the AMASS dataset, offering four general textual descriptions written by different human labelers for each continuous motion sequence. Given that our activity observation window lasts only 3 seconds, we selectively use motion sequences that are shorter than 5 seconds to ensure that the textual labels are accurately aligned with the motion sequences. Similarly, the original textual label from HumanML3D will be parsed by our text attribute module for attribute generation. Note that although the textual labels from BABEL and HumanML3D provide descriptions, they are generally broad and pertain to specific motions. These descriptions lack the detailed granularity necessary for limb motions, thus posing a challenge for the model to accurately capture subtle activity relationships without the motion decomposition module. The radar is positioned three meters in front of the subject and mounted at a height of 1 meter above the ground at the start of each motion sequence. The designated activity area for the subject is confined to a 5m by 6m space, accommodating a wide range of daily activities. We employ the same chirp configuration in our signal simulation as we use for collecting real local mmWave data, ensuring consistency between synthetic and real-world datasets. By combining all of the motion sequences and labels from these datasets, we obtained a diverse synthetic RF dataset comprising 30 hours of high-quality paired synthetic text-radar samples.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Model Training Detail</head><p>We employ the CLIP-ViTB-32 as the pretrained model for our CLIPbased text embedding generation module. For textual attribute generation, we set the number of attributes as 5 and utilize GPT4-turbo for label generation. For the multi-attribute heatmap generator, we utilize a window of 256 chirps with a 16-chirp interval. In our transformer-based attribute embedding generator, we employ a 2-layer transformer block for initial extraction in each branch, followed by a 6-layer transformer block with 8 attention heads in the property learner module. In the attribute aggregation module, we utilize a lightweight single-layer transformer block. We optimize our models using the Adam optimizer with a learning rate of 0.0001 and apply exponential weight decay at a rate of 0.9 after each epoch. As stated in Equation <ref type="formula">5</ref>, the hyperparameters &#120582; &#120572; and &#120582; &#120573; are set to 1. All deep learning models are implemented using PyTorch <ref type="bibr">[40]</ref> and trained on NVIDIA A100 GPUs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">EXPERIMENTS 5.1 Experiment Setup</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.1">Local Data collection.</head><p>In our experiment, we design and collect radar data including a total of 60 activities across three different environments 1 that cover common activities in real-world scenarios to evaluate our system, as illustrated in Fig. <ref type="figure">4 (a)</ref>, <ref type="figure">(c)</ref>, <ref type="figure">(d)</ref>. These activities can be divided mainly into three categories: fitness activities (e.g., squats, jumping jacks, lunges, etc.), daily activities (e.g., drinking water, walking in a circle, sitting, etc.), and gesture controls (e.g., drawing a circle, swiping left, etc.), ensuring diversity in the activities. We recruited 8 subjects with heights ranging from 165 cm to 185 cm to perform these activities repeatedly for duration between 30 and 60 seconds in front of the mmWave radar. This contributes a dataset with approximately 6 hours of real-world sensing data. During these sessions, we simultaneously collected the IF signal data from the mmWave radar and corresponding pose data from four stereo cameras. It is important to note that the pose data generated from the stereo cameras is not used in the synthetic data 1 All the data collection was approved by the IRB of the authors' institution. pretraining and is only utilized in Sec. 5.5 to evaluate the quality of our simulator. Most activity cycles are less than 3 seconds, aligning with our radar signal observation window, except for mobile activities such as walking in a circle, and walking forward and backward which take more time to finish an activity cycle. In the default setting, we use three non-overlapping 10 classes as the unseen class groups. For each group, we use the rest of 50 classes as the seen activities. We repeat the experiment 3 times for each group and then calculate the final result by averaging the result from each group. In the scenario with fewer than 50 seen classes, we maintain the same group of unseen activities. To adjust the number of seen activities, we randomly remove excess activities from the seen activity group. This procedure is repeated three times to ensure variability and robustness in our results.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.2">Models for Evaluation.</head><p>In our experiments, we mainly evaluate the text attribute module, synthetic dataset pertaining module, and real data fine-tuning module with the model setting as follows: Tent: Tent <ref type="bibr">[64]</ref> is a pioneering work designed for zero-shot human activity recognition by aligning multiple sensing modalities, including mmWave, LiDAR, and video, with CLIP's text embedding space. The model proposed in Tent receives mmWave radar point cloud as input and utilizes a limited set of real-world mmWave point cloud data from seen activities for model training. It further adopts a learnable soft prompt <ref type="bibr">[63]</ref> to enhance the understanding of textual information. For a fair comparison, we modified Tent's input modality to heatmap and adjusted the corresponding network structure accordingly. Real: This baseline model configuration is the minimum implementation of our model, which utilizes only a set of real-world data from seen activities for model training, without integrating the text attributes module and synthetic dataset, sharing the same design principle as Tent <ref type="bibr">[64]</ref>. Syn: In this basic model setting, only the large synthetic dataset is used for model pretraining, without incorporating real data finetuning or the text attributes module. 0 10 20 30 40 50 10 20 30 40 50 60 70 80 Accuracy (%) Real Real+Attr Syn+Real mmCLIP Figure 6: Effect of Seen Activities Real+Attr: This model employs real data from the seen activities along with the text attributes decomposition module without utilizing the synthetic dataset for pretraining. Syn+Attr: This baseline model is enhanced with the synthetic dataset pertaining and our proposed text attribute decomposition module, but it does not include fine-tuning with real data from seen activities. Syn+Real: This model combines synthetic dataset pretraining with real data fine-tuning but does not incorporate the text attribute decomposition module. mmCLIP: This is the full implementation of our proposed model, incorporating synthetic data pretraining, real data fine-tuning, and the text attribute decomposition module.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Overall Zero-shot Performance</head><p>In this section, we evaluate the overall zero-shot performance of the mmCLIP model and compare it with multiple baseline methods introduced in Sec. 5.1.2. As demonstrated in Fig. <ref type="figure">5</ref>, our proposed mmCLIP model achieves superior performance in classification accuracy compared to all of the baseline methods, with a notable 76.4% average classification accuracy on three non-overlapping 10class unseen activity groups. Note that in our zero-shot setting, the model can not access the data from unseen activities during training, which brings a significant challenge to the classification task. We can see that the performance of the Real baseline closely mirrors that of Tent; however, both fail to produce satisfactory results due to the absence of synthetic data pre-training and the attribute decomposition module. It can also be seen that the performance of models Real+Attr, Syn+Attr, and mmCLIP decreases significantly when the attribute decomposition module is removed. This underscores the effectiveness of our proposed attribute decomposition module, which characterizes subtle relations among activities to facilitate zero-shot inference. Additionally, we can see the performance of Syn+Real exceeds that of Syn by a large margin, which is trained only on the synthetic dataset. The unsatisfactory performance from model Syn is due to the existence of a simulation-to-reality gap between the synthetic dataset and real-world radar signals, demonstrating the effectiveness of our fine-tuning approach in mitigating this gap, thereby enhancing zero-shot activity recognition performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3">Study of Zero-shot Settings</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.1">Effect of Number of Seen Activities.</head><p>In this section, we investigate the impact of the number of seen activities on zero-shot performance. As illustrated in Fig. <ref type="figure">6</ref>, an increase in the number of seen activities from 0 to 50 classes significantly enhances the model's performance, with optimal results observed at 50 classes. We can see mmCLIP consistently outperforms other baselines (without text attribute module or synthetic data pertaining) across varying class sizes, demonstrating the effectiveness of our proposed attribute decomposition module and synthetic data pretraining. It is noteworthy that mmCLIP with 0 seen activity (without fine-tuning) achieves comparable results to the model Real+Attr with 30 seen classes. This outcome highlights the advantage of synthetic data pretraining, which leverages large-scale synthetic datasets to reduce data collection efforts while maintaining decent performance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.2">Effect of Number of Unseen</head><p>Activities. We also explore the impact of the number of unseen activities on mmCLIP's scalability in real-world deployments. In Fig. <ref type="figure">7</ref>, we show the model's performance as the number of unseen classes increases from 4 to 16 with an interval of 3. Initially, all models exhibit decent performance for simpler classification tasks (e.g., 4 classes). However, as the classification task becomes more challenging (e.g., 16 classes), the performance of baseline models significantly decreases. In contrast, mmCLIP maintains robust performance despite the increase in classification complexity (e.g. above 68% in 16-classes classification). This demonstrates our proposed attribute decomposition module and synthetic data pretraining strategy can transfer effective knowledge from pervasive text and visual data and characterize the nuanced relationship between activities.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.3">Effect of Attribute Module.</head><p>In this section, we evaluate the impact of our text and heatmap attribute modules on model performance, as illustrated in Fig. <ref type="figure">8</ref>. For the text attributes module, we assess the performance impact by varying the number of attributes from 1 to 5. In Fig. <ref type="figure">8a</ref>, the results show that the model performance improves consistently with the increase in the number of attributes. This result supports that more attributes allow for a more distinctive characterization of activities, enabling our model to use these attributes as effective cues to infer unseen activities.</p><p>For the heatmap attribute decomposition module, we choose three baseline models by retaining only one attribute. As shown in Fig. <ref type="figure">8b</ref>, the performance of TD heatmap is better than TR and TA. This is possibly because the Doppler attribute is more sensitive to subtle body part movement compared to the range and MSE Loss Cos Sim Loss Contrastive loss 30 40 50 60 70 80 Accuracy (%) Figure 10: Effect of Loss Function</p><p>angle attributes, thus enabling more distinguishable motion features for classification. However, none of these baseline approaches surpassed mmCLIP, which underscores that integrating multiple attributes allows our heatmap encoder to learn detailed activity features that align with text attributes to infer unseen activities more effectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>5.3.4</head><p>Effect of Fine-tuning Methods. In this section, we assess the accuracy and fine-tuning overhead of LoRA in our model by comparing it with different baseline fine-tuning methods. In addition to LoRA, we explore two additional fine-tuning baselines: (a) mixing data from the synthetic dataset with data from the real-world activity dataset and training the model from scratch, and (b) full-model fine-tuning with the pretrained model from the synthetic dataset.</p><p>As shown in Fig. <ref type="figure">9</ref>, we observe that fine-tuning approach (a) is not effective in both classification accuracy and training overhead. The reason behind this is that this approach needs to train the full model and the training process is dominated by the overwhelming volume of synthetic dataset, thus leading to unsatisfied performance. Approach (b) also shows suboptimal results due to the requirement of adjusting all model parameters, which often leads to the issue of catastrophic forgetting. Our model, on the other hand, archives the best classification accuracy with only utilizing 0.25% training parameter compared to the baseline methods, demonstrating the effectiveness of our fine-tuning method.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.5">Effect of Loss Function.</head><p>In this section, we evaluate the impact of different loss functions on model performance. We examine two commonly used loss functions as our baseline: (a) cosine similarity loss, and (b) mean-square error (MSE) loss. For these baseline loss functions, we compute the loss only for each positive sample (paired heatmap data sample and text sample) without explicitly distinguishing the negative samples (unpaired heatmap data sample and text sample). The results, as shown in Fig. <ref type="figure">10</ref>, indicate that neither baseline loss function can show satisfied performance in the zero-shot classification task. The reason is that the baseline loss functions focus solely on making the embeddings of the same class similar, while the contrastive losses not only account for the intra-class alignment of embeddings but also consider the interconnection between different classes. This result demonstrates that our contrastive loss function is more effective in creating a robust semantic space for each activity, as it enhances both intra-class alignment and inter-class differentiation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>5.3.6</head><p>Cross-Environment Zero-shot Performance. We now evaluate the generalization ability of our system to different environments. We use Scene A (a conference room) as our basic environment, and use Scene B (another conference room), and Scene C (a resting area) as the test environment. Specifically, we pre-train the model with the synthetic dataset, which is environment-independent, then we fine-tune the model with the real seen activity data from the base environment and test it in the other environments with the same set of subjects. During the experiment, the subjects are asked to perform the same activities as they did in the base environment. The classification results for Scene A (base environment), Scene B (test environment), and Scene C (test environment) are 76.4%, 72.4%, and 75.3%, respectively. We can see only a marginal performance drop when transitioning from the base to the test environments. This robustness can be attributed to our synthetic data pre-training strategy, which enables the model to learn motion-specific features independent of the environment, thus enhancing its ability to generalize across different scenarios.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.4">Few-shot Performance</head><p>While zero-shot recognition is highly promising for training generalizable models capable of handling unseen classes, a few labeled samples from unseen activities may be available in practical scenarios to boost the model's performance. This motivates us to also evaluate our framework in the few-shot setting. A typical few-shot learning scheme <ref type="bibr">[14,</ref><ref type="bibr">27,</ref><ref type="bibr">39]</ref> works by first pretraining a model on a set of base classes with sufficient labeled data to learn general features and representations. After this pretraining phase, the model is fine-tuned to quickly adapt and recognize new classes using only a small number of labeled examples from those classes, leveraging techniques like meta-learning or transfer learning to efficiently generalize to new tasks with limited data. These approaches struggle to work in zero-shot scenarios, which distinguishes our method from the approaches tailored exclusively for few-shot learning. In our approach, the synthetic data pre-training and real data fine-tuning of seen activities enable our model to capture effective feature representations from various activities. This foundation allows our framework to be easily extended to few-shot learning scenarios.</p><p>We employ a basic metric-based few-shot method that requires no additional training. Specifically, using a few representative heatmap examples from each unseen class, we can calculate the corresponding heatmap class embeddings. During the inference stage, we compute the heatmap class embedding from incoming heatmap samples and assess the similarity with the few-shot heatmap class embedding. The class label is then determined by selecting the class with the highest similarity. To compare with the existing few-shot framework, we have adapted RF-Net <ref type="bibr">[11]</ref> as the few-shot baseline. Specifically, we adapted the selection of meta-tasks chosen from different environments for the same activity, to now be selected from among the base classes, followed by fine-tuning for the target classes. As illustrated in Fig. <ref type="figure">11</ref>, there is a clear increasing trend in classification accuracy for all models as the number of few-shot examples increases from zero-shot to 7-shot settings. With just a one-shot sample provided from each unseen class, our model achieves significantly higher accuracy compared to the zero-shot setting. This improvement is mainly because the model in the zero-shot setting relies solely on the semantic connection between activities to infer unseen classes while the model in the few-shot setting can leverage the representative samples from unseen activities as an observation to approximate the real distribution of unseen classes to enhance prediction. We also observe that our approach consistently outperforms the RF-Net baseline, this is because RF-Net is tailored primarily for adapting the same activity across different environments, thus it may not be able to efficiently handle the few-shot learning scenarios studied in this paper, whose goal is to recognize new activities with only a few labeled samples. Additionally, our framework leverages the powerful representation capabilities of the large pre-trained model, thereby helping to construct a robust feature space even with a limited dataset. It is also noteworthy that the model Syn, which is pre-trained on the synthetic dataset, achieves decent performance in the one-shot setting. This highlights the effectiveness of the synthetic data pre-training strategy that helps the model capture useful activity motion features with diverse activity motion data from other modalities at minimum data collection effort.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.5">Quality of The Signal Simulator</head><p>In this section, we evaluate the quality of our signal simulator, which shares the same design principle as <ref type="bibr">[6,</ref><ref type="bibr">61]</ref>. Specifically, we first utilize the collected activity pose data to simulate radar signals for all 60 activities. We then train the model in the same manner as we pretrain mmCLIP using the large synthetic dataset and subsequently test it on various unseen classification tasks using real-world radar signals. In this setting, our model achieves an impressive accuracy of 89.7%, demonstrating the simulator's capability to capture essential motion features beneficial for our zero-shot classification task, although it may not perfectly replicate the physical world. In Fig. <ref type="figure">12</ref>, we show an example heatmap attribute from the activity bowing, jogging clockwise, and mopping the floor. The odd rows display the real heatmap signals captured during the activity, while the even rows illustrate the synthetic heatmap signals generated by our simulation module. The columns from left to right correspond to time-Doppler, time-range, and time-angle heatmaps, respectively. The visual similarity between the real and simulated signals underscores the effectiveness of our signal simulation module.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.6">System Complexity and Latency</head><p>In this section, we analyze the computational complexity and the latency of the proposed system. For the complexity of our proposed mmCLIP framework, we report the number of trainable parameters in the deep learning model. In the synthetic data pertaining stage, the overall number of trainable parameters is 20&#119872;, where the text branch has 4&#119872; parameters and the signal branch has 16M parameters. Compared with the original CLIP model with a total 150&#119872; parameters <ref type="bibr">[62]</ref>, we can see our model is substantially more compact, enhancing its efficiency for the Human Activity Recognition task. During the fine-tuning stage, the total number of trainable parameters is reduced to 500&#119870;, with the text branch accounting for 30&#119870; parameters and the signal branch for 470&#119870; parameters. This reduction highlights the efficiency of LoRA fine-tuning. For latency measurements, we conducted inference on a desktop equipped with an NVIDIA A6000 GPU and an Intel Xeon Gold 6254 CPU, reporting the average latency. Given that the text embedding can be computed in advance of the inference stage, the primary latency originates from the signal branch, which has a processing time of approximately 7&#119898;&#119904;. This performance demonstrates that our proposed system is capable of operating in real-time, making it suitable for real-world applications.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">RELATED WORK 6.1 mmWave-based Human Activity Recognition</head><p>The advancements in deep learning have spurred the development of various mmWave-based sensing systems for human activity recognition <ref type="bibr">[5,</ref><ref type="bibr">23,</ref><ref type="bibr">29,</ref><ref type="bibr">48,</ref><ref type="bibr">59</ref>]. These systems employ various signal processing techniques to manipulate signal attributes into formats suitable for neural networks. However, a common limitation of these approaches is their dependence on abundant training data to achieve optimal performance. This requirement can pose challenges in real-world applications where such extensive data collection may not be feasible.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2">RF-based Zero-shot Human Activity Recognition</head><p>Due to the substantial effort required to collect mmWave signal datasets, recent research has explored few-shot and zero-shot activity recognition to improve the model's generalizability with limited or no data. Studies such as <ref type="bibr">[11,</ref><ref type="bibr">16,</ref><ref type="bibr">57]</ref> have proposed few-shot learning systems where the model is pretrained on a source dataset and benefits from a few representative samples in unseen classes to enhance its generalizability. In the zero-shot setting, where real-world signal data from unseen classes is not accessible, the classification challenge significantly increases. To address this, researchers have developed two primary approaches for zero-shot recognition using RF signals: the signal simulation-based approach and the semantic space projection-based approach. For the signal simulation-based approach, works like <ref type="bibr">[1,</ref><ref type="bibr">9]</ref> proposed simulating the initial Doppler heatmap from vision data of the unseen activity and refining it through deep neural networks. <ref type="bibr">[6,</ref><ref type="bibr">61]</ref> developed more sophisticated simulators capable of generating high-quality IF signals from vision data. To achieve zero-shot recognition, these works require the unseen activity label available in the training stage to synthesize radar signals using the physical simulator. These synthesized signals are then used to train a classification model with fixed output classes tailored to these predetermined classes to achieve zero-shot recognition. Such a design inherently limits flexibility, as the trained classification model would fail in scenarios where new unseen activities are encountered. In contrast, this paper addresses a more practical yet challenging problem, where both the signal and the label of the unseen activities are not observed during model training.</p><p>To tackle this problem, our approach leverages language reasoning, utilizing pre-trained text embeddings and their semantic relationships to bridge the gap between seen and unseen classes. This enables our model to train on a set of seen activities and generalize to different unseen activity classification tasks, without explicitly acquiring unseen activity labels in the training stage. On the other hand, the semantic space projection-based approach involves projecting the signal embedding space to the embedding space of other modalities that have been trained on a larger dataset to enhance zero-shot capabilities. For example, <ref type="bibr">[21]</ref> utilized text semantic space with word embedding to bridge unseen and seen activities. Most recently, <ref type="bibr">[64]</ref> proposed incorporating a text encoder from an existing visual-language model, such as CLIP <ref type="bibr">[43]</ref>, to facilitate the zero-shot recognition task. Unlike these approaches, our mmCLIP framework employs a pre-train &amp; fine-tune training scheme that utilizes cross-modal signal synthesis to augment diverse mmWave data for pre-training, coupled with small real-world datasets for fine-tuning, to enhance the alignment of embedding spaces between radar signals and textual labels. Additionally, we designed an attribute decomposition and recomposition module for both the signal and text modality. This helps the model to characterize subtle activity relationships leveraging the element activity attribute that may be shared between seen and unseen activities, thereby substantially improving classification performance for unseen classes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Visual Language Models</head><p>Foundational visual language models (VLMs), such as CLIP <ref type="bibr">[43]</ref> and ALIGN <ref type="bibr">[22]</ref>, have been extensively trained via contrastive pretraining using large-scale image-text pairs, demonstrating remarkable zero-shot transfer capabilities across a variety of downstream vision tasks. These applications include few-shot and zero-shot image recognition <ref type="bibr">[60,</ref><ref type="bibr">62,</ref><ref type="bibr">63]</ref>, object detection <ref type="bibr">[17,</ref><ref type="bibr">53,</ref><ref type="bibr">56]</ref>, image captioning <ref type="bibr">[7,</ref><ref type="bibr">34]</ref>, cross-modal retrieval <ref type="bibr">[13,</ref><ref type="bibr">32]</ref>, and video-based HAR <ref type="bibr">[30,</ref><ref type="bibr">36,</ref><ref type="bibr">46]</ref>. However, adapting pre-trained visual language models to radar-based HAR introduces significant challenges due to the absence of temporal information in image-based training data and the modality gap between image-text and signal-text pairs, necessitating innovative approaches to bridge these gaps.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">DISCUSSION AND FUTURE WORK</head><p>While mmCLIP represents a pioneering endeavor towards a more generalizable Human Activity Recognition (HAR) system by leveraging knowledge from a pre-trained visual-language model, it opens up substantial avenues for future research: Different Radar View and Subject Position: mmCLIP is primarily evaluated under conditions where the subject maintains a forward-facing orientation relative to the radar while engaging in most of the activities. In practical settings, variations in the radar's view direction and the subject's orientation can significantly alter the reflection patterns. This variability poses substantial challenges to the zero-shot recognition of unseen activities, underscoring the need for further development to accommodate a range of orientations and positions. A promising direction for future research includes simulating signals by adjusting the radar view and subject location to better mimic real-world scenarios. Multi-Modal Sensing: A critical future direction for mmCLIP involves enhancing its capabilities to support multi-modal sensing. By delving into attribute decomposition, mmCLIP combines the physical signals with textual attributes. This methodology facilitates integration with other sensing modalities that utilize different physical properties, thereby enhancing environment perception for a more robust analysis. Adapting To Different Downstream Tasks: Broadening mm-CLIP's utility to encompass various downstream tasks such as virtual reality interactions, elderly care, and gesture recognition presents another promising avenue. This expansion could be facilitated by developing a larger vision-text dataset that captures diverse human motions across different contexts, utilizing 3D mesh generation tools <ref type="bibr">[15]</ref> for synthetic dataset generation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8">CONCLUSION</head><p>In this paper, we tackle the problem of mmWave-based zero-shot human activity recognition. Specifically, we propose mmCLIP, a novel mmWave sensing system that can recognize unseen activities by transferring knowledge from the advanced pretrained visual language model, which is pre-trained through pervasive text-image pairs. To facilitate the knowledge transfer process, we generate a comprehensive synthetic mmWave radar dataset by leveraging existing cross-modal vision datasets. Additionally, we introduce an attribute decomposition module that effectively characterizes the nuanced relationships between activities. Such model design enhances our system's ability to understand and classify complex activity patterns. The superior zero-shot classification results on unseen activities demonstrate the effectiveness of our proposed mmCLIP framework.</p></div></body>
		</text>
</TEI>
