Evaluating Gramian Angular Field Texture for Sparse Attention Time Series under Incomplete Observation

Evaluating Gramian Angular Field Texture for Sparse Attention Time Series under Incomplete Observation

Jiayin Pei | Hongrui Cui | Tong Li*

School of Business, Jiangnan University, Wuxi 214122, China

School of Business, Guangdong University of Foreign Studies, Guangzhou 510006, China

Corresponding Author Email: 
tongli@gdufs.edu.cn
Page: 
2473-2481
|
DOI: 
https://doi.org/10.18280/ts.430528
Received: 
15 April 2026
|
Revised: 
7 September 2026
|
Accepted: 
23 September 2026
|
Available online: 
31 October 2026
| Citation

© 2026 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

Time-series imaging lets texture descriptors analyse one-dimensional signals, but its value for short, bursty count series with missing observations remains unclear. This study evaluates whether Gramian angular summation field (GAF) texture adds discriminative information beyond direct temporal features. Hourly attention series from 211 food safety incidents on Sina Weibo were encoded as 64 × 64 GAF images and described by 72 gray-level co-occurrence features. Six representations, including a temporal control with the same feature count and block weights as texture fusion, were compared under count thinning and contiguous block loss using event-level folds and paired bootstrap intervals. GAF-row and scalar lifecycle segmentation were also compared. Texture alone performed worst, retrieving 94.55% of events at 20% thinning, whereas the full trace and fusion retrieved all events. The weight-matched control stayed within one percentage point of fusion in six of seven conditions; at 20% block loss the fusion gain was 1.90 percentage points (95% interval: −1.42 to 5.26). GAF-row boundaries were 1.4 to 2.7 times less repeatable than scalar boundaries. The results indicate that the apparent benefit of texture fusion arises from feature weighting rather than texture. The weight-matched control provides a simple test for attributing fusion gains to image features.

Keywords: 

feature fusion, Gramian angular field, gray-level co-occurrence matrix, incomplete observation, lifecycle segmentation, sparse time series, texture analysis, time-series imaging

1. Introduction

Turning a one-dimensional signal into an image has become a common way of reusing image analysis tools on time series. Recurrence plots were an early example [1]. Gramian angular fields (GAF) and Markov transition fields later brought the idea into classification work [2, 3], and convolutional networks trained on such images have reported competitive accuracy on benchmark archives [4]. A GAF stores the relationship between every pair of time points in a two-dimensional array, so structure that is spread out in time can appear as local patterns that texture descriptors or convolution kernels are able to detect.

Most of the supporting evidence, however, comes from curated benchmark collections in which the series are reasonably long, regularly sampled and complete [5, 6]. Social media attention series are different. Hourly post counts for a news event are short, dominated by one or a few bursts and full of hours with almost no activity [7, 8]. They are also observed imperfectly. Crawler interruptions, platform rate limits and deleted posts either thin the counts or leave whole stretches of the record empty. Under these conditions it is not obvious that an image encoding adds anything. A GAF is computed from the same samples as the trace, and each pixel depends on two of them, so one corrupted sample can alter an entire row and column of the image.

This paper examines that question with hourly attention series from 213 food safety incidents on Sina Weibo, 211 of which had complete records. Food safety incidents make a useful test case because their attention curves vary widely in timing, number of peaks and intensity [9, 10], and because the agencies that monitor them must often work from partial data. A reference partition of the events into four attention patterns, obtained from handcrafted trend descriptors, serves as the target against which the representations are compared. Two questions are addressed. First, does GAF texture, used alone or fused with temporal features, preserve the information that separates attention patterns when observations are thinned or interrupted? Second, can GAF rows support lifecycle segmentation as reliably as the scalar trace?

The paper makes three contributions. (1) It compares six representations of sparse attention series under two degradation models, with event-level folds and paired bootstrap intervals. Besides the full trace, compressed trace components, compressed GAF texture components and their fusion, the comparison includes two 14-component temporal controls, one unweighted and one with the same block weights as the fusion. (2) It applies the same exact dynamic-programming partition to the scalar trace and to the GAF rows, which isolates the effect of the image encoding on boundary stability. (3) It examines why texture pooling loses timing information in this setting and draws practical guidance on when an image representation is worth its cost. The results are largely unfavourable to texture, and they are reported as such.

The rest of the paper is organised as follows. Section 2 reviews related work. Section 3 describes the data and the reference partition. Section 4 presents the encoding, the representations and the evaluation protocol. Section 5 reports the results, Section 6 discusses them and Section 7 concludes.

2. Related Work

2.1 Time-series imaging

A recurrence plot marks the pairs of times at which a trajectory returns close to an earlier state [1]. Wang and Oates [2, 3] proposed the GAF, which maps a rescaled series to polar angles and records the cosine of pairwise angle sums (the summation field) or the sine of pairwise differences (the difference field). They also introduced the Markov transition field, which records transition probabilities between amplitude bins. Hatami et al. [4] classified recurrence plot images with a convolutional network, and libraries such as pyts [11] have since made these transforms routine. Broad reviews of time-series classification place image-based deep models among many competing families [5, 6], and strong methods that work directly on the raw series, such as random convolutional kernels [12], are hard to beat. Little of this work has examined short count series with heavy sparsity and missing segments.

