As Computational Thinking (CT) continues to permeate younger age groups in K-12 education, established CT platforms such as Scratch face challenges in catering to these younger learners, particularly those in the elementary school (ages 6-12). Through formative investigation with Scratch experts, we uncover three key obstacles to children’s autonomous Scratch learning: artist’s block in project planning, bounded creativity in asset creation, and inadequate coding guidance during implementation. To address these barriers, we introduce ChatScratch, an AI-augmented system to facilitate autonomous programming learning for young children. ChatScratch employs structured interactive storyboards and visual cues to overcome artist’s block, integrates digital drawing and advanced image generation technologies to elevate creativity, and leverages Scratch-specialized Large Language Models (LLMs) for professional coding guidance. Our study shows that, compared to Scratch, ChatScratch efficiently fosters autonomous programming learning, and contributes to the creation of high-quality, personally meaningful Scratch projects for children.
When translating UI design prototypes to code in industry, automatically generating code from design prototypes can expedite the development of applications and GUI iterations. However, in design prototypes without strict design specifications, UI components may be composed of fragmented elements. Grouping these fragmented elements can greatly improve the readability and maintainability of the generated code. Current methods employ a two-stage strategy that introduces hand-crafted rules to group fragmented elements. Unfortunately, the performance of these methods is not satisfying due to visually overlapped and tiny UI elements. In this study, we propose EGFE, a novel method for automatically End-to-end Grouping Fragmented Elements via UI sequence prediction. To facilitate the UI understanding, we innovatively construct a Transformer encoder to model the relationship between the UI elements with multi-modal representation learning. The evaluation on a dataset of 4606 UI prototypes collected from professional UI designers shows that our method outperforms the state-of-the-art baselines in the precision (by 29.75%), recall (by 31.07%), and F1-score (by 30.39%) at edit distance threshold of 4. In addition, we conduct an empirical study to assess the improvement of the generated front-end code. The results demonstrate the effectiveness of our method on a real software engineering application. Our end-to-end fragmented elements grouping method creates opportunities for improving UI-related software engineering tasks.
In actual industry applications, the failure categories of practical equipment are usually a subset of laboratory conditions failure categories. Due to the strict constraints, partial transfer learning can address a more practical diagnostic scenario. In view of this, this paper proposes a target domain-specific classifier weight partial transfer adversarial network. Initially, the 1-D convolutional neural network is employed as the basic architecture. By training the domain discriminator and feature generator with an adversarial strategy, the recognition ability of the domain discriminant network and the feature extraction ability of the feature generation network can be enhanced. After that, a weighted learning strategy is introduced to guide the model to learn the cross-domain invariant feature. Also, a specific target domain classifier is utilized to redivide the target domain decision boundary to accurately classify the unlabeled target domain samples. Finally, five mainstream deep neural network methods are taken for comparison using the data from Western Reserve University and the motor-magnetic brake test designed by us. The results show that the proposed method reaches 90.18% and 96.53% classification accuracy on two datasets, respectively, which demonstrates superior performance compared with the state-of-the-art methods.
8 October 2025 in International Journal of Human–Computer Interaction