Control method and device of dynamic art brain-machine device of Beijing embroidered orchid, and electronic equipment

By using brain-computer interface technology to capture the audience's emotions in real time, the mechanical structure and projection device of the Beijing embroidery hairpin device are driven to achieve dynamic color and shape changes, which solves the problems of low production efficiency and monotonous styles of Beijing embroidery hairpins, and enhances cultural expression and immersive experience.

CN122152109APending Publication Date: 2026-06-05TSINGHUA UNIVERSITY

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TSINGHUA UNIVERSITY
Filing Date
2026-01-15
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

As a static decoration, Beijing embroidery hairpins are inefficient to produce and have limited styles, making it difficult to fully reflect their artistic value in cultural dissemination.

Method used

The device uses brain-computer interface technology to capture the audience's emotions in real time, uses EEG signals to determine the type of emotion, drives the mechanical structure of the hairpin device to perform shape changes, and generates dynamic Beijing embroidery patterns on the surface. It also combines projection devices to adjust the color and light and shadow.

Benefits of technology

It achieves a dynamic presentation of Beijing embroidery hairpins, enhancing the visual effect and cultural expression, creating an immersive space for emotional resonance, and breaking through the limitations of traditional static decoration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122152109A_ABST
    Figure CN122152109A_ABST
Patent Text Reader

Abstract

The application provides a Beijing embroidery flower-piercing dynamic art brain-machine device control method, device and electronic equipment, relates to the technical field of human-computer interaction, and the method comprises the following steps: determining the emotion type of the current emotion of a user based on collected electroencephalogram signals, and generating a target control instruction according to the emotion type of the current emotion; based on the target control instruction, driving the mechanical structure of the flower-piercing device to perform a shape change action, and controlling the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the flower-piercing device. The Beijing embroidery flower-piercing dynamic art brain-machine device control method, device and electronic equipment provided by the application can capture the emotions of the audience in real time through the brain-machine interface technology, dynamically adjust the color, light and shadow and shape of the Beijing embroidery flower-piercing, and combine the court aesthetics of Beijing embroidery and the cultural symbols of flower-piercing to construct an immersive emotional resonance space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of human-computer interaction technology, and in particular to a control method, device and electronic equipment for a dynamic art brain-computer interface for Beijing embroidery hairpins. Background Technology

[0002] Beijing embroidery is a high-level and exquisite embroidery art, unique in its stitches, colors, and patterns; hairpins are a long-standing headdress culture, usually referring to lifelike flowers or flower-shaped ornaments worn on the hair. Beijing embroidery hairpins combine the two, using the techniques, styles, and materials of Beijing embroidery (such as gold and silver threads and silk) to create lifelike flower or flower-shaped hairpins.

[0003] In related technologies, Beijing embroidery hairpins are usually static decorations. Due to their heavy reliance on manual skills, the production of Beijing embroidery hairpins is not only inefficient but also monotonous in style, which limits their role in the dissemination of related culture. Summary of the Invention

[0004] The purpose of this application is to provide a control method, device, and electronic equipment for a dynamic art brain-computer interface device for Beijing embroidery hairpins. By using brain-computer interface technology to capture the audience's emotions in real time, the color, light and shadow, and shape of the Beijing embroidery hairpins can be dynamically adjusted. At the same time, by combining the court aesthetics of Beijing embroidery with the cultural symbolism of hairpins, an immersive emotional resonance space can be constructed.

[0005] This application provides a control method for a dynamic art brain-computer interface device for Beijing embroidery hairpins, including: Based on the collected EEG signals, the user's current emotion type is determined, and a target control command is generated according to the current emotion type. Based on the target control command, the mechanical structure of the hairpin device is driven to perform a shape change action, and the projection device is controlled to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device.

[0006] Optionally, the current emotion type is based on the EEG signal. Wave, Wave, and The power spectral density of the wave is determined.

[0007] Optionally, determining the user's current emotion type based on the acquired EEG signals includes: extracting data from the EEG signals. Wave, wave and The power spectral density of the wave is used as an emotion feature; the emotion feature is input into a pre-trained emotion classification model to obtain the emotion type of the current emotion.

[0008] Optionally, generating the target control instruction based on the emotion type of the current emotion includes: filtering out Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion from an emotion pattern mapping rule library; generating the target control instruction based on the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion; wherein, the emotion pattern mapping rule library includes: Beijing embroidery pattern parameters corresponding to different emotion types; the Beijing embroidery pattern parameters include: color scheme, needlework simulation weight, and pattern density; the color scheme includes the upper five colors and lower five colors of Beijing embroidery; the needlework simulation weight is used to adjust the simulation ratio of straight stitch, rolling stitch, and scattered stitch in the parameterized model.