2.2 Texture description of encoded images

The gray-level co-occurrence matrix (GLCM) counts how often pairs of gray levels occur at a given spatial offset, and statistics such as contrast, homogeneity, energy and correlation summarise that matrix [13]. These descriptors are cheap, interpretable and need no training, which makes them attractive when only a few hundred samples are available. For the present study, their key property is that co-occurrences are pooled over the whole image. Unless the image is tiled, the location of a pattern is lost. On a GAF, location corresponds to time, so pooling raises an obvious question: how much of the timing of a burst survives in the texture statistics?

2.3 Attention dynamics and lifecycle segmentation

Studies of online attention describe a small number of recurring shapes: exogenous bursts that decay quickly, endogenous growth followed by slower relaxation, and responses that arrive in several waves [7, 8, 14]. Yang and Leskovec [14] clustered such shapes with a distance that is invariant to shifts and scaling, and later work has related lifecycle timing to event type and information source [15-17]. Research on food safety discussions on Weibo has concentrated on text and sentiment [9, 10], with less attention to the shape of the attention curve itself [18].

Lifecycle stages are commonly located by optimal partitioning. Fisher's method [19] minimises the within-segment sum of squares while respecting time order and can be solved exactly by dynamic programming [20]. Penalised and pruned variants handle an unknown number of change points [21], and a broad review is given by Truong et al. [22]. In this study segmentation serves as a second probe of the image encoding. If GAF rows carry the same temporal information as the trace, segmenting them should place boundaries in the same positions and should be no less stable when the data are degraded.

3. Data and Reference Partition

3.1 Data collection

Posts about 213 food safety incidents that occurred in China between 2021 and 2026 were collected from Sina Weibo with a Python crawler, using event names and related keywords as queries. Collection ran from 9 October 2025 to 1 September 2026. Duplicates, advertisements and off-topic posts were removed, and each remaining post was matched to its event by keywords and timestamp. For every incident, the hour of the first valid post was set to t = 0, and posts were counted in consecutive one-hour bins. The experiments use only these event-level hourly counts; no user identifiers or post text enter the analysis. Two series had incomplete records and were excluded from the representation experiments, which therefore use 211 events.

3.2 Trend extraction

Hourly counts are dominated by short spikes, so a smooth trend was extracted with the Hodrick-Prescott (HP) filter [23]. The filter splits the series into a trend τt and a cyclical part ct = xt − τt by solving:

$\underset{\left\{ {{\tau }_{t}} \right\}}{\mathop{\text{min}}}\,\underset{t=1}{\overset{T}{\mathop \sum }}\,{{\left( {{x}_{t}}-{{\tau }_{t}} \right)}^{2}}+\lambda \underset{t=2}{\overset{T-1}{\mathop \sum }}\,{{\left( {{\tau }_{t+1}}-2{{\tau }_{t}}+{{\tau }_{t-1}} \right)}^{2}}$       (1)

where, T is the number of hourly samples and λ controls smoothness. Because the series lengths differ by more than an order of magnitude, the smoothing parameter was increased with series length, in line with frequency-adjusted settings for the filter [24]. The reference partition in Section 3.3 was built on all 213 events before the representation experiments, and the schedule used in those experiments is stated in Section 4.1. Figure 1 shows the hourly counts, the HP trend and the three-stage partition for one representative event of each pattern.

Figure 1. Hourly post volume, HP trend and three-stage partition for one representative event of each pattern

3.3 Reference partition

Seven descriptors were computed from each trend: the number of local peaks Np, the relative times of the first peak Tf and of the highest peak Tm (both expressed as fractions of the series length), the maximum amplitude Amax, the relative decay time D (the time taken for the trend to fall below half of its maximum, divided by the series length), the fluctuation intensity V (the standard deviation of ct) and the duration L. After z-score standardisation, the events were grouped by K-means with k-means++ initialisation [25]. Four clusters were retained. Moving from three to four clusters raised the mean silhouette coefficient [26] from 0.3481 to 0.3711 and the Calinski-Harabasz index [27] from 62.97 to 63.44, and reduced the within-cluster sum of squares from 932.07 to 780.37.

Table 1 summarises the four patterns. Type 1 (delayed peak) reaches its main peak late in the lifecycle. Type 2 (early multi-peak) peaks early and then returns in further waves. Type 3 (extremely high attention) is rare but far more intense than the others. Type 4 (short-lived concentrated) is the majority pattern, with one early peak and the shortest duration.

Table 1. Size and median descriptors of the reference patterns (n = 213)

Pattern

n (%)

Np

Tf

Tm

Amax

L (h)

Type 1

34 (15.96)

1

0.313

0.336

66.38

162

Type 2

47 (22.07)

2

0.059

0.097

53.08

193

Type 3

6 (2.82)

1

0.065

0.065

1288.66

275

Type 4

126 (59.15)

1

0.065

0.074

75.23

111.5

Notes: Tf and Tm are fractions of the series length; Amax is in posts per hour.

