Mechanical arm visible light communication method and device assisted by machine learning

Through machine learning-assisted methods, the light source emitter is adjusted in real time to offset ambient light interference, which solves the problem of signal quality degradation and interruption in visible light communication for robotic arms, and improves the reliability and real-time performance of communication.

CN118646482APending Publication Date: 2024-09-13HUAIAN COLLEGE OF INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410661186.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When a robotic arm uses visible light communication, it is susceptible to ambient light interference, which causes signal quality degradation and communication interruption. Moreover, the optical signal may be blocked by obstacles, affecting the reliability and real-time performance of communication.

Method used

Using machine learning-assisted methods, we collect data by installing sensors, establish prediction models and support vector machine models, adjust the angle and position of the light source emitter in real time, identify and offset ambient light interference, and ensure the best transmission path for optical signals.

Benefits of technology

It improves the environmental adaptability and communication accuracy of visible light communication of the robotic arm, enhances the robustness and stability of the system, and ensures stable communication quality in a dynamic environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646482A
    Figure CN118646482A
Patent Text Reader

Abstract

The invention discloses a mechanical arm visible light communication method and device assisted by machine learning, and the method comprises the following steps: installing a mechanical arm, a light source emitter and a light source receiving end, building a prediction model, inputting the current state data and ambient light data of the mechanical arm, which are collected in real time, into the prediction model, obtaining a predicted optimal path between the light source emitter and the receiving end, and adjusting the angle and the position of the light source emitter in real time according to a result; setting an SVM (Support Vector Machine) model to monitor and identify interference of ambient light, calculating interference factors by the model when the interference of the ambient light is identified, and automatically correcting parameters of a light source emitter; the state of the mechanical arm and ambient light data are collected in real time, the optimal path is calculated according to the prediction model, and the parameters of the light source emitter are automatically adjusted through the monitoring model to offset the influence of ambient light, so that the system has good environmental adaptability, and the problems of communication interruption and signal quality reduction caused by blocking of optical signals are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robotic arm technology, and in particular to a method and device for visible light communication of a robotic arm assisted by machine learning. Background Art

[0002] Visible Light Communication (VLC) is a technology that uses visible light bands (usually 400-800THz) for data transmission. Its basic principle is to use LED lights or other light sources as signal transmitters to encode information by rapidly flashing or changing the intensity of light. At the receiving end of the light source, these light signals are detected and decoded through photoelectric converters to restore the original data information.

[0003] In the application field of robotic arms, VLC technology provides unique advantages for data transmission and remote control. With the continuous advancement of automation technology and the improvement of intelligence level, the application scenarios of robotic arms are becoming more and more extensive, including industrial production lines, medical services, etc. In these scenarios, robotic arms need to be able to receive and execute instructions from the control center in real time and accurately to complete various complex tasks.

[0004] Compared with traditional wireless radio frequency communication or wired communication methods, VLC technology is applied to robotic arm communication. VLC technology has the advantages of high security and low energy consumption. It is suitable for various complex industrial environment scenarios. It uses visible light bands for data transmission, does not require additional spectrum resources, and will not be affected by electromagnetic interference. It can also achieve high-speed data transmission, meeting the real-time requirements of the robotic arm.

[0005] However, there are still some challenges in application. The use of visible light communication methods to control robotic arms mainly relies on linear transmission. If there are obstacles between the transmitter and the light source receiver, the optical signal will be blocked, resulting in communication interruption or signal quality degradation. At the same time, visible light communication is easily interfered by ambient light, which can cause signal distortion or reduce the signal-to-noise ratio, thereby affecting the reliability of communication. Summary of the invention

[0006] The present invention overcomes the deficiencies of the prior art and provides a machine learning-assisted visible light communication method and device for a robotic arm.

[0007] To achieve the above object, the technical solution adopted by the present invention is: a machine learning-assisted visible light communication method for a robotic arm, the method comprising the following steps:

[0008] S1, installing a robotic arm, a light source transmitter, and several sensors at the light source receiving end, collecting relevant data through the sensors, and removing noise and normalizing the collected data;

