Introduction
Convolutional Neural Networks (CNNs) have fundamentally changed computer vision by identifying complex spatial patterns in two-dimensional images. However, financial data—such as the hundreds of variables found in corporate SEC filings—is inherently one-dimensional. This research, published in the IEEE Internet of Things Journal by Dan Wang, Tianrui Wang, and Ionuț Florescu, investigates whether "encoding" 1D financial variables into 2D images allows CNNs to detect relationships that traditional 1D models might miss.
Methodology: Transforming 1D Data into 2D Images
The core of the study involves comparing different strategies for mapping 1D vectors into 2D grids. The researchers tested three primary encoding methods:
- Sequential Arrangement (SA): This is a straightforward "wrap-around" technique where the 1D vector is filled into a 2D matrix row-by-row. It serves as a baseline for 2D transformation.
- Category Chunk Arrangement (CCA): A novel, domain-specific approach where features are grouped into "chunks" based on accounting principles (e.g., Balance Sheet items, Income Statement items). This method attempts to create meaningful "objects" within the image that a CNN can learn to recognize.
- Hilbert Vector Arrangement (HVA): A mathematical approach using space-filling fractal curves. HVA is designed to preserve locality, ensuring that variables adjacent in the 1D list remain close in the 2D grid.
These methods were benchmarked against standard Multi-Layer Perceptrons (MLP) and 1D CNNs, which process data as a sequence.
Experimental Setup
The researchers utilized the Compustat® database, focusing on US companies within the Financial, Healthcare, and IT sectors from 2000 to 2016. The task was to predict corporate credit ratings using two types of data:
- Fundamental Data: 332 raw accounting variables.
- Financial Ratios: 69 pre-calculated ratios (e.g., ROA, Debt-to-Equity).
To simulate real-world forecasting, an out-of-time testing method was used: models were trained on data from 2000–2015 and evaluated on 2016 data.
Key Results and Insights
The study revealed a clear distinction between the types of data used:
Ratios Benefit from Spatial Encoding
Image encoding proved highly effective for financial ratios. In the IT sector, the Sequential Arrangement (SA) achieved 68.6% accuracy, significantly outperforming the MLP benchmark of 56.4%. Randomization tests confirmed that the spatial structure created by the encoding was vital; when pixel positions were shuffled, performance dropped. This suggests that ratios are "pre-summarized" features that, when arranged spatially, allow CNNs to identify higher-order interactions.
Raw Data and the "Noise Floor"
Conversely, for raw fundamental data, 2D CNNs struggled. The 1D CNN was generally superior, hitting 57.4% accuracy in the IT sector compared to the best 2D method (CCA) at 51.5%. The authors hypothesize that raw data is too noisy for 2D encoding, and the necessary "zero-padding" used to create square images introduces artifacts that confuse the model.
Domain Knowledge vs. Mathematical Elegance
While the Hilbert (HVA) method is mathematically sophisticated, it did not consistently outperform other methods. The CCA method, which relied on accounting logic, proved more robust for fundamental data, highlighting that financial context is often more valuable than pure mathematical transformation. Interestingly, the researchers also noted a trade-off: while some 2D methods increased accuracy, they sometimes increased the "Notch Distance" (how many rating grades the model was off by), meaning the model was "more wrong" when it failed.
Conclusion
The research concludes that while image encoding is not a "silver bullet" for all financial data, it offers significant advantages for human-distilled features like financial ratios. For raw data, traditional 1D architectures remain more effective. Future work may focus on architectures that avoid the pitfalls of zero-padding and explore automated feature extraction that can match the efficacy of traditional financial ratios.
Summary updated