The stability of the partition was checked in two ways, using the adjusted Rand index (ARI) [28] against the original assignment. Over 100 runs of K-means with fresh random initialisation, the mean ARI was 0.5248 (SD 0.1701). When Gaussian noise with standard deviations of 0.05 and 0.10 was added to the standardised descriptors and clustering was restarted from the original centres, the mean ARI was 0.6740 (SD 0.0316) and 0.6981 (SD 0.0669). The partition is thus moderately stable, and the borders between patterns are not sharp. It is used here as a fixed reference rather than as ground truth, which has two consequences for the experiments. Agreement with it cannot be expected to approach 100%, and because it was built from trend descriptors, representations that stay close to the trend start with a structural advantage. Section 6 returns to this point.

Of the 211 complete series used in the experiments, 33 belong to Type 1, 46 to Type 2, six to Type 3 and 126 to Type 4. A rule that assigns every event to Type 4 therefore agrees with the reference in 126/211 = 59.72% of cases, and this rate is the baseline against which the agreement figures in Section 5 should be read. The partition was fitted once on all 213 events and was not refitted within the cross-validation folds.

4. Method

Figure 2 outlines the experimental pipeline. Each series is first degraded and then converted into a direct trace and into GAF images. Six representations derived from these are compared on retrieval and pattern agreement, and lifecycle segmentation is compared separately on the scalar trend and on the GAF rows.

Figure 2. Experimental pipeline; the temporal controls R5 and R6 follow the R2 branch

4.1 Preprocessing

For an event with hourly counts xt, t = 1, ..., T, two sequences were formed: the log counts s(1)t = log(1 + xt) and the log trend s(2)t = log(1 + max(τt, 0)). The HP smoothing parameter was set to 10, 20, 50 and 100 for series of at most 96 h, at most 144 h, at most 240 h and longer than 240 h, respectively. Each sequence was linearly interpolated onto 64 equally spaced points covering the whole lifecycle and rescaled to [−1, 1]:

$\tilde{x}_k=\frac{2\left(s_k-\min _j s_j\right)}{\max _j s_j-\min _j s_j}-1, \quad k=1, \ldots, 64$      (2)

Resampling to a fixed length removes absolute duration, and rescaling removes absolute amplitude. Both steps were applied in the same way to every representation, so all of them see the same shape information.

Because the interpolation grid spans the whole lifecycle and the HP filter is two-sided, every representation describes a completed series. The comparison is therefore retrospective and says nothing about real-time detection. A sequence with constant values was mapped to −1, with a floor of 10−12 on the denominator of Eq. (2) to avoid division by zero.

4.2 Gramian angular field encoding

Each rescaled sample was mapped to a polar angle φk = arccos x̃k, and the Gramian angular summation field was formed as

${{G}_{kl}}=\text{cos}\left( {{\phi }_{k}}+{{\phi }_{l}} \right)={{\tilde{x}}_{k}}{{\tilde{x}}_{l}}-\sqrt{1-\tilde{x}_{k}^{2}}\sqrt{1-\tilde{x}_{l}^{2}}$       (3)

where, k, l = 1, ..., 64. Every event therefore yields two 64 × 64 images, one from the log counts and one from the log trend. The main diagonal, Gkk = 2x̃k2 − 1, retains the magnitude of each sample, and the off-diagonal entries record how pairs of samples relate. Figure 3 shows the encoding for two synthetic series. Bursts appear as bright crossings, and quiet periods produce large uniform blocks. Even in this clean example, the quiet tail of the single-burst series occupies most of the image area. Figure 4 shows the trend images of one observed event from each reference pattern. Minor secondary bursts add a lattice of weaker crossings that the synthetic examples lack, and in the Type 3 event the long quiet tail again fills a large part of the image.

Figure 3. Two synthetic series (top) and their GAF images (bottom), shown only to illustrate the encoding

Figure 4. Rescaled HP trends (top) and their GAF images (bottom) for one observed event of each reference pattern

4.3 Texture descriptors

Each GAF image was quantised into Ng = 16 gray levels,

$\begin{aligned} & q_{k l} =\min \left(N_g-1, \max \left(0,\left\lfloor\frac{\left(N_g-1\right)\left(G_{k l}+1\right)}{2}\right\rfloor\right)\right)\end{aligned}$       (4)

where, the outer bounds only absorb rounding error. Under this mapping the top level is reached only when Gkl = 1, that is, when both samples sit at the same extreme of the rescaled range; in sparse series these are mostly pairs of hours at the activity floor. All other values fall into 15 equal-width intervals. Symmetric, normalised co-occurrence matrices P were then computed at distances d ∈ {1, 2, 4} pixels and orientations θ ∈ {0°, 45°, 90°}, and four Haralick statistics [13] were taken from each matrix:

$\text{CON}=\underset{a,b}{\mathop \sum }\,{{\left( a-b \right)}^{2}}P\left( a,b \right),\text{HOM}=\underset{a,b}{\mathop \sum }\,\frac{P\left( a,b \right)}{1+{{\left( a-b \right)}^{2}}}$         (5)