[0009] S2. Establish several data features based on the collected data, and select a machine learning algorithm, i.e., a neural network learning algorithm, to establish a prediction model, divide the preprocessed data set into a training set and a test set for model training and model evaluation, and adjust the prediction model parameters based on the evaluation results;

[0010] S3, during the robot arm experiment, the current state data of the robot arm and the ambient light data are collected in real time, the real-time collected data are input into the prediction model, and the predicted optimal path between the light source transmitter and the light source receiver is obtained by combining the prediction model parameters in S2, and the angle and position of the light source transmitter are adjusted in real time according to the prediction results;

[0011] S4. Setting another machine learning model, that is, setting a support vector machine model to monitor and identify the interference of ambient light, wherein the support vector machine model determines the interference degree of the current ambient light based on the existing historical database and the ambient light data collected in real time;

[0012] S5. When ambient light interference is identified, the support vector machine model will calculate an interference factor and automatically correct the parameters of the light source transmitter according to the interference factor to offset the influence of ambient light.

[0013] In a preferred embodiment of the present invention, the sensors in step S1 include a position sensor, a light sensor, a gyroscope, and a temperature and humidity sensor, and the collected data include the position and angle of the robotic arm, the position information of the light source transmitter and the light source receiver, and the intensity and color temperature information of the ambient light.

[0014] In a preferred embodiment of the present invention, the light source transmitter is the transmitting end, which adopts pulse position modulation to send light signals by quickly controlling the flashing frequency of the LED light, and the light source receiving end is provided with a light sensor to detect changes in its light signal and decode it back into an electrical signal through a photoelectric converter.

[0015] In a preferred embodiment of the present invention, the light source transmitter converts the instruction for controlling the movement of the robot arm into a digital signal through a command converter before emitting the light signal, and the instruction for controlling the movement of the robot arm includes the movement angle and speed.

[0016] In a preferred embodiment of the present invention, the optical signal is converted into a digital signal using binary coding, and the control instruction is quantified into a specific numerical value, wherein the movement angle is converted into an integer within a range, that is, the angle of 0° to 360° is mapped to an integer of 0 to 360, and the speed instruction is converted into a numerical value representing different speed levels.

[0017] In a preferred embodiment of the present invention, the machine learning model in step S4 adopts a support vector machine, namely, SVM, and the SVM model is trained to distinguish between normal light signals and abnormal signals caused by ambient light interference.

[0018] A machine learning-assisted robotic arm device includes: a robotic arm, a light source emission system, a sensor system, a machine learning system, and a control and regulation system arranged in cooperation with the robotic arm;

[0019] The light source emission system includes a light source emitter and a photoelectric converter arranged in cooperation with the light source emitter; the sensor system includes a position sensor, a light sensor, a gyroscope and a temperature and humidity sensor, which collect the position data and light data of the robot arm in real time, and the sensor system is connected to the machine learning system through wireless communication;

[0020] The machine learning system includes a data acquisition module, a data preprocessing module and an algorithm module; the data collected in real time by the sensor system is collected by the data acquisition module, and the data is transmitted to the data preprocessing module for preprocessing, and the preprocessed data is input into the algorithm module for calculation;

[0021] The control and adjustment system includes a command converter, a binary encoder, a motion controller and a feedback module; the command converter converts the motion command of the robot arm into a digital signal, the binary encoder performs binary encoding processing on the converted digital signal, the motion controller realizes the motion control of each joint of the robot arm through a motion control algorithm, and the feedback module is connected to the sensor system through wireless communication, and the feedback module feeds back the data information collected by the sensor module in real time to continuously adjust and correct the movement of the robot arm.

[0022] In a preferred embodiment of the present invention, the position sensor is installed in cooperation with each joint of the robotic arm, the light source transmitter is installed on the end joint of the robotic arm, a servo is provided on the end joint of the robotic arm, the light source transmitter is installed in cooperation with the servo, and the photoelectric converter is provided on the base of the robotic arm.

[0023] In a preferred embodiment of the present invention, the joints on the robotic arm also include elbow joints, the position sensor is arranged on each joint on the robotic arm, the light sensor is arranged on the end joint of the robotic arm, and the gyroscope and the temperature and humidity sensor are arranged on the base of the robotic arm.