[0009] Optionally, the step of controlling the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device based on the target control command includes: generating a basic pattern skeleton by calling a parametric pattern generation model based on the color scheme and pattern density indicated by the target control command; the parametric pattern generation model is constructed based on a fractal algorithm; simulating the visual effect of Beijing embroidery on the basic pattern skeleton using particle effect algorithms and Bézier curve algorithms based on the needlework simulation weights indicated by the target control command; the visual effect of Beijing embroidery includes at least one of the following: straight stitch, rolling stitch, and scattered stitch; and rendering and projecting the generated dynamic virtual embroidery pattern onto the physical surface of the hairpin device in real time using ray tracing technology.

[0010] Optionally, the hairpin device includes: a petal mechanism and a shape memory alloy; the step of driving the mechanical structure to perform shape change actions based on the target control command includes: controlling a micro stepper motor to drive the petal structure of the hairpin device to open and close, and / or rotate; and / or controlling the current applied to the shape memory alloy to adjust the shape of the shape memory alloy to simulate the swaying effect of a hair ornament.

[0011] Optionally, after driving the mechanical structure of the hairpin device to perform a shape change action based on the target control command, and controlling the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device, the method further includes: collecting user feedback information on the shape change action and the dynamic Beijing embroidery pattern through a visual sensor; and optimizing the parameters of the emotion pattern mapping rule base and / or the emotion classification model using the feedback information based on a reinforcement learning algorithm.

[0012] This application also provides a control device for a dynamic art brain-computer interface for Beijing embroidery hairpins, comprising: The emotion determination module is used to determine the emotion type of the user's current emotion based on the collected EEG signals; the instruction generation module is used to generate target control instructions based on the emotion type of the current emotion; the control module is used to drive the mechanical structure of the hairpin device to perform shape change actions based on the target control instructions, and control the projection device to generate dynamic Beijing embroidery patterns corresponding to the current emotion type on the surface of the hairpin device.

[0013] Optionally, the emotion determination module is specifically used to extract from the electroencephalogram (EEG) signals. Wave, wave and The power spectral density of the wave is used as an emotion feature; the emotion determination module is further used to input the emotion feature into a pre-trained emotion classification model to obtain the emotion type of the current emotion.

[0014] Optionally, the instruction generation module is specifically used to filter out Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion from the emotion pattern mapping rule library; the instruction generation module is further used to generate the target control instruction based on the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion; wherein, the emotion pattern mapping rule library includes: Beijing embroidery pattern parameters corresponding to different emotion types; the Beijing embroidery pattern parameters include: color scheme, needlework simulation weight, and pattern density; the color scheme includes the upper five colors and lower five colors of Beijing embroidery; the needlework simulation weight is used to adjust the simulation ratio of straight stitch, rolling stitch, and scattered stitch in the parameterized model.

[0015] Optionally, the control module is specifically used to call a parametric pattern generation model to generate a basic pattern skeleton based on the color scheme and pattern density indicated by the target control command; the parametric pattern generation model is constructed based on a fractal algorithm; the control module is also specifically used to simulate the visual effect of Beijing embroidery on the basic pattern skeleton based on the needlework simulation weights indicated by the target control command, using particle effect algorithms and Bézier curve algorithms; the visual effect of Beijing embroidery includes at least one of the following: straight stitch, rolling stitch, and scattered stitch; the control module is also specifically used to use ray tracing technology to render and project the generated dynamic virtual embroidery pattern onto the physical surface of the hairpin device in real time.

[0016] Optionally, the hairpin device includes: a petal mechanism and a shape memory alloy; the control module is specifically used to control a micro stepper motor to drive the petal structure of the hairpin device to open and / or rotate; the control module is also specifically used to adjust the shape of the shape memory alloy by controlling the current applied to the shape memory alloy to simulate the swaying effect of a hairpin.

[0017] Optionally, the device further includes: an information acquisition module and an optimization module; the information acquisition module is used to collect user feedback information on the morphological change action and the dynamic Beijing embroidery pattern through a visual sensor; the optimization module is used to optimize the parameters of the emotion pattern mapping rule base and / or the emotion classification model based on a reinforcement learning algorithm using the feedback information.

[0018] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the control method for the Beijing embroidery hairpin dynamic art brain-computer device as described above.

[0019] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the control method of the Beijing embroidery hairpin dynamic art brain-computer device as described above.

[0020] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the control method of the Beijing embroidery hairpin dynamic art brain-computer device as described above.