$\text{ENE}=\sqrt{\underset{a,b}{\mathop \sum }\,P{{\left( a,b \right)}^{2}}}$        (6)

$\text{COR}=\underset{a,b}{\mathop \sum }\,\frac{\left( a-{{\mu }_{a}} \right)\left( b-{{\mu }_{b}} \right)P\left( a,b \right)}{{{\sigma }_{a}}{{\sigma }_{b}}}$          (7)

where, μ and σ are the means and standard deviations of the row and column marginals of P. When a marginal had zero variance, as for an image containing a single gray level, the correlation was set to 1. Nine offsets, four statistics and two images give 72 texture descriptors per event.

4.4 Representations

Four primary representations were compared. R1, the full trace, concatenates the two rescaled sequences into a 128-dimensional vector. R2 keeps the first seven principal components of R1. R3 keeps the first seven principal components of the standardised texture descriptors. R4 fuses the two compressed sets:

${{\mathbf{f}}_{\text{R}4}}=\left[ {{\mathbf{z}}_{\text{R}2}},\ \alpha \,{{\mathbf{z}}_{\text{R}3}} \right],\alpha =0.5$       (8)

where, z denotes standardised component scores. Seven components were used so that the compressed representations match the number of handcrafted descriptors. The fusion weight was fixed at α = 0.5 and was not tuned on test results, so the fused vector has 14 components, twice as many as either compressed representation. Standardisation and PCA parameters were estimated on the training events of each fold only.

The PCA representations were standardised twice with training-fold statistics, once before projection and once after it, whereas the full trace entered the distance computation as rescaled samples. Differences between R1 and R2 therefore reflect both compression and this change of scale, and cannot be attributed to dimensionality reduction alone. Two temporal controls were added to test the fusion. R5 follows the same procedure as R2 but keeps 14 components, so that it has the same length as the fused vector. R6 uses the same 14 standardised scores as R5 but multiplies scores 8 to 14 by 0.5, so that it matches the fusion in both feature count and block weighting.

4.5 Degradation models

Two forms of incomplete observation were simulated [29]. Binomial thinning models the random loss of individual posts through deletion or crawler sampling. Each hourly count was thinned and then rescaled so that its expected value is unchanged:

$x_{t}^{\text{*}}=\frac{{{B}_{t}}}{1-\delta },{{B}_{t}}\sim \text{Binomial}\left( {{x}_{t}},\,1-\delta  \right)$       (9)

A contiguous block models an outage. A block covering a fraction δ of the series was removed at a random position and filled by linear interpolation between the neighbouring observed hours. For both models, δ took the values 5%, 10% and 20%, each level was repeated with ten fixed random seeds, and identical degraded series were passed to all six representations.

The block length was max(1, round(Tδ)) hours, and its start was drawn from interior positions so that both interpolation end points were observed. The fold split used random seed 2026, and the ten degradation runs used seeds 202600 to 202609. Clean data involve no randomness and were evaluated once.

4.6 Evaluation protocol

The 211 events were split once into five folds, stratified by reference pattern. Two tasks were evaluated in each test fold. In the retrieval task, the degraded version of a test event was compared by Euclidean distance with the clean versions of all test events, and retrieval succeeded when the nearest clean series was the same event. This task asks only whether a representation keeps the identity of an event under degradation; it does not test the recognition of unseen events. In the pattern task, the degraded test event received the pattern of its nearest clean training event (1-NN). Accuracy against the reference partition is reported as agreement. Because Type 4 holds about 60% of the events, balanced accuracy [30] is also reported.

The fusion was compared directly with three temporal baselines. For each event, the difference in correctness between R4 and R2, between R4 and R5, and between R4 and R6, was averaged over the ten seeds, and the events were resampled 5,000 times to obtain a percentile 95% bootstrap interval [31] for the mean difference. Paired intervals are reported for the 20% degradation level. Because the folds were fixed, these intervals reflect variation across events but not the variability that would come from different training sets.

4.7 Segmentation test

The scalar method segments the 64-point log trend, with uk = x̃k. The image method segments the rows of the trend GAF, with uk = Gk,:/8; dividing by 8, the square root of the row length, puts row norms on a scale comparable with the scalar values and does not change the optimal boundaries. Both methods solve:

$\underset{{{b}_{1}},{{b}_{2}}}{\mathop{\text{min}}}\,\underset{j=1}{\overset{3}{\mathop \sum }}\,\underset{k\in {{S}_{j}}}{\mathop \sum }\,{{\mathbf{u}}_{k}}-{{\overset{}{\mathop{\mathbf{u}}}\,}_{{{S}_{j}}}}^{2},\left| {{S}_{j}} \right|\ge 4$        (10)

exactly by dynamic programming [19, 20], with three segments and at least four samples in each. Three segments correspond to the outbreak, maturity and decline stages commonly used in lifecycle analysis. The displacement between two segmentations with internal boundaries (b1, b2) and (b̂1, b̂2) is

$\Delta =\frac{\left| {{b}_{1}}-{{{\hat{b}}}_{1}} \right|+\left| {{b}_{2}}-{{{\hat{b}}}_{2}} \right|}{2\times 64}$               (11)