[0024] In a preferred embodiment of the present invention, a servo driver is provided in the motion controller, and the servo driver converts the output signal of the motion control algorithm into an electrical signal for driving the joint movement of the robot arm.

[0025] The present invention solves the defects existing in the background technology and has the following beneficial effects:

[0026] (1) The present invention proposes a machine learning-assisted visible light communication method and device for a robotic arm. The method collects the robotic arm status data and ambient light data in real time, and uses a prediction model to calculate the optimal path. The ambient light interference monitoring model can identify and calculate the interference factor, and automatically adjust the light source transmitter parameters to offset the influence of ambient light. This enables the communication system to have good environmental adaptability and to work stably under various lighting conditions. It also solves the problem that the optical signal may be blocked, resulting in communication interruption or signal quality degradation, and the interference quotes may cause signal distortion or reduce the signal-to-noise ratio, affecting the reliability of communication.

[0027] (2) The present invention significantly improves the communication accuracy between the light source transmitter and the light source receiver by collecting the robot arm status data and ambient light data in real time and using a prediction model to calculate the optimal path. This adjustment mechanism ensures that stable communication quality can be maintained even in a dynamically changing environment.

[0028] (3) The present invention is constructed based on a machine learning model and different sensors and algorithm models are added as needed, so that the system has good scalability. It also adopts real-time data acquisition and fast machine learning model prediction. The system equipment can quickly respond to environmental changes and changes in the state of the robotic arm, ensuring the real-time communication.

[0029] (4) The present invention monitors and identifies ambient light interference by adopting a neural network learning algorithm and a SVM machine learning algorithm, thereby effectively distinguishing normal light signals from interference signals, improving the system's ability to identify and handle abnormal situations, enhancing the robustness of the entire communication system, and effectively reducing the impact of environmental interference on communication quality, thereby ensuring the stability and reliability of communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

[0031] Figure 1 It is a flow chart of a visible light communication method for a robotic arm according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0032] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0034] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood by specific circumstances.

[0035] like Figure 1 As shown, a machine learning-assisted visible light communication method for a robotic arm comprises the following steps:

[0036] S1, installing a robotic arm, a light source transmitter, and several sensors at the light source receiving end, collecting relevant data through the sensors, and removing noise and normalizing the collected data;

[0037] S2. Establish several data features based on the collected data, and select a machine learning algorithm, i.e., a neural network learning algorithm, to establish a prediction model, divide the preprocessed data set into a training set and a test set for model training and model evaluation, and adjust the prediction model parameters based on the evaluation results;

[0038] S3, during the robot arm experiment, the current state data of the robot arm and the ambient light data are collected in real time, the real-time collected data are input into the prediction model, and the predicted optimal path between the light source transmitter and the light source receiver is obtained by combining the prediction model parameters in S2, and the angle and position of the light source transmitter are adjusted in real time according to the prediction results;

[0039] S4. Setting another machine learning model, that is, setting a support vector machine model to monitor and identify the interference of ambient light, wherein the support vector machine model determines the interference degree of the current ambient light based on the existing historical database and the ambient light data collected in real time;

[0040] S5. When ambient light interference is identified, the support vector machine model will calculate an interference factor and automatically correct the parameters of the light source transmitter according to the interference factor to offset the influence of ambient light.

[0041] Among them, the sensors in step S1 include a position sensor, a light sensor, a gyroscope, and a temperature and humidity sensor, and the collected data include the position and angle of the robotic arm, the position information of the light source transmitter and the light source receiver, and the intensity and color temperature information of the ambient light.

[0042] In step S2, a neural network learning algorithm is selected. By selecting a suitable neural network structure, the input features include the position K and angle P of the robot arm, the position L of the light source transmitter, the position R of the light source receiving end, the intensity I of the ambient light, and the color temperature T;

[0043] Among them, the number of neurons in the input layer is determined according to the number of input features, the number of neurons in the hidden layer is selected to be twice the number of neuron features in the input layer and one hidden layer is required, and the output layer requires two neurons to simultaneously predict the angle and position of the light source emitter.