[0021] The control method, device, and electronic equipment of the dynamic art brain-computer interface device for Beijing embroidery hairpins provided in this application first determine the user's current emotional type based on the collected EEG signals, and then generate a target control command based on the current emotional type. Next, based on the target control command, the mechanical structure of the hairpin device is driven to perform morphological changes, and a projection device is controlled to generate dynamic Beijing embroidery patterns corresponding to the current emotional type on the surface of the hairpin device. In this way, by capturing the viewer's emotions in real time through brain-computer interface technology, the color, light, shadow, and form of the Beijing embroidery hairpins are dynamically adjusted, while simultaneously combining the court aesthetics of Beijing embroidery with the cultural symbolism of hairpins to construct an immersive emotional resonance space. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a flowchart illustrating the control method of the dynamic art brain-computer interface for Beijing embroidery hairpins provided in this application; Figure 2 This is a schematic diagram of the hairpin device provided in this application; Figure 3This is a schematic diagram of the control device of the dynamic art brain-computer interface for Beijing embroidery hairpin flowers provided in this application; Figure 4 This is a schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship. All actions involving the acquisition of signal information or data in this application are performed in accordance with the relevant data protection laws and policies of the country where the application is located and with authorization from the owner of the relevant device.

[0026] To address the aforementioned technical problems in related technologies, this application provides a control method for a dynamic art brain-computer interface for Beijing embroidery hairpins, which achieves the following: Digital Reconstruction of Intangible Cultural Heritage Crafts: The design of Beijing embroidery, where every pattern carries a meaning and every meaning is auspicious, is transformed into a parametric model. Combined with emotional data output from a brain-computer interface, virtual embroidery patterns are superimposed onto the surface of a physical hairpin using projection mapping technology. This achieves a dynamic presentation of traditional techniques such as "flat gold seed stitch" and "scattered stitch." For example, when the user's emotion is "pleasure," the surface of the hairpin can generate a "dragon and phoenix" pattern in real time, interwoven with red and gold from the "five colors" design, echoing the luster of imperial court attire.

[0027] Interdisciplinary innovation in the form of hairpins: Breaking through the limitations of traditional hairpins as static headdresses, the design uses a micro-motor to drive the petal structure to achieve dynamic opening, closing, or rotation. For example, when the user's emotion is "surprise," the petals unfold instantly, simulating the imagery of "celestial maidens scattering flowers" from the Dunhuang murals; when the emotion is "calm," the hairpin remains hanging low, echoing the classical rhythm of "cloud-like hair, flower-like face, and golden hairpins."

[0028] The emotion mapping algorithm for brain-computer interface: It uses a non-invasive EEG sensor to monitor brain waves in real time, and combines physiological signals such as heart rate and skin conductance to analyze emotional states through machine learning algorithms. For example, high gamma wave activity corresponds to the emotion of "excitement", triggering a red high-saturation flashing of the hairpin flower LED light strip; low frequency waves correspond to the "relaxed" state, switching to a gradient of lake blue and fragrance light and shadow to simulate the tranquil atmosphere of the "lower five colors" of the Song Dynasty.

[0029] The control method of the dynamic art brain-computer interface for Beijing embroidery hairpins provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0030] like Figure 1 As shown in the embodiment of this application, a control method for a dynamic art brain-computer interface for Beijing embroidery hairpins is provided. This method may include the following steps 101 and 102: Step 101: Based on the collected EEG signals, determine the emotion type of the user's current emotion, and generate target control instructions according to the emotion type of the current emotion.

[0031] The current emotion type is based on the EEG signal. Wave, Wave, and The power spectral density of the wave is determined.

[0032] For example, in this embodiment of the application, a non-invasive EEG sensor (such as an EEG headband) is used to monitor the audience's brainwaves in real time, and machine learning algorithms are used to analyze emotional states (such as pleasure, calmness, surprise, etc.). Emotiv EPOC comes with a built-in emotion analysis system.

[0033] Specifically, in step 101 above, the step of determining the emotion type of the user's current emotion based on the collected EEG signals may further include the following steps 101a1 and 101a2: Step 101a1: Extracting EEG signals Wave, wave and The power spectral density of a wave serves as a characteristic of emotion.

[0034] Step 101a2: Input the emotional features into the pre-trained emotion classification model to obtain the emotion type of the current emotion.

[0035] For example, in the embodiments of this application, extraction can be performed. Wave (8-13Hz, reflecting a relaxed state) Wave (14-30Hz, reflecting focus or tension) The power spectral density of the wave (30-100Hz, reflecting excitement or pleasure) is used as a feature, and a pre-trained emotion classification model is used to identify the features of the extracted EEG signals to determine the user's emotion type.

[0036] Specifically, step 101 above, the step of generating the target control instruction based on the emotion type of the current emotion, may further include the following steps 101b1 and 101b2: Step 101b1: Filter out the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion from the emotion pattern mapping rule library.

[0037] Step 101b2: Generate the target control command based on the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion.

[0038] The emotion pattern mapping rule library includes: Beijing embroidery pattern parameters corresponding to different emotion types; the Beijing embroidery pattern parameters include: color scheme, needlework simulation weight, and pattern density; the color scheme includes the upper five colors and lower five colors of Beijing embroidery; the needlework simulation weight is used to adjust the simulation ratio of straight stitch, rolling stitch, and scattered stitch in the parameterized model.