Displacement was computed between the clean and degraded segmentation of the same method, and also between the two methods on clean data. The test measures repeatability; no independently annotated stages were available for comparison.

5. Results

5.1 Retrieval under count thinning

Table 2 summarises the results at the strongest degradation level. With 20% of posts removed, the full trace and the fusion retrieved the correct event in every query, R5 in 99.91% of queries, the seven trace components in 99.81% and the texture components in 94.55%. Each test gallery contained only about 42 events, so retrieval is an easy task, and texture was the only representation that failed it noticeably. Under thinning, the clean copy of an event was not always the closest texture vector to its degraded copy.

Table 2. Retrieval and agreement with the reference partition at 20% degradation (%)

Representation

Retrieval, Thinning

Agreement, Thinning

Agreement, Block

R1 Full trace

100.00

62.65

60.85

R2 Trace PCA

99.81

64.83

58.48

R3 Texture PCA

94.55

57.44

55.78

R4 Fusion

100.00

65.07

60.76

R5 Trace PCA-14

99.91

60.43

57.82

R6 Weighted trace

99.91

64.60

58.86

Notes: Values are means over ten seeds and five event-level folds. Thinning removes posts at random; block removes a contiguous 20% of the series.

5.2 Pattern agreement under count thinning

Figure 5 shows agreement as a function of the deletion rate. On clean data the fusion and the trace components agreed with the reference partition in roughly 65% and 64% of cases, the full trace in about 62% and the texture components in about 60%. As deletion increased, the three trace-based representations stayed within about one percentage point of their clean values, while texture declined steadily and ended at 57.44% at the 20% level.

Figure 5. Agreement with the reference partition under binomial count thinning (R1–R6)

At 20% deletion the fusion agreed in 65.07% of cases and the trace components in 64.83%. The paired difference was 0.24 percentage points, with a 95% bootstrap interval from −3.32 to 3.74 (Table 3). Balanced accuracy was 45.13% for the fusion and 44.67% for the trace components. These figures need to be read against the class balance. Assigning every event to Type 4 would already agree with the reference in 59.72% of cases, so the texture components at 20% deletion fell below that trivial rule, and the gap between accuracy and balanced accuracy shows that many minority-pattern events were assigned to the wrong pattern by every representation. R2 and R4 outperformed the full 128-dimensional trace at every deletion level; the fusion, for example, was ahead by roughly 2.4 to 3.3 percentage points. This points to an effect of compression and score standardisation, although the design cannot separate the two. Keeping 14 trace components instead of seven did not help: R5 agreed less often than R2 at every thinning level and stayed close to the majority-class rate (Table 4), and at 20% thinning the fusion was ahead of it by 4.64 percentage points (interval −1.04 to 10.24). Down-weighting the additional components changed this picture. R6 agreed in 64.60% of cases at 20% thinning, close to both R2 and the fusion, with a balanced accuracy of 43.22%, and the fusion led it by only 0.47 percentage points (interval −3.98 to 5.02).

Table 3. Paired difference in agreement between the fusion and the temporal baselines at 20% degradation

Comparison

Difference (pp)

95% Bootstrap Interval

R4 − R2, thinning

0.24

[−3.32, 3.74]

R4 − R2, block

2.27

[−0.57, 5.12]

R4 − R5, thinning

4.64

[−1.04, 10.24]

R4 − R5, block

2.94

[−1.37, 7.16]

R4 − R6, thinning

0.47

[−3.98, 5.02]

R4 − R6, block

1.90

[−1.42, 5.26]

Notes: pp, percentage points. Intervals are conditional on the fixed folds (5,000 event-level resamples).

Table 4. Agreement of the temporal controls R5 (unweighted) and R6 (weight-matched) with the reference partition (%)

Degradation Level

R5, Thinning

R5, Block

R6, Thinning

R6, Block

0% (clean)

58.77

58.77

64.93

64.93

5%

59.72

59.91

64.36

64.22

10%

59.48

61.04

64.79

63.51

20%

60.43

57.82

64.60

58.86

Notes: Values are means over ten seeds and five event-level folds. The majority-class rate is 59.72%.

5.3 Pattern agreement under contiguous missing blocks

Losing a contiguous block was more damaging than thinning. At the 20% level, agreement was 60.85% for the full trace, 60.76% for the fusion, 58.48% for the trace components and 55.78% for the texture components (Table 2). These values lie close to the majority-class rate of 59.72%: the trace and texture components fell below it, and the full trace exceeded it by only 1.1 percentage points. Accuracy alone is therefore a weak guide at this level, and the balanced agreement reported below, between about 39% and 42% against 25% for random assignment over four patterns, gives a fairer picture. The ranking also depended on the amount of loss (Figure 6). At 5% and 10% loss the fusion stayed about two percentage points ahead of the full trace, whereas at 20% the two were level. Compressing the trace to seven components cost about 2.4 percentage points at the 20% level, and adding texture components recovered most of that loss. The paired gain of the fusion over the trace components was 2.27 percentage points, with an interval from −0.57 to 5.12 that still included zero.