[0044] In the prediction model, the preprocessed data set is divided into a training set and a test set, and the above data is marked as the training set {(K i , P i , L i , R i , I i , T i ), y i},y i is the output of the actual optimal path; the model is trained using the training set, and the accuracy and generalization ability of the model are verified using the test set.

[0045] After data processing, initialize the weights and bias parameters of the neural network, choose to use the mean square error MSE to calculate the loss function, and choose an optimization algorithm to update the parameters of the neural network, that is, choose the Adam optimizer to update the parameters of the neural network;

[0046] Its loss function Where n is the number of samples, y i is the true value, is the model prediction value.

[0047] Perform iterative training, calculate the output of the neural network through forward propagation, and update the weights and biases in the neural network through the backpropagation algorithm to reduce the loss function. Repeat the above steps until the loss function converges or reaches the preset number of training rounds.

[0048] When performing forward propagation, the formula is expressed as:

[0049] zi =f(WK i +WP i +WL i +WR i +WI i +WT i +b)

[0050] Among them, W is the weight parameter of the corresponding feature, b is the bias parameter, and f is the activation function;

[0051] It should be noted that when the ReLU function is selected as the activation function, the input value less than 0 is set to 0, and the value greater than 0 remains unchanged.

[0052] When backpropagating, the gradient of the loss function to the model parameters is calculated to update the parameters. The formula is expressed as:

[0053]

[0054] The Adam optimizer is used to update the parameters, where the parameter update formula of the Adam optimizer is:

[0055]

[0056] Among them, α is the learning rate, which ranges from [0, 1] and is used to control the step size of parameter update. Its adjustment is to adaptively adjust the size of the learning rate based on the first-order moment estimate and the second-order moment estimate of the gradient, and the above formula calculates the momentum estimate and the exponential moving average of the squared gradient And the above values ​​need to be updated in each round of training.

[0057] Calculating Momentum Estimates and the exponential moving average of the squared gradient That is, in the tth round of training, the exponential moving average method is used to calculate the first-order moment estimate and the second-order moment estimate of the gradient, and the formula is expressed as:

[0058]

[0059] Among them, β1 and β2 are the decay rate parameters of the exponential moving average. Usually, their values ​​are:

[0060] β1=0.9, controls the decay rate of momentum estimation. The default value is 0.9, which means that 90% of the momentum estimation of the previous round is retained in each iteration, while 10% of the new gradient is introduced;

[0061] β2=0.999 controls the decay rate of the exponential moving average of the squared gradient. The default value is 0.999, which means that 99.9% of the exponential moving average of the squared gradient of the previous round is retained in each iteration, while 0.1% of the new gradient is introduced.

[0062] After the above algorithm process is completed, the test set is used to evaluate the performance of the model, including calculating the error between the predicted value and the true value, evaluating the accuracy and generalization ability of the model, and then adjusting the hyperparameters of the neural network, including the learning rate and the number of neurons in the hidden layer, and retraining the model until satisfactory performance is achieved;

[0063] During the specific experiment, the current state data of the robotic arm and the ambient light data are collected in real time, and the data is subjected to noise removal and data normalization. The data collected in real time after preprocessing is input into the trained neural network model to obtain the predicted optimal path between the light source transmitter and the light source receiver. According to the prediction results, the angle and position of the light source transmitter are adjusted in real time to maintain a direct path with the light source receiver.

[0064] In step S4, the machine learning model adopts a support vector machine, namely, SVM, and the SVM model is trained to distinguish between normal light signals and abnormal signals caused by ambient light interference;

[0065] The specific process is to first collect and prepare the training data set, including input feature ambient light data and labels, the ambient light data includes light intensity and light direction, the labels include normal signals or abnormal signals, pre-process the above data, remove noise and normalize, and determine the hyperparameter of SVM as the penalty parameter C;

[0066] The preprocessed training data is input into the SVM model, and the SVM algorithm in the machine learning library is used for model training. The SVM model will learn a separation hyperplane based on the characteristics of the training data to maximize the interval between normal light signals and abnormal signals. During the training process, the SVM model will continuously update the model parameters based on the characteristics of the data until convergence is achieved or the specified number of training rounds is reached.