[0039] For example, in this embodiment of the application, the stitches (e.g., straight stitch, rolling stitch, and satin stitch) and patterns (e.g., dragon and phoenix, peony, and cloud patterns) of traditional Beijing embroidery are transformed into mathematical models, and dynamic generation is achieved through parameter control. The stitches of Beijing embroidery are transformed into parametric models, and virtual embroidery patterns are superimposed on physical hairpins using projection mapping technology. For example, when the viewer's emotions fluctuate, dynamic textures of "flat gold seed stitch" appear on the surface of the hairpin, enhancing the visual depth.

[0040] For example, as shown in Table 1 below, the emotion pattern mapping rule library provided in the embodiments of this application mainly includes: emotion type, color scheme, needlework weight, and pattern density: Table 1 Emotion Types Color scheme Acupuncture weight Pattern density Pleasure Five colors (red / gold) Alignment: 60% high calm The lower five colors (lake / blue) Loose needles: 70% middle anger Black + Vermilion Needle roller: 80% Low For example, based on the rule base shown in Table 1 above, the main aspects of needle-based modeling in this application embodiment include: 1. Straight Line: Described using a set of straight line segments, this style simulates a "straight" or "sparse" effect by adjusting the length and spacing of the segments. For example, in a "joyful" mood, the segment length increases by 20% and the spacing decreases by 15%, symbolizing vitality.

[0041] 2. Roller Stitching: The direction of the stitches is defined using Bézier curves, and a natural color gradient is generated by combining random perturbation parameters. For example, under the "calm" mood, the perturbation parameter is increased by 30%, giving the pattern a hazy, subtle effect.

[0042] 3. Scattered Needles: The needles are broken down into a particle system. Each particle has an initial position, velocity, and color attributes. They move according to physical laws (such as gravity and wind) and undergo color changes or explode and split. For example, under the emotion of "anger," the particle velocity increases by 50%, and the color gradually changes from dark red to black, symbolizing an emotional outburst.

[0043] For example, based on the rule base shown in Table 1 above, the skeleton of the "lotus intertwining" pattern can be generated using the L-system fractal algorithm to express the pattern features. The branch angle and density can be dynamically adjusted using emotion data. For example, under the emotion of "joy," the branch angle increases by 10° and the density increases by 20%, making the pattern more abundant; conversely, under the emotion of "anger," the branch angle decreases by 5° and the density decreases by 10%, presenting a distorted and broken effect.

[0044] Step 102: Based on the target control command, drive the mechanical structure of the hairpin device to perform a shape change action, and control the projection device to generate a dynamic Beijing embroidery pattern on the surface of the hairpin device that corresponds to the current emotion type.

[0045] For example, such as Figure 2 As shown, the hairpin device in this embodiment includes: a driving mechanism, a petal mechanism, and a shape memory alloy; the driving mechanism uses a stepper motor to control the opening and closing of the petal mechanism; the shape memory alloy controls the deformation angle of the alloy through a heating resistor to simulate the dynamic swaying effect of a hairpin; the surface of the hairpin device is coated with a nano-projection coating, which enhances the projection clarity by adjusting the porosity, while reducing the reflectivity to avoid ambient light interference; the hairpin device uses a flexible electronic substrate to maintain conductivity when bent.

[0046] For example, the material selection for the hairpin device includes: flexible electronic substrate: copper foil circuit wrapped with polydimethylsiloxane (PDMS) to maintain conductivity when the hairpin is bent; nano-projection coating: titanium dioxide / diatomite composite material is sprayed on the surface of the hairpin to enhance projection clarity by controlling the porosity (30-50nm) while reducing reflectivity to below 5% to avoid ambient light interference.