At 20% block loss, retrieval was 90.85% for the full trace, 85.40% for the fusion, 79.05% for the trace components and 64.93% for the texture components, so gap filling damaged event identity far more than thinning did. Balanced agreement was 39.39%, 42.05%, 41.09% and 38.57% in the same order. The full trace thus kept event identity better than the fusion, while the fusion separated the minority patterns slightly better; the two tasks reward different properties of a representation. R5 again stayed near the majority-class rate under block loss, and the fusion was ahead of it at every level, by 2.37 to 6.16 percentage points. R6, in contrast, tracked the fusion closely and was marginally ahead at 5% and 10% loss (Table 4 and Figure 6). At 20% loss R6 agreed in 58.86% of cases, with a balanced agreement of 40.96% and a retrieval rate of 87.20%, the latter above that of the fusion. The fusion gain in agreement over R6 at this level was 1.90 percentage points (interval −1.42 to 5.26).

Figure 6. Agreement with the reference partition under contiguous block loss (R1–R6)

5.4 Segmentation stability

On clean data the scalar and GAF-row segmentations placed their boundaries 5.06% of the grid apart on average, roughly three grid points. Under thinning, the GAF-row boundaries moved further at every deletion level (Figure 7): about 0.96% against 0.36% of the grid at 5%, 1.73% against 0.66% at 10%, and 2.18% against 1.09% at 20%. The absolute displacements are small, about 1.4 grid points for GAF rows at 20% deletion, but throughout the thinning experiment the GAF-row segmentation was between two and three times less repeatable than the scalar one.

Figure 7. Boundary displacement of the three-segment partition under binomial count thinning

Contiguous block loss moved the boundaries of both methods further than thinning did. Scalar displacement was 1.27%, 2.50% and 4.73% of the grid at 5%, 10% and 20% loss, against 1.98%, 3.64% and 6.44% for GAF rows. In relative terms the gap was smaller than under thinning, with GAF-row displacement 1.4 to 1.6 times the scalar value, but the ordering did not change. Neither test measures boundary accuracy, because no independently annotated stages were available.

6. Discussion

6.1 Why texture loses information

Three properties of the pipeline are consistent with these results. The first is pooling. The reference patterns differ chiefly in when the main peak occurs and in how many peaks there are; the median relative time of the highest peak is 0.336 for Type 1 but below 0.10 for the other types (Table 1). In a GAF, time is encoded by pixel position. Co-occurrence statistics are accumulated over the whole image, so a burst at 10% of the lifecycle and a burst at 30% can produce similar gray-level pairs in different places and, in the aggregate, similar descriptors. What survives pooling relates more to the width of bursts and the area of quiet blocks than to their timing.

The second concerns the angular mapping. The derivative of arccos is unbounded near ±1, and in sparse series many samples lie close to −1, so small changes in low-count hours can become comparatively large changes in angle. The cosine of the angle sum damps some of these changes, but 16-level quantisation turns part of the remainder into discrete level jumps. The steady decline of texture agreement under thinning (Figure 5) fits this account, although the experiment does not separate it from the effects of smoothing, rescaling and pooling.

The third concerns how far a perturbation spreads. With the other rescaled samples fixed, a change at one of the 64 positions alters up to 127 entries of the GAF, one row and one column, and re-estimating the rescaling extremes or the HP trend can alter more. Row-based segmentation therefore operates in a different distance geometry from scalar segmentation. The larger boundary displacement of GAF rows (Figure 7) agrees with this, but it is an empirical finding rather than a necessary consequence of the encoding.

6.2 Does texture add to the fused vector?

Against the unweighted 14-component baseline, the fusion looked consistently better, by 2.37 to 6.16 percentage points across the seven observation conditions. The weight-matched control R6 removes most of this difference. R6 tied with the fusion on clean data, stayed within one percentage point of it in six of the seven conditions and was marginally ahead at 5% and 10% block loss. Only at 20% block loss did the fusion lead by more than one point, and that interval included zero. The contrast between R5 and R6 also explains the weak result for R5. Once components 8 to 14 are down-weighted, these low-variance, noise-dominated scores no longer carry the same weight in the Euclidean distance as the leading components, and agreement returns to the level of R2 or above. The earlier fusion gain is therefore largely explained by the weighting of the second feature block rather than by information specific to texture. R6 also retrieved more events than the fusion at 20% block loss. For these data, texture adds no reliable information to a well-weighted temporal representation, and direct temporal features should be treated as the baseline that any image-based representation has to beat.

6.3 Limitations

Several limitations qualify these conclusions. The reference partition was derived from trend descriptors, so it favours representations that stay close to the trend, and the experiments measure agreement with that partition rather than recognition of independently defined classes. Event types or lifecycle stages annotated by domain experts would allow a fairer test. The partition itself is only moderately stable, and Type 3 contains six events, which makes balanced accuracy noisy. Only handcrafted texture and nearest-neighbour matching were evaluated. Convolutional networks were not trained on the GAF images because about 170 training events per fold are too few for deep models without extensive augmentation; fine-tuning pretrained networks is a natural next step. All data came from one platform and one topic. Finally, the folds were fixed, so the bootstrap intervals do not include training-set variability.