[0067] The test set is used to evaluate the performance of the trained SVM model, that is, the accuracy, precision, and recall evaluation indicators of the model on the test set are calculated to evaluate the performance of the model, and the performance of the model in different categories is analyzed through methods such as confusion matrix, and the model parameters are further adjusted to optimize the performance.

[0068] Among them, the ambient light data feature is x i =(I i , D i ), I i represents the light intensity of the i-th sample, D i Represents the light direction of the i-th sample, and the label is y i ={0,1},y i =1 means the i-th sample is a normal light signal, y i=0 means that the i-th sample is an abnormal signal;

[0069] The formulas for calculating accuracy, precision, and recall are as follows:

[0070]

[0071] Among them, TP is the number of positive samples correctly predicted by the model as positive samples; TN is the number of negative samples correctly predicted by the model as negative samples; FP is the number of negative samples incorrectly predicted by the model as positive samples; FN is the number of positive samples incorrectly predicted by the model as negative samples.

[0072] For example, there is a test set containing 10 samples. The model predicts these samples and obtains the following results. The true label y i :1,0,1,1,0,1,0,1,0,1; model prediction results 1,0,1,1,1,1,0,0,1,1;

[0073] Among them, TP=5, TN=2, FP=2, FN=1, and the above formula calculates Accuracy=0.7, Although the above results have a slightly higher accuracy, the precision and recall are relatively low, indicating that there is room for improvement in the model to a certain extent and model training can continue.

[0074] In step S5, when ambient light interference is identified, the SVM model will calculate an interference factor, and automatically correct the parameters of the light source transmitter according to the interference factor to offset the influence of the ambient light, wherein the interference factor is calculated by learning the pattern in the training data for prediction, and the training data with known interference factor labels are used to train the SVM model during the training phase;

[0075] In the above process, SVM will try to find a hyperplane to divide the training data into two categories, one of which represents the normal situation and the other represents the interference situation. The training goal is to maximize the interval between the hyperplane and the two categories and maximize the distance between the training data points and the hyperplane.

[0076] In the prediction stage, when there is new data that needs to predict the interference factor, the SVM model will make a prediction based on the characteristics of the new data by calculating the distance from the feature point to the hyperplane. The distance is used to indicate the size of the interference factor. Data points farther from the hyperplane often correspond to higher interference factors, while data points closer to the hyperplane correspond to lower interference factors.

[0077] According to the interference factor obtained above, the parameters of the light source transmitter are automatically adjusted. The adjustment method is determined according to the relationship between the interference factor and the parameters. A simple linear function is designed, that is, adjustment amplitude = k × interference factor, where k is a proportional coefficient used to control the relationship between the adjustment amplitude and the interference factor. A larger k value means that the interference factor has a greater impact on the adjustment amplitude, while a smaller k value means a smaller impact. The K value is determined by testing different interference factors and the corresponding adjustment amplitudes to determine a suitable proportional coefficient.

[0078] It should be noted that when adjusting the light source, it is necessary to consider the maximum adjustable range of the light source transmitter and the stability of the robotic arm. The maximum adjustable range of the light source transmitter is controlled according to the servo installed in conjunction with it, and the maximum adjustable range of the light source transmitter is less than or equal to the adjustable range of the servo used. The stability of the robotic arm should be determined during installation to provide a smoother process for adjusting the light source transmitter and reduce light source errors.

[0079] The light source transmitter is the transmitting end. Before transmitting the light signal, the light source transmitter converts the command for controlling the movement of the robotic arm into a digital signal. The command for the movement of the robotic arm includes the movement angle and speed, and adopts the modulation method of pulse position modulation. The light signal is sent by quickly controlling the flashing frequency of the LED light, and the light source receiving end is provided with a light sensor to detect the change of its light signal, and decode it back into an electrical signal through a photoelectric converter.

[0080] The optical signal is converted into a digital signal using binary coding, and the control instruction is quantified into a specific numerical value. For the motion angle, it is converted into an integer within a range, that is, the angle from 0° to 360° is mapped to an integer from 0 to 360, and the speed instruction is converted into a numerical value representing different speed levels.