[0047] For example, the hairpin device in this application embodiment adopts a modular structural design: the hairpin is divided into three layers: "base-petals-decorative parts". The base integrates motor and circuit, and the petals are connected by magnetic attraction, which supports quick replacement of accessories of different dynasties (such as the Tang Dynasty tie-dyed silk and the "side cap" style in the Song Dynasty Sima Guang's poem).

[0048] Specifically, based on the aforementioned hairpin device, step 102, the step of driving the mechanical structure to perform a shape change action, may further include the following steps 102a1 and / or 102a2: Step 102a1: Drive the petal structure of the hairpin device to open, close, and / or rotate by controlling the micro stepper motor.

[0049] Step 102a2: By controlling the current applied to the shape memory alloy, the shape of the shape memory alloy is adjusted to simulate the swaying effect of a hair ornament.

[0050] For example, in this embodiment of the application, a micro stepper motor (such as 28BYJ-48) is used to control the opening and closing of the petals, and the speed is reduced to 0.2 rpm by a gear reducer to achieve the classical rhythm of "slow opening and slow closing"; shape memory alloy (SMA) is used to simulate the dynamic swaying effect of "hairpin", and the deformation angle of the alloy is controlled by a heating resistor (such as vertical at 25° and tilted at 15° at 40°).

[0051] Specifically, based on the aforementioned hairpin device, step 102, specifically the step of generating dynamic Beijing embroidery patterns, may further include the following steps 102b1 to 102b3: Step 102b1: Based on the color scheme and pattern density indicated by the target control command, call the parameterized pattern generation model to generate the basic pattern skeleton; the parameterized pattern generation model is constructed based on the fractal algorithm.

[0052] Step 102b2: Based on the needlework simulation weights indicated by the target control command, use particle effect algorithm and Bezier curve algorithm to simulate the visual effect of Beijing embroidery on the basic pattern skeleton.

[0053] The visual effects of the Beijing embroidery include at least one of the following: straight stitch, rolling stitch, and satin stitch.

[0054] Step 102b3: Using ray tracing technology, the generated dynamic virtual embroidery pattern is rendered in real time and projected onto the physical surface of the hairpin device.

[0055] For example, in this embodiment, ray tracing technology is used to achieve seamless integration of virtual embroidery patterns with the physical structure, reducing projection latency to within 50ms. For instance, the straight segments of the "even stitch" and the Bézier curves of the "rolling stitch" are rendered in real-time on the surface of the hairpin, ensuring a smooth transition of the pattern with changes in shape. Runtime Virtual Texture (RVT) technology is used to generate and cache texture data on demand in the Unreal Engine, supporting real-time updates of high-resolution (e.g., 4K) patterns. For example, the color saturation of the "lotus intertwining" pattern is dynamically adjusted according to changes in the user's mood, gradually changing from a soft pink to a vibrant red.

[0056] Optionally, in this embodiment of the application, a real-time feedback and adaptive optimization mechanism for brain-computer interaction is also provided.

[0057] For example, after step 102 above, the control method of the Beijing embroidery hairpin dynamic art brain-computer interface provided in this application embodiment may further include the following steps 103 and 104: Step 103: Collect user feedback information on the shape change action and the dynamic Beijing embroidery pattern through a visual sensor.

[0058] Step 104: Based on the reinforcement learning algorithm, optimize the parameters of the emotion pattern mapping rule base and / or the emotion classification model using the feedback information.

[0059] For example, the control method in this application embodiment, in its main process according to the execution order, includes: user emotion data, pattern / shape generation, dynamic presentation of the hairpin, camera capturing user visual feedback, and algorithm adjusting the next round of output. For example, if the user stares at the black pattern under the emotion of "anger" for more than 3 seconds, the system automatically switches to a soothing scheme of "dark red + gold roller needle".

[0060] For example, in this embodiment of the application, reinforcement learning (Q-learning) is used to optimize the interaction strategy. The state space is defined as {emotion type, ambient light, user history preference}, the action space is {pattern density, color saturation, shape change speed}, and the reward function is the weighted sum of user gaze duration and smile frequency.

[0061] This approach enables not only personalized adaptation across users—that is, mapping new users' EEG data to the feature space of existing models through transfer learning, reducing initial calibration time (from 10 minutes to 2 minutes)—but also interference-resistant design: introducing independent component analysis (ICA) during EEG signal preprocessing separates electrooculography (EOG) and electromyography (EMG) noise, ensuring stable emotion recognition even with subtle head movements.

[0062] Exemplary examples in this application embodiment show that the colors and lighting effects achievable by controlling the hairpin device include: adjusting the color saturation and brightness of the Beijing embroidery hairpin in real time based on emotion data using LED light strips within the device. For instance, a joyful emotion triggers the interweaving of red and gold from the "upper five colors (yellow, red, green, white, and black)," simulating the luster of imperial robes; a calm emotion switches to lake blue and light blue from the "lower five colors (purple, blue, pink, lake blue, bronze, or autumn fragrance)," creating a tranquil atmosphere. The achievable form changes include: driving the hairpin structure with a micro-motor to achieve dynamic opening, closing, or rotation. For example, a surprised emotion triggers the petals to unfold instantly, simulating the imagery of "celestial maidens scattering flowers" from the Dunhuang murals; a calm emotion keeps the hairpin hanging low, echoing the classical rhythm of "cloud-like hair, flower-like face, and golden hairpin."

[0063] For example, the control method of the dynamic art brain-computer interface device for Beijing embroidery hairpins provided in this application embodiment involves the following steps: After the user wears an EEG headband, the sensor captures brain signals at a sampling rate of 500Hz, and the algorithm completes emotion classification within 200ms. Based on the emotion type, the system calls the corresponding pattern from the preset "Beijing embroidery pattern library" (such as the dynamic deformation of the "lion rolling an embroidered ball" pattern triggered by the emotion of "anger"), and maps the virtual embroidery pattern onto the surface of the hairpin through a projector. The micro motor drives the petals to rotate at a speed of 0.5 revolutions per second, and the LED light strip synchronously switches to an orange-red gradient light effect to simulate the visual effect of leaping flames.

[0064] It should be noted that the hardware components involved in this application embodiment mainly include: an EEG sensor, a micro motor, an LED light strip, and a hairpin body made of flexible electronic materials (using 3D printing technology to reproduce the engraving process, with a surface covered by a projectable nano-coating); the algorithm components mainly include: an emotion recognition model (based on an SVM classifier to train brainwave and physiological signal data), a pattern generation algorithm (converting Beijing embroidery stitches such as "Qizhen" and "Gunzhen" into Bézier curve functions), and light and shadow control logic (adjusting LED color and brightness via the DMX512 protocol).

[0065] The control method for the dynamic art brain-computer interface of Beijing embroidery hairpin flowers provided in this application has rich cultural value: The Beijing embroidery concept of "every pattern must have a meaning, and every meaning must be auspicious" is combined with brain-computer interaction, allowing traditional patterns (such as dragons and phoenixes, peonies) to be recombined according to the audience's emotions, giving cultural symbols a modern vitality. For example, anger may trigger the dynamic deformation of the "lion playing with an embroidered ball" pattern, metaphorically representing the transformation and reconciliation of emotions.

[0066] Breaking away from the traditional limitations of hairpins as "static decorations," this installation transforms them into an interactive art form and "emotional medium," giving them a modern interpretation that "captures the spirit through form." The installation can be set to a "virtual hairpin" mode, allowing viewers to choose hairpins from different dynasties and observe in real time how their emotions affect the style.

[0067] Combining neuroscience, materials science, and digital art, this project explores new paradigms for the inheritance of intangible cultural heritage. For example, flexible electronic materials are used to create hairpin-shaped devices that retain the exquisite feel of Beijing embroidery even as their shapes change; virtual hairpins selected by viewers are 3D printed, and even lost engraving techniques are reproduced, forming a dual narrative of "ancient methods + technology" with brain-computer interaction; and for the first time, brain-computer interfaces are combined with three-dimensional physical art brain-computer devices to achieve a dynamic three-way mapping of "emotion-pattern-form".

[0068] The control method for the dynamic art brain-computer interface device for Beijing embroidery hairpins provided in this application embodiment first determines the user's current emotional type based on the collected EEG signals, and generates a target control command according to the current emotional type. Then, based on the target control command, the mechanical structure of the hairpin device is driven to perform morphological changes, and a projection device is controlled to generate dynamic Beijing embroidery patterns corresponding to the current emotional type on the surface of the hairpin device. In this way, by capturing the viewer's emotions in real time through brain-computer interface technology, the color, light, shadow, and form of the Beijing embroidery hairpins are dynamically adjusted, while combining the court aesthetics of Beijing embroidery with the cultural symbols of hairpins to construct an immersive emotional resonance space.

[0069] It should be noted that the control method for the Beijing embroidery hairpin dynamic art brain-computer interface provided in this application embodiment can be executed by the control device of the Beijing embroidery hairpin dynamic art brain-computer interface, or by the control module in the control device for executing the control method of the Beijing embroidery hairpin dynamic art brain-computer interface. This application embodiment uses the example of the control device of the Beijing embroidery hairpin dynamic art brain-computer interface executing the control method of the Beijing embroidery hairpin dynamic art brain-computer interface to illustrate the control device of the Beijing embroidery hairpin dynamic art brain-computer interface provided in this application embodiment.

[0070] It should be noted that, in the embodiments of this application, the control methods of the Beijing embroidery hairpin dynamic art brain-computer interface shown in the accompanying drawings are all illustrated by way of example with reference to one of the accompanying drawings in the embodiments of this application. In specific implementation, the control methods of the Beijing embroidery hairpin dynamic art brain-computer interface shown in the accompanying drawings of the above methods can also be implemented in conjunction with any other accompanying drawings that can be combined with the above embodiments, which will not be elaborated here.

[0071] The control device of the dynamic art brain-computer interface for Beijing embroidery hairpins provided in this application is described below. The control method of the dynamic art brain-computer interface for Beijing embroidery hairpins described below can be referred to in correspondence with the control method of the dynamic art brain-computer interface for Beijing embroidery hairpins described above.

[0072] Figure 3 This is a schematic diagram of the control device of the dynamic art brain-computer interface for Beijing embroidery hairpins provided in the embodiments of this application, as shown below. Figure 3 As shown, it specifically includes: The emotion determination module 301 is used to determine the emotion type of the user's current emotion based on the collected EEG signals; the instruction generation module 302 is used to generate a target control instruction based on the emotion type of the current emotion; the control module 303 is used to drive the mechanical structure of the hairpin device to perform a shape change action based on the target control instruction, and control the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device.

[0073] Optionally, the emotion determination module 301 is specifically used to extract the power spectral density of alpha, beta and gamma waves in the EEG signal as emotion features; the emotion determination module 301 is also specifically used to input the emotion features into a pre-trained emotion classification model to obtain the emotion type of the current emotion.

[0074] Optionally, the instruction generation module 302 is specifically used to filter out the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion from the emotion pattern mapping rule library; the instruction generation module 302 is also specifically used to generate the target control instruction based on the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion; wherein, the emotion pattern mapping rule library includes: Beijing embroidery pattern parameters corresponding to different emotion types; the Beijing embroidery pattern parameters include: color scheme, needlework simulation weight, and pattern density; the color scheme includes the upper five colors and lower five colors of Beijing embroidery; the needlework simulation weight is used to adjust the simulation ratio of straight stitch, rolling stitch, and scattered stitch in the parameterized model.

[0075] Optionally, the control module 303 is specifically used to generate a basic pattern skeleton by calling a parametric pattern generation model based on the color scheme and pattern density indicated by the target control command; the parametric pattern generation model is constructed based on a fractal algorithm; the control module 303 is also specifically used to simulate the visual effect of Beijing embroidery on the basic pattern skeleton by using particle effect algorithms and Bézier curve algorithms based on the needle simulation weights indicated by the target control command; the visual effect of Beijing embroidery includes at least one of the following: straight stitch, rolling stitch, and scattered stitch; the control module 303 is also specifically used to render and project the generated dynamic virtual embroidery pattern onto the physical surface of the hairpin device in real time using ray tracing technology.

[0076] Optionally, the hairpin device includes: a petal mechanism and a shape memory alloy; the control module 303 is specifically used to control a micro stepper motor to drive the petal structure of the hairpin device to open and / or rotate; the control module 303 is also specifically used to adjust the shape of the shape memory alloy by controlling the current applied to the shape memory alloy to simulate the swaying effect of a hairpin.

[0077] Optionally, the device further includes: an information acquisition module and an optimization module; the information acquisition module is used to collect user feedback information on the morphological change action and the dynamic Beijing embroidery pattern through a visual sensor; the optimization module is used to optimize the parameters of the emotion pattern mapping rule base and / or the emotion classification model based on a reinforcement learning algorithm using the feedback information.

[0078] The control device for the dynamic art brain-computer interface device for Beijing embroidery hairpins provided in this application first determines the user's current emotional type based on the collected EEG signals, and generates a target control command based on the current emotional type. Then, based on the target control command, it drives the mechanical structure of the hairpin device to perform morphological changes, and controls the projection device to generate dynamic Beijing embroidery patterns corresponding to the current emotional type on the surface of the hairpin device. In this way, by capturing the viewer's emotions in real time through brain-computer interface technology, the color, light, shadow, and form of the Beijing embroidery hairpins are dynamically adjusted, while combining the court aesthetics of Beijing embroidery with the cultural symbols of hairpins to construct an immersive emotional resonance space.

[0079] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include a processor 410, a communication interface 420, a memory 430, and a communication bus 440. The processor 410, communication interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute the control method of the Beijing embroidery hairpin dynamic art brain-computer interface device. This method includes: first, determining the user's current emotional type based on the acquired EEG signals, and generating a target control instruction based on the current emotional type; then, based on the target control instruction, driving the mechanical structure of the hairpin device to perform morphological changes, and controlling the projection device to generate dynamic Beijing embroidery patterns corresponding to the current emotional type on the surface of the hairpin device. In this way, by capturing the viewer's emotions in real time through brain-computer interface technology, dynamically adjusting the color, light, and shape of the Beijing embroidery hairpin, and combining the court aesthetics of Beijing embroidery with the cultural symbolism of hairpins, an immersive emotional resonance space is constructed.

[0080] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0081] On the other hand, this application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by the computer, the computer can execute the control method of the dynamic art brain-computer interface device for Beijing embroidery hairpins provided by the above methods. The method includes: first, determining the emotion type of the user's current emotion based on the collected EEG signals, and generating a target control instruction according to the emotion type of the current emotion; then, based on the target control instruction, driving the mechanical structure of the hairpin device to perform a shape change action, and controlling the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device. In this way, by capturing the audience's emotions in real time through brain-computer interface technology, dynamically adjusting the color, light and shadow and shape of the Beijing embroidery hairpin, and combining the court aesthetics of Beijing embroidery with the cultural symbolism of hairpins, an immersive emotional resonance space is constructed.