The weight-matched control addresses feature count and block weighting, but the intervals remain wide and computational cost was not compared. Because the reference partition was fitted on all 213 events, including the test events of each fold, the folds measure how well a fixed partition is reproduced, not how well new event classes are discovered.

7. Conclusions

This study tested whether Gramian angular field texture adds useful information to sparse, incompletely observed social media attention series, using 211 food safety incidents on Sina Weibo. GAF texture alone was the weakest of the six representations: it was the only one that failed to recover event identity reliably under count thinning, and its agreement with the reference attention patterns declined as more posts were removed, falling below the majority-class rate. The seven trace components and the fusion agreed with the reference more often than the full trace except under heavy block loss, where the full trace and the fusion were level. Fusing texture with compressed trace components gave small gains over the seven compressed traces, but a temporal control with the same feature count and block weights reproduced them in all but one condition, so they cannot be credited to texture. Segmenting GAF rows instead of the scalar trend made lifecycle boundaries two to three times less repeatable under thinning and about 1.4 to 1.6 times less repeatable under block loss.

For the short count series examined here, pooled GAF texture alone retained less discriminative temporal information than direct traces, and adding it to compressed temporal features gave no reliable gain once feature weighting was controlled. These findings concern the tested quantisation, pooling and matching procedure, not all GAF encodings or image-based models. Scalar segmentation was more repeatable on these data. The weight-matched control used here offers a simple check for future studies that attribute fusion gains to image features. Position-aware texture descriptors, learned image features and independently annotated labels are natural next steps.

Acknowledgments

This paper was supported by the National Social Science Foundation of China (Grant No.: 20FTQB018), the National Natural Science Foundation of China (Grant No.: 72372059), and the Fundamental Research Funds for the Central Universities (Grant No.: 2019JDZD06).

Nomenclature

Amax

maximum amplitude of the trend, posts.h-1

b1, b2

internal segment boundaries, dimensionless

ct

cyclical component, posts.h-1

D

relative decay time, dimensionless

d

co-occurrence offset distance, pixels

G

Gramian angular summation field, dimensionless

L

duration of discussion, h

Ng

number of gray levels, dimensionless

Np

number of local peaks, dimensionless

P

normalised co-occurrence matrix, dimensionless

T

series length, h

Tf, Tm

relative time of first and highest peak, dimensionless

V

fluctuation intensity, posts.h-1

xt

hourly post count, posts.h-1

x̃k

rescaled sample, dimensionless

Greek symbols

α

fusion weight, dimensionless

δ

degradation fraction, dimensionless

Δ

normalised boundary displacement, dimensionless

θ

co-occurrence orientation, °

λ

HP smoothing parameter, dimensionless

$\tau_t$

HP trend component, posts.h-1

φk

polar angle, rad

Subscripts

k, l

indices on the 64-point grid

t

hour index

  References

[1] Eckmann, J.P., Kamphorst, S.O., Ruelle, D. (1987). Recurrence plots of dynamical systems. Europhysics Letters (EPL), 4(9): 973-977. https://doi.org/10.1209/0295-5075/4/9/004

[2] Wang, Z., Oates, T. (2015). Encoding time series as images for visual inspection and classification using tiled convolutional neural networks. In Workshops at the Twenty-Ninth AAAI Conference on Artificial Intelligence, Austin, TX, USA, pp. 40-46.

[3] Wang, Z., Oates, T. (2015). Imaging time-series to improve classification and imputation. In Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence, Buenos Aires, Argentina, pp. 3939-3945.

[4] Hatami, N., Gavet, Y., Debayle, J. (2018). Classification of time-series images using deep convolutional neural networks. In Proceedings of SPIE 10696, Tenth International Conference on Machine Vision (ICMV 2017), Vienna, Austria, p. 106960Y. https://doi.org/10.1117/12.2309486

[5] Bagnall, A., Lines, J., Bostrom, A., Large, J., Keogh, E. (2017). The great time series classification bake off: A review and experimental evaluation of recent algorithmic advances. Data Mining and Knowledge Discovery, 31(3): 606-660. https://doi.org/10.1007/s10618-016-0483-9

[6] Ismail Fawaz, H., Forestier, G., Weber, J., Idoumghar, L., Muller, P.A. (2019). Deep learning for time series classification: A review. Data Mining and Knowledge Discovery, 33(4): 917-963. https://doi.org/10.1007/s10618-019-00619-1

[7] Crane, R., Sornette, D. (2008). Robust dynamic classes revealed by measuring the response function of a social system. Proceedings of the National Academy of Sciences, 105(41): 15649-15653. https://doi.org/10.1073/pnas.0803685105

[8] Lehmann, J., Gonçalves, B., Ramasco, J.J., Cattuto, C. (2012). Dynamical classes of collective attention in Twitter. In Proceedings of the 21st International Conference on World Wide Web, Lyon, France, pp. 251-260. https://doi.org/10.1145/2187836.2187871

[9] Ma, B., Zheng, R. (2025). Exploring food safety emergency incidents on Sina Weibo: Using text mining and sentiment evolution. Journal of Food Protection, 88(1): 100418. https://doi.org/10.1016/j.jfp.2024.100418