[0081] It should be noted that the modulation method of pulse position modulation is adopted to determine the width of each pulse and the time interval between pulses, which respectively determines the duration of each symbol and the interval time between different symbols, and according to the control instruction, it is converted into a series of symbols or signal states, each symbol corresponding to a specific control instruction;

[0082] Each symbol is converted into a corresponding pulse sequence. Usually, one symbol corresponds to one pulse. The duration of the pulse is a predetermined pulse width. The appearance of the pulse indicates a specific control instruction. The generated pulse sequence is sent to the light source transmitter and is achieved by controlling the flashing of the LED light, where each pulse corresponds to the on or off state of an LED.

[0083] At the receiving end of the light source, the light sensor detects the changes in the light signal and converts it into an electrical signal, and uses a demodulator to convert the received electrical signal back to the original pulse sequence.

[0084] For example, suppose a 4-bit binary number is used to represent an angle range of 0-90°, and now a command is sent to represent an angle of 45°;

[0085] First, convert 45° into binary. Since 4 bits are used, the binary number corresponding to 45° is 1011. Convert the binary number 1011 into decimal and get 11. Since 4 bits are used, the PPM symbol period is 2. 4 Each time slot represents a binary number, so there are 16 time slots in the PPM symbol period in this example.

[0086] The decimal number corresponding to the binary number 1011 is 11, so a pulse signal will be sent in the 11th time slot of the PPM symbol period, and no pulses will be sent in the other positions. That is, the PPM signal is sent by flashing the LED light. The LED flashes in the 11th time slot in the PPM symbol period, and the light source receiving end decodes the angle command according to the position of the received pulse signal, thereby controlling the movement angle of the robot arm to 45°.

[0087] It should be noted that when the robot arm needs to move 45.7°, a fixed decimal point representation method is used, where the integer part is 45 and the decimal part is 0.7. The integer part 45 and the decimal part 0.7 are converted into binary. Since the decimal part is fixed after the decimal point of the 4-bit binary number, the decimal part 0.7 is multiplied by 16 to obtain an integer value, that is, 11. The binary approximation of the decimal part is 1011, and the binary representation of the integer part 45 is 101101;

[0088] The binary numbers of the integer part and the decimal part are mapped to different positions respectively. In a PPM symbol period, the binary number of the integer part is sent in the front time slot, and the binary number of the decimal part is sent in the back time slot. That is, in the PPM symbol period, pulse signals are sent in different time slots according to the binary numbers of the integer part and the decimal part, and no pulses are sent in other positions. The PPM signal is sent by flashing the LED light. The LED flashes in the corresponding time slot in the PPM symbol period. The light source receiving end decodes the angle command according to the position of the received pulse signal, thereby controlling the movement angle of the robot arm to 45.7°.

[0089] A robotic arm device assisted by machine learning includes: a robotic arm, a light source emission system, a sensor system, a machine learning system, and a control and adjustment system arranged in cooperation with the robotic arm.

[0090] The light source emission system includes a light source emitter and a photoelectric converter configured in conjunction with the light source emitter; the sensor system includes a position sensor, a light sensor, a gyroscope, and a temperature and humidity sensor, which collect the position data and light data of the robotic arm in real time, and the sensor system is connected to the machine learning system through wireless communication.

[0091] The machine learning system includes a data acquisition module, a data preprocessing module and an algorithm module; the data collected in real time by the sensor system is collected through the data acquisition module, and the data is transmitted to the data preprocessing module for preprocessing, and the preprocessed data is input into the algorithm module for calculation.

[0092] Among them, various algorithms are stored in the machine learning system, including the neural network learning algorithm and support vector machine model algorithm to be used. When performing calculations, the sensor system collects data such as the position, angle, light intensity and color temperature of the robot arm in real time, and sends these data to the data acquisition module. The data acquisition module transmits the original data to the data preprocessing module, and performs denoising, normalization and feature extraction on the data;

[0093] The preprocessed data is input into the algorithm module, and the optimal path of the robotic arm and the light source transmitter is calculated through the neural network learning algorithm. The support vector machine (SVM) model is used to monitor changes in ambient light, identify interference, and calculate the interference factor to adjust the parameters of the light source transmitter to offset the impact of ambient light.