[0082] Furthermore, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements a control method for the aforementioned Beijing embroidery hairpin dynamic art brain-computer interface device. This method includes: first, determining the user's current emotional type based on collected EEG signals, and generating a target control command based on the current emotional type; then, based on the target control command, driving the mechanical structure of the hairpin device to perform morphological changes, and controlling a projection device to generate dynamic Beijing embroidery patterns corresponding to the current emotional type on the surface of the hairpin device. In this way, by capturing the viewer's emotions in real time through brain-computer interface technology, dynamically adjusting the color, light, and shape of the Beijing embroidery hairpin, and combining the court aesthetics of Beijing embroidery with the cultural symbolism of hairpins, an immersive emotional resonance space is constructed.

[0083] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0084] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A control method for a dynamic art brain-computer interface for Beijing embroidery hairpins, characterized in that, include: Based on the collected EEG signals, the user's current emotion type is determined, and a target control command is generated according to the current emotion type. Based on the target control command, the mechanical structure of the hairpin device is driven to perform a shape change action, and the projection device is controlled to generate a dynamic Beijing embroidery pattern on the surface of the hairpin device that corresponds to the current emotion type.

2. The method according to claim 1, characterized in that, The current emotion type is based on the EEG signals. Wave, Wave, and The power spectral density of the wave is determined.