[10] Song, C., Guo, C., Hunt, K., Zhuang, J. (2020). An analysis of public opinions regarding take-away food safety: A 2015-2018 case study on Sina Weibo. Foods, 9(4): 511. https://doi.org/10.3390/foods9040511

[11] Faouzi, J., Janati, H. (2020). pyts: A Python package for time series classification. Journal of Machine Learning Research, 21(46): 1-6. https://jmlr.org/papers/v21/19-763.html.

[12] Dempster, A., Petitjean, F., Webb, G.I. (2020). ROCKET: Exceptionally fast and accurate time series classification using random convolutional kernels. Data Mining and Knowledge Discovery, 34(5): 1454-1495. https://doi.org/10.1007/s10618-020-00701-z

[13] Haralick, R.M., Shanmugam, K., Dinstein, I. (1973). Textural features for image classification. IEEE Transactions on Systems, Man, and Cybernetics, SMC-3(6): 610-621. https://doi.org/10.1109/TSMC.1973.4309314

[14] Yang, J., Leskovec, J. (2011). Patterns of temporal variation in online media. In Proceedings of the Fourth ACM International Conference on Web Search and Data Mining, Hong Kong, China, pp. 177-186. https://doi.org/10.1145/1935826.1935863

[15] Aziz, R.A., Agarwal, P., McGuinness, J., Karmaker, C.L., Zhuang, J. (2024). Temporal patterns and life cycle dynamics of social media user activity during disasters: A data-driven approach for effective crisis communication. Expert Systems with Applications, 255: 124454. https://doi.org/10.1016/j.eswa.2024.124454

[16] Córdova, J., Horvát, E.Á., Romero, D.M. (2025). Timing and cross-platform presence shape the online dissemination of science. EPJ Data Science, 14(1): 63. https://doi.org/10.1140/epjds/s13688-025-00580-8

[17] Huang, J., Tang, Y., Hu, Y., Li, J., Hu, C. (2020). Predicting the active period of popularity evolution: A case study on Twitter hashtags. Information Sciences, 512: 315-326. https://doi.org/10.1016/j.ins.2019.04.028

[18] Sun, Z., Wang, D., Li, Z. (2025). Quantification and evolution of online public opinion heat considering interactive behavior and emotional conflict. Entropy, 27(7): 701. https://doi.org/10.3390/e27070701

[19] Fisher, W.D. (1958). On grouping for maximum homogeneity. Journal of the American Statistical Association, 53(284): 789-798. https://doi.org/10.1080/01621459.1958.10501479

[20] Jackson, B., Scargle, J.D., Barnes, D., et al. (2005). An algorithm for optimal partitioning of data on an interval. IEEE Signal Processing Letters, 12(2): 105-108. https://doi.org/10.1109/LSP.2001.838216

[21] Killick, R., Fearnhead, P., Eckley, I.A. (2012). Optimal detection of changepoints with a linear computational cost. Journal of the American Statistical Association, 107(500): 1590-1598. https://doi.org/10.1080/01621459.2012.737745

[22] Truong, C., Oudre, L., Vayatis, N. (2020). Selective review of offline change point detection methods. Signal Processing, 167: 107299. https://doi.org/10.1016/j.sigpro.2019.107299

[23] Hodrick, R.J., Prescott, E.C. (1997). Postwar U.S. business cycles: An empirical investigation. Journal of Money, Credit and Banking, 29(1): 1-16. https://doi.org/10.2307/2953682

[24] Ravn, M.O., Uhlig, H. (2002). On adjusting the Hodrick-Prescott filter for the frequency of observations. Review of Economics and Statistics, 84(2): 371-376. https://doi.org/10.1162/003465302317411604

[25] Arthur, D., Vassilvitskii, S. (2007). k-means++: The advantages of careful seeding. In Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, New Orleans, LA, USA, pp. 1027-1035.

[26] Rousseeuw, P.J. (1987). Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. Journal of Computational and Applied Mathematics, 20: 53-65. https://doi.org/10.1016/0377-0427(87)90125-7

[27] Caliński, T., Harabasz, J. (1974). A dendrite method for cluster analysis. Communications in Statistics, 3(1): 1-27. https://doi.org/10.1080/03610927408827101

[28] Hubert, L., Arabie, P. (1985). Comparing partitions. Journal of Classification, 2(1): 193-218. https://doi.org/10.1007/BF01908075

[29] Little, R.J.A., Rubin, D.B. (2019). Statistical Analysis with Missing Data. 3rd ed. Wiley, Hoboken. https://doi.org/10.1002/9781119482260

[30] Brodersen, K.H., Ong, C.S., Stephan, K.E., Buhmann, J.M. (2010). The balanced accuracy and its posterior distribution. In 2010 20th International Conference on Pattern Recognition, Istanbul, Turkey, pp. 3121-3124. https://doi.org/10.1109/ICPR.2010.764

[31] Efron, B., Tibshirani, R.J. (1993). An Introduction to the Bootstrap. Chapman & Hall, New York. https://doi.org/10.1007/978-1-4899-4541-9