[0094] The control and adjustment system includes a command converter, a binary encoder, a motion controller and a feedback module; the command converter converts the motion command of the robot arm into a digital signal, the binary encoder performs binary encoding processing on the converted digital signal, and the motion controller realizes the motion control of each joint of the robot arm through the motion control algorithm, that is, the motion angle and speed of the robot arm that need to be adjusted are obtained through the machine learning system, and the servo driver in the motion controller obtains the motion command and then adjusts the robot arm.

[0095] The feedback module is connected to the sensor system through wireless communication. The feedback module provides real-time feedback of the data information collected by the sensor module to continuously adjust and correct the movement of the robotic arm. The motion controller is equipped with a servo driver, which converts the output signal of the motion control algorithm into an electrical signal to drive the movement of the robotic arm joints. Its control and regulation system receives and executes adjustment instructions to ensure that the robotic arm runs according to the predetermined path and speed.

[0096] Among them, the position sensor is installed in cooperation with each joint of the robotic arm, the light source transmitter is installed on the end joint of the robotic arm, a servo is arranged on the end joint of the robotic arm, the light source transmitter is installed on the servo, and the photoelectric converter is arranged on the base of the robotic arm; the joints on the robotic arm also include elbow joints, the position sensor is arranged on each joint of the robotic arm, the light sensor is arranged on the end joint of the robotic arm, and the gyroscope and the temperature and humidity sensor are arranged on the base of the robotic arm.

[0097] According to the installation of the above-mentioned sensors, the angle and position data of each joint of the robot arm are collected to calculate the current posture and position of the robot arm, assist in path planning and motion control, and the servo setting controls the angle adjustment of the light source transmitter to ensure the best transmission path. Through the data collected by the sensors, the motion state of the robot arm, the position and direction of the light source transmitter, the ambient light conditions, and the temperature and humidity of the surrounding environment are fully understood. The collected information is combined to optimize the optical signal transmission path, adjust the parameters of the light source transmitter in real time, ensure the stability and accuracy of communication, and effectively offset the influence of ambient light interference.

[0098] When the present invention is used, the mechanical arm is installed, and the position sensor, light sensor, gyroscope and temperature and humidity sensor are correctly installed on each joint of the mechanical arm, and it is ensured that they can be wirelessly connected with each device on the mechanical arm, collect relevant data, and process the data;

[0099] The predicted optimal path between the light source transmitter and the light source receiver is obtained through the prediction model, and a signal is sent to the servo to adjust the angle of the light source transmitter. A signal is also sent to the robotic arm control end to adjust the position parameters of the light source transmitter. The SVM model is set to monitor and identify the degree of interference from ambient light. When ambient light interference is identified, the interference factor is calculated and the parameters of the light source transmitter are automatically corrected to offset the impact of ambient light and ensure the stability of the light source.

[0100] The above is based on the ideal embodiment of the present invention. Through the above description, relevant personnel can make various changes and modifications without departing from the technical concept of the present invention. The technical scope of the present invention is not limited to the content in the specification, and the technical scope must be determined according to the scope of the claims.

Claims

1. A machine learning-assisted visible light communication method for a robotic arm, characterized in that: The method comprises the following steps: S1, installing a robotic arm, a light source transmitter, and several sensors at the light source receiving end, collecting relevant data through the sensors, and removing noise and normalizing the collected data; S2. Establish several data features based on the collected data, and select a machine learning algorithm, i.e., a neural network learning algorithm, to establish a prediction model, divide the preprocessed data set into a training set and a test set for model training and model evaluation, and adjust the prediction model parameters based on the evaluation results; S3, during the robot arm experiment, the current state data of the robot arm and the ambient light data are collected in real time, the real-time collected data are input into the prediction model, and the predicted optimal path between the light source transmitter and the light source receiver is obtained by combining the prediction model parameters in S2, and the angle and position of the light source transmitter are adjusted in real time according to the prediction results; S4. Setting another machine learning model, that is, setting a support vector machine model to monitor and identify the interference of ambient light, wherein the support vector machine model determines the interference degree of the current ambient light based on the existing historical database and the ambient light data collected in real time; S5. When ambient light interference is identified, the support vector machine model will calculate an interference factor and automatically correct the parameters of the light source transmitter according to the interference factor to offset the influence of ambient light.