3. The method according to claim 1 or 2, characterized in that, The process of determining the user's current emotion type based on the collected EEG signals includes: Extracting EEG signals Wave, wave and The power spectral density of a wave serves as a characteristic of emotion. The emotional features are input into a pre-trained emotion classification model to obtain the emotion type of the current emotion.

4. The method according to claim 3, characterized in that, The step of generating target control instructions based on the current emotion type includes: Select the Beijing embroidery pattern parameters that correspond to the emotion type of the current emotion from the emotion pattern mapping rule base; Based on the Beijing embroidery pattern parameters corresponding to the emotion type of the current emotion, the target control command is generated; The emotion pattern mapping rule library includes: Beijing embroidery pattern parameters corresponding to different emotion types; the Beijing embroidery pattern parameters include: color scheme, needlework simulation weight, and pattern density; the color scheme includes the upper five colors and lower five colors of Beijing embroidery; the needlework simulation weight is used to adjust the simulation ratio of straight stitch, rolling stitch, and scattered stitch in the parameterized model.

5. The method according to claim 4, characterized in that, The step of controlling the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device based on the target control command includes: Based on the color scheme and pattern density indicated by the target control command, a parameterized pattern generation model is invoked to generate a basic pattern skeleton; the parameterized pattern generation model is constructed based on a fractal algorithm. Based on the needlework simulation weights indicated by the target control command, the visual effects of Beijing embroidery are simulated on the basic pattern skeleton using particle effect algorithms and Bézier curve algorithms; the visual effects of Beijing embroidery include at least one of the following: straight stitch, rolling stitch, and scattered stitch. Using ray tracing technology, the generated dynamic virtual embroidery patterns are rendered in real time and projected onto the physical surface of the hairpin device.