2. The method for machine-learning-assisted visible light communication for a robotic arm according to claim 1, characterized in that: The sensors in step S1 include a position sensor, a light sensor, a gyroscope, and a temperature and humidity sensor, and the collected data include the position and angle of the robotic arm, the position information of the light source transmitter and the light source receiver, and the intensity and color temperature information of the ambient light.

3. The method for machine-learning-assisted visible light communication for a robotic arm according to claim 1, characterized in that: The light source transmitter is the transmitting end, which adopts the modulation method of pulse position modulation, and sends light signals by quickly controlling the flashing frequency of the LED light. The light source receiving end is provided with a light sensor to detect the changes of its light signal, and decodes it back into an electrical signal through a photoelectric converter.

4. The method for machine-learning-assisted visible light communication for a robotic arm according to claim 3, characterized in that: Before the light source transmitter emits the light signal, the instruction for controlling the movement of the robot arm is converted into a digital signal through the instruction converter, and the instruction for controlling the movement of the robot arm includes the movement angle and speed.

5. The method for machine-learning-assisted visible light communication for a robotic arm according to claim 4, characterized in that: The optical signal is converted into a digital signal using binary coding to quantify the control instruction into a specific numerical value, wherein the motion angle is converted into an integer within a range, that is, the angle of 0° to 360° is mapped to an integer of 0 to 360, and the speed instruction is converted into a numerical value representing different speed levels.

6. The method for machine-learning-assisted visible light communication for a robotic arm according to claim 1, characterized in that: In step S4, the machine learning model adopts a support vector machine, namely, an SVM model, and the SVM model is trained to distinguish between normal light signals and abnormal signals caused by ambient light interference.

7. A machine learning-assisted robotic arm device according to any one of claims 1 to 6, comprising: A robotic arm, a light source emission system, a sensor system, a machine learning system and a control and regulation system arranged in cooperation with the robotic arm, characterized in that: The light source emission system includes a light source emitter and a photoelectric converter arranged in cooperation with the light source emitter; the sensor system includes a position sensor, a light sensor, a gyroscope and a temperature and humidity sensor, which collect the position data and light data of the robot arm in real time, and the sensor system is connected to the machine learning system through wireless communication; The machine learning system includes a data acquisition module, a data preprocessing module and an algorithm module; the data collected in real time by the sensor system is collected by the data acquisition module, and the data is transmitted to the data preprocessing module for preprocessing, and the preprocessed data is input into the algorithm module for calculation; The control and adjustment system includes a command converter, a binary encoder, a motion controller and a feedback module; the command converter converts the motion command of the robot arm into a digital signal, the binary encoder performs binary encoding processing on the converted digital signal, the motion controller realizes the motion control of each joint of the robot arm through a motion control algorithm, and the feedback module is connected to the sensor system through wireless communication, and the feedback module feeds back the data information collected by the sensor module in real time to continuously adjust and correct the movement of the robot arm.

8. The machine learning-assisted robotic arm device according to claim 7, characterized in that: The position sensor is installed in cooperation with each joint of the robotic arm, the light source transmitter is installed on the end joint of the robotic arm, a servo is provided on the end joint of the robotic arm, the light source transmitter is installed in cooperation with the servo, and the photoelectric converter is provided on the base of the robotic arm.

9. The machine learning-assisted robotic arm device according to claim 7, characterized in that: The joints on the robotic arm also include elbow joints. The position sensor is arranged on each joint on the robotic arm. The light sensor is arranged on the end joint of the robotic arm. The gyroscope and the temperature and humidity sensor are arranged on the base of the robotic arm.

10. The machine learning-assisted robotic arm device according to claim 7, characterized in that: The motion controller is provided with a servo driver, which converts the output signal of the motion control algorithm into an electrical signal for driving the joint movement of the mechanical arm.