6. The method according to claim 4, characterized in that, The hairpin device includes: a petal mechanism and a shape memory alloy; The step of driving the mechanical structure to perform a shape change action based on the target control command includes: The petal structure of the hairpin device is opened, closed, and / or rotated by controlling a micro stepper motor; And / or, By controlling the current applied to the shape memory alloy, the shape of the shape memory alloy can be adjusted to simulate the swaying effect of a hair ornament.

7. The method according to claim 1, characterized in that, After the method involves driving the mechanical structure of the hairpin device to perform a shape change action based on the target control command, and controlling the projection device to generate a dynamic Beijing embroidery pattern corresponding to the current emotion type on the surface of the hairpin device, the method further includes: The system uses a visual sensor to collect user feedback on the shape changes and the dynamic Beijing embroidery patterns. Based on reinforcement learning algorithms, the feedback information is used to optimize the parameters of the emotion pattern mapping rule base and / or the emotion classification model.

8. A control device for a dynamic art brain-computer interface for Beijing embroidery hairpins, characterized in that, The device includes: The emotion determination module is used to determine the emotion type of the user's current emotion based on the collected EEG signals; The instruction generation module is used to generate target control instructions based on the emotion type of the current emotion. The control module is used to drive the mechanical structure of the hairpin device to perform shape change actions based on the target control command, and to control the projection device to generate dynamic Beijing embroidery patterns on the surface of the hairpin device that correspond to the current emotion type.

9. A hairpin device, characterized in that, The hairpin device includes: a drive mechanism, a petal mechanism, and a shape memory alloy; The drive mechanism uses a stepper motor to control the opening and closing of the petal mechanism; the shape memory alloy uses a heating resistor to control the alloy deformation angle, which is used to simulate the dynamic swaying effect of the hair ornament. The surface of the hairpin device is coated with a nano-projection coating, which enhances projection clarity by adjusting the porosity and reduces reflectivity to avoid interference from ambient light; the hairpin device uses a flexible electronic substrate to maintain conductivity when bent.

10. An electronic device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the control method for the Beijing embroidery hairpin dynamic art brain-computer interface as described in any one of claims 1 to